I've successfully launched servers with os_server as of today, with the
latest version of shade, so I don't think the module is completely broken.
I do see that a 404 is being returned in your error, which is a "page not
found" status code (https://en.wikipedia.org/wiki/HTTP_404). My guess is
that you're getting the initial token after keystone authentication, but a
subsequent request is failing. Since you don't have access to the
openstack infrastructure to debug, I'd recommend using tcpdump and taking a
look at what request is causing the 404.
- James
On Wednesday, September 2, 2015 at 12:14:08 PM UTC-5, V Benincosa wrote:
>
> Hi!
> Checking out the 2.0 release and having some problems launching machine.
> When I run:
>
> ansible-playbook lab-machines.yml
>
> - name: Ensure lab machines are up
> connection: local
> hosts: localhost
> vars_files:
> - vars/metacloud_vars.yml
>
> tasks:
> - name: Ensure lab machines are up
> os_server:
> state: present
> # auth:
> # auth_url: "{{ lookup('env', 'OS_AUTH_URL') }}"
> # username: "{{ lookup('env', 'OS_USERNAME') }}"
> # password: "{{ lookup('env', 'OS_PASSWORD') }}"
> # project_name: "{{ lookup('env', 'OS_TENANT_NAME') }}"
> name: "{{ item }}"
> key_name: "{{ keypair }}"
> flavor: "{{ m1large }}"
> floating_ip_pools:
> - "{{ floating_ip_pool }}"
> security_groups: "{{ security_group }}"
> userdata: "{{ lookup('file', 'files/coreos-python.sh') }}"
> image: CoreOS723
> with_items:
> - lab01
> I get the error:
>
> failed: [localhost] => (item=lab01) => {"extra_data": null, "failed":
> true, "item": "lab01", "msg": "Error fetching image list: 404 Not Found:
> The resource could not be found. (HTTP 404)"}
>
> So you're probably thinking: I don't have that image named CoreOS723
> defined. I tried nova image-list and that shows the image:
>
> $ nova image-show CoreOS723
> +-----------------------+--------------------------------------+
> | Property | Value |
> +-----------------------+--------------------------------------+
> | OS-EXT-IMG-SIZE:size | 493813760 |
> | created | 2015-08-11T23:46:41Z |
> | id | c762b1d5-5177-421f-8870-aa77b7fe03a2 |
> | metadata architecture | x86_64 |
> | metadata description | CoreOS 723 |
> | minDisk | 6 |
> | minRam | 1000 |
> | name | CoreOS723 |
> | progress | 100 |
> | status | ACTIVE |
> | updated | 2015-08-11T23:50:12Z |
> +-----------------------+--------------------------------------+
>
> But then I noticed that glance image-list does not:
> glance image-list
> +----+------+
> | ID | Name |
> +----+------+
> +----+------+
>
> This worked with the older nova commands before but seems to not work with
> os_compute now. I'm doing this on Cisco's MetaCloud so I don't have
> operator permissions to change things. I'm using python-glanceclient 1.0.0
>
> Thanks for any pointers.
>
--
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/6b47fe88-0512-4d7e-936a-202d4cb228e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.