Ask Your Question
0

Tripleo: FAILED! => {"msg": "No variable found with this name: pre_deployments_Controller"}

asked 2019-09-23 17:15:32 -0600

Cersen gravatar image

I'm trying to deploy rocky on 7 baremetal nodes, but overcloud deployment fails with the error below:

2019-09-24 00:40:59,333 p=24694 u=mistral |  PLAY [Server deployments] ******************************************************
2019-09-24 00:40:59,441 p=24694 u=mistral |  TASK [include_tasks] ***********************************************************
2019-09-24 00:40:59,441 p=24694 u=mistral |  Tuesday 24 September 2019  00:40:59 +0300 (0:00:00.811)       0:00:26.136 *****
2019-09-24 00:40:59,667 p=24694 u=mistral |  fatal: [controller-2]: FAILED! => {"msg": "No variable found with this name: pre_deployments_Controller"}
2019-09-24 00:40:59,776 p=24694 u=mistral |  fatal: [controller-1]: FAILED! => {"msg": "No variable found with this name: pre_deployments_Controller"}
2019-09-24 00:40:59,887 p=24694 u=mistral |  fatal: [controller-0]: FAILED! => {"msg": "No variable found with this name: pre_deployments_Controller"}
2019-09-24 00:40:59,996 p=24694 u=mistral |  fatal: [computehci-2]: FAILED! => {"msg": "No variable found with this name: pre_deployments_ComputeHCI"}
2019-09-24 00:41:00,106 p=24694 u=mistral |  fatal: [computehci-3]: FAILED! => {"msg": "No variable found with this name: pre_deployments_ComputeHCI"}
2019-09-24 00:41:00,112 p=24694 u=mistral |  fatal: [computehci-0]: FAILED! => {"msg": "No variable found with this name: pre_deployments_ComputeHCI"}
2019-09-24 00:41:00,224 p=24694 u=mistral |  fatal: [computehci-1]: FAILED! => {"msg": "No variable found with this name: pre_deployments_ComputeHCI"}

I think I have a misconfiguration that I couldn't noticed yet. Any idea ?

edit retag flag offensive close merge delete

Comments

While I don't know much about Tripleo, a code search makes me think that the HCI part of the string is incorrect. I would therefore look for HCI in my configuration, trying to detect anything wrong.

Bernd Bausch gravatar imageBernd Bausch ( 2019-09-23 20:02:37 -0600 )edit

I just notice that pre_deployments_Controller is a perfectly legitimate name. Sorry, no suggestion here.

Bernd Bausch gravatar imageBernd Bausch ( 2019-09-23 21:42:49 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-10-07 14:08:40 -0600

Looks like something related to the following fix.

commit 4f9b32a9f41ee1dcd8f9b1f9032c81d4bed25f5f Author: James Slagle jslagle@redhat.com Date: Mon Jul 8 17:14:06 2019 -0400

Lookup pre/post deployment vars with hostvars

The lookup function that was used previously still failed when these
vars were not defined. Using hostvars instead allows these to be
defaulted to [] when the vars are not actually defined.

Change-Id: I51f3c21f07a893848483a14e399a6d402a6205b8

Can you test the following & see if it fixes .

-                  with_items: "{{ '{{' }} lookup('vars', tripleo_role_name + '_pre_deployments')|default([]) {{ '}}' }}"
+                  with_items: "{{ '{{' }} hostvars[inventory_hostname][tripleo_role_name ~ '_pre_deployments']|default([]) {{ '}}' }}"
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-09-23 17:15:32 -0600

Seen: 100 times

Last updated: Oct 07