Stale aggregate metadata remains in the database
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Joe Gordon |
Bug Description
By removing an aggregate, the associated metadata remains in the database, and upon re-creation of the same aggregate, the old metadata is returned from the previously deleted aggregate.
If you have an aggregate with some metadata:
stack@DevStackO
+----+-
| Id | Name | Availability Zone | Hosts |
+----+-
| 1 | my_livemigrate_pool | nova | [] |
+----+-
...----
Metadata
...----
{u'master_
...----
And you remove that aggregate:
stack@DevStackO
Aggregate 1 has been successfully deleted.
And re-create with the same name:
stack@DevStackO
+----+-
| Id | Name | Availability Zone | Hosts | Metadata |
+----+-
| 1 | my_livemigrate_pool | nova | | |
+----+-
It is saying, that metadata is empty,
Whereas querying the details shows that the metadata persists:
stack@DevStackO
+----+-
| Id | Name | Availability Zone | Hosts |
+----+-
| 1 | my_livemigrate_pool | nova | [] |
+----+-
...----
Metadata
...----
{u'master_
...----
Changed in nova: | |
status: | New → Confirmed |
assignee: | nobody → Joe Gordon (joe-gordon0) |
tags: | added: folsom-rc-potential |
Changed in nova: | |
milestone: | none → folsom-rc1 |
importance: | Undecided → High |
Changed in nova: | |
assignee: | Joe Gordon (joe-gordon0) → Vish Ishaya (vishvananda) |
Changed in nova: | |
assignee: | Vish Ishaya (vishvananda) → Joe Gordon (joe-gordon0) |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
This is caused by two things:
1) when adding an aggregate that has the same name as a deleted one. The deleted aggregate is undeleted.
2) When deleting an aggregate, only the Aggregate table row is marked as deleted and not the AggregateMetadata and AggregateHost rows.