a wrong way of useing dictionary in servicegroup/drivers/mc.py

Bug #1664799 reported by yangyegang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned

Bug Description

File "/nova/servicegroup/drivers/mc.py", line 76, in is_up
    % (elapsed,last_heartbeat, service_ref.id, key, timeutils.utcnow()))

AttributeError: ReadOnlyDict service_ref has no attribute 'id',the right way should be service_ref.get('id').

yangyegang (yang-yegang)
description: updated
Changed in nova:
assignee: nobody → yangyegang (yang-yegang)
Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

Doesn't look like the master version has this problem.
Which version are you using ?

Can't even find the problem in stable/mitaka :
https://github.com/openstack/nova/blob/stable/mitaka/nova/servicegroup/drivers/mc.py

If the problem is not present in a supported release (Mitaka and younger releases), then it's not an upstream bugfix.

Changed in nova:
status: New → Invalid
yangyegang (yang-yegang)
Changed in nova:
assignee: yangyegang (yang-yegang) → nobody
status: Invalid → 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.