Commit Graph

34 Commits (f4f20c7c2059124d90b785ad2973639011548518)

Author SHA1 Message Date
Darren Worrall ab7af801c1 Add alias 2016-12-08 11:33:09 -05:00
Darren Worrall d115960e03 Api tidy up 2016-12-08 11:33:09 -05:00
Darren Worrall eb27460d67 Rename param to ip_to_networks 2016-12-08 11:33:09 -05:00
Darren Worrall 0e1b2e5b3a Add iptonetwork parameter 2016-12-08 11:33:09 -05:00
Milamber 1760c6c670 Add an option to allow the resize of root disk when the instance is created. (need CloudStack 4.4 or +, cloud-initramfs-growroot installed on the template)
Signed-off-by: Milamber <milamber@apache.org>
2016-12-08 11:33:09 -05:00
Rene Moser 371e67d885 cloudstack: doc fixes 2016-12-08 11:33:08 -05:00
Rene Moser ab00c9aacc cloudstack: fix KeyError: 'public_ip' in cs_instance 2016-12-08 11:33:08 -05:00
Rene Moser 15b6ae8e5c cloudstack: cs_instance: fix display_name not used in deployment 2016-12-08 11:33:01 -05:00
Rene Moser 1f25377ce9 cloudstack: use get_or_fallback() from cloudstack utils 2016-12-08 11:33:01 -05:00
Rene Moser 7806d3d134 cloudstack: cs_instance: fix missing resource error in check mode if instance is not yet present 2016-12-08 11:32:59 -05:00
Rene Moser 1aa4d0c2dd cloudstack: update code to match best practice
* Remove catchall exception
* use `if __name__ == '__main__':`
2016-12-08 11:32:56 -05:00
Rene Moser 4020ebaecf cloudstack: fix state=expunged in cs_instance 2016-12-08 11:32:56 -05:00
Rene Moser cbfc5a3079 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.
2016-12-08 11:32:56 -05:00
Rene Moser 6fd10bed8f cloudstack: cleanup cs_instance use param key exlicitly for utils methods 2016-12-08 11:32:56 -05:00
Rene Moser da3db1bfda cloudstack: fix cs_instance can not find iso and disk offering if domain is set.
This does only affect root admins.
2016-12-08 11:32:56 -05:00
Rene Moser 03a6fc0c56 cloudstack: fix cs_instance hypervisor must be omitted if set on template/iso
Fix related to issue reported in PR GH-646
2016-12-08 11:32:54 -05:00
Rene Moser b1143abbcf cloudstack: make get_template_or_iso returning a dict for fix GH-646 2016-12-08 11:32:54 -05:00
Greg DeKoenigsberg c65a612d1f Changes to author formatting, remove emails 2016-12-08 11:32:51 -05:00
Rene Moser 3cded7d5af cloudstack: fix doc for cs_instance, force is defaulted to false 2016-12-08 11:32:44 -05:00
Rene Moser b30fda4906 cloudstack: add choices for api_http_method 2016-12-08 11:32:44 -05:00
Rene Moser 2ca6d151b2 cloudstack: add new param api_timeout 2016-12-08 11:32:44 -05:00
Rene Moser 7bfb24cae5 cloudstack: update doc in cs_instance 2016-12-08 11:32:44 -05:00
Rene Moser 64f9c9fc17 cloudstack: add instance_name alias internal name to returns in cs_instance 2016-12-08 11:32:44 -05:00
Rene Moser 62e062eb34 cs_instance: improve hypervisor argument and return 2016-12-08 11:32:44 -05:00
Rene Moser 30feb9d387 cloudstack: improve required params 2016-12-08 11:32:44 -05:00
Rene Moser 6d1873f330 cloudstack: add catch all exceptions and show a user friendly message
Also see GH-493.
2016-12-08 11:32:40 -05:00
Rene Moser e03827b490 cloudstack: replace old _id() with new generic style from utils 2016-12-08 11:32:40 -05:00
Rene Moser 9ff63f2338 cloudstack: remove self.result, is defined in super class from utils 2016-12-08 11:32:40 -05:00
Rene Moser 10379e19c4 cloudstack: avoid logging of secrets 2016-12-08 11:32:40 -05:00
Brian Coca c4f52f62f7 fix doc parsing by correctly quoting author 2016-12-08 11:32:39 -05:00
Greg DeKoenigsberg 4c2295577a Update cs_instance.py 2016-12-08 11:32:38 -05:00
Rene Moser 4d210048ee cloudstack: cs_instance: add domain and account 2016-12-08 11:32:37 -05:00
Rene Moser 89704a7e38 cloudstack: fix missing doc fragments 2016-12-08 11:32:35 -05:00
Rene Moser 5a2a5b16d5 cloudstack: add new module cs_instance
Manages instances and virtual machines
2016-12-08 11:32:35 -05:00