diff --git a/ansible/overcloud-bios-raid.yml b/ansible/overcloud-bios-raid.yml index 8d657a9b7..efa25ad42 100644 --- a/ansible/overcloud-bios-raid.yml +++ b/ansible/overcloud-bios-raid.yml @@ -71,6 +71,7 @@ bash -c ' export OS_CLOUD=bifrost && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal --connection local --inventory /etc/bifrost/inventory/ @@ -102,6 +103,7 @@ bash -c ' export OS_CLOUD=bifrost && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal --connection local --inventory /etc/bifrost/inventory/ diff --git a/ansible/overcloud-deprovision.yml b/ansible/overcloud-deprovision.yml index e907508e0..76bd34459 100644 --- a/ansible/overcloud-deprovision.yml +++ b/ansible/overcloud-deprovision.yml @@ -38,6 +38,7 @@ export OS_CLOUD=bifrost && export OS_BAREMETAL_API_VERSION=1.34 && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal --connection local --inventory /etc/bifrost/inventory/ @@ -72,6 +73,7 @@ bash -c ' export OS_CLOUD=bifrost && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal -vvvv --connection local --inventory /etc/bifrost/inventory/ @@ -98,6 +100,7 @@ export OS_CLOUD=bifrost && export OS_BAREMETAL_API_VERSION=1.34 && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal --connection local --inventory /etc/bifrost/inventory/ diff --git a/ansible/overcloud-hardware-inspect.yml b/ansible/overcloud-hardware-inspect.yml index e784f201a..3477b7c15 100644 --- a/ansible/overcloud-hardware-inspect.yml +++ b/ansible/overcloud-hardware-inspect.yml @@ -32,6 +32,7 @@ bash -c ' export OS_CLOUD=bifrost && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal --connection local --inventory /etc/bifrost/inventory/ @@ -66,6 +67,7 @@ bash -c ' export OS_CLOUD=bifrost && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal -vvvv --connection local --inventory /etc/bifrost/inventory/ @@ -91,6 +93,7 @@ bash -c ' export OS_CLOUD=bifrost && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal -vvvv --connection local --inventory /etc/bifrost/inventory/ @@ -115,6 +118,7 @@ bash -c ' export OS_CLOUD=bifrost && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal --connection local --inventory /etc/bifrost/inventory/ diff --git a/ansible/overcloud-introspection-data-save.yml b/ansible/overcloud-introspection-data-save.yml index 25c0d3600..945567b8a 100644 --- a/ansible/overcloud-introspection-data-save.yml +++ b/ansible/overcloud-introspection-data-save.yml @@ -13,7 +13,7 @@ command: > docker exec bifrost_deploy bash -c ' - env BIFROST_INVENTORY_SOURCE=ironic OS_CLOUD=bifrost + env BIFROST_INVENTORY_SOURCE=ironic BIFROST_NODE_NAMES="{{ inventory_hostname }}" OS_CLOUD=bifrost ansible baremetal --connection local --inventory /etc/bifrost/inventory/ diff --git a/ansible/overcloud-provision.yml b/ansible/overcloud-provision.yml index d1536de30..20ef8be93 100644 --- a/ansible/overcloud-provision.yml +++ b/ansible/overcloud-provision.yml @@ -43,6 +43,7 @@ export OS_CLOUD=bifrost && export OS_BAREMETAL_API_VERSION=1.34 && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal --connection local --inventory /etc/bifrost/inventory/ @@ -77,6 +78,7 @@ bash -c ' export OS_CLOUD=bifrost && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal -vvvv --connection local --inventory /etc/bifrost/inventory/ @@ -102,6 +104,7 @@ bash -c ' export OS_CLOUD=bifrost && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal -vvvv --connection local --inventory /etc/bifrost/inventory/ @@ -166,6 +169,7 @@ export OS_CLOUD=bifrost && export OS_BAREMETAL_API_VERSION=1.34 && export BIFROST_INVENTORY_SOURCE=ironic && + export BIFROST_NODE_NAMES="{{ inventory_hostname }}" && ansible baremetal --connection local --inventory /etc/bifrost/inventory/ diff --git a/releasenotes/notes/bifrost-speedup-9902552b86150ad4.yaml b/releasenotes/notes/bifrost-speedup-9902552b86150ad4.yaml new file mode 100644 index 000000000..2f1473fe7 --- /dev/null +++ b/releasenotes/notes/bifrost-speedup-9902552b86150ad4.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Improves performance of Bifrost operations by preventing unnecessary + requests to the Ironic API.