Neutron server was not compatible with member actions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
zhang ping |
Bug Description
====== Problem Description =======
Register a new extension into Neutron server, and this extension contains a member action. Just like this:
@classmethod
def get_resources(cls):
"""Returns rate limit resources. """
{}, EXTENDED_
action_map = {'floatingip': {
}
return resource_
Adding a new member action named "update_
Exception reports:
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
2016-07-26 10:07:28.813 7562 ERROR neutron.
Because new member action contains the "update" string. As a result, Neutron server check the target whether contains "ATTRIBUTES_
====== How to fix ======
>>> if 'update' in action:
change into
>>> if 'update' in action and target.
By doing such change, will solve this problem.
tags: | added: api |
Changed in neutron: | |
assignee: | nobody → lilintan (lilintan) |
Changed in neutron: | |
assignee: | lilintan (lilintan) → zhang ping (zp860905) |
tags: | added: neutron-proactive-backport-potential |
tags: | added: neutron-easy-proactive-backport-potential |
tags: | removed: neutron-easy-proactive-backport-potential neutron-proactive-backport-potential |
Fix proposed to branch: master /review. openstack. org/372108
Review: https:/