hook failure with latest ncc on MAAS 2.0/Juju 2.0

Bug #1641614 reported by James Page
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Nova Cloud Controller Charm
Fix Released
High
James Page
nova-cloud-controller (Juju Charms Collection)
Invalid
High
James Page

Bug Description

I hit this testing today with the latest master branch updates to nova-cc:

2016-11-14 14:11:05 INFO cloud-compute-relation-changed Traceback (most recent call last):
2016-11-14 14:11:05 INFO cloud-compute-relation-changed File "/var/lib/juju/agents/unit-nova-cloud-controller-15/charm/hooks/cloud-compute-relation-changed", line 1104, in <module>
2016-11-14 14:11:05 INFO cloud-compute-relation-changed main()
2016-11-14 14:11:05 INFO cloud-compute-relation-changed File "/var/lib/juju/agents/unit-nova-cloud-controller-15/charm/hooks/cloud-compute-relation-changed", line 1098, in main
2016-11-14 14:11:05 INFO cloud-compute-relation-changed hooks.execute(sys.argv)
2016-11-14 14:11:05 INFO cloud-compute-relation-changed File "/var/lib/juju/agents/unit-nova-cloud-controller-15/charm/hooks/charmhelpers/core/hookenv.py", line 715, in execute
2016-11-14 14:11:05 INFO cloud-compute-relation-changed self._hooks[hook_name]()
2016-11-14 14:11:05 INFO cloud-compute-relation-changed File "/var/lib/juju/agents/unit-nova-cloud-controller-15/charm/hooks/cloud-compute-relation-changed", line 620, in compute_changed
2016-11-14 14:11:05 INFO cloud-compute-relation-changed ssh_compute_add(key, rid=rid, unit=unit)
2016-11-14 14:11:05 INFO cloud-compute-relation-changed File "/var/lib/juju/agents/unit-nova-cloud-controller-15/charm/hooks/nova_cc_utils.py", line 773, in ssh_compute_add
2016-11-14 14:11:05 INFO cloud-compute-relation-changed short = hn.split('.')[0]
2016-11-14 14:11:05 INFO cloud-compute-relation-changed AttributeError: 'NoneType' object has no attribute 'split'
2016-11-14 14:11:05 ERROR juju.worker.uniter.operation runhook.go:107 hook "cloud-compute-relation-changed" failed: exit status 1

Tags: uosci
Ryan Beisner (1chb1n)
tags: added: uosci
Revision history for this message
James Page (james-page) wrote :
Changed in nova-cloud-controller (Juju Charms Collection):
status: New → In Progress
importance: Undecided → High
milestone: none → 17.01
assignee: nobody → James Page (james-page)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-cloud-controller (master)

Reviewed: https://review.openstack.org/397209
Committed: https://git.openstack.org/cgit/openstack/charm-nova-cloud-controller/commit/?id=366398e0b3e1d79ab81e757093b2343f046125ca
Submitter: Jenkins
Branch: master

commit 366398e0b3e1d79ab81e757093b2343f046125ca
Author: James Page <email address hidden>
Date: Mon Nov 14 14:24:32 2016 +0000

    Guard return value from get_hostname

    It's possible that the get_hostname call use when resolving the
    full hostname of a IP address may return None in the event that
    a hostname cannot be resolved via DNS.

    Ensure that None values are not added to the list of hostnames
    to validated for SSH key configuration.

    Change-Id: I910224f9c22b7e0b8e53faddc64e3715389cc691
    Closes-Bug: 1641614

Changed in nova-cloud-controller (Juju Charms Collection):
status: In Progress → Fix Committed
James Page (james-page)
Changed in charm-nova-cloud-controller:
assignee: nobody → James Page (james-page)
importance: Undecided → High
status: New → Fix Committed
Changed in nova-cloud-controller (Juju Charms Collection):
status: Fix Committed → Invalid
James Page (james-page)
Changed in charm-nova-cloud-controller:
milestone: none → 17.02
James Page (james-page)
Changed in charm-nova-cloud-controller:
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.