Commit graph

27 commits

Author SHA1 Message Date
Rene Moser
8e6e9c782b cloudstack: use get_or_fallback() from cloudstack utils 2015-07-19 15:09:49 +02:00
Rene Moser
1ccb21bd18 cloudstack: cs_instance: fix missing resource error in check mode if instance is not yet present 2015-07-10 17:36:20 +02:00
Rene Moser
db33fcf89a cloudstack: update code to match best practice
* Remove catchall exception
* use `if __name__ == '__main__':`
2015-06-28 12:52:05 +02:00
Rene Moser
94060b5ade cloudstack: fix state=expunged in cs_instance 2015-06-27 11:48:54 +02:00
Rene Moser
5b86a15cdb cloudstack: cs_instance do not pass zoneid to listVirtualMachines
This change is related to 2 issues;

- The API does not return destroyed VMs if zone ID is passed for CS version < 4.5.2. Also see CLOUDSTACK-8578. This only affects domain and root admins.
- The instance name must be unique across all zones. If we pass the zone ID to find  a VM, it will not be found if it is in a different zone but a deployment with the name would fail.
2015-06-27 11:48:54 +02:00
Rene Moser
c8d6d68428 cloudstack: cleanup cs_instance use param key exlicitly for utils methods 2015-06-27 11:48:54 +02:00
Rene Moser
b031e818b1 cloudstack: fix cs_instance can not find iso and disk offering if domain is set.
This does only affect root admins.
2015-06-27 11:47:49 +02:00
Rene Moser
b1e6d6ba52 cloudstack: fix cs_instance hypervisor must be omitted if set on template/iso
Fix related to issue reported in PR GH-646
2015-06-26 14:52:31 +02:00
Rene Moser
60b5ae35b3 cloudstack: make get_template_or_iso returning a dict for fix GH-646 2015-06-26 14:23:35 +02:00
Greg DeKoenigsberg
004dedba8a Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
Rene Moser
421b3ff24e cloudstack: fix doc for cs_instance, force is defaulted to false 2015-06-16 11:33:12 -04:00
Rene Moser
53130de662 cloudstack: add choices for api_http_method 2015-06-16 11:33:12 -04:00
Rene Moser
eb66f683f5 cloudstack: add new param api_timeout 2015-06-16 11:33:12 -04:00
Rene Moser
e143689d9c cloudstack: update doc in cs_instance 2015-06-16 11:33:12 -04:00
Rene Moser
a13a26aa2a cloudstack: add instance_name alias internal name to returns in cs_instance 2015-06-16 11:33:12 -04:00
Rene Moser
7442db3f41 cs_instance: improve hypervisor argument and return 2015-06-16 11:33:12 -04:00
Rene Moser
93a1542cc1 cloudstack: improve required params 2015-06-16 11:33:12 -04:00
Rene Moser
0f884ead40 cloudstack: add catch all exceptions and show a user friendly message
Also see GH-493.
2015-05-16 11:55:35 +02:00
Rene Moser
2b7a40a46a cloudstack: replace old _id() with new generic style from utils 2015-05-16 11:55:35 +02:00
Rene Moser
7705d1bb50 cloudstack: remove self.result, is defined in super class from utils 2015-05-16 11:55:35 +02:00
Rene Moser
9f41d78346 cloudstack: avoid logging of secrets 2015-05-16 11:55:35 +02:00
Brian Coca
bceeba224f fix doc parsing by correctly quoting author 2015-05-14 09:19:24 -04:00
Greg DeKoenigsberg
219d261614 Update cs_instance.py 2015-05-13 14:10:36 -04:00
Rene Moser
c5514e0618 cloudstack: cs_instance: add domain and account 2015-05-12 23:45:56 +02:00
Rene Moser
dfa9037091 cloudstack: fix missing doc fragments 2015-05-05 15:57:54 +02:00
Toshio Kuratomi
28b0f3ce13 Fix documentation formatting 2015-05-04 13:24:21 -07:00
Rene Moser
0b18bdc57f cloudstack: add new module cs_instance
Manages instances and virtual machines
2015-05-03 12:06:11 +02:00