Public bug reported: When creating instances in the database in the compute API, if we fail after creating them we attempt to delete the instances from the DB here:
https://github.com/openstack/nova/blob/af7e83fef3bc2c005c581587e9230a4070f8feb9/nova/compute/api.py#L1033 However, if there is a failure it's ignored and we continue and just re- raise the exception. The instances can fail to delete because of a referential constraint on the block device mappings created here: https://github.com/openstack/nova/blob/af7e83fef3bc2c005c581587e9230a4070f8feb9/nova/compute/api.py#L1471 So if we don't delete those first, we can't cleanup the instances. You can recreate this by changing CONF.quota_server_group_members=0 and trying to boot a server into a server group. ** Affects: nova Importance: Low Assignee: Matt Riedemann (mriedem) Status: In Progress ** Tags: api ** Changed in: nova Importance: Undecided => Low ** Changed in: nova Status: New => Triaged -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1569641 Title: server group members are not deleted on failed server create overquota Status in OpenStack Compute (nova): In Progress Bug description: When creating instances in the database in the compute API, if we fail after creating them we attempt to delete the instances from the DB here: https://github.com/openstack/nova/blob/af7e83fef3bc2c005c581587e9230a4070f8feb9/nova/compute/api.py#L1033 However, if there is a failure it's ignored and we continue and just re-raise the exception. The instances can fail to delete because of a referential constraint on the block device mappings created here: https://github.com/openstack/nova/blob/af7e83fef3bc2c005c581587e9230a4070f8feb9/nova/compute/api.py#L1471 So if we don't delete those first, we can't cleanup the instances. You can recreate this by changing CONF.quota_server_group_members=0 and trying to boot a server into a server group. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1569641/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

