Migration of BMC power credentials fails with manual driver
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Adam Collard | ||
3.3 |
Fix Released
|
Critical
|
Unassigned |
Bug Description
$ bin/database --preserve run -- bin/maas-region dbupgrade
Operations to perform:
Apply all migrations: auth, contenttypes, maasserver, metadataserver, piston3, sessions, sites
Running migrations:
Applying maasserver.
Applying maasserver.
Applying maasserver.
File "/home/
sys.
File "/home/
run_
File "/home/
management.
File "/usr/lib/
utility.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
output = self.handle(*args, **options)
File "/home/
call_command(
File "/usr/lib/
return command.
File "/usr/lib/
output = self.handle(*args, **options)
File "/usr/lib/
res = handle_func(*args, **kwargs)
File "/usr/lib/
post_
File "/usr/lib/
state = self._migrate_
File "/usr/lib/
state = self.apply_
File "/usr/lib/
state = migration.
File "/usr/lib/
operation.
File "/usr/lib/
self.
File "/home/
for name, value in power_parameter
AttributeError: 'str' object has no attribute 'items'
By adding a pdb, we can see
> /home/ubuntu/
-> for name, value in power_parameter
(Pdb) power_parameters
''
(Pdb) bmc_id
6
(Pdb) power_type
'manual'
(Pdb) bmc_id
6
that for manual power driver, power_parameters is an empty string, and cannot be iterated over
Related branches
- Adam Collard (community): Approve
-
Diff: 15 lines (+3/-1)1 file modifiedsrc/maasserver/migrations/maasserver/0290_migrate_node_power_parameters.py (+3/-1)
- MAAS Lander: Approve
- Jack Lloyd-Walters: Approve
-
Diff: 15 lines (+3/-1)1 file modifiedsrc/maasserver/migrations/maasserver/0290_migrate_node_power_parameters.py (+3/-1)
Changed in maas: | |
milestone: | none → 3.4.0 |
Changed in maas: | |
status: | New → In Progress |
assignee: | nobody → Adam Collard (adam-collard) |
importance: | Undecided → Critical |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |