From 87d1276a863d7bb8ae1a67245268fb7cfa1341c2 Mon Sep 17 00:00:00 2001 From: caoyuan Date: Tue, 24 Apr 2018 11:57:35 +0800 Subject: [PATCH] Fix create Magnum trustee user role failed when run creating Magnum trustee user role task, the domain parameter must be domain id[0]. so kolla-ansible need to register the result of Creating Magnum trustee domain task, and use the domain id when creating Magnum trustee user role. [0]: https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/magnum/tasks/register.yml#L59 Co-Authored-By: ZhijunWei Change-Id: I57cdd011b7fc863133f9e3b43ae783cd1486e644 Closes-Bug: #1766410 --- ansible/roles/magnum/tasks/register.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/magnum/tasks/register.yml b/ansible/roles/magnum/tasks/register.yml index 6a0c379b5d..4d615f3267 100644 --- a/ansible/roles/magnum/tasks/register.yml +++ b/ansible/roles/magnum/tasks/register.yml @@ -39,6 +39,7 @@ description: "Owns users and projects created by magnum" auth: "{{ openstack_magnum_auth }}" endpoint_type: "{{ openstack_interface }}" + register: trustee_domain run_once: True - name: Creating Magnum trustee user