Sorry for your troubles. The problem is almost certianly in the v1/v2 
version detection. I think we can do better for you here. However, in the 
mean time - would you mind trying something to test a hypothesis?

Make a ~/.config/openstack/clouds.yaml with:

clouds:
  metacloud:
    auth:
      username: your-user
      password: your-password
      project_name: your-project-name
      auth_url: your-auth-url
    image_api_version: '1'

And then put "cloud: metacloud" in your playbook and see if it works?

Figuring out v1 vs. v2 in glance is _hard_ and complex and very prone to 
breaking, which is why it's one of the tings we put in known-cloud profiles 
in os-client-config.

Now - if that works, awesome. It still sucks as a user experience for you - 
so I think we need to make sure we can plumb api version overrides through 
sanely in playbooks. Also - I'm going to go poke the metacloud folks about 
getting me a metacloud so that I can add a metacloud profile to occ.

Also - I'll see if I can reproduce and find another workaround/detection in 
case all of the above don't work.

  

On Friday, September 4, 2015 at 12:10:39 PM UTC-4, V Benincosa wrote:
>
> I've done some more debugging on this and it looks like shade is putting 
> an extra v1 in the URL so it looks like: 
>
> http://some.client.metacloud.net:9292/v1/v1/images/detail?limit=20
>
> I ended up changing the glanceclient/v1/images.py by removing all the v1s. 
>  This solved the ansible problem, but now the command line doesn't work 
> even though ansible does (e.g: glance image-list doesn't work).  I'll start 
> digging into the shade implementation to see where this extra v1 is being 
> added.  Would love any help.  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b8dfacbf-970a-4ddd-8a0f-9f17dbd70b02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to