I tried to reprodece this, but `package` did not fail for me with the node isolated.
$ ip route del default
$ dnf info network-scripts
delorean-openstack-ironic-python-agent-builder-a08dcb4c36ee464ffc0825f770686a4 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'delorean-component-baremetal':
- Curl error (6): Couldn't resolve host name for https://trunk.rdoproject.org/centos8/component/baremetal/a0/8d/a08dcb4c36ee46
4ffc0825f770686a47ed86c570_a36069e8/repodata/repomd.xml [Could not resolve host: trunk.rdoproject.org]
Error: Failed to download metadata for repo 'delorean-component-baremetal': Cannot download repomd.xml: Cannot download repodata
/repomd.xml: All mirrors were tried
$ ansible-playbook reproducer.yaml
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [Reproduce RHBZ#2048134] ****************************************************************************************
I tried to reprodece this, but `package` did not fail for me with the node isolated.
$ ip route del default
$ dnf info network-scripts openstack- ironic- python- agent-builder- a08dcb4c36ee464 ffc0825f770686a 4 0.0 B/s | 0 B 00:00 component- baremetal' : /trunk. rdoproject. org/centos8/ component/ baremetal/ a0/8d/a08dcb4c3 6ee46 a47ed86c570_ a36069e8/ repodata/ repomd. xml [Could not resolve host: trunk.rdoprojec t.org] component- baremetal' : Cannot download repomd.xml: Cannot download repodata
delorean-
Errors during downloading metadata for repository 'delorean-
- Curl error (6): Couldn't resolve host name for https:/
4ffc0825f770686
Error: Failed to download metadata for repo 'delorean-
/repomd.xml: All mirrors were tried
$ rpm -q network-scripts scripts- 10.00.15- 1.el8.x86_ 64
network-
Ran this playbook: bootstrap_ legacy_ network_ packages: bootstrap_ legacy_ network_ packages }}"
---
- name: Reproduce RHBZ#2048134
hosts: localhost
gather_facts: false
vars:
tripleo_
- network-scripts
tasks:
- name: Install package
become: true
package:
name: "{{ tripleo_
state: present
$ ansible-playbook reproducer.yaml
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [Reproduce RHBZ#2048134] ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ****
TASK [Install package] ******* ******* ******* ******* ******* ******* ******* ******* ******* **
ok: [localhost]
PLAY RECAP ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* *******
localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0