AttributeError: 'NoneType' object has no attribute 'set_release' (Upgrade Pike=>Queens)

Bug #1887483 reported by Jose Guedez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Glance Charm
Fix Released
High
Felipe Reyes

Bug Description

Charm release: 297 / 20.05
Series: Xenial
Upgrade: Pike => Queens

Steps (from https://docs.openstack.org/project-deploy-guide/charm-deployment-guide/latest/app-upgrade-openstack.html#openstack-upgrades)

$ juju config glance action-managed-upgrade=true
$ juju config glance openstack-origin=cloud:xenial-queens
$ juju run-action --wait glance/0 openstack-upgrade # leader
$ juju run-action --wait glance/2 openstack-upgrade
$ juju run-action --wait glance/1 openstack-upgrade

The actions fail with the following stacktrace:

    outcome: upgrade failed, see traceback.
    traceback: |
      Traceback (most recent call last):
        File "/var/lib/juju/agents/unit-glance-1/charm/charmhelpers/contrib/openstack/utils.py", line 1382, in do_action_openstack_upgrade
          upgrade_callback(configs=configs)
        File "/var/lib/juju/agents/unit-glance-1/charm/hooks/glance_utils.py", line 368, in do_openstack_upgrade
          configs.set_release(openstack_release=new_os_rel)
      AttributeError: 'NoneType' object has no attribute 'set_release'
  status: failed

Tags: sts
Revision history for this message
Felipe Reyes (freyes) wrote :

I'm seeing this when upgrading from Rocky to Stein using glance-298 (20.08 relese).

tags: added: sts
Revision history for this message
Felipe Reyes (freyes) wrote :

This regression was produced due to this commit http://github.com/openstack/charm-glance/commit/eb47ec1147336209ba78b918660bf1dbae240867 most likely.

Changed in charm-glance:
importance: Undecided → High
status: New → Confirmed
Felipe Reyes (freyes)
Changed in charm-glance:
assignee: nobody → Felipe Reyes (freyes)
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/748019

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

Fix proposed to branch: stable/20.08
Review: https://review.opendev.org/748118

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

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

commit d3bcd92616a23f04e6fce6a804045db6310ebb8a
Author: Felipe Reyes <email address hidden>
Date: Tue Aug 25 15:34:22 2020 -0400

    Use register_configs() in openstack-upgrade action

    CONFIGS global variable is no longer populated at load time instead is
    expected to use register_configs() function as pause/resume actions do.

    Change-Id: Id2504b40e09220c6cb6bb878727ffa181263e3f1
    Closes-Bug: #1887483
    Related-Bug: #1879537

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

Reviewed: https://review.opendev.org/748118
Committed: https://git.openstack.org/cgit/openstack/charm-glance/commit/?id=5c5487ecc0737a91353d2d3e42472ed02240a58b
Submitter: Zuul
Branch: stable/20.08

commit 5c5487ecc0737a91353d2d3e42472ed02240a58b
Author: Felipe Reyes <email address hidden>
Date: Tue Aug 25 15:34:22 2020 -0400

    Use register_configs() in openstack-upgrade action

    CONFIGS global variable is no longer populated at load time instead is
    expected to use register_configs() function as pause/resume actions do.

    Change-Id: Id2504b40e09220c6cb6bb878727ffa181263e3f1
    Closes-Bug: #1887483
    Related-Bug: #1879537

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.

Other bug subscribers

Remote bug watches

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