Flip Instance to Failed if Security Group or Default Rule Creation Fail During 'Instance Create'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
Medium
|
Denis M. |
Bug Description
When trove fails to create security group (or its default rule) for a instance create action, it fails to perform clean rollback (either turn the instance to error state or delete the entry of the instance from the instances table). As the side effect of this, there is one instance added in BUILD state to the instances table, which never changes its state (and user cannot delete it).
Steps to reproduce:
1. Whatever quota for security groups on nova, create those many security groups under user's account on nova.
2. Now try to create a new instance through reddwarf API.
3. Instance creation will fail and API will return an error:
{"badRequest": {"message": "SecurityGroupL
4. Now try to list the instances. You will see a new instance added to your account which is in BUILD state.
The possibility of somebody running into this issues is very less, but if for some reason security groups don't get deleted on instance DELETE then this error will pop up or if use is using the same account for trove instances and nova instances then possibility of seeing this issue is higher.
Changed in reddwarf: | |
assignee: | nobody → Nikhil Manchanda (slicknik) |
Changed in trove: | |
assignee: | Nikhil Manchanda (slicknik) → nobody |
importance: | Undecided → Medium |
Changed in trove: | |
assignee: | nobody → Auston McReynolds (amcreynolds) |
summary: |
- Complete Rollback is not performed on failure Security Group to create - Security Group at the time of instance creation + Flip Instance to Failed if Security Group or Default Rule Creation Fail + During 'Instance Create' |
description: | updated |
Changed in trove: | |
status: | Incomplete → Fix Committed |
assignee: | Auston McReynolds (amcrn) → Denis M. (dmakogon) |
Changed in trove: | |
milestone: | none → icehouse-1 |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | icehouse-1 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/45141
Review: https:/