--upload ${BUILD_ROOT}/patches/neutron_openstackclient_dps.patch:/usr/lib/python2.7/site-packages/ \
--upload ${BUILD_ROOT}/patches/puppet-neutron-add-sfc.patch:/usr/share/openstack-puppet/modules/neutron/ \
--upload ${BUILD_ROOT}/patches/congress-parallel-execution.patch:/usr/lib/python2.7/site-packages/ \
+ --upload ${BUILD_ROOT}/patches/puppet-neutron-ml2-ip-version-fix.patch:/usr/share/openstack-puppet/modules/neutron/ \
+ --run-command "cd /usr/share/openstack-puppet/modules/neutron && patch -p1 < puppet-neutron-ml2-ip-version-fix.patch" \
+ --upload ${BUILD_ROOT}/patches/puppet-neutron-vpp-ml2-type_drivers-setting.patch:/usr/share/openstack-puppet/modules/neutron/ \
+ --run-command "cd /usr/share/openstack-puppet/modules/neutron && patch -p1 < puppet-neutron-vpp-ml2-type_drivers-setting.patch" \
-a overcloud-full_build.qcow2
# apply neutron port data plane status patches
--install python2-networking-sfc \
--install python-etcd,puppet-etcd \
--install patch \
- --upload ${BUILD_ROOT}/patches/puppet-neutron-ml2-ip-version-fix.patch:/usr/share/openstack-puppet/modules/neutron/ \
- --run-command "cd /usr/share/openstack-puppet/modules/neutron && patch -p1 < puppet-neutron-ml2-ip-version-fix.patch" \
- --upload ${BUILD_ROOT}/patches/puppet-neutron-vpp-ml2-type_drivers-setting.patch:/usr/share/openstack-puppet/modules/neutron/ \
- --run-command "cd /usr/share/openstack-puppet/modules/neutron && patch -p1 < puppet-neutron-vpp-ml2-type_drivers-setting.patch" \
-a overcloud-full_build.qcow2
# upload and install barometer packages
with_items: "{{ ironic_config }}"
- name: openstack-configs undercloud aarch64
shell: openstack-config --set undercloud.conf DEFAULT ipxe_enabled false
- when: "{{ aarch64 }}"
+ when: aarch64
- lineinfile:
path: /usr/lib/python2.7/site-packages/ironic/common/pxe_utils.py
regexp: '_link_ip_address_pxe_configs'
line: '_link_mac_pxe_configs(task)'
- when: "{{ aarch64 }}"
+ when: aarch64
- name: undercloud install
shell: openstack undercloud install &> apex-undercloud-install.log
become: yes
when:
- external_network.vlan != "native"
- external_network.enabled
- - name: assign IP to native eth2
+ - name: assign IP to native eth2
shell: ip a a {{ external_network.ip }}/{{ external_network.prefix }} dev eth2
become: yes
when:
- external_network.vlan == "native"
- external_network.enabled
+ - not aarch64
- name: bring up eth2
shell: ip link set up dev eth2
when:
- external_network.vlan == "native"
- external_network.enabled
+ - not aarch64
+ become: yes
+ - name: assign IP to native eth0 if aarch64
+ shell: ip a a {{ external_network.ip }}/{{ external_network.prefix }} dev eth0
+ become: yes
+ when:
+ - external_network.vlan == "native"
+ - external_network.enabled
+ - aarch64
+ - name: bring up eth0 if aarch64
+ shell: ip link set up dev eth0
+ when:
+ - external_network.vlan == "native"
+ - external_network.enabled
+ - aarch64
become: yes
- name: fetch storage environment file
fetch:
shell: "{{ stackrc }} && openstack overcloud node import --provide instackenv.json"
when: virtual
- name: Set flavors
- shell: '{{ stackrc }} && openstack flavor set --property "cpu_arch"="x86_64" {{ item }}'
+ shell: '{{ stackrc }} && openstack flavor set --property "cpu_arch"="{{ ansible_architecture }}" {{ item }}'
with_items:
- baremetal
- control
mode: 0755
- copy:
content: |
- set default=master
+ set default=local
set timeout=5
set hidden_timeout_quiet=false
- menuentry "master" {
- configfile /tftpboot/\\\$net_default_ip.conf
+ menuentry "local" {
+ configfile (hd0,gpt3)/boot/grub2/grub.cfg
}
dest: /tftpboot/EFI/centos/grub.cfg
mode: 0644
state: present
line: ''
- shell: "echo 'r ^/EFI/centos/grub.cfg-(.*) /tftpboot/pxelinux.cfg/\\1' | sudo tee --append /tftpboot/map-file"
+ - shell: "echo 'r ^/EFI/centos/grub.cfg /tftpboot/EFI/centos/grub.cfg' | sudo tee --append /tftpboot/map-file"
- systemd:
name: xinetd
state: restarted