utah_done exception when processing state.yaml

Bug #1204489 reported by Para Siva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UTAH
Fix Committed
Medium
Andy Doan

Bug Description

The following exception was seen during a server upgrade testing attempt,

2013-07-24 10:40:14,564 ssh DEBUG: Traceback (most recent call last):
2013-07-24 10:40:14,564 ssh DEBUG: File "/usr/share/utah/client/utah-done.py", line 27, in <module>
2013-07-24 10:40:14,565 ssh DEBUG: state = yaml.load(f)
2013-07-24 10:40:14,565 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 71, in load
2013-07-24 10:40:14,565 ssh DEBUG: return loader.get_single_data()
2013-07-24 10:40:14,565 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in get_single_data
2013-07-24 10:40:14,566 ssh DEBUG: node = self.get_single_node()
2013-07-24 10:40:14,566 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
2013-07-24 10:40:14,566 ssh DEBUG: document = self.compose_document()
2013-07-24 10:40:14,567 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 55, in compose_document
2013-07-24 10:40:14,567 ssh DEBUG: node = self.compose_node(None, None)
2013-07-24 10:40:14,567 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
2013-07-24 10:40:14,567 ssh DEBUG: node = self.compose_mapping_node(anchor)
2013-07-24 10:40:14,567 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
2013-07-24 10:40:14,568 ssh DEBUG: while not self.check_event(MappingEndEvent):
2013-07-24 10:40:14,568 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 98, in check_event
2013-07-24 10:40:14,568 ssh DEBUG: self.current_event = self.state()
2013-07-24 10:40:14,568 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 428, in parse_block_mapping_key
2013-07-24 10:40:14,569 ssh DEBUG: if self.check_token(KeyToken):
2013-07-24 10:40:14,569 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 115, in check_token
2013-07-24 10:40:14,569 ssh DEBUG: while self.need_more_tokens():
2013-07-24 10:40:14,569 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 149, in need_more_tokens
2013-07-24 10:40:14,570 ssh DEBUG: self.stale_possible_simple_keys()
2013-07-24 10:40:14,570 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 289, in stale_possible_simple_keys
2013-07-24 10:40:14,570 ssh DEBUG: "could not found expected ':'", self.get_mark())
2013-07-24 10:40:14,570 ssh DEBUG: yaml.scanner.ScannerError: while scanning a simple key
2013-07-24 10:40:14,571 ssh DEBUG: in "/var/lib/utah/state.yaml", line 214, column 1
2013-07-24 10:40:14,571 ssh DEBUG: could not found expected ':'
2013-07-24 10:40:14,571 ssh DEBUG: in "/var/lib/utah/state.yaml", line 215, column 1
2013-07-24 10:40:14,571 root INFO: UTAH client is finished

The jenkins job config is

 set -e
 rm -rf *
 BRANCH=lp:~utah/utah/jenkins-upgradetest-setup
 BZRDIR=jenkins-upgradetest-setup
 export BZR_HOME=/dev/null
 export IMAGE_BASE=raring
 export IMAGE_DEST=saucy
 export IMAGE_ARCH=i386
 export IMAGE_TYPE=server
 export INSTALL_TYPE=server
export PROVISION_RUNLIST=lp:~psivaa/utah/utah-upgrade/nothing.run
export RUNLIST=lp:~psivaa/utah/utah-upgrade/upgrade.run
PARAMS='-d --name upgrade-raring-amd64-desktop --skip-provisioning -n'
bzr branch lp:~utah/utah/jenkins-upgradetest-setup jenkins-upgradetest-setup
jenkins-upgradetest-setup/jenkins/jenkins.sh

==========================
Not reproducible every time but have seen twice in about 5 runs

Related branches

Revision history for this message
Para Siva (psivaa) wrote :
Para Siva (psivaa)
description: updated
Revision history for this message
Andy Doan (doanac) wrote :

hmm - i just loaded that yaml file locally and it parses correctly with pyaml. Not sure how we can go about re-producing this

Revision history for this message
Para Siva (psivaa) wrote :

I have not seen this lately either. Marking this as incomplete until I reproduce this. Thanks

Changed in utah:
status: New → Incomplete
Andy Doan (doanac)
Changed in utah:
assignee: nobody → Andy Doan (doanac)
importance: Undecided → Medium
status: Incomplete → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.