Bug 1839468

Summary: [DDF] This binary is missing in the container
Product: Red Hat OpenStack Reporter: Direct Docs Feedback <ddf-bot>
Component: openstack-tempestAssignee: Chandan Kumar <chkumar>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Kopec <mkopec>
Severity: high Docs Contact:
Priority: high    
Version: 16.0 (Train)CC: amoralej, apevec, chkumar, lhh, mkopec, slinaber, udesale, whayutin, yrachman
Target Milestone: ---Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-18 14:47:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Direct Docs Feedback 2020-05-24 09:25:04 UTC
This binary is missing in the container

After adding  pip3 install python-tempestconf

I can see the following added:
/usr/local/bin/discover-tempest-config


Reported by: yrachman2

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.0/html/openstack_integration_test_suite_guide/chap-running-containerized-tempest#annotations:38da5969-df74-4139-a692-1089f0768e66

Comment 1 Martin Kopec 2020-06-05 08:24:15 UTC
yeah, apart from the missing python-tempestconf the container is missing also all tempest plugins:

[stack@undercloud-0 ~]$ podman images
REPOSITORY                                         TAG    IMAGE ID       CREATED       SIZE
registry.redhat.io/rhosp-rhel8/openstack-tempest   16.0   fbc72998a09c   2 weeks ago   727 MB
[stack@undercloud-0 ~]$
[stack@undercloud-0 ~]$ alias podman-tempest="podman run -i --privileged=true \
    -v "$(pwd)"/container_tempest:/home/stack/container_tempest \
    -v "$(pwd)"/tempest_workspace:/home/stack/tempest_workspace \
    registry.redhat.io/rhosp-rhel8/openstack-tempest:16.0 \
    /bin/bash"
[stack@undercloud-0 ~]$
[stack@undercloud-0 ~]$ podman-tempest -c "rpm -qa | grep tempest"
openstack-tempest-23.0.0-0.20200225221147.d432237.el8ost.noarch
python3-tempest-23.0.0-0.20200225221147.d432237.el8ost.noarch
openstack-tempest-all-23.0.0-0.20200225221147.d432237.el8ost.noarch
[stack@undercloud-0 ~]$



the container available for rhos-15 contains the plugins too:

[stack@undercloud-0 mkopec]$ podman images
REPOSITORY                                           TAG      IMAGE ID       CREATED        SIZE
registry.redhat.io/rhosp15-rhel8/openstack-tempest   latest   e545bbaa9b08   2 weeks ago    910 MB
registry.redhat.io/rhosp-beta/openstack-tempest      latest   4e7dfa5d5b05   4 months ago   938 MB
[stack@undercloud-0 mkopec]$ alias podman-tempest="podman run -i  --privileged=true \
    -v "$(pwd)"/container_tempest:/home/stack/container_tempest \
    -v "$(pwd)"/tempest_workspace:/home/stack/tempest_workspace \
    registry.redhat.io/rhosp15-rhel8/openstack-tempest \
    /bin/bash"
[stack@undercloud-0 mkopec]$ podman-tempest -c "rpm -qa | grep tempest"
python3-designate-tests-tempest-0.6.0-0.20190401200416.c1708fc.el8ost.noarch
python3-keystone-tests-tempest-0.2.0-0.20190328165636.b573efb.el8ost.noarch
python3-octavia-tests-tempest-1.1.1-0.20190826060430.7140479.el8ost.noarch
python3-patrole-tests-tempest-0.6.1-0.20190921050421.a858df4.el8ost.noarch
python3-networking-l2gw-tests-tempest-0.1.1-0.20190410021559.4033269.el8ost.noarch
python3-telemetry-tests-tempest-0.3.1-0.20190405090346.3c4b67d.el8ost.noarch
python3-tempest-21.0.0-0.20191209200453.702b21c.el8ost.noarch
python3-cinder-tests-tempest-0.2.1-0.20190410010400.6a37884.el8ost.noarch
python3-ec2api-tests-tempest-0.3.1-0.20191028070421.e531852.el8ost.noarch
python3-ironic-tests-tempest-1.3.0-0.20190401210337.d250e1e.el8ost.noarch
python3-manila-tests-tempest-0.3.0-0.20190716080415.0ac9541.el8ost.noarch
python3-novajoin-tests-tempest-0.0.1-0.20191114160438.cb81f53.el8ost.noarch
python3-sahara-tempest-0.9.1-0.20190824010429.a225824.el8ost.noarch
python3-tempest-tests-21.0.0-0.20191209200453.702b21c.el8ost.noarch
python3-zaqar-tests-tempest-0.2.0-0.20190401202148.8662c91.el8ost.noarch
python3-kuryr-tests-tempest-0.5.0-0.20190919070427.2194649.el8ost.noarch
python3-tempestconf-2.4.0-0.20191217150449.6a616e5.el8ost.noarch
python3-neutron-tests-tempest-0.5.0-0.20190819050437.31993d5.el8ost.noarch
python3-heat-tests-tempest-0.3.1-0.20190401160342.f1c7c24.el8ost.noarch
openstack-tempest-all-21.0.0-0.20191209200453.702b21c.el8ost.noarch
python3-octavia-tests-tempest-golang-1.1.1-0.20190826060430.7140479.el8ost.x86_64
python3-barbican-tests-tempest-0.2.0-0.20190404041815.123dd7d.el8ost.noarch
python3-horizon-tests-tempest-0.1.0-0.20190401184228.e2ac2e0.el8ost.noarch
python3-mistral-tests-tempest-0.2.1-0.20190408130351.97d2e45.el8ost.noarch
python3-sahara-tests-tempest-0.9.1-0.20190824010429.a225824.el8ost.noarch
openstack-tempest-21.0.0-0.20191209200453.702b21c.el8ost.noarch

