Description:
Centos9 standalone deployment failing with error: "heat.common.exception.StackValidationFailed: Property error: resources.AnsibleGroupVars.properties.value: Incorrect arguments: Items to merge must be maps."
https://logserver.rdoproject.org/29/35229/11/check/periodic-tripleo-ci-centos-9-standalone-master/b9db632/logs/undercloud/home/zuul-worker/tripleo-deploy/heat_launcher/tripleo_deploy-1634230395.359465/heat.log
~~~
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource Traceback (most recent call last):
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/properties.py", line 491, in _resolve_user_value
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource value = self.resolve(unresolved_value, nullable=True)
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/function.py", line 264, in resolve
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource result = snippet.result()
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/hot/functions.py", line 746, in result
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource ret_map.update(ensure_map(m))
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/hot/functions.py", line 742, in ensure_map
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource raise TypeError(msg)
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource TypeError: Incorrect arguments: Items to merge must be maps.
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource During handling of the above exception, another exception occurred:
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource Traceback (most recent call last):
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/properties.py", line 426, in validate
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource self._get_property_value(key, validate=True)
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/properties.py", line 519, in _get_property_value
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource value, found = self._resolve_user_value(key, prop, validate)
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/properties.py", line 512, in _resolve_user_value
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource raise ValueError(str(e))
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource ValueError: Incorrect arguments: Items to merge must be maps.
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource During handling of the above exception, another exception occurred:
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource Traceback (most recent call last):
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/properties.py", line 437, in validate
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource raise exception.StackValidationFailed(
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource heat.common.exception.StackValidationFailed: value: Incorrect arguments: Items to merge must be maps.
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource During handling of the above exception, another exception occurred:
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource Traceback (most recent call last):
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/resource.py", line 1889, in validate_template
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource validate = self.properties.validate(
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/properties.py", line 450, in validate
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource raise exception.StackValidationFailed(
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource heat.common.exception.StackValidationFailed: Property error: Properties.value: Incorrect arguments: Items to merge must be maps.
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource During handling of the above exception, another exception occurred:
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource Traceback (most recent call last):
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/resource.py", line 916, in _action_recorder
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource yield
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/resource.py", line 1028, in _do_action
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource yield from self.action_handler_task(action, args=handler_args)
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/resource.py", line 970, in action_handler_task
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource handler_data = handler(*args)
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/resources/template_resource.py", line 303, in handle_create
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource return self.create_with_template(self.child_template(),
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/resources/stack_resource.py", line 341, in create_with_template
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource raw_template.RawTemplate.delete(self.context,
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 227, in __exit__
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource self.force_reraise()
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 200, in force_reraise
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource raise self.value
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/resources/stack_resource.py", line 336, in create_with_template
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource result = self.rpc_client()._create_stack(self.context,
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/rpc/client.py", line 295, in _create_stack
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource return self.call(
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/rpc/client.py", line 89, in call
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource return client.call(ctxt, method, **kwargs)
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/client.py", line 189, in call
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource result = self.transport._send(
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/oslo_messaging/transport.py", line 123, in _send
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource return self._driver.send(target, ctxt, message,
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/oslo_messaging/_drivers/impl_fake.py", line 222, in send
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource return self._send(target, ctxt, message, wait_for_reply, timeout,
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/oslo_messaging/_drivers/impl_fake.py", line 209, in _send
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource raise failure
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/common/context.py", line 410, in wrapped
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource return func(self, ctx, *args, **kwargs)
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/service.py", line 848, in create_stack
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource stack = self._parse_template_and_validate_stack(
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/service.py", line 756, in _parse_template_and_validate_stack
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource stack.validate()
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/osprofiler/profiler.py", line 160, in wrapper
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource result = f(*args, **kwargs)
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/stack.py", line 969, in validate
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource result = res.validate()
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/resource.py", line 1870, in validate
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource return self.validate_template()
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource File "/usr/lib/python3.9/site-packages/heat/engine/resource.py", line 1896, in validate_template
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource raise exception.StackValidationFailed(
2021-10-14 12:54:04.621 57719 ERROR heat.engine.resource heat.common.exception.StackValidationFailed: Property error: resources.AnsibleGroupVars.properties.value: Incorrect arguments: Items to merge must be maps.
~~~
I reproduced it with the rpms from the repos in the job. It loooks like there's an ansible_group_vars being set to [] instead of {} somewhere. Looking to track it down...
2021-10-14 15:40:38.213 18195 ERROR heat.engine. hot.functions [req-d2f5e744- 783e-44ca- a5e4-f22ea9ea9a 9c admin admin - - -] m was []