Description of problem: Via change Id915ded03ae5a471ffa2dca13e2da90021279f63 we did the following: --- a/extraconfig/tasks/instanceha/check-run-nova-compute +++ b/extraconfig/tasks/instanceha/check-run-nova-compute @@ -1,4 +1,4 @@ -#!/bin/python -utt +#!/usr/bin/env python -utt import os import sys The problem is that the above script gets invoked via 'exec' in kolla here: https://github.com/openstack/tripleo-heat-templates/blob/master/docker/services/nova-compute.yaml#L161 Because kolla's start.sh invokes the script in the container via 'exec'. Exec won't support multiple multiple commands and errors out as follows: + echo 'Running command: '\''/var/lib/nova/instanceha/check-run-nova-compute '\''' + exec /var/lib/nova/instanceha/check-run-nova-compute Running command: '/var/lib/nova/instanceha/check-run-nova-compute ' /usr/bin/env: python -utt: No such file or directory
*** Bug 1611994 has been marked as a duplicate of this bug. ***
Patch fails repoclosure yum install /bin/python not available
(In reply to Jon Schlueter from comment #8) > Patch fails repoclosure yum install /bin/python not available Hi John, can you clarify the above a bit? We simply reverted the broken bits to the tested state we had before (aka /bin/python). Also this code runs only inside the nova_compute container and things seem okay there? | 37f0e3df-9235-4feb-9f84-4867e15eeef8 | compute-0 | ACTIVE | - | Running | ctlplane=192.168.24.12 | (undercloud) [stack@undercloud-0 ~]$ ssh -l heat-admin 192.168.24.12 "sudo docker exec nova_compute sh -c 'ls -l /bin/python'" Warning: Permanently added '192.168.24.12' (ECDSA) to the list of known hosts. lrwxrwxrwx. 1 root root 7 Jul 14 14:23 /bin/python -> python2 What are we missing? thanks, Michele
from IRC discussions, recapping yum install /bin/python ==> gives nothing yum install /usr/bin/python ==> works Something in rpm building scrapes through scripts for shebang lines and adds them as Requires to the built rpm.
Verified via automation : core_puddle: 2018-08-07.5 https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/DFG/view/pidone/view/instance-ha/job/DFG-pidone-instance-ha-13_director-rhel-virthost-3cont_2comp-ipv4-vxlan-instance-ha-test-suite/12/
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2574