tools metadata missing some fields

Bug #1243419 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Ian Booth

Bug Description

https://swift.canonistack.canonical.com/v1/AUTH_526ad877f3e3464589dc1145dfeaac60/juju-dist/tools/streams/v1/com.ubuntu.juju:released:tools.json
that does not have a 'content_id' field in it.

sstream-mirror is just part of 'simplestreams' package in saucy.

which means this breaks for me

$ sstream-mirror -vv https://swift.canonistack.canonical.com/v1/AUTH_526ad877f3e3464589dc1145dfeaac60/juju-dist/tools/streams/v1/index.json out.d
Traceback (most recent call last):
  File "/usr/bin/sstream-mirror", line 93, in <module>
    main()
  File "/usr/bin/sstream-mirror", line 89, in main
    tmirror.sync(smirror, initial_path)
  File "/usr/lib/python3/dist-packages/simplestreams/mirrors/__init__.py", line 85, in sync
    return self.sync_index(reader, path, data, content)
  File "/usr/lib/python3/dist-packages/simplestreams/mirrors/__init__.py", line 230, in sync_index
    self.sync(reader, path=epath)
  File "/usr/lib/python3/dist-packages/simplestreams/mirrors/__init__.py", line 83, in sync
    return self.sync_products(reader, path, data, content)
  File "/usr/lib/python3/dist-packages/simplestreams/mirrors/__init__.py", line 244, in sync_products
    content_id = src['content_id']
KeyError: 'content_id'

Tags: sync-tools

Related branches

Revision history for this message
Curtis Hovey (sinzui) wrote :

hi Ian.

I think bug is fixable while you work on sync-tools to provide CPC files.

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.17.0
tags: added: sync-tools
Ian Booth (wallyworld)
Changed in juju-core:
assignee: nobody → Ian Booth (wallyworld)
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
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.