execd_preinstall() is not executed in install hook

Bug #1384728 reported by Nobuto Murata
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-dashboard (Juju Charms Collection)
Fix Released
Low
Seyeong Kim

Bug Description

exec.d/*/charm-pre-install was not executed in install hook. I needed to kick upgrade-charm to take effect of execd_preinstall().

[hooks/horizon_hooks.py]
@hooks.hook('install')
def install():
    configure_installation_source(config('openstack-origin'))
    apt_update(fatal=True)
    packages = PACKAGES[:]
    if os_release('openstack-dashboard') < 'icehouse':
        packages += ['nodejs', 'node-less']
    apt_install(filter_installed_packages(packages), fatal=True)

@hooks.hook('upgrade-charm')
@restart_on_change(restart_map())
def upgrade_charm():
    execd_preinstall()
    apt_install(filter_installed_packages(PACKAGES), fatal=True)
    CONFIGS.write_all()

Tags: openstack cts
Nobuto Murata (nobuto)
tags: added: cts
tags: added: openstack
Seyeong Kim (seyeongkim)
Changed in openstack-dashboard (Juju Charms Collection):
assignee: nobody → Seyeong Kim (xtrusia)
status: New → In Progress
Changed in openstack-dashboard (Juju Charms Collection):
importance: Undecided → Low
status: In Progress → Fix Committed
James Page (james-page)
Changed in openstack-dashboard (Juju Charms Collection):
milestone: none → 15.01
James Page (james-page)
Changed in openstack-dashboard (Juju Charms Collection):
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.