Comment 1 for bug 1959731

Revision history for this message
Harald Jensås (harald-jensas) wrote :

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

$ rpm -q network-scripts
network-scripts-10.00.15-1.el8.x86_64

Ran this playbook:
---
- name: Reproduce RHBZ#2048134
  hosts: localhost
  gather_facts: false
  vars:
    tripleo_bootstrap_legacy_network_packages:
      - network-scripts
  tasks:
  - name: Install package
    become: true
    package:
      name: "{{ tripleo_bootstrap_legacy_network_packages }}"
      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