Add 'disks_info' Instance slot
Instance's 'disks' slot will contain a list of disk uuids. Create a newslot named 'disks_info' which will be annotated with the disk objects'during the rpc.
Signed-off-by: Ilias Tsitsimpis <iliastsi@grnet.gr>
Fix '_create_instance' in config_unittest
Previously '_create_instance' would initialize the config object everytime it would be called. This causes '_WriteConfig' to fail withConfigurationError: The configuration file has been modified since thelast write. Fix this by passing the config object to '_create_instance'...
Change TestInstance in objects unittest
Now that 'all_nodes' and 'secondary_nodes' of an instnace is computedfrom the 'config' module, move the corresponding tests from'objects_unittest' to 'config_unittest'.
Get instance secondary nodes from config
Use 'GetInstanceSecondaryNodes' to get the secondary nodes of aninstance, instead of the 'secondary_nodes'.Annotate 'secondary_nodes' in rpc so that backend has access to it.
Get instance's nodes from config
Use 'GetInstanceNodes' to get the nodes of an instance, instead of the'all_nodes' Instance property.
Add disks entry to config.data
Add 'instance' slot to Disk object
This slot will contain the uuid of the instance thata disk is attached to.
Add '-c | --instance-communication' flag to instance modify
Make the lock allocation part of WConfD's state
As WConfD is supposed to be the authoritative source forconfiguration and locks, it needs to have access to the lockstate as well.
Signed-off-by: Klaus Aehlig <aehlig@google.com>Reviewed-by: Petr Pudlak <pudlak@google.com>
Verify atomicity of lock updates
Add a test verifying the atomicity of an update, i.e., if an updatesucceeds, then all requests must be satisfied in the final state, andif it fails, the state must be unchanged.
Signed-off-by: Klaus Aehlig <aehlig@google.com>...
View revisions
Also available in: Atom