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/e3bc0f19-6f91-44a4-82f0-4a3bd659e99f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to