crm.items doesn't exist is there is not yet corosync resources

Bug #1864804 reported by José Pekkarinen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-interface-hacluster
Fix Released
High
José Pekkarinen

Bug Description

Hi,

I observed this interface trying to access crm.items while the
final unit is not yet having any corosync resources available,
since the value of crm at that time is None, .items() doesn't
apply to it.

A merge proposal is open to fill this bug.

Thanks!

José.

Revision history for this message
Edward Hope-Morley (hopem) wrote :
Changed in charm-interface-hacluster:
assignee: nobody → José Pekkarinen (koalinux)
importance: Undecided → High
Revision history for this message
Edward Hope-Morley (hopem) wrote :

@koalinux could you please provide a log to show the error?

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

Reviewed: https://review.opendev.org/707350
Committed: https://git.openstack.org/cgit/openstack/charm-interface-hacluster/commit/?id=4baae7a0f2b6260d8977107f8f07dd832b8e8ef3
Submitter: Zuul
Branch: master

commit 4baae7a0f2b6260d8977107f8f07dd832b8e8ef3
Author: José Pekkarinen <email address hidden>
Date: Wed Feb 12 12:08:18 2020 +0200

    Control access to crm in cases when the unit is yet not
    having any corosync resource available.

    Closes-bug: #1864804
    Change-Id: I6eb3b9a816a93c4c7894e17935b1e7c8604592c5
    Signed-off-by: José Pekkarinen <email address hidden>

Changed in charm-interface-hacluster:
status: In Progress → 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.