glance-api.conf is broken after https://review.opendev.org/c/openstack/puppet-glance/+/790052

Bug #1928194 reported by Michele Baldessari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Invalid
High
Unassigned

Bug Description

In my master tls-e/bgp deployments glance is now broken, because of the following:
[root@controller-0 glance_api]# grep -ir '\["True"\]'
etc/glance/glance-api.conf:show_image_direct_url=["True"]
etc/glance/glance-api.conf:debug=["True"]
etc/glance/glance-api.conf:enable_proxy_headers_parsing=["True"]
etc/glance/glance-api.conf:swift_store_create_container_on_put=["True"]

[root@controller-0 glance_api]# grep -ir show_image_direct_url /etc/puppet/hieradata/
/etc/puppet/hieradata/service_configs.json: "glance::api::show_image_direct_url": true,

glance fails to start with:
2021-05-12T10:08:48.556462781+00:00 stderr F + echo 'Running command: '\''/usr/bin/glance-api --config-file /usr/share/glance/glance-api-dist.conf --config-file /etc/glance/glance-api.conf --config-file /etc/glance/glance-image-import.conf'\'''
2021-05-12T10:08:48.556462781+00:00 stderr F + exec /usr/bin/glance-api --config-file /usr/share/glance/glance-api-dist.conf --config-file /etc/glance/glance-api.conf --config-file /etc/glance/glance-image-import.conf
2021-05-12T10:08:49.777095040+00:00 stderr F argument --debug: Invalid Boolean value: ["True"]

I suspect the reason is the openstack config backend switch in https://review.opendev.org/c/openstack/puppet-glance/+/790052 ?

Revision history for this message
Takashi Kajinami (kajinamit) wrote :
Revision history for this message
Takashi Kajinami (kajinamit) wrote :

Can we check some hieradata definitions in that controller-0 ? For example

$ sudo hiera -c /etc/puppet/hiera.yaml glance::api::logging::debug

Revision history for this message
Michele Baldessari (michele) wrote :

Thanks Takashi, this indeed turned out to be a broken overcloud image that had some older puppet files.

Changed in tripleo:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.