Comment 2 Alfredo Moralejo 2020-06-05 08:59:44 UTC
Since Train, tempest plugins were move from Requires to Recommends in openstack-tempest-all to improve the bootstrap process, however weak deps are not properly handled when building containers in two ways:

1. ODCS doesn't follow weak deps when building the composes for OSBS
2. weak deps installation seems to be disabled in dnf.conf file when building container

I see two options here:

1. Add all desired tempest plugins to the list of packages in container.yaml and modifying dnf.conf to enable weak deps for tempest plugin.
2. Move tempest plugins from Recommends to Requires again (and restore repo_bootstrap option).

Comment 4 Martin Kopec 2021-01-18 14:47:46 UTC
This got fixed in openstack-tempest:16.1 image

(undercloud) [stack@undercloud-0 ~]$ alias podman-tempest="podman run -i --privileged=true \
    -v "$(pwd)"/container_tempest:/home/stack/container_tempest \
    -v "$(pwd)"/tempest_workspace:/home/stack/tempest_workspace \
    registry.redhat.io/rhosp-rhel8/openstack-tempest:16.1 \
    /bin/bash"
(undercloud) [stack@undercloud-0 ~]$ podman-tempest -c "rpm -qa | grep tempest"
Trying to pull registry.redhat.io/rhosp-rhel8/openstack-tempest:16.1...
Getting image source signatures
Copying blob f7db571f3a05 done
Copying blob 48e899988539 done
Copying blob fecf0868d374 done
Copying blob f5e0d0df2f53 done
Copying blob b975b20d1a53 done
Copying config 47873e9f56 done
Writing manifest to image destination
Storing signatures
python3-heat-tests-tempest-0.4.0-0.20200311090104.e4d6583.el8ost.noarch
python3-horizon-tests-tempest-0.2.0-0.20200311013845.730608b.el8ost.noarch
python3-ironic-tests-tempest-1.5.1-0.20200311010751.11b8aac.el8ost.noarch
python3-tempestconf-3.0.2-1.20200817103403.c377168.el8ost.noarch
python3-octavia-tests-tempest-golang-1.3.0-0.20200527113421.0ae7f10.el8ost.x86_64
python3-neutron-tests-tempest-0.9.0-1.20200915143420.el8ost.noarch
python3-tempest-24.0.0-0.20200615173423.c73e6b1.el8ost.noarch
python3-telemetry-tests-tempest-0.4.0-0.20200311090803.d60e6e2.el8ost.noarch
python3-cinder-tests-tempest-0.3.1-0.20200311012831.6f0b4fc.el8ost.noarch
python3-barbican-tests-tempest-0.3.0-0.20200311014903.a226433.el8ost.noarch
python3-keystone-tests-tempest-0.3.0-0.20200311014651.806103f.el8ost.noarch
python3-zaqar-tests-tempest-0.3.0-0.20200311010859.f6211b4.el8ost.noarch
python3-novajoin-tests-tempest-0.0.4-1.20200831203407.468b968.el8ost.noarch
openstack-tempest-24.0.0-0.20200615173423.c73e6b1.el8ost.noarch
python3-patrole-tests-tempest-0.7.0-0.20200310235617.a5068ba.el8ost.noarch
python3-octavia-tests-tempest-1.3.0-0.20200527113421.0ae7f10.el8ost.noarch
python3-kuryr-tests-tempest-0.5.0-0.20200311015704.2194649.el8ost.noarch
openstack-tempest-all-24.0.0-0.20200615173423.c73e6b1.el8ost.noarch
python3-mistral-tests-tempest-0.3.0-0.20200311011704.3c3a6cc.el8ost.noarch
python3-designate-tests-tempest-0.7.0-0.20200311015920.1096ab9.el8ost.noarch
python3-manila-tests-tempest-1.1.0-0.20200728083439.eba8fa9.el8ost.noarch
python3-tempest-tests-24.0.0-0.20200615173423.c73e6b1.el8ost.noarch
python3-networking-l2gw-tests-tempest-0.1.1-0.20200311072004.a3af33b.el8ost.noarch
(undercloud) [stack@undercloud-0 ~]$