glance-registry not running post charm upgrade on queens

Bug #1812972 reported by James Page
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Glance Charm
Fix Released
High
Edward Hope-Morley

Bug Description

glance-registry failed to restart due to a missing paste file after a charm upgrade on queens.

The charm in the code for reinstall is < 'queens' but should be <=

James Page (james-page)
Changed in charm-glance:
status: New → Triaged
importance: Undecided → High
James Page (james-page)
Changed in charm-glance:
status: Triaged → In Progress
assignee: nobody → James Page (james-page)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/632782

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-glance (master)

Reviewed: https://review.openstack.org/632782
Committed: https://git.openstack.org/cgit/openstack/charm-glance/commit/?id=c24e2cf4230550741ab057eb891e9b12d6741b64
Submitter: Zuul
Branch: master

commit c24e2cf4230550741ab057eb891e9b12d6741b64
Author: James Page <email address hidden>
Date: Wed Jan 23 16:59:28 2019 +0000

    upgrade: preserve glance-registry for Queens

    The glance-registry daemon was deprecated at Queens, but was still
    installed for the Queens charm release; ensure that any re-install
    of paste.ini files accomodates this as part of the charm upgrade
    process, resolving issues with glance-registry not running due to
    missing paste configuration files.

    Change-Id: Iaaea4907ce4ef9d1e17b8ef9719e8bb0e0001946
    Closes-Bug: 1812972

Changed in charm-glance:
status: In Progress → Fix Committed
Revision history for this message
Alok G Singh (alephnull-b) wrote :

This patch did not allow glance-registry on start on bionic-queens. The charm removes glance-registry-paste.ini in reinstall_paste_ini() but this file is required for the service to start.

The config file was regenerated by apt install --reinstall --option=Dpkg::Options::=--force-confmiss glance-registry and the service started normally.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-glance (stable/18.11)

Fix proposed to branch: stable/18.11
Review: https://review.openstack.org/638634

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-glance (stable/18.11)

Reviewed: https://review.openstack.org/638634
Committed: https://git.openstack.org/cgit/openstack/charm-glance/commit/?id=c71044ca0b36285ad790fec45e0ff9c7d7e0866b
Submitter: Zuul
Branch: stable/18.11

commit c71044ca0b36285ad790fec45e0ff9c7d7e0866b
Author: James Page <email address hidden>
Date: Wed Jan 23 16:59:28 2019 +0000

    upgrade: preserve glance-registry for Queens

    The glance-registry daemon was deprecated at Queens, but was still
    installed for the Queens charm release; ensure that any re-install
    of paste.ini files accomodates this as part of the charm upgrade
    process, resolving issues with glance-registry not running due to
    missing paste configuration files.

    Change-Id: Iaaea4907ce4ef9d1e17b8ef9719e8bb0e0001946
    Closes-Bug: 1812972
    (cherry picked from commit c24e2cf4230550741ab057eb891e9b12d6741b64)

tags: added: stable-backport
Changed in charm-glance:
milestone: none → 19.04
Revision history for this message
Xav Paice (xavpaice) wrote :

After updating the charm to the current 18.11 (including the backport above), the glance-registry-paste.ini file is missing entirely, and reinstalling the package doesn't fix it. I wound up manually copying in the file from the package source.

Is there something we can do to ensure that this isn't an ongoing issue?

tags: added: canonical-bootstack
Changed in charm-glance:
status: Fix Committed → New
Revision history for this message
Xav Paice (xavpaice) wrote :

I've set this to new, because although the patch adds the package install back in, the upgrading the charm doesn't fix installations that are already broken.

David Ames (thedac)
Changed in charm-glance:
milestone: 19.04 → 19.07
Changed in charm-glance:
status: New → Triaged
Revision history for this message
Edward Hope-Morley (hopem) wrote :

Confirmed, i just upgraded to 19.04 charms for a queens deployment and glance-registry won't start anymore due to missing paste.ini:

May 14 09:39:19 juju-52088b-0-lxd-3 glance-registry[21999]: ERROR: Unable to locate paste config file for glance-registry.

Changed in charm-glance:
assignee: James Page (james-page) → Edward Hope-Morley (hopem)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-glance (master)

Fix proposed to branch: master
Review: https://review.opendev.org/659029

Changed in charm-glance:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-glance (stable/19.04)

Fix proposed to branch: stable/19.04
Review: https://review.opendev.org/659030

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-glance (master)

Reviewed: https://review.opendev.org/659029
Committed: https://git.openstack.org/cgit/openstack/charm-glance/commit/?id=160e5d2d9f332afe6d6581bed0b590153249fdd2
Submitter: Zuul
Branch: master

commit 160e5d2d9f332afe6d6581bed0b590153249fdd2
Author: Edward Hope-Morley <email address hidden>
Date: Tue May 14 11:28:39 2019 +0100

    Ensure glance-registry-paste.ini exists for <= Q

    Change-Id: I84360db1522b735a20f4141235b111700935fe58
    Closes-Bug: #1812972

Changed in charm-glance:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-glance (stable/19.04)

Reviewed: https://review.opendev.org/659030
Committed: https://git.openstack.org/cgit/openstack/charm-glance/commit/?id=efd939a188eb5c8d69fd67726f556f7700a875d5
Submitter: Zuul
Branch: stable/19.04

commit efd939a188eb5c8d69fd67726f556f7700a875d5
Author: Edward Hope-Morley <email address hidden>
Date: Tue May 14 11:28:39 2019 +0100

    Ensure glance-registry-paste.ini exists for <= Q

    Change-Id: I84360db1522b735a20f4141235b111700935fe58
    Closes-Bug: #1812972
    (cherry picked from commit 160e5d2d9f332afe6d6581bed0b590153249fdd2)

David Ames (thedac)
Changed in charm-glance:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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