nova_statedir_owner fails in the fedora28 standalone

Bug #1803411 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Alex Schultz

Bug Description

The fedora standalone is failing in step3 when it runs the nove_statedir_owner container.

        "$ docker run --name nova_statedir_owner --label config_id=tripleo_step3 --label container_name=nova_statedir_owner --label managed_by=paunch --label config_data={\"command\": \"/docker-config-scripts/nova_statedir_ownership.py\", \"detach\": false, \"image\": \"docker.io/tripleomaster/centos-binary-nova-compute:3ed8ac0e93367a02ad53d9fa93467057724b6621_fd8eb74b\", \"privileged\": false, \"user\": \"root\", \"volumes\": [\"/var/lib/nova:/var/lib/nova:shared,z\", \"/var/lib/docker-config-scripts/:/docker-config-scripts/\"]} --privileged=false --user=root --volume=/var/lib/nova:/var/lib/nova:shared,z --volume=/var/lib/docker-config-scripts/:/docker-config-scripts/ docker.io/tripleomaster/centos-binary-nova-compute:3ed8ac0e93367a02ad53d9fa93467057724b6621_fd8eb74b /docker-config-scripts/nova_statedir_ownership.py",
        "b'standard_init_linux.go:178: exec user process caused \"no such file or directory\"\\n'",
        "Error running ['docker', 'run', '--name', 'nova_statedir_owner', '--label', 'config_id=tripleo_step3', '--label', 'container_name=nova_statedir_owner', '--label', 'managed_by=paunch', '--label', 'config_data={\"command\": \"/docker-config-scripts/nova_statedir_ownership.py\", \"detach\": false, \"image\": \"docker.io/tripleomaster/centos-binary-nova-compute:3ed8ac0e93367a02ad53d9fa93467057724b6621_fd8eb74b\", \"privileged\": false, \"user\": \"root\", \"volumes\": [\"/var/lib/nova:/var/lib/nova:shared,z\", \"/var/lib/docker-config-scripts/:/docker-config-scripts/\"]}', '--privileged=false', '--user=root', '--volume=/var/lib/nova:/var/lib/nova:shared,z', '--volume=/var/lib/docker-config-scripts/:/docker-config-scripts/', 'docker.io/tripleomaster/centos-binary-nova-compute:3ed8ac0e93367a02ad53d9fa93467057724b6621_fd8eb74b', '/docker-config-scripts/nova_statedir_ownership.py']. [1]",
        "stderr: standard_init_linux.go:178: exec user process caused \"no such file or directory\"",

Revision history for this message
Alex Schultz (alex-schultz) wrote :

This has to do with the replacement of "/usr/bin/env python" in scripts from THT in the fedora packaging. The nova_statedir_ownership.py file is a python file distributed via THT but run in a container. If this container is a CentOS7 based container, it has to be python2. But our THT packaging is replacing all instances of /usr/bin/env python with /usr/bin/python3.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

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

Changed in tripleo:
assignee: nobody → Alex Schultz (alex-schultz)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/618027
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=a6408f0c092394c8b7750b6fab45fc7b313bfcc8
Submitter: Zuul
Branch: master

commit a6408f0c092394c8b7750b6fab45fc7b313bfcc8
Author: Alex Schultz <email address hidden>
Date: Wed Nov 14 13:55:12 2018 -0700

    Add python shim for docker config scripts

    Unfortunately we may not necessarily know what version of python is
    available in the containers when we run some python config scripts. In
    order to work around this we have a pyshim which will try and find an
    existing version of python available to run the script under. The
    pyshim.sh will try python3 then python2 then python.

    Depends-On: https://review.openstack.org/#/c/617716/
    Change-Id: Ie08481722e9b22bb67d5282828df0941f37a140a
    Closes-Bug: #1803411

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 10.2.0

This issue was fixed in the openstack/tripleo-heat-templates 10.2.0 release.

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.