glance-registry configuration not removed on upgrade

Bug #1979090 reported by Chris MacNaughton
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Glance Charm
Fix Committed
Undecided
Unassigned

Bug Description

When upgrading to an OpenStack release that doesn't support the glance-registry, configuration is left behind. At some later point, glance-api's startup command is updated to include the entire /etc/glance configuration directory, which causes glance to bind to port 9191 instead of 9292 (as configured), which causes a failure of the Glance API services in the deployed cloud

Revision history for this message
Billy Olsen (billy-olsen) wrote :

Need to remove the *registry* files from the /etc/glance directory (or at least move them to .bak, .old, etc)

Changed in charm-glance:
status: New → Confirmed
tags: added: openstack-upgrade
Changed in charm-glance:
status: Confirmed → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-glance (master)
Changed in charm-glance:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-glance (master)

Reviewed: https://review.opendev.org/c/openstack/charm-glance/+/873509
Committed: https://opendev.org/openstack/charm-glance/commit/ef5d6de61564f3f81037f7082454a95ba11eedbb
Submitter: "Zuul (22348)"
Branch: master

commit ef5d6de61564f3f81037f7082454a95ba11eedbb
Author: Guillaume Boutry <email address hidden>
Date: Mon Feb 13 09:12:47 2023 +0100

    Backup glance registry configuration files on upgrade >= Stein

    Glance Registry has been deprecated in Stein release.
    Leftover configuration files can still be read and
    configure wrong settings, breaking deployment.

    Closes-Bug: 1979090
    Change-Id: I54b72aef0fd49b036cf1783ef9887fa9243c93f8

Changed in charm-glance:
status: In Progress → Fix Committed
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.