os_volume 404 error

126 views
Skip to first unread message

vallard

unread,
Sep 18, 2015, 9:51:24 AM9/18/15
to Ansible Project
Having the same problem with os_volume that I had with glance images where I get a 404 error.  

- Ansible 2.0 playbook: 

 - name: ensure there is a volume for storing data. 
    os_volume: 
      size: 40
      display_name: lab_volume
    register: vol 

Error message: 
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Error fetching volume list: Not Found (HTTP 404)"}

When I got an error like this with glance, I had to go in and modify some code in the shade library.  I made sure I put the shade library back to what it was before so it shouldn't be the issue here.  

My OpenStack (metacloud) uses v1 APIs of cinder.  

The other issue, somewhat related is using the security_groups found in 2.0.  Those don't work with my openstack environment either because they require neutron.  No neutron in my environment.  

David Shrewsbury

unread,
Sep 18, 2015, 1:23:23 PM9/18/15
to Ansible Project
Sorry you're having issues. Sounds like metacloud is doing something we don't expect with
their endpoints since you are having the same problem. This is difficult to debug without a
metacloud account.

Your solution to the image service problem was to add code to remove the "/v1". Does that
solution also fix the problem with the volume service?

As for security groups, in your clouds.yaml (which I assume you are using?), you will need
to set 'secgroup_source' to 'nova'. It defaults to using neutron.

-Dave

Vallard

unread,
Sep 18, 2015, 5:26:44 PM9/18/15
to ansible...@googlegroups.com
Ah, thanks for the info on the security group stuff.  I'll try that out.  I'm happy to let someone have a metacloud account to test things with.  

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/FwZthkNjlWA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b1f2f593-bf38-4979-809c-f3d3d33fa9c6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Chet Burgess

unread,
Sep 18, 2015, 8:15:21 PM9/18/15
to Ansible Project
We aren't doing anything special on our URLs at all. Attached is the output of a keystone catalog. I would appreciate any feedback you might have on any issues you see with the catalog.

As mentioned Vallard can provide access to a publicly available cloud for testing purposes. 

keystone catalog
Service: compute
+-------------+-------------------------------------------------------------------------------+
|   Property  |                                     Value                                     |
+-------------+-------------------------------------------------------------------------------+
|      id     |                        6a77b5c965ca4946b27923eaf24c95b9                       |
|    region   |                                   RegionOne                                   |
+-------------+-------------------------------------------------------------------------------+
Service: network
+-------------+--------------------------------------------+
|   Property  |                   Value                    |
+-------------+--------------------------------------------+
|   adminURL  |   http://api.pas1.mc.metacloud.in:9696/    |
|      id     |      1d385c6022794f96a1ba6157cb9eef14      |
| internalURL |   http://api.pas1.mc.metacloud.in:9696/    |
|    region   |                 RegionOne                  |
+-------------+--------------------------------------------+
Service: image
+-------------+----------------------------------------------+
|   Property  |                    Value                     |
+-------------+----------------------------------------------+
|   adminURL  |   http://api.pas1.mc.metacloud.in:9292/v1    |
|      id     |       1d48f715c13f4e82a800e2c4ea494e0e       |
| internalURL |   http://api.pas1.mc.metacloud.in:9292/v1    |
|    region   |                  RegionOne                   |
+-------------+----------------------------------------------+
Service: cloudformation
+-------------+----------------------------------------------+
|   Property  |                    Value                     |
+-------------+----------------------------------------------+
|   adminURL  |   http://api.pas1.mc.metacloud.in:8000/v1    |
|      id     |       3fa6cf8aec2f42da82fc2446ecb104af       |
| internalURL |   http://api.pas1.mc.metacloud.in:8000/v1    |
|    region   |                  RegionOne                   |
+-------------+----------------------------------------------+
Service: volume
+-------------+-------------------------------------------------------------------------------+
|   Property  |                                     Value                                     |
+-------------+-------------------------------------------------------------------------------+
|      id     |                        681c56f6fdaf40c5bd4a52b8ba96e9e6                       |
|    region   |                                   RegionOne                                   |
+-------------+-------------------------------------------------------------------------------+
Service: ec2
+-------------+----------------------------------------------------------+
|   Property  |                          Value                           |
+-------------+----------------------------------------------------------+
|      id     |             558e6603fceb4f26ac288848618a038d             |
|    region   |                        RegionOne                         |
+-------------+----------------------------------------------------------+
Service: orchestration
+-------------+-------------------------------------------------------------------------------+
|   Property  |                                     Value                                     |
+-------------+-------------------------------------------------------------------------------+
|      id     |                        49a52cafaeec44d89a7402f5b6a98ccb                       |
|    region   |                                   RegionOne                                   |
+-------------+-------------------------------------------------------------------------------+
Service: identity
+-------------+-------------------------------------------------+
|   Property  |                      Value                      |
+-------------+-------------------------------------------------+
|      id     |         a59037f24c4b4755bf0528c1a7ea6549        |
| internalURL |    http://api.pas1.mc.metacloud.in:5000/v2.0    |
|    region   |                    RegionOne                    |
+-------------+-------------------------------------------------+

David Shrewsbury

unread,
Sep 20, 2015, 7:32:22 PM9/20/15
to Ansible Project
Accounts would be most helpful and appreciated. Myself and Monty Taylor do most of the Ansible and
shade development, so if we could both get access, that would go a long way to improving the modules
for you. Please email me off-list to let me know what you need from us to make that happen.

-Dave

Monty Taylor

unread,
Sep 20, 2015, 7:54:40 PM9/20/15
to Ansible Project
Everything Shrews says is correct - I would love an account - and we can add a metacloud profile to os-client-config too. I'm sure you're not doing anything too crazy - it turns out that the number of ways all this can combine are large - we have all sorts of logic already to handle "normal" behavior. I'm sure we'll just find another nugger of normal :)

Vallard

unread,
Sep 20, 2015, 10:56:13 PM9/20/15
to ansible...@googlegroups.com
Thanks. I'll set it up tomorrow and email you both off list. 


David Shrewsbury

unread,
Sep 28, 2015, 1:07:55 PM9/28/15
to Ansible Project
So, good news and good-ish news...

The glance 404 problem you were experiencing should be fixed in shade.
I have tested this against your cloud. We haven't released a new version
with the fix yet, but you can pull in the latest code from the source repo
(https://github.com/openstack-infra/shade) and give that a test, if you like.

Since the default image API version is 2, you should set
image_api_version to 1 in your clouds.yaml file, or set the environment
variable OS_IMAGE_API_VERSION to 1, if you aren't using a clouds.yaml.

As for the volume 404 problem, I cannot reproduce that with the latest
released version of shade, which is 0.14.0, against your cloud. Can you
try upgrading shade and testing that again?

-Dave
Reply all
Reply to author
Forward
0 new messages