1.Set the item "security_group_api=nova" in nova.conf
2.Restart nova
3.Create a security group
4.Update the security group
PUT http://192.168.83.241:8774/v2/99a7b3d4bd6540aaaceae89ac74bfab6/os-security-groups/7
{
"security_group": {
"name": "huangtianhua",
"description":"for test"
}
}
5.The server raises exception as bellow:
{
"computeFault": {
"message": "The server has either erred or is incapable of performing the requested operation.",
"code": 500
}
}
6.I think it's a bug.When traversal the rules of the group before returning throws error:
"DetachedInstanceError: Parent instance <SecurityGroup at 0x789eed0> is not bound to a Session; lazy load operation of attribute 'rules' cannot proceed."
Fix proposed to branch: master /review. openstack. org/53489
Review: https:/