Reviewed: https://review.openstack.org/315311 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f726163977367251b7466a3fbf351f5e128004b3 Submitter: Jenkins Branch: master
commit f726163977367251b7466a3fbf351f5e128004b3 Author: liyingjun <email address hidden> Date: Wed Apr 20 22:09:30 2016 +0800
Optimize creating security_group
When passing a source group_id for creating a new security group rule, the code is looking up that group twice. We should just look that up once at the beginning and reuse it so we don't have to hit the nova db or neutron twice for the same thing.
Change-Id: I3ea4586d11b14da5f6d93e8d20f05171e7e6f0e8 Closes-bug: #1580621
Reviewed: https:/ /review. openstack. org/315311 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=f7261639773 67251b7466a3fbf 351f5e128004b3
Committed: https:/
Submitter: Jenkins
Branch: master
commit f72616397736725 1b7466a3fbf351f 5e128004b3
Author: liyingjun <email address hidden>
Date: Wed Apr 20 22:09:30 2016 +0800
Optimize creating security_group
When passing a source group_id for creating a new security group rule,
the code is looking up that group twice. We should just look that up
once at the beginning and reuse it so we don't have to hit the nova db
or neutron twice for the same thing.
Change-Id: I3ea4586d11b14d a5f6d93e8d20f05 171e7e6f0e8
Closes-bug: #1580621