KeyError: 'products'

Bug #1353724 reported by David Ames
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
simplestreams
Fix Released
High
Unassigned

Bug Description

After upgrading from python-simplestreams_0.1.0~bzr341-0ubuntu1_all.deb to python-simplestreams_0.1.0~bzr341-0ubuntu2_all.deb I get the following stack trace when running the glance-simplestreams-sync.py script with no images in glance.

Traceback (most recent call last):
  File "./glance-simplestreams-sync.py", line 286, in <module>
    do_sync(charm_conf)
  File "./glance-simplestreams-sync.py", line 152, in do_sync
    tmirror.sync(smirror, path=initial_path)
  File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 88, in sync
    return self.sync_index(reader, path, data, content)
  File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 240, in sync_index
    self.sync(reader, path=epath)
  File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 86, in sync
    return self.sync_products(reader, path, data, content)
  File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 368, in sync_products
    self.insert_products(path, target, content)
  File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/glance.py", line 237, in insert_products
    util.products_condense(tree, sticky=sticky)
  File "/usr/lib/python2.7/dist-packages/simplestreams/util.py", line 398, in products_condense
    walk_products(ptree, cb_version=call_move_dups)
  File "/usr/lib/python2.7/dist-packages/simplestreams/util.py", line 153, in walk_products
    for prodname, proddata in tree['products'].items():
KeyError: 'products'

Workaround:
Downgraded back to python-simplestreams_0.1.0~bzr341-0ubuntu1_all.deb
Ran glance-simplestreams-sync.py
Upgraded to python-simplestreams_0.1.0~bzr341-0ubuntu2_all.deb
All seems well

Revision history for this message
Scott Moser (smoser) wrote :

seems a result of 1339842 per David's comments.

Changed in simplestreams:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Scott Moser (smoser) wrote :

it woudl seem like this can be fixed with:
 http://paste.ubuntu.com/11857101/

but the only reason i can come up with for failing is if no things were added (as if they were all filtered out).
possibly if there was just nothing new.

Revision history for this message
Scott Moser (smoser) wrote :

this is believed to be fix committed in revno 385.

Changed in simplestreams:
status: Confirmed → Fix Committed
Revision history for this message
Scott Moser (smoser) wrote : Fixed in simplestreams version 0.1.0.

This bug is believed to be fixed in simplestreams in version 0.1.0. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in simplestreams:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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