Skip to content

Commit b00148a

Browse files
committed
devstack-nxsw-vxlan - lab update
Some network re-wiring to simplify. Updated devstack settings, and include in-progress patches. Signed-off-by: Harald Jensås <hjensas@redhat.com>
1 parent ed604ce commit b00148a

8 files changed

Lines changed: 113 additions & 275 deletions

File tree

roles/devstack_installer/tasks/prepare_system.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,10 @@
1515
# under the License.
1616

1717
# Prepare devstack node system
18-
# This task file handles system updates, package installation, network configuration, reboot, and verification
18+
# This task file handles network configuration, system updates, package installation, reboot, and verification
1919
# After this completes successfully, the system is fully prepared and ready for devstack installation
2020

21-
- name: Update all packages to latest version
22-
become: true
23-
ansible.builtin.apt:
24-
upgrade: dist
25-
update_cache: true
26-
cache_valid_time: 3600
27-
when: devstack_update_packages | bool
28-
29-
- name: Install required packages
30-
become: true
31-
ansible.builtin.apt:
32-
name:
33-
- git
34-
- python3
35-
- python3-pip
36-
state: present
37-
update_cache: true
38-
39-
# Network configuration
21+
# Network configuration - must run first to ensure external connectivity
4022
- name: Disable cloud-init network configuration
4123
become: true
4224
ansible.builtin.copy:
@@ -81,6 +63,25 @@
8163
when: "'UP' not in trunk_check.stdout"
8264
changed_when: true
8365

66+
# Package updates - run after network configuration to ensure external connectivity
67+
- name: Update all packages to latest version
68+
become: true
69+
ansible.builtin.apt:
70+
upgrade: dist
71+
update_cache: true
72+
cache_valid_time: 3600
73+
when: devstack_update_packages | bool
74+
75+
- name: Install required packages
76+
become: true
77+
ansible.builtin.apt:
78+
name:
79+
- git
80+
- python3
81+
- python3-pip
82+
state: present
83+
update_cache: true
84+
8485
- name: Reboot system to apply updates and network configuration
8586
become: true
8687
ansible.builtin.reboot:

scenarios/networking-lab/devstack-nxsw-vxlan/automation-vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ stages:
102102
Transitions nodes from 'enroll' to 'manageable' state. This validates
103103
basic hardware connectivity and prepares nodes for further operations.
104104
shell: |
105-
set -xe -o pipefail
105+
set -x
106106
107107
# Get list of node UUIDs
108108
node_uuids=$(openstack --os-cloud devstack-admin baremetal node list -f value -c UUID)

0 commit comments

Comments
 (0)