Bug 1498577

Summary: /bin/hostname missing from container images
Product: Red Hat OpenStack Reporter: Archit Modi <amodi>
Component: openstack-tripleo-commonAssignee: RHOS Maint <rhos-maint>
Status: CLOSED ERRATA QA Contact: Archit Modi <amodi>
Severity: high Docs Contact:
Priority: high    
Version: 12.0 (Pike)CC: apevec, jhakimra, jschluet, lhh, lyarwood, mburns, mcornea, owalsh, sgordon, slinaber
Target Milestone: betaKeywords: Triaged
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-common-7.6.1-0.20170926174320.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 22:13:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
openstack_failures_long.log none

Description Archit Modi 2017-10-04 16:22:42 UTC
Created attachment 1334373 [details]
openstack_failures_long.log

Description of problem:
Overcloud deployment failure with ec2api enabled

"Error running ['docker', 'run', '--name', 'ec2_api_db_sync', '--label', 'config_id=tripleo_step3', '--label', 'container_name=ec2_api_db_sync', '--label', 'managed_by=paunch', '--label', 'config_data={\"image\": \"192.168.24.1:8787/rhosp12/openstack-ec2-api-docker:2017-09-27.3\", \"environment\": [\"TRIPLEO_CONFIG_HASH=f25e9d75eff3aea5ab152fdbf7c767dc\"], \"command\": \"/usr/bin/bootstrap_host_exec ec2_api su ec2api -s /bin/bash -c \\'/usr/bin/ec2-api-manage db_sync\\'\", \"user\": \"root\", \"volumes\": [\"/etc/hosts:/etc/hosts:ro\", \"/etc/localtime:/etc/localtime:ro\", \"/etc/puppet:/etc/puppet:ro\", \"/etc/pki/ca-trust/extracted:/etc/pki/ca-trust/extracted:ro\", \"/etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt:ro\", \"/etc/pki/tls/certs/ca-bundle.trust.crt:/etc/pki/tls/certs/ca-bundle.trust.crt:ro\", \"/etc/pki/tls/cert.pem:/etc/pki/tls/cert.pem:ro\", \"/dev/log:/dev/log\", \"/etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts:ro\", \"/sys/fs/selinux:/sys/fs/selinux\", \"/var/lib/config-data/ec2_api/etc/ec2api/:/etc/ec2api/:ro\", \"/var/log/containers/ec2_api:/var/log/ec2api\"], \"net\": \"host\", \"detach\": false, \"privileged\": false}', '--env=TRIPLEO_CONFIG_HASH=f25e9d75eff3aea5ab152fdbf7c767dc', '--net=host', '--privileged=false', '--user=root', '--volume=/etc/hosts:/etc/hosts:ro', '--volume=/etc/localtime:/etc/localtime:ro', '--volume=/etc/puppet:/etc/puppet:ro', '--volume=/etc/pki/ca-trust/extracted:/etc/pki/ca-trust/extracted:ro', '--volume=/etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt:ro', '--volume=/etc/pki/tls/certs/ca-bundle.trust.crt:/etc/pki/tls/certs/ca-bundle.trust.crt:ro', '--volume=/etc/pki/tls/cert.pem:/etc/pki/tls/cert.pem:ro', '--volume=/dev/log:/dev/log', '--volume=/etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts:ro', '--volume=/sys/fs/selinux:/sys/fs/selinux', '--volume=/var/lib/config-data/ec2_api/etc/ec2api/:/etc/ec2api/:ro', '--volume=/var/log/containers/ec2_api:/var/log/ec2api', '192.168.24.1:8787/rhosp12/openstack-ec2-api-docker:2017-09-27.3', '/usr/bin/bootstrap_host_exec', 'ec2_api', 'su', 'ec2api', '-s', '/bin/bash', '-c', \"'/usr/bin/ec2-api-manage\", \"db_sync'\"]. [127]", 
            "stderr: /usr/bin/bootstrap_host_exec: line 13: /bin/hostname: No such file or directory", 
            "stdout: d6dc471ac20cf23537c2f14ed63d532dc2f7e455d39c6549108e8099fe44af2b", 
            "stdout: 806a357433dd0740b3ac20dd23876d068225921d1633f53f5d06cf773169e83f", 
            "stdout: e5a323b575c29166cd9c1501a5931150d98ca6b02482366fcf85cb86d33add38", 
            "stdout: ed43c66882bbd40998c3cca58ec566476eb0690a2b29fa75d6730fb5bcb86370"

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
Deploy overcloud including "/usr/share/openstack-tripleo-heat-templates/environments/services/ec2-api.yaml" template


Actual results: 
Overcloud deployment failed

Expected results:
Overcloud deployed successfully

Additional info:

Comment 1 Jon Schlueter 2017-10-04 16:31:58 UTC
openstack-tripleo-common .spec file change based on RDO 9845 added in 

openstack-tripleo-common-7.6.1-0.20170926174320.el7ost

But need to get this merged on rpm_master and backported to pike-rdo

Comment 3 Jon Schlueter 2017-10-04 21:19:58 UTC
kolla templates don't specify this package by default and assume it comes in with base package or one of the other deps.  This started failing recently.

Comment 9 errata-xmlrpc 2017-12-13 22:13:08 UTC
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/RHEA-2017:3462