Skip to content
Snippets Groups Projects
Unverified Commit 479b4cdf authored by Jakub Darmach's avatar Jakub Darmach
Browse files

Get the list of ironic nodes - use correct scope

Use correct system scope - all - while getting the list of ironic
nodes in ipa-images role.

Closes-Bug: #2083014
Change-Id: I4da3a3739d57817ffbd094caea0fc80c3ad8eff8
parent 3a7bff6e
No related branches found
No related tags found
No related merge requests found
......@@ -20,12 +20,19 @@
set_fact:
ipa_images_ramdisk_uuid: "{{ ipa_images_glance.results[1].images[0].id }}"
- name: Change system scope to all for Ironic operations
set_fact:
ipa_images_ironic_openstack_auth_env: "{{ ipa_images_openstack_auth_env |
combine ({ 'OS_PROJECT_NAME': omit }) |
combine ({ 'OS_PROJECT_DOMAIN_NAME': omit }) |
combine ({ 'OS_SYSTEM_SCOPE': 'all' }) }}"
- name: Get a list of ironic nodes
command: |
{{ ipa_images_venv }}/bin/openstack baremetal node list --fields name uuid driver_info -f json
register: ipa_images_ironic_node_list
changed_when: False
environment: "{{ ipa_images_openstack_auth_env }}"
environment: "{{ ipa_images_ironic_openstack_auth_env }}"
- name: Make sure openstack nodes are in baremetal-compute group
add_host:
......@@ -59,4 +66,4 @@
when:
item["Driver Info"].deploy_kernel != ipa_images_kernel_uuid or
item["Driver Info"].deploy_ramdisk != ipa_images_ramdisk_uuid
environment: "{{ ipa_images_openstack_auth_env }}"
environment: "{{ ipa_images_ironic_openstack_auth_env }}"
---
fixes:
- |
Fixes an issue where task 'ensure ironic nodes use the new Ironic
Python Agent (IPA) images` fails with 'dict object' has no
attribute 'deploy_kernel'.
<https://bugs.launchpad.net/kayobe/+bug/2083014>`__.
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