Comment 6 for bug 1050982

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/folsom)

Reviewed: https://review.openstack.org/15605
Committed: http://github.com/openstack/nova/commit/49397a44da25ff3148c2ae6eca7485c0c41c661a
Submitter: Jenkins
Branch: stable/folsom

commit 49397a44da25ff3148c2ae6eca7485c0c41c661a
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
    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

    Change-Id: I9649b5ef026ca18a55abfb66e87fd0e358eba6f2