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
seems a result of 1339842 per David's comments.