error: hook failed: "install"

Bug #1754007 reported by Khairul Aizat Kamarudzzaman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Cinder-Ceph charm
Fix Released
High
Liam Young

Bug Description

tried to add relation p-o-e with cinder-ceph ,

error from log unit unit-cinder-ceph-1.log

2018-03-07 11:33:23 DEBUG juju.worker.uniter agent.go:17 [AGENT-STATUS] executing: running install hook
2018-03-07 11:33:23 DEBUG worker.uniter.jujuc server.go:178 running hook tool "config-get"
2018-03-07 11:33:23 DEBUG install Traceback (most recent call last):
2018-03-07 11:33:23 DEBUG install File "/var/lib/juju/agents/unit-cinder-ceph-1/charm/hooks/install", line 67, in <module>
2018-03-07 11:33:23 DEBUG install CONFIGS = register_configs()
2018-03-07 11:33:23 DEBUG install File "/var/lib/juju/agents/unit-cinder-ceph-1/charm/hooks/cinder_utils.py", line 69, in register_configs
2018-03-07 11:33:23 DEBUG install release = get_os_codename_package('cinder-common', fatal=False) or 'folsom'
2018-03-07 11:33:23 DEBUG install File "/var/lib/juju/agents/unit-cinder-ceph-1/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 429, in get_os_codename_package
2018-03-07 11:33:23 DEBUG install import apt_pkg as apt
2018-03-07 11:33:23 DEBUG install ImportError: No module named apt_pkg
2018-03-07 11:33:23 ERROR juju.worker.uniter.operation runhook.go:113 hook "install" failed: exit status 1
2018-03-07 11:33:23 DEBUG juju.worker.uniter.operation executor.go:84 lock released
2018-03-07 11:33:23 INFO juju.worker.uniter resolver.go:100 awaiting error resolution for "install" hook
2018-03-07 11:33:23 DEBUG juju.worker.uniter agent.go:17 [AGENT-STATUS] error: hook failed: "install"

here is my juju status : http://paste.ubuntu.com/p/vJxM6GfH4c/

affects: prometheus-openstack-exporter-charm → charm-cinder-ceph
Revision history for this message
Khairul Aizat Kamarudzzaman (fenris) wrote :

hi, anyone can help to verify this bug? or require further info/logs?

thanks

Liam Young (gnuoy)
Changed in charm-cinder-ceph:
status: New → Confirmed
importance: Undecided → Critical
importance: Critical → High
assignee: nobody → Liam Young (gnuoy)
milestone: none → 18.05
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-cinder-ceph (master)

Fix proposed to branch: master
Review: https://review.openstack.org/554464

Changed in charm-cinder-ceph:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-cinder-ceph (master)

Reviewed: https://review.openstack.org/554464
Committed: https://git.openstack.org/cgit/openstack/charm-cinder-ceph/commit/?id=d6ef6b317dc6bf8e715bf66a524cae049a0cfee8
Submitter: Zuul
Branch: master

commit d6ef6b317dc6bf8e715bf66a524cae049a0cfee8
Author: Liam Young <email address hidden>
Date: Tue Mar 20 09:01:35 2018 +0000

    Ensure cinder-ceph installs its prerequisites

    The charm has been assuming that the principle charm will install
    the packages this charm needs to run. This is not always the case
    so the change forces the charm to install what it needs.

    Change-Id: I1a394bd9f0a008a403d36ba5d7332b7fb5659006
    Closes-Bug: #1754007

Changed in charm-cinder-ceph:
status: In Progress → Fix Committed
David Ames (thedac)
Changed in charm-cinder-ceph:
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.