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>Reviewed-by: Jose A. Lopes <jabolopes@google.com>
Get instance's nodes from config
Use 'GetInstanceNodes' to get the nodes of an instance, instead of the'all_nodes' Instance property.
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.
Signed-off-by: Ilias Tsitsimpis <iliastsi@grnet.gr>...
Change TestInstance in objects unittest
Now that 'all_nodes' and 'secondary_nodes' of an instance are computedfrom the 'config' module, move the corresponding tests from'objects_unittest' to 'config_unittest'.
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'...
Add timestamp/serial_no slot to disk objects
Now that disks are top level citizens in config,they need a timestamp and a serial_no slot.
Add disks entry to config.data
Add disks entry to config.data.
Add systemd unittests
Test the consistency between daemon-util and the systemd unit files:
- Each service started/stopped by daemon-util must have a respective unit file. - The daemon user/group in the service file must be the same as the one reported by daemon-util....
Merge branch 'stable-2.11' into stable-2.12
Signed-off-by: Klaus Aehlig <aehlig@google.com>Reviewed-by: Hrvoje Ribicic <riba@google.com>
Avoid assertIn
...as it is only present in python version 2.7 and higher.
Signed-off-by: Klaus Aehlig <aehlig@google.com>Reviewed-by: Petr Pudlak <pudlak@google.com>
View revisions
Also available in: Atom