tripleo-bootstrap requires connectivity before networking is set up
Bug #1959731 reported by
Harald Jensås
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Harald Jensås |
Bug Description
Deploying the stack fails in Ansible task
"Deploy network-scripts required for deprecated network service"
This happens because the yum repositories are not accessible.
This only happens in the scenario where the overcloud image has been customized with additional repositories trough image manipulation or by using cloud-init.
If the ctlplane network is isolated, i.e not routed, no default gateway.
The ansible 'package' module will fail because the host cannot connect to the repositories. Despite the fact that the network-scripts package is in fact present.
To post a comment you must log in.
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