Bug 2193161 - Static metadata configuration fails with "Nova_config[api/vendordata_jsonfile_path] is already declared"
Summary: Static metadata configuration fails with "Nova_config[api/vendordata_jsonfile...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: Joanne O'Flynn
QA Contact: RHOS Documentation Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-04 14:04 UTC by Eric Nothen
Modified: 2023-06-29 15:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-29 15:28:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-24787 0 None None None 2023-05-04 14:06:40 UTC

Description Eric Nothen 2023-05-04 14:04:31 UTC
Description of problem:

Static metadata configuration process, as documented in [0] [1] [2] does not work.

Version-Release number of selected component (if applicable):
16.1, 16.2, 17.0

How reproducible:
Always reproducible

Steps to Reproduce:
1. Configure static metadata as described in the documentation, step 9.3.3 in 16.1 doc [0]:

~~~
[stack.lab ~]$ cat templates/compute.yaml
parameter_defaults:
  ComputeExtraConfig:
    nova::config::nova_config:
      api/vendordata_jsonfile_path:
        value: '/home/stack/vendordata.json'
~~~

2. Deploy overcloud

Actual results:

Overcloud deployment fails with this error:

~~~
[stack.lab ~]$ sudo cat /var/lib/mistral/overcloud/ansible-errors.json | jq . | grep vendordata_jsonfile_path | tail -1
          "<13>May  4 12:34:09 puppet-user: Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Nova_config[api/vendordata_jsonfile_path] is already declared at (file: /etc/puppet/modules/nova/manifests/config.pp, line: 40); cannot redeclare (file: /etc/puppet/modules/nova/manifests/vendordata.pp, line: 169) (file: /etc/puppet/modules/nova/manifests/vendordata.pp, line: 169, column: 3) on node overcloud-novacompute-4.keller.lab",
~~~

Expected results:

Overcloud deploy completes successfully with metadata service configured.


Additional info:

When using the following template instead, deployment completes without error:

~~~
[stack.lab ~]$ cat templates/compute.yaml
parameter_defaults:
  ComputeExtraConfig:
    nova::vendordata::vendordata_jsonfile_path: "/home/stack/vendordata.json"
~~~

I believe the documentation needs to be updated to show this block as an example instead of the current one.


[0] https://access.redhat.com/documentation/de-de/red_hat_openstack_platform/16.1/html/configuring_the_compute_service_for_instance_creation/assembly_adding-metadata-to-instances_instance-metadata#adding-static-metadata-to-instances-instance-metadata
[1] https://access.redhat.com/documentation/de-de/red_hat_openstack_platform/16.2/html/configuring_the_compute_service_for_instance_creation/assembly_adding-metadata-to-instances_instance-metadata#proc_adding-static-metadata-to-instances_instance-metadata
[2] https://access.redhat.com/documentation/de-de/red_hat_openstack_platform/17.0/html/configuring_the_compute_service_for_instance_creation/assembly_adding-metadata-to-instances_instance-metadata#proc_adding-static-metadata-to-instances_instance-metadata


Note You need to log in before you can comment on or make changes to this bug.