nova-compute upgrade grizzly->havana causes config-changed hook error "need string or buffer, list found"

Bug #1294140 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-compute (Juju Charms Collection)
Fix Released
Undecided
Corey Bryant

Bug Description

nova-compute's config_changed hook has an error when an upgrade is attempted from grizzly to havana.

I hit this using the upgrade script from lp:~corey.bryant/+junk/openstack-charm-testing. Basically this deploys the included default.yaml openstack environment on precise-grizzly, followed by 'juju set nova-compute openstack-origin=cloud:precise-havana' to upgrade the nova-compute service.

Traceback:

30903 juju-precise-machine-2:2014-03-04 18:04:47 INFO worker.uniter.jujuc server.go:108 running hook tool "config-get" ["virt-type" "--format=json"]
30904 juju-precise-machine-2:2014-03-04 18:04:47 INFO worker.uniter.jujuc server.go:108 running hook tool "juju-log" ["Installing ['nova-compute', 'genisoimage', ['linux-headers-3.2.0-59-virtual', 'openvsw
30905 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju juju-log.go:66 nova-compute/0: Installing ['nova-compute', 'genisoimage', ['linux-headers-3.2.0-59-virtual', 'openvswitch-datapath-dkms'], ['quant
30906 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK Traceback (most recent call last):
30907 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/config-changed", line 239, in <module>
30908 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK main()
30909 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/config-changed", line 233, in main
30910 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK hooks.execute(sys.argv)
30911 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/core/hookenv.py", line 381, in execute
30912 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK self._hooks[hook_name]()
30913 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/core/host.py", line 217, in wrapped_f
30914 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK f(*args)
30915 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/config-changed", line 73, in config_changed
30916 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK do_openstack_upgrade(CONFIGS)
30917 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/nova_compute_utils.py", line 362, in do_openstack_u
30918 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK apt_install(packages=determine_packages(), options=dpkg_opts, fatal=True)
30919 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter modes.go:421 ModeHookError starting
30920 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/fetch/__init__.py", line 95, in apt_in
30921 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK subprocess.check_call(cmd, env=env)
30922 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK File "/usr/lib/python2.7/subprocess.py", line 506, in check_call
30923 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK retcode = call(*popenargs, **kwargs)
30924 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK File "/usr/lib/python2.7/subprocess.py", line 493, in call
30925 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK return Popen(*popenargs, **kwargs).wait()
30926 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
30927 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK errread, errwrite)
30928 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
30929 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK raise child_exception
30930 juju-precise-machine-2:2014-03-04 18:04:47 INFO juju.worker.uniter context.go:255 HOOK TypeError: coercing to Unicode: need string or buffer, list found
30931 juju-precise-machine-2:2014-03-04 18:04:47 ERROR juju.worker.uniter uniter.go:350 hook failed: exit status 1

Changed in nova-compute (Juju Charms Collection):
assignee: nobody → Corey Bryant (corey.bryant)
Changed in nova-compute (Juju Charms Collection):
status: New → In Progress
James Page (james-page)
Changed in nova-compute (Juju Charms Collection):
status: In Progress → 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.