Update introspection command to introspect only manageable nodes
With the Newton and later releases, it is possible to introspect only nodes in the manageable state rather than run bulk introspection that would work on all imported nodes. Change-Id: Ic36dea3f93e84ab49731996a69a9d3c28f973e86
This commit is contained in:
parent
37ddaa3529
commit
91a190da14
|
@ -90,7 +90,22 @@ sudo mistral-db-manage populate
|
||||||
## * Introspect hardware attributes of nodes.
|
## * Introspect hardware attributes of nodes.
|
||||||
## ::
|
## ::
|
||||||
|
|
||||||
openstack baremetal introspection bulk start
|
{% if release == 'mitaka' %}
|
||||||
|
|
||||||
|
openstack baremetal introspection bulk start
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
# Note: Unlike the legacy bulk command, overcloud node
|
||||||
|
# introspect will only run on nodes in the 'manageable'
|
||||||
|
# provisioning state.
|
||||||
|
for node in $(openstack baremetal node list --fields uuid -f value) ; do
|
||||||
|
openstack baremetal node manage $node ;
|
||||||
|
done
|
||||||
|
openstack overcloud node introspect --all-manageable
|
||||||
|
openstack overcloud node provide --all-manageable
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue