- 08 Aug, 2014 1 commit
-
-
Michael DeHaan committed
-
- 05 Aug, 2014 2 commits
-
-
Taking a page out of the ec2 config, make sure that all of the OpenStack modules handle the inbound auth config in the same way. The one outlier is keystone wrt auth_url.
Monty Taylor committed -
The OpenStack client utilities consume a set of input environment variables for things like username and auth_url, so it's very common for OpenStack users to have such settings set in their environment. Indeed, things like devstack also output a shell file to be sourced to set them. Although in a playbook it's entirely expected that variables should be used to pass in system settings like api passwords, for ad-hoc command line usage, needing to pass in five parameters which are almost certainly in the environment already reduces the utility. Grab the environment variables and inject them as default. Special care is taken to ensure that in the case where the values are not found, the behavior of which parameters are required is not altered.
Monty Taylor committed
-
- 03 Aug, 2014 16 commits
-
-
jeblair says: "having 'flavor_filter' be inclusive, and 'image_filter' be exclusive is kind of mind blowing" and I agree. Let's be more explicit.
Monty Taylor committed -
Config drive can be enabled on nova by passing config_drive=True. That's a pretty easy feature to support.
Monty Taylor committed -
The provisioning module knows more about how nova deals with IP addresses now. Ensure that the inventory module is similarly as smart by separating out the logic into the openstack/module_utils.
Monty Taylor committed -
During the state check, check IP address information. This gets us two things. The most obvious is that for direct IP management, a change to the config will reflect in the config of the instance. But also, if we succeed in creating the instance but fail in adding an IP, this should let us re-run and arrive in the state we were expecting.
Monty Taylor committed -
Added version_added tags as well as a few more examples.
Monty Taylor committed -
The fun part about having multiple vendors providing the same cloud is that while their APIs are the same, what they do with their metadata tends to be ... fun. So in order to be able to express sanely what you want without needing to stick tons of unreadable uuids in your config, it turns out what sometimes you need to further filter image and flavor names. Specific examples are (deprecated) images in HP Cloud and the Standard and Performance flavors on Rackspace.
Monty Taylor committed -
Putting uuid and numberic identifies in playbooks is fragile, especially with cloud providers who change them out from under you. Asking for Ubuntu 14.04 is consistent, the UUID associated with that is not. Add mutually exclusive parameters to allow for specifying images by name and flavors by RAM amount.
Monty Taylor committed -
ansible knows how to deal with mutually exclusive parameters, so instead of coding that ourselves, use it.
Monty Taylor committed -
Taking a page out of the ec2 config, make sure that all of the OpenStack modules handle the inbound auth config in the same way. The one outlier is keystone wrt auth_url.
Monty Taylor committed -
The OpenStack client utilities consume a set of input environment variables for things like username and auth_url, so it's very common for OpenStack users to have such settings set in their environment. Indeed, things like devstack also output a shell file to be sourced to set them. Although in a playbook it's entirely expected that variables should be used to pass in system settings like api passwords, for ad-hoc command line usage, needing to pass in five parameters which are almost certainly in the environment already reduces the utility. Grab the environment variables and inject them as default. Special care is taken to ensure that in the case where the values are not found, the behavior of which parameters are required is not altered.
Monty Taylor committed -
There is a potential leak of resources if there is somehow a failure adding a floating ip to a server. Clean up after ourselves.
Monty Taylor committed -
The floating-ip extension, while pretty ubiquitous, is not a foregone conclusion. Specifically, Rackspace, while also served by the rax module, is a valid OpenStack cloud and can be interacted with directly via nova interfaces. Add support for determining public and private IPs for OpenStack clouds that don't use floating ips by reading the public and private keys from the addresses dict.
Monty Taylor committed -
If a cloud has availability zone support, it's possible to specify an availability zone via the nova client. Add that as a config param.
Monty Taylor committed -
If the region name is specified in the config, we need to pass it in to the nova client constructor. Since key_name is similarly optional, go ahead and handle both parameters the same.
Monty Taylor committed -
The desires around getting a floating ip associated with a pool and getting a floating ip not associated with a pool is just different enough that following it as one set of nested ifs is tricky. Split the function into two, one for the pool and one for the non-pool logic.
Monty Taylor committed -
CaptTofu committed
-
- 02 Apr, 2014 1 commit
-
-
CaptTofu committed
-
- 20 Mar, 2014 1 commit
-
-
Signed-off-by: Oleg Bulatov <oleg@bulatov.me>
Oleg Bulatov committed
-
- 11 Mar, 2014 1 commit
-
-
Per note in GH-5916.
Richard C Isaacson committed
-
- 10 Mar, 2014 1 commit
-
-
failed: [127.0.0.1] => {"failed": true, "parsed": false} invalid output was: Traceback (most recent call last): File "/tmp/ansible-tmp-1393950384.39-102240090845592/nova_compute", line 1328, in <module> main() File "/tmp/ansible-tmp-1393950384.39-102240090845592/nova_compute", line 241, in main except exc.Unauthorized, e: NameError: global name 'exc' is not defined
Michael Scherer committed
-
- 04 Mar, 2014 1 commit
-
-
failed: [127.0.0.1] => {"failed": true, "parsed": false} invalid output was: Traceback (most recent call last): File "/tmp/ansible-tmp-1393950384.39-102240090845592/nova_compute", line 1328, in <module> main() File "/tmp/ansible-tmp-1393950384.39-102240090845592/nova_compute", line 241, in main except exc.Unauthorized, e: NameError: global name 'exc' is not defined
Michael Scherer committed
-
- 03 Mar, 2014 1 commit
-
-
Joshua Conner committed
-
- 01 Mar, 2014 1 commit
-
-
When there is an Openstack instance that has a name that's a partial match for module.params['name'], but a server with name module.params['name'] doesn't yet exist, this module would fail with a list index out of bounds error. This fixes that by filtering by exact name and only then getting the server from the list if the list is still not empty.
Joshua Conner committed
-
- 08 Feb, 2014 1 commit
-
-
Added user_data parameter to nova_compute module - currently no file parsing just text - Re issue #4992
Matt Saunders committed
-
- 03 Feb, 2014 1 commit
-
-
Timur Batyrshin committed
-
- 29 Jan, 2014 1 commit
-
-
Michael DeHaan committed
-
- 02 Dec, 2013 1 commit
-
-
James Tanner committed
-
- 23 Nov, 2013 1 commit
-
-
Need to call nova.authenticate() to validate credentials.
John Dewey committed
-
- 18 Nov, 2013 1 commit
-
-
raise errors when omitted, updated changelog with new modules.
Michael DeHaan committed
-
- 31 Oct, 2013 2 commits
-
-
It's the name of the instance, not of an image.
Sheldon Hearn committed -
TASK: [create test controller 0] ********************************************** failed: [127.0.0.1] => {"failed": true, "parsed": false} invalid output was: Traceback (most recent call last): File "/Users/jdewey/.ansible/tmp/ansible-1383197329.62-262790004573235/nova_compute", line 1203, in <module> main() File "/Users/jdewey/.ansible/tmp/ansible-1383197329.62-262790004573235/nova_compute", line 261, in main _get_server_state(module, nova) File "/Users/jdewey/.ansible/tmp/ansible-1383197329.62-262790004573235/nova_compute", line 197, in _get_server_state if server.status != 'ACTIVE': AttributeError: 'list' object has no attribute 'status'
John Dewey committed
-
- 10 Oct, 2013 1 commit
-
-
bennojoy committed
-
- 08 Sep, 2013 2 commits
-
-
Charles Blonde committed
-
Charles Blonde committed
-
- 17 Aug, 2013 1 commit
-
-
Since deletion do not check the type of image or anything, and since that's tedious to keep track of the image_id and just adding noise to add image_id for nothing, this commit just relax the requirement.
Michael Scherer committed
-
- 09 Aug, 2013 1 commit
-
-
failed: [127.0.0.1] => {"failed": true, "parsed": false} invalid output was: Traceback (most recent call last): File "/tmp/ansible-1376083321.99-111209413777779/nova_compute", line 1176, in <module> main() File "/tmp/ansible-1376083321.99-111209413777779/nova_compute", line 239, in main _get_server_state(module, nova) File "/tmp/ansible-1376083321.99-111209413777779/nova_compute", line 198, in _get_server_state private = [ x['addr'] for x in getattr(server, 'addresses').itervalues().next() if x['OS-EXT-IPS:type'] == 'fixed'] KeyError: 'OS-EXT-IPS:type' This extension was added less than 6 month ago, and so cannot be used on a release older than Grizzly ( like Folsom ). Commit of the extension : https://review.openstack.org/#/c/21453/ See https://wiki.openstack.org/wiki/ReleaseNotes/Grizzly#Key_New_Features_2
Michael Scherer committed
-
- 15 Jun, 2013 1 commit
-
-
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string Added deprecation warning to moduledev.rst and remove deprecated example from it Fixed up a few typos and uppercased some acronyms. add consistency to how EXAMPLES are formatted
Jan-Piet Mens committed
-