No match for argument: python2-dnf on tripleo reproducer libvirt Fedora 30

Bug #1828172 reported by chandan kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Incomplete
High
Unassigned

Bug Description

Below is the steps to reproduce the same on fedora 30:
1. wget http://logs.openstack.org/26/657626/1/check/tripleo-ci-centos-7-standalone/ec14df6/logs/reproducer-quickstart/reproducer-zuul-based-quickstart.tar
2. tar -xvf reproducer-zuul-based-quickstart.tar
3. bash reproducer-zuul-based-quickstart.sh --libvirt
Shell exists as docker started
4. bash reproducer-zuul-based-quickstart.sh --libvirt
First failure:
TASK [Install libvirt packages] ***************************************************************************************************************************************************************
task path: /tmp/reproduce-tmp.cpfHF/roles/ansible-role-tripleo-ci-reproducer/tasks/libvirt/main.yaml:5

TASK [parts/libvirt : Check for older iPXE rpm] ***********************************************************************************************************************************************
task path: /tmp/reproduce-tmp.cpfHF/roles/parts/libvirt/tasks/main.yml:4
ok: [localhost] => {"changed": false, "cmd": "if rpm -q ipxe-roms-qemu-20130517; then\n rpm -e --nodeps ipxe-roms-qemu-20130517 && echo \"rpm removed\";\n fi;", "delta": "0:00:00.006832", "end": "2019-05-08 12:47:48.465657", "rc": 0, "start": "2019-05-08 12:47:48.458825", "stderr": "", "stderr_lines": [], "stdout": "package ipxe-roms-qemu-20130517 is not installed", "stdout_lines": ["package ipxe-roms-qemu-20130517 is not installed"]}

TASK [parts/libvirt : Install packages for libvirt] *******************************************************************************************************************************************
task path: /tmp/reproduce-tmp.cpfHF/roles/parts/libvirt/tasks/main.yml:17
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "dnf install -y python2-dnf", "msg": "Error: Unable to find a match", "rc": 1, "stderr": "Error: Unable to find a match\n", "stderr_lines": ["Error: Unable to find a match"], "stdout": "Last metadata expiration check: 0:05:13 ago on Wed 08 May 2019 12:42:36 PM IST.\nNo match for argument: python2-dnf\n", "stdout_lines": ["Last metadata expiration check: 0:05:13 ago on Wed 08 May 2019 12:42:36 PM IST.", "No match for argument: python2-dnf"]}
 to retry, use: --limit @/tmp/reproduce-tmp.cpfHF/launcher-playbook.retry

PLAY RECAP ************************************************************************************************************************************************************************************
localhost : ok=28 changed=13 unreachable=0 failed=1

Revision history for this message
chandan kumar (chkumar246) wrote :
Revision history for this message
chandan kumar (chkumar246) wrote :

on adding with reproducer script -e "ansible_python_interpreter=/usr/bin/python3"

TASK [Install python dependencies] ************************************************************************************************************************************************************
task path: /tmp/reproduce-tmp.L0sAK/playbooks/tripleo-ci-reproducer/pre.yaml:41
FAILED - RETRYING: Install python dependencies (3 retries left).
FAILED - RETRYING: Install python dependencies (2 retries left).
FAILED - RETRYING: Install python dependencies (1 retries left).
fatal: [localhost]: FAILED! => {"attempts": 3, "changed": false, "msg": "Unable to find any of pip3 to use. pip needs to be installed."}
 to retry, use: --limit @/tmp/reproduce-tmp.L0sAK/launcher-playbook.retry

PLAY RECAP ************************************************************************************************************************************************************************************
localhost : ok=7 changed=2 unreachable=0 failed=1

Revision history for this message
chandan kumar (chkumar246) wrote :

Reinstall python3-pip then set python_cmd=${USER_PYTHON_OVERRIDE:=python3} then run
bash reproducer-zuul-based-quickstart.sh -e "ansible_python_interpreter=/usr/bin/python3" -l

TASK [libvirt/setup/common : Start volume pool] ***********************************************************************************************************************************************
task path: /tmp/reproduce-tmp.Qyj7N/roles/libvirt/setup/common/tasks/main.yml:33
fatal: [localhost]: FAILED! => {"changed": false, "msg": "The `libvirt` module is not importable. Check the requirements."}

Revision history for this message
chandan kumar (chkumar246) wrote :

Install python3-libvirt python3-lxml and python3-netaddr to avoid python3 import errors

Revision history for this message
chandan kumar (chkumar246) wrote :

TASK [libvirt/setup/overcloud : Set hostname correctly for subnode-0] *************************************************************************************************************************
task path: /tmp/reproduce-tmp.7EdH4/roles/libvirt/setup/overcloud/tasks/register_vm.yml:37
fatal: [localhost -> 192.168.122.11]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 192.168.122.11 closed.\r\n", "module_stdout": "/bin/sh: /usr/bin/python3: No such file or directory\r\n", "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error", "rc": 127}
 to retry, use: --limit @/tmp/reproduce-tmp.7EdH4/launcher-playbook.retry

PLAY RECAP ************************************************************************************************************************************************************************************
localhost : ok=100 changed=42 unreachable=0 failed=1

Revision history for this message
chandan kumar (chkumar246) wrote :

Set in /etc/ansible/hosts
[subnode-0:vars]
ansible_python_interpreter=/usr/bin/python2

then run bash reproducer-zuul-based-quickstart.sh -l -ug chkumar246 -rg chkumar246 and we are good to go.

Revision history for this message
chandan kumar (chkumar246) wrote :
Download full text (5.8 KiB)

TASK [ansible-role-tripleo-ci-reproducer : Push zuul.yaml to launch job] **********************************************************************************************************************
task path: /tmp/reproduce-tmp.I0LhG/roles/ansible-role-tripleo-ci-reproducer/tasks/launch-job.yaml:20
changed: [localhost] => {"changed": true, "cmd": "set -e\n#FIXME: for centos7 the git version is too old for the local gerrit\n# hooks so we get them from upstream\nmkdir -p .git/hooks/\nscp -p -P 29418 -i /home/raukadah/.ssh/id_rsa \\\<email address hidden>:hooks/commit-msg \\\n .git/hooks/\ngit config --local user.name Admin\ngit config --local user.email <email address hidden>\ngit remote add gerrit ssh://admin@localhost:29418/test1\nif ! git rev-parse --verify master; then\n git checkout -t origin/master\nfi\ngit add zuul.yaml\ngit commit -m 'Add job to launch\nDepends-On: https://review.opendev.org/657626\n'\ngit push origin HEAD:refs/for/master 2>&1 | tee push.log\ngrep \"remote:.*http\" push.log | awk '{print $2}' | tee url.txt\nsed \"s/.*\\/\\([0-9]*\\)$/\\1/\" url.txt| tee review.txt\ngit rev-parse HEAD | tee commit.txt\necho -n $(cat review.txt),1 | tee change.txt\n", "delta": "0:00:05.347379", "end": "2019-05-09 13:10:27.192722", "rc": 0, "start": "2019-05-09 13:10:21.845343", "stderr": "", "stderr_lines": [], "stdout": "e2dc572a0278552c5781cea1026614f2bf0164e4\n[master 67144d4] Add job to launch Depends-On: https://review.opendev.org/657626\n 1 file changed, 16 insertions(+)\n create mode 100644 zuul.yaml\nremote: \rremote: Processing changes: refs: 1, new: 1\rremote: Processing changes: refs: 1, new: 1\rremote: Processing changes: refs: 1, new: 1\rremote: Processing changes: refs: 1, new: 1, done \nremote: \nremote: SUCCESS \nremote: \nremote: New Changes: \nremote: http://localhost:8080/c/test1/+/1001 Add job to launch Depends-On: https://review.opendev.org/657626 \nTo ssh://localhost:29418/test1\n * [new branch] HEAD -> refs/for/master\nhttp://localhost:8080/c/test1/+/1001\n1001\n67144d420d59f6b4e731f40510e1ec07a4e912f8\n1001,1", "stdout_lines": ["e2dc572a0278552c5781cea1026614f2bf0164e4", "[master 67144d4] Add job to launch Depends-On: https://review.opendev.org/657626", " 1 file changed, 16 insertions(+)", " create mode 100644 zuul.yaml", "remote: ", "remote: Processing changes: refs: 1, new: 1", "remote: Processing changes: refs: 1, new: 1", "remote: Processing changes: refs: 1, new: 1", "remote: Processing changes: refs: 1, new: 1, done ", "remote: ", "remote: SUCCESS ", "remote: ", "remote: New Changes: ", "remote: http://localhost:8080/c/test1/+/1001 Add job to launch Depends-On: https://review.opendev.org/657626 ", "To ssh://localhost:29418/test1", " * [new branch] HEAD -> refs/for/master", "http://localhost:8080/c/test1/+/1001", "1001", "67144d420d59f6b4e731f40510e1ec07a4e912f8", "1001,1"]}

TASK [ansible-role-tripleo-ci-reproducer : Set facts about review] ****************************************************************************************************************************
task path: /tmp/reproduce-tmp.I0LhG/roles/ansible-role-tripleo-ci...

Read more...

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