n-c-c/next fails cloud-compute-relation-changed when migration-auth-type set for Precise-Icehouse
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | nova-cloud-controller (Juju Charms Collection) |
Medium
|
Liam Young | ||
| | nova-compute (Juju Charms Collection) |
Undecided
|
Liam Young | ||
Bug Description
When nova-compute/next has migration-auth-type set, nova-cloud-
hook failed: "cloud-
** NOTE: This occurs even with forward and reverse dns being sane. **
Proof Scenarios
===============
1.
# PASS
# all stable charms
# with migration-auth-type set
http://
http://
http://
2.
# FAIL
# all next charms
# with migration-auth-type set
http://
http://
http://
3.
# PASS
# all next charms, except n-c-c --> substitute stable version
# with migration-auth-type set
# n-c/next
# n-c-c stable
http://
4.
# FAIL
# all next charms, except n-c --> substitute stable version
# with migration-auth-type set
# n-c stable
# n-c-c/next
http://
5.
# PASS
# all next charms
# *without* migration-auth-type set
http://
6.
# LAST KNOWN GOOD
# n-c-c/next: rev187
http://
...
Logic
=====
Given that:
* Precise-Icehouse does not deploy cleanly, on metal or on OpenStack, with the next n-c-c charm in the next.yaml bundle; and
* Precise-Icehouse begins to deploy cleanly, if the stable n-c-c charm is substituted into the next.yaml bundle; and
* Precise-Icehouse (next) last-known good next.yaml deploy was n-c-c/next rev 187.
We can assert that:
nova-cloud-
Because the amulet tests do not set migration-
Related branches
- Edward Hope-Morley: Approve on 2015-10-07
-
Diff: 43 lines (+18/-1)2 files modifiedhooks/nova_cc_utils.py (+8/-1)
unit_tests/test_nova_cc_utils.py (+10/-0)
| summary: |
- cloud-compute-relation-changed -> nova_cc_utils.py -> ssh_known_host_key - -> IndexError: list index out of range + precise-icehouse deploy fails (cloud-compute-relation-changed -> + nova_cc_utils.py -> ssh_known_host_key -> IndexError: list index out of + range) |
| Ryan Beisner (1chb1n) wrote : Re: precise-icehouse deploy fails (cloud-compute-relation-changed -> nova_cc_utils.py -> ssh_known_host_key -> IndexError: list index out of range) | #1 |
| Changed in nova-cloud-controller (Juju Charms Collection): | |
| status: | New → Invalid |
| Ryan Beisner (1chb1n) wrote : | #3 |
Actually ... reopening, as this has also been observed and confirmed in our bare metal tests, as well as OpenStack-
| Changed in nova-cloud-controller (Juju Charms Collection): | |
| status: | Invalid → New |
| description: | updated |
| Ryan Beisner (1chb1n) wrote : | #4 |
# n-c-c/next unit trace...
http://
-or-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO cloud-compute-
2015-10-05 16:02:50 INFO juju.worker.
2015-10-05 16:02:50 ERROR juju.worker.
2015-10-05 16:02:50 DEBUG juju.worker.uniter modes.go:31 [AGENT-STATUS] failed: run relation-changed (18; nova-compute/1) hook
2015-10-05 16:02:50 INFO juju.worker.uniter modes.go:543 ModeAbide exiting
2015-10-05 16:02:50 INFO juju.worker.uniter modes.go:541 ModeHookError starting
2015-10-05 16:02:50 DEBUG juju.worker.
2015-10-05 16:02:50 DEBUG juju.worker.
2015-10-05 16:02:50 DEBUG juju.worker.
2015-10-05 16:02:50 DEBUG juju.worker.uniter modes.go:31 [AGENT-STATUS] error: hook failed: "cloud-
| description: | updated |
| summary: |
- precise-icehouse deploy fails (cloud-compute-relation-changed -> - nova_cc_utils.py -> ssh_known_host_key -> IndexError: list index out of - range) + n-c-c/next fails cloud-compute-relation-changed when migration-auth-type + set for Precise-Icehouse |
| description: | updated |
| Changed in nova-compute (Juju Charms Collection): | |
| assignee: | nobody → Liam Young (gnuoy) |
| Changed in nova-cloud-controller (Juju Charms Collection): | |
| assignee: | nobody → Liam Young (gnuoy) |
| Liam Young (gnuoy) wrote : | #5 |
It seems that the bug was introduced in r189 of nova-cloud-
ssh-keygen -f /etc/nova/
for an ip not present in the file return a non-zero return code, the charm catches subprocess.
output.
when output is empty and chaos ensues.
| Changed in nova-cloud-controller (Juju Charms Collection): | |
| status: | New → Confirmed |
| importance: | Undecided → Medium |
| Changed in nova-compute (Juju Charms Collection): | |
| status: | New → Invalid |
| Changed in nova-cloud-controller (Juju Charms Collection): | |
| milestone: | none → 15.10 |
| status: | Confirmed → In Progress |
| Changed in nova-cloud-controller (Juju Charms Collection): | |
| status: | In Progress → Fix Committed |
| Changed in nova-cloud-controller (Juju Charms Collection): | |
| status: | Fix Committed → Fix Released |

FYI, juju stat: http:// paste.ubuntu. com/12624563/