Skip to content
Snippets Groups Projects
Commit d8a744e4 authored by Mark Goddard's avatar Mark Goddard
Browse files

Allow empty compute group when ironic is in use

If ironic is in use it is valid to have no (virtualised) compute nodes.

Change-Id: I100540fbfd81be5642c1d4ed135fcd500924a47e
Closes-Bug: #1701317
parent 1ab6822d
No related branches found
No related tags found
No related merge requests found
...@@ -12,9 +12,14 @@ ...@@ -12,9 +12,14 @@
register: container_facts register: container_facts
- name: Checking available compute nodes in inventory - name: Checking available compute nodes in inventory
vars:
nova_compute_ironic: "{{ nova_services['nova-compute-ironic'] }}"
fail: fail:
msg: "At least 1 compute node required in inventory" msg: >
when: groups['compute'] | length < 1 At least 1 compute node required in inventory when ironic is disabled.
when:
- groups['compute'] | length < 1
- not nova_compute_ironic.enabled | bool
- name: Checking free port for Nova API - name: Checking free port for Nova API
vars: vars:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment