If description is unset, goose doesn't understand 'null' value

Bug #1188825 reported by David Britton
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Go OpenStack Exchange
Fix Released
Medium
Ian Booth

Bug Description

error: cannot make Swift control container: failed to create container: 03bd8bc0-ce90-11e2-84b4-2c768a4f56ac
caused by: authentication failed
caused by: failed unmarshaling the response body: {"access": {"token": {"issued_at": "2013-06-07T14:03:52.691023", "expires": "2013-06-08T14:03:52Z", "id": "915546af168149459e0964481fafd57c", "tenant": {"description": null, "enabled": true, "id": "98ad73deb8eb41ad8f118fd4badfe430", "name": "davidpbritton"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://pnkkf-cofgod.1ss.qa.lexington:8774/v1.1/98ad73deb8eb41ad8f118fd4badfe430", "region": "serverstack", "internalURL": "http://pnkkf-cofgod.1ss.qa.lexington:8774/v1.1/98ad73deb8eb41ad8f118fd4badfe430", "id": "5b4134db845b46de853ae982edcb5966", "publicURL": "http://pnkkf-cofgod.1ss.qa.lexington:8774/v1.1/98ad73deb8eb41ad8f118fd4badfe430"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://pnkkf-cofgod.1ss.qa.lexington:9696", "region": "serverstack", "internalURL": "http://pnkkf-cofgod.1ss.qa.lexington:9696", "id": "578313b02ce743698609344ccd27bb70", "publicURL": "http://pnkkf-cofgod.1ss.qa.lexington:9696"}], "endpoints_links": [], "type": "network", "name": "quantum"}, {"endpoints": [{"adminURL": "http://pnkkf-cofgod.1ss.qa.lexington:3333", "region": "serverstack", "internalURL": "http://pnkkf-cofgod.1ss.qa.lexington:3333", "id": "00aa6ff8d39a4ac392732b14320046ec", "publicURL": "http://pnkkf-cofgod.1ss.qa.lexington:3333"}], "endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL": "http://hyc7y-cofgod.1ss.qa.lexington:8080/v1/AUTH_484563684ede488d84d6ca995bf65473/simplestreams/data", "region": "serverstack", "internalURL": "http://hyc7y-cofgod.1ss.qa.lexington:8080/v1/AUTH_484563684ede488d84d6ca995bf65473/simplestreams/data", "id": "3425aa64f37f48b89ba8fd5eec548ce6", "publicURL": "http://hyc7y-cofgod.1ss.qa.lexington:8080/v1/AUTH_484563684ede488d84d6ca995bf65473/simplestreams/data"}], "endpoints_links": [], "type": "product-streams", "name": "product-streams"}, {"endpoints": [{"adminURL": "http://pnkkf-cofgod.1ss.qa.lexington:8773/services/Cloud", "region": "serverstack", "internalURL": "http://pnkkf-cofgod.1ss.qa.lexington:8773/services/Cloud", "id": "10fa05115012426e98857491c9069cde", "publicURL": "http://pnkkf-cofgod.1ss.qa.lexington:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://hyc7y-cofgod.1ss.qa.lexington:8080", "region": "serverstack", "internalURL": "http://hyc7y-cofgod.1ss.qa.lexington:8080/v1/AUTH_98ad73deb8eb41ad8f118fd4badfe430", "id": "0d70557fc74f4c75b1d28c172c35610e", "publicURL": "http://hyc7y-cofgod.1ss.qa.lexington:8080/v1/AUTH_98ad73deb8eb41ad8f118fd4badfe430"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "http://m8fdd-cofgod.1ss.qa.lexington:9292", "region": "serverstack", "internalURL": "http://m8fdd-cofgod.1ss.qa.lexington:9292", "id": "60629fecd8cb4dbd8d83592be07975e0", "publicURL": "http://m8fdd-cofgod.1ss.qa.lexington:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://w3ymd-cofgod.1ss.qa.lexington:35357/v2.0", "region": "serverstack", "internalURL": "http://w3ymd-cofgod.1ss.qa.lexington:5000/v2.0", "id": "150565ddbd064f448de6daa13fcb6243", "publicURL": "http://w3ymd-cofgod.1ss.qa.lexington:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "davidpbritton", "roles_links": [], "id": "766ade91dd994f0b8f05e6a769a344dc", "roles": [{"name": "Member"}, {"name": "_member_"}], "name": "davidpbritton"}, "metadata": {"is_admin": 0, "roles": ["b9069a2f92084877b1fd74b7ceadba63", "9fe2ff9ee4384b1894a90878d3e92bab"]}}}
caused by: json: cannot unmarshal null into Go value of type string

Tags: serverstack

Related branches

Martin Packman (gz)
Changed in goose:
importance: Undecided → Medium
status: New → Confirmed
James Page (james-page)
tags: added: serverstack
Revision history for this message
David Overcash (funnylookinhat) wrote :
Download full text (6.3 KiB)

Happens for me as well with a fresh devstack setup... Here's the dump in case you'd like it:

error: cannot query old bootstrap state: failed to GET object provider-state from container juju-a1697e64a7092dbdcf1173f9634061e1
caused by: authentication failed
caused by: failed unmarshaling the response body: {"access": {"token": {"issued_at": "2013-06-20T14:48:23.917647", "expires": "2013-06-21T14:48:23Z", "id": "MIIK8QYJKoZIhvcNAQcCoIIK4jCCCt4CAQExCTAHBgUrDgMCGjCCCUcGCSqGSIb3DQEHAaCCCTgEggk0eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNi0yMFQxNDo0ODoyMy45MTc2NDciLCAiZXhwaXJlcyI6ICIyMDEzLTA2LTIxVDE0OjQ4OjIzWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiYmM1MjFjZDBkMTJmNDU0ZGExYzQ5Y2YzYTljZTdlZGQiLCAibmFtZSI6ICJkZW1vIn19LCAic2VydmljZUNhdGFsb2ciOiBbeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vMTAuMTcuNzYuOTo4Nzc0L3YyL2JjNTIxY2QwZDEyZjQ1NGRhMWM0OWNmM2E5Y2U3ZWRkIiwgInJlZ2lvbiI6ICJSZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovLzEwLjE3Ljc2Ljk6ODc3NC92Mi9iYzUyMWNkM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ni45OjUwMDAvdjIuMCJ9XSwgImVuZHBvaW50c19saW...

Read more...

Revision history for this message
Martin Packman (gz) wrote :

The easy work around here is to supply a description, even an empty one, when creating the tenant/project.

Ian Booth (wallyworld)
Changed in goose:
assignee: nobody → Ian Booth (wallyworld)
Revision history for this message
Ian Booth (wallyworld) wrote :

This is actually caused by a bug in Go. https://code.google.com/p/go/issues/detail?id=2540
It is fixed in Go 1.1
I'll add a workaround for Go versions < 1.1

Ian Booth (wallyworld)
Changed in goose:
status: Confirmed → In Progress
Changed in goose:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in goose:
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.