create_db_entry_for_new_instance did not call sgh for default
When an instance is launched create_db_entry_for_new_instance() is
called which calls self.db.instance_create(). Then,
db.security_group_ensure_default() is called which creates the
default security group entry in the nova db. Though the sgh handler was
not called. Alternatively, if any nova secgroup-* call is made the sgh
is called which creates the default security group. This patch adds
a call to ensure_default() before db.instance_create() so the sgh
is called. Fixes a case missed in bug 1050982
Reviewed: https:/ /review. openstack. org/16133 github. com/openstack/ nova/commit/ 45402ff2ddf772e 744bdb117d4c2ed d4c74d8e7e
Committed: http://
Submitter: Jenkins
Branch: master
commit 45402ff2ddf772e 744bdb117d4c2ed d4c74d8e7e
Author: Aaron Rosen <email address hidden>
Date: Wed Nov 7 15:57:12 2012 -0800
create_ db_entry_ for_new_ instance did not call sgh for default
When an instance is launched create_ db_entry_ for_new_ instance( ) is instance_ create( ). Then, security_ group_ensure_ default( ) is called which creates the create( ) so the sgh
called which calls self.db.
db.
default security group entry in the nova db. Though the sgh handler was
not called. Alternatively, if any nova secgroup-* call is made the sgh
is called which creates the default security group. This patch adds
a call to ensure_default() before db.instance_
is called. Fixes a case missed in bug 1050982
Change-Id: I9649b5ef026ca1 8a55abfb66e87fd 0e358eba6f2