Status: Accepted
Owner: ----
Labels: Milestone-Release2.10 Type-Defect Priority-Medium
New issue 783 by [email protected]: 2.10 does not prompt for cfgupgrade
http://code.google.com/p/ganeti/issues/detail?id=783
What steps will reproduce the problem?
1. Upgrade a cluster from 2.9 to 2.10
2. Try starting masterd
3. Masterd fails but does not inform the user that a configuration upgrade
is
necessary.
What is the expected output? What do you see instead?
The usual error message is:
The current Ganeti softare expect version %s, but the on-disk configuration
file has version %s. [...]".
What actually appears during an upgrade to 2.10 is:
Configuration error while opening the configuration file: Object Disk
doesn't
support the parameter 'physical_id' This might be caused by an incomplete
software upgrade or by a corrupted configuration file. Until the problem is
fixed the master daemon cannot start.
This seems to come from CheckMasterd(), where opening the config raises a
ConfigurationError instead of a ConfigVersionMismatch. The problem arises
from
the fact that calling ConfigData.FromDict() in ConfigWriter._OpenConfig()
fails
(even before ConfigWriter._UpgradeConfig() has a chance to run) because the
Disk objects have no "physical_id" slot. A suggested fix would be to either
keep the slot in the class (but not use it), or remove the field from the
config after serializer.Load() but before objects.ConfigData.FromDict().
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings