Default value of the Cluster.replaced_deployment_info field was changed without appropriate migration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Critical
|
Georgy Kibardin | ||
Mitaka |
Fix Released
|
Critical
|
Georgy Kibardin |
Bug Description
The default value of the Cluster.
Steps to reproduce:
1. Create environment using the 8.0 release
2. Upgrade master node to the 9.0 release (involve applying of migration scripts to synchronize the database to 9.0)
3. Try to get a list of environments using the fuel client:
fuel environment
Expected results:
A list of existing environments will be printed.
Actual result:
This command fails with the error:
500 Server Error: Internal Server Error for url: http://
The traceback from /var/log/
2016-04-08 19:01:49.225 ERROR [7f2b8f602880] (base) Unexpected exception occured
Traceback (most recent call last):
File "/usr/lib/
resp = func(cls, *args, **kwargs)
File "/usr/lib/
return self.collection
File "/usr/lib/
File "/usr/lib/
File "/usr/lib64/
File "/usr/lib64/
File "/usr/lib64/
rows = [proc(row) for row in fetch]
File "/usr/lib64/
File "/usr/lib64/
fn(*args, **kw)
File "/usr/lib64/
val = cls.coerce(key, val)
File "/usr/lib/
return MutableBase.
File "/usr/lib64/
raise ValueError(msg % (key, type(value)))
ValueError: Attribute 'replaced_
Reproducibility:
This bug reproduces constantly if there is at least one environment that was created in the previous releases (<9.0) without the replaced deployment information.
Workaround:
Database entries can be fixed by the next SQL command:
UPDATE clusters SET replaced_
Impact:
This bug is a blocker for the upgrade procedure of the master node from 8.0 to 9.0.
Links:
[1] The default value was changed to '[]' and the type was changed to MutableList in the next change request: https:/
[2] This change was made as a part of this bug: https:/
description: | updated |
description: | updated |
Changed in fuel: | |
importance: | Undecided → Critical |
status: | New → Confirmed |
milestone: | none → 9.0 |
assignee: | nobody → Fuel Python Team (fuel-python) |
tags: | added: area-python feature-upgrader |
tags: |
added: feature-upgrade removed: feature-upgrader |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Georgy Kibardin (gkibardin) |
milestone: | 9.0 → 10.0 |
tags: | added: on-verification |
tags: | removed: on-verification |
tags: | added: dev-to-verify |
Fix proposed to branch: master /review. openstack. org/305004
Review: https:/