Commit Graph

14 Commits (53ba8903127f1fc891af3e0fda222179bb6965a7)

Author SHA1 Message Date
Michael DeHaan 422bba7b4c Merge pull request #4740 from retr0h/return-server-object-not-list
Need to compare on server object not list
11 years ago
Sheldon Hearn 5e7be2041e Fix description of nova_compute:name option
It's the name of the instance, not of an image.
11 years ago
John Dewey fdec31f200 Need to compare on server object not list
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'
11 years ago
bennojoy 118c59b385 nova compute fix regex in instance name 11 years ago
Charles Blonde 402320dd26 Fix wait_for default value to follow the documentation (documentation = 180, default value = 120) 11 years ago
Charles Blonde ec3b67c7ec Fix wait_for conversion between String to int 11 years ago
Michael Scherer ee6477a9b0 image_id is not required to delete a vm from openstack
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.
11 years ago
Michael Scherer 509d1c5381 Fix traceback when openstack do not have OS-EXT-IPS:type attached to address
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
11 years ago
Jan-Piet Mens 3404a0fc16 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
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
11 years ago
Michael DeHaan 38b5b0c241 Standarize docs 11 years ago
bennojoy 636f1ed794 bug fix nova_compute 11 years ago
Michael DeHaan 4105813ebe Lots of formatting fixes 11 years ago
Michael DeHaan 333577c944 Fix tabs and spaces in OpenStack modules. 11 years ago
bennojoy 2221c33b15 OpenStack Modules 11 years ago