Merge "Follow up on "Fix error 601""
This commit is contained in:
commit
e026d0d110
@ -26,7 +26,11 @@
|
|||||||
become: no
|
become: no
|
||||||
connection: local
|
connection: local
|
||||||
roles:
|
roles:
|
||||||
- { role: bifrost-configdrives-dynamic,
|
- role: bifrost-configdrives-dynamic
|
||||||
when: provision_state == "available" and maintenance | bool }
|
when:
|
||||||
- { role: bifrost-deploy-nodes-dynamic,
|
- provision_state == "available"
|
||||||
when: provision_state == "available" and maintenance | bool }
|
- maintenance | bool
|
||||||
|
- role: bifrost-deploy-nodes-dynamic
|
||||||
|
when:
|
||||||
|
- provision_state == "available"
|
||||||
|
- maintenance | bool
|
||||||
|
@ -38,11 +38,12 @@
|
|||||||
skip_items: []
|
skip_items: []
|
||||||
register: node_info
|
register: node_info
|
||||||
roles:
|
roles:
|
||||||
- { role: bifrost-unprovision-node-dynamic,
|
- role: bifrost-unprovision-node-dynamic
|
||||||
when: (provision_state == "active"
|
when:
|
||||||
|
- provision_state == "active"
|
||||||
or provision_state == "deploy failed"
|
or provision_state == "deploy failed"
|
||||||
or provision_state == "error")
|
or provision_state == "error"
|
||||||
and (not maintenance | bool) }
|
- not maintenance | bool
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: "Pull ironic facts until provision state available"
|
- name: "Pull ironic facts until provision state available"
|
||||||
os_ironic_node_info:
|
os_ironic_node_info:
|
||||||
@ -60,10 +61,14 @@
|
|||||||
become: no
|
become: no
|
||||||
connection: local
|
connection: local
|
||||||
roles:
|
roles:
|
||||||
- { role: bifrost-configdrives-dynamic,
|
- role: bifrost-configdrives-dynamic
|
||||||
when: (provision_state == "available") and (not maintenance | bool) }
|
when:
|
||||||
- { role: bifrost-deploy-nodes-dynamic,
|
- provision_state == "available"
|
||||||
when: (provision_state == "available") and (not maintenance | bool) }
|
- not maintenance | bool
|
||||||
|
- role: bifrost-deploy-nodes-dynamic
|
||||||
|
when:
|
||||||
|
- provision_state == "available"
|
||||||
|
- not maintenance | bool
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: "Pull ironic facts until provision state active"
|
- name: "Pull ironic facts until provision state active"
|
||||||
os_ironic_node_info:
|
os_ironic_node_info:
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
- name: "Defined ssh_public_key_path - Error if ssh_public_key_path is not valid"
|
- name: "Defined ssh_public_key_path - Error if ssh_public_key_path is not valid"
|
||||||
fail:
|
fail:
|
||||||
msg: "ssh_public_key_path is not valid."
|
msg: "ssh_public_key_path is not valid."
|
||||||
when: not test_ssh_public_key_path.stat.exists | bool
|
when: not test_ssh_public_key_path.stat.exists
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: "Defined ssh_public_key_path - Read SSH public key in"
|
- name: "Defined ssh_public_key_path - Read SSH public key in"
|
||||||
|
@ -18,4 +18,4 @@
|
|||||||
register: test_image_present
|
register: test_image_present
|
||||||
- name: "Create bootable image"
|
- name: "Create bootable image"
|
||||||
include: create_bootable_image.yml
|
include: create_bootable_image.yml
|
||||||
when: test_image_present.stat.exists | bool
|
when: test_image_present.stat.exists
|
||||||
|
@ -58,8 +58,8 @@
|
|||||||
- name: "Place sgabios.bin"
|
- name: "Place sgabios.bin"
|
||||||
command: cp /usr/share/misc/sgabios.bin /usr/share/qemu/sgabios.bin
|
command: cp /usr/share/misc/sgabios.bin /usr/share/qemu/sgabios.bin
|
||||||
when:
|
when:
|
||||||
- not test_sgabios_qemu | bool
|
- not test_sgabios_qemu.stat.exists
|
||||||
- test_sgabios_misc | bool
|
- test_sgabios_misc.stat.exists
|
||||||
|
|
||||||
# NOTE(TheJulia): In order to prevent conflicts, stop
|
# NOTE(TheJulia): In order to prevent conflicts, stop
|
||||||
# dnsmasq to prevent conflicts with libvirt restarting.
|
# dnsmasq to prevent conflicts with libvirt restarting.
|
||||||
|
@ -155,8 +155,7 @@
|
|||||||
|
|
||||||
- name: "Populate keystone for Bifrost"
|
- name: "Populate keystone for Bifrost"
|
||||||
include: keystone_setup.yml
|
include: keystone_setup.yml
|
||||||
when:
|
when: enable_keystone | bool
|
||||||
- enable_keystone | bool
|
|
||||||
|
|
||||||
# NOTE(pas-ha) needed to e.g. pick up new interfaces after libvirt install
|
# NOTE(pas-ha) needed to e.g. pick up new interfaces after libvirt install
|
||||||
- name: "Refresh facts"
|
- name: "Refresh facts"
|
||||||
@ -183,14 +182,13 @@
|
|||||||
environment: "{{ bifrost_venv_env }}"
|
environment: "{{ bifrost_venv_env }}"
|
||||||
when:
|
when:
|
||||||
- ironic.database.host == 'localhost'
|
- ironic.database.host == 'localhost'
|
||||||
- test_created_db.changed | bool
|
- test_created_db.changed
|
||||||
|
|
||||||
- name: "Upgrade ironic DB Schema"
|
- name: "Upgrade ironic DB Schema"
|
||||||
command: ironic-dbsync --config-file /etc/ironic/ironic.conf upgrade
|
command: ironic-dbsync --config-file /etc/ironic/ironic.conf upgrade
|
||||||
environment: "{{ bifrost_venv_env }}"
|
environment: "{{ bifrost_venv_env }}"
|
||||||
when: >
|
when: ironic.database.host != 'localhost'
|
||||||
ironic.database.host != 'localhost' or
|
or not test_created_db.changed
|
||||||
not test_created_db.changed | bool
|
|
||||||
|
|
||||||
- name: "Create service folder"
|
- name: "Create service folder"
|
||||||
file:
|
file:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user