Skip to content

Commit 397f210

Browse files
authored
Merge pull request #1684 from stackhpc/ci-aio-network
Remove usage of temporary subnet as external net
2 parents 1def418 + aecdacf commit 397f210

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

etc/kayobe/ansible/configure-aio-resources.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,15 @@
3737
files_matching: passwords.yml
3838
name: kolla_passwords
3939

40-
- name: Add an IP to connect to the instances
41-
# FIXME: host configure will have bounced the bridge
42-
# and removed the IP
43-
ansible.builtin.command: ip a add 10.0.2.1/24 dev breth1
44-
register: result
45-
failed_when: 'result.rc != 0 and "RTNETLINK answers: File exists" not in result.stderr'
46-
changed_when: result.rc == 0
47-
become: true
48-
4940
- name: Run init-run-once
5041
ansible.builtin.script:
5142
cmd: scripts/aio-init.sh
5243
creates: /tmp/.init-runonce
5344
environment:
5445
KOLLA_OPENSTACK_COMMAND: "{{ venv }}/bin/openstack"
46+
EXT_NET_CIDR: "{{ aio_cidr }}"
47+
EXT_NET_RANGE: "start={{ aio_neutron_allocation_pool_start }},end={{ aio_neutron_allocation_pool_end }}"
48+
EXT_NET_GATEWAY: "{{ external_net_names | first | net_ip(inventory_hostname=groups['controllers'][0]) }}"
5549
OS_PROJECT_DOMAIN_NAME: Default
5650
OS_USER_DOMAIN_NAME: Default
5751
OS_PROJECT_NAME: admin

0 commit comments

Comments
 (0)