g-s-s uses the wrong IP for the keystone endpoint, leads to juju bootstrap failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot Log Analyser |
Fix Committed
|
High
|
Francis Ginther | ||
Glance - Simplestreams Sync Charm |
Invalid
|
Undecided
|
Unassigned | ||
Landscape Server |
Fix Released
|
High
|
Francis Ginther | ||
OpenStack Keystone Charm |
Fix Released
|
High
|
Unassigned | ||
keystone (Juju Charms Collection) |
Fix Released
|
High
|
Unassigned |
Bug Description
This problem has been observed several times during landscape autopilot CI testing. The observed failure is a failed juju bootstrap with the debug messages:
keystone charm: cs:~openstack-
glance-
[from console logs (copied to https:/
05:40:32 INFO ui.openstack.
05:40:32 INFO ui.openstack.
05:40:32 INFO ui.openstack.
05:40:33 INFO ui.openstack.
05:40:33 INFO ui.openstack.
05:40:33 INFO ui.openstack.
05:40:33 INFO ui.openstack.
05:40:33 INFO ui.openstack.
05:40:33 INFO ui.openstack.
05:40:37 INFO ui.openstack.
05:40:37 INFO ui.openstack.
05:40:37 INFO ui.openstack.
05:40:37 INFO ui.openstack.
05:40:37 INFO ui.openstack.
05:40:40 INFO ui.openstack.
Of note is the line: "index file has no data for cloud {region1 http://
The simplesteams data it is parsing is:
[from http://
{
"format": "index:1.0",
"index": {
"auto.sync": {
"cloudname": "glance-
"clouds": [
{
"endpoint": "http://
"region": "region1"
}
],
"datatype": "image-ids",
"format": "products:1.0",
"path": "streams/
"products": [
"com.
"com.
],
"updated": "Thu, 09 Feb 2017 05:09:38 +0000"
}
},
"updated": "Thu, 09 Feb 2017 05:08:26 +0000"
}
There is a mismatch between the endpoint that juju is looking for, "http://
Changed in autopilot-log-analyser: | |
status: | In Progress → Fix Released |
status: | Fix Released → Fix Committed |
importance: | Undecided → High |
Changed in landscape: | |
milestone: | 17.01 → 17.02 |
Changed in landscape: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in charm-keystone: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in keystone (Juju Charms Collection): | |
status: | Triaged → Invalid |
Changed in keystone (Juju Charms Collection): | |
status: | Invalid → Fix Released |
Changed in landscape: | |
status: | Triaged → Fix Committed |
Changed in landscape: | |
status: | Fix Committed → Fix Released |
Changed in charm-keystone: | |
status: | Triaged → Fix Released |
Changed in glance-simplestreams-sync-charm: | |
status: | Incomplete → Invalid |
Caught a case of this occurring again, but I think it was too late. The glance- simplestreams- sync has already updated things since the cloud was first deployed. I'm now getting a successful juju bootstrap.
The simplestreams data was first created at 03 Feb 2017 02:29:12 and updated at 03 Feb 2017 06:25:35. The failure occcurred at 03:19:49 with the message:
03:19:49 INFO ui.openstack. test_region_ juju_bootstrap. RegionBootstrap Test.test_ juju_bootstrap_ kvm . 03:19:24 DEBUG juju.environs. simplestreams simplestreams. go:454 skipping index "http:// 10.96.55. 183:80/ swift/v1/ simplestreams/ data/streams/ v1/index. json" because of missing information: index file has no data for cloud {region1 http:// 10.96.55. 190:5000/ v2.0} not found
http:// 10.96.55. 183:80/ swift/v1/ simplestreams/ data/streams/ v1/index. json: /pastebin. canonical. com/178158/
https:/
http:// 10.96.55. 183/swift/ v1/simplestream s/data/ streams/ v1/auto. sync.json: /pastebin. canonical. com/178160/
https:/
Will try again.