Queens: ModuleNotFoundError: No module named 'yum'

Bug #1930735 reported by wes hayutin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Incomplete
Critical
Unassigned

Bug Description

https://6fb426454f620e63dac1-e34837711565d567895ea9e61ddd4881.ssl.cf2.rackcdn.com/791988/3/check/tripleo-ci-centos-7-containers-multinode/f85609a/logs/undercloud/home/zuul/overcloud_prep_containers.log

2021-06-02 19:19:31 | + container-check -u -c /home/zuul/containers_update.yaml -p 8 -k ansible-tripleo-ipsec instack instack-undercloud openstack-tripleo-common openstack-tripleo-common-container-base openstack-tripleo-common-containers openstack-tripleo-common-devtools openstack-tripleo-heat-templates openstack-tripleo-heat-templates-compat openstack-tripleo-image-elements openstack-tripleo-puppet-elements openstack-tripleo-ui openstack-tripleo-validations openstack-tripleo-validations-doc openstack-tripleo-validations-tests os-apply-config os-collect-config os-net-config os-refresh-config puppet-aodh puppet-apache puppet-archive puppet-auditd puppet-barbican puppet-cassandra puppet-ceilometer puppet-ceph puppet-certmonger puppet-cinder puppet-collectd puppet-concat puppet-congress puppet-contrail puppet-corosync puppet-datacat puppet-designate puppet-dns puppet-ec2api puppet-elasticsearch puppet-etcd puppet-fdio puppet-firewall puppet-fluentd puppet-git puppet-glance puppet-gnocchi puppet-haproxy puppet-heat puppet-horizon puppet-inifile puppet-ipaclient puppet-ironic puppet-java puppet-kafka puppet-keepalived puppet-keystone puppet-kibana3 puppet-kmod puppet-lib-file_concat puppet-magnum puppet-manila puppet-memcached puppet-midonet puppet-mistral puppet-module-data puppet-mongodb puppet-murano puppet-mysql puppet-n1k-vsm puppet-neutron puppet-nova puppet-nssdb puppet-ntp puppet-octavia puppet-opendaylight puppet-openstack_extras puppet-openstacklib puppet-oslo puppet-ovn puppet-pacemaker puppet-panko puppet-powerdns puppet-qdr puppet-rabbitmq puppet-redis puppet-remote puppet-rsync puppet-sahara puppet-sensu puppet-snmp puppet-ssh puppet-staging puppet-stdlib puppet-swift puppet-sysctl puppet-systemd puppet-tacker puppet-tempest puppet-timezone puppet-tomcat puppet-tripleo puppet-trove puppet-uchiwa puppet-vcsrepo puppet-veritas_hyperscale puppet-vitrage puppet-vlan puppet-vswitch puppet-xinetd puppet-zaqar puppet-zookeeper python2-tripleo-common-tests-tempest python2-tripleo-repos python-paunch python-paunch-doc python-paunch-tests python-tripleoclient python-tripleoclient-heat-installer
2021-06-02 19:19:31 | Traceback (most recent call last):
2021-06-02 19:19:31 | File "/usr/local/bin/container-check", line 19, in <module>
2021-06-02 19:19:31 | import yum
2021-06-02 19:19:31 | ModuleNotFoundError: No module named 'yum'

https://github.com/imain/container-check/blob/master/container-check#L19

Revision history for this message
wes hayutin (weshayutin) wrote :

We'll need to update the script to use python3-dnf vs. yum

Revision history for this message
Javier Peña (jpena-c) wrote :

This is strange, since the "yum" package provides the yum python library in CentOS 7. Is container-check running as part of a virtual environment?

Revision history for this message
Kevin Carter (kevin-carter) wrote :

++ to what Javier said, I suspect this issue is caused by a venv or pyenv which is not able to access the site packages. If the YUM module was actually missing from the system, yum itself would be broken. As such I'm inclined to close this as "not a bug."

wes hayutin (weshayutin)
Changed in tripleo:
status: Triaged → Incomplete
Changed in tripleo:
milestone: xena-2 → xena-3
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.