os-refresh-config install scripts run too early

Bug #1292514 reported by Gonéri Le Bouder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Jon-Paul Sullivan

Bug Description

Hi,

os-refresh-config depends on pip-and-virtualenv and expect it to be installed before. This to be able to run virtualenv.

expand_dependencies() correcly identify the dependency but push pip-and-virtualenv after os-refresh-config in the dependencies list.

    'base',
     'boot-stack',
     'cache-url',
     'dib-run-parts',
     'dkms',
     'dpkg',
     'glance',
     'heat',
     'heat-api',
     'heat-engine',
     'iptables',
     'keystone',
     'mysql',
     'network-utils',
     'neutron',
     'neutron-openvswitch-agent',
     'neutron-ovs-cleanup',
     'neutron-server',
     'nova',
     'nova-api',
     'openstack-clients',
     'os-apply-config',
     'os-collect-config',
     'os-refresh-config',
     'os-svc-install',
     'pip-and-virtualenv',
     'source-repositories',
     'ubuntu',
     'use-ephemeral',
     'vm'

I used the following command:

disk-image-create -o bootstrap vm boot-stack ubuntu

James Polley (tchaypo)
Changed in diskimage-builder:
status: New → Incomplete
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

No order is ever implied, the README.md states:

### Dependencies ###

Each element has a file named element-deps: a plain text, newline separated list of elements which will be added to the list of elements built into the image at image creation time.

Ordering is only achieved through lexically sorting scripts in the hook directories.

The bug, therefore, is in tripleo-image-elements/elements/os-refresh-config/install.d/01-os-refresh-config. It should be renamed to 10-os-refresh-config, which would put it well after pip-and-virtualenv's 01-pip-and-virtualenv.

affects: diskimage-builder → tripleo
Changed in tripleo:
importance: Undecided → Medium
status: Incomplete → Triaged
summary: - expand_dependencies() loses dependencies order
+ os-refresh-config install scripts run too early
Changed in tripleo:
assignee: nobody → James Polley (tchaypo)
status: Triaged → In Progress
Revision history for this message
James Polley (tchaypo) wrote :
Changed in tripleo:
assignee: James Polley (tchaypo) → Jon-Paul Sullivan (jonpaul-sullivan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-image-elements (master)

Reviewed: https://review.openstack.org/81174
Committed: https://git.openstack.org/cgit/openstack/tripleo-image-elements/commit/?id=15bdcfe5c055b87355da4be96b3b700a9624553e
Submitter: Jenkins
Branch: master

commit 15bdcfe5c055b87355da4be96b3b700a9624553e
Author: James Polley <email address hidden>
Date: Wed Mar 19 13:03:27 2014 +0000

    Make os-refresh-config install.d hook run later

    os-refresh-config relies on being able to run virtualenv, which is only
    guaranteed to be possible after running 01-install-pip from the
    pip-and-virtualenv element.

    To guarantee this ordering, move
    install.d/os-refresh-config-source-install/01-os-refresh-config to
    install.d/os-refresh-config-source-install/10-os-refresh-config

    And for consistency in script execution timing, move
    install.d/os-refresh-config-package-install/01-os-refresh-config to
    install.d/os-refresh-config-package-install/10-os-refresh-config

    Change-Id: I3b0a127c0c6eca16854f84a3c733cbd54c8a4880
    Closes-Bug: #1292514

Changed in tripleo:
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.