Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Heat doesn't see glance images

Hi. I have installed in one node openstack with packstack, I have changed only passwords and IPs, so I didn't have Heat. Then I have installed Heat using that install guide but for v2 api, so I ommited domain values, etc. I think it should work.

Now I try to deploy VM with Heat, but I get an error that I can't found fix for that error.

That is piece of my template file my_stack.yaml

parameters:
  flavor:
    type: string
    description: Flavor for the instances to be created.
    default: m1.tiny
    constraints:
      - custom_constraint: nova.flavor
        description: Must be a flavor known to Nova.
  image:
    type: string
    description: Name or ID of the image to user for the instances.
    default: cirros
    constraints:
      - custom_constraint: glance.image
        description: Must identify an image known to Glance.
resources:
  server:
    type: OS::Nova::Server
    properties:
      flavor: { get_param: flavor }
      image: { get_param: image }

After calling:

openstack stack create -t ./my_stack.yaml my_stack

I get an error:

ERROR: Property error: : resources.server.properties.image: : "cirros" does not validate glance.image (constraint not found)

If I comment constraints for image, then in server resource i get the same error.

I have tried with image ID, with other images, I can't find solution for that. I didn't edit heat.conf file. I am using admin credentials. I gave here also flavor for nova, because Heat sees that properly. I am using v2 API for login (OS_AUTH_URL=.../v2.0).

Here some output:

# heat-api --version
7.0.1
# heat-api-cfn --version
7.0.1
# heat-engine --version
7.0.1
# heat --version
1.5.0
# glance-api --version
13.0.0
# glance-registry --version
13.0.0
# glance --version
2.6.0
# glance image-show 04c8bc65-7d00-4af9-bb1a-e74c44382685
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | ee1eca47dc88f4879d8a229cc70a07c6     |
| container_format | bare                                 |
| created_at       | 2016-11-25T00:23:15Z                 |
| disk_format      | raw                                  |
| id               | 04c8bc65-7d00-4af9-bb1a-e74c44382685 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | cirros                               |
| owner            | 767bcfa93f374177bd3290ce08d90afd     |
| protected        | False                                |
| size             | 13287936                             |
| status           | active                               |
| tags             | []                                   |
| updated_at       | 2017-01-28T01:28:11Z                 |
| virtual_size     | None                                 |
| visibility       | public                               |
+------------------+--------------------------------------+

Heat doesn't see glance images

Hi. I have installed in one node openstack with packstack, I have changed only passwords and IPs, so I didn't have Heat. Then I have installed Heat using that install guide but for v2 api, so I ommited domain values, etc. I think it should work.

Now I try to deploy VM with Heat, but I get an error that I can't found fix for that error.

That is piece of my template file my_stack.yaml

parameters:
  flavor:
    type: string
    description: Flavor for the instances to be created.
    default: m1.tiny
    constraints:
      - custom_constraint: nova.flavor
        description: Must be a flavor known to Nova.
  image:
    type: string
    description: Name or ID of the image to user for the instances.
    default: cirros
    constraints:
      - custom_constraint: glance.image
        description: Must identify an image known to Glance.
resources:
  server:
    type: OS::Nova::Server
    properties:
      flavor: { get_param: flavor }
      image: { get_param: image }

After calling:

openstack stack create -t ./my_stack.yaml my_stack

I get an error:

ERROR: Property error: : resources.server.properties.image: : "cirros" does not validate glance.image (constraint not found)

If I comment constraints for image, then in server resource i get the same error.

I have tried with image ID, with other images, I can't find solution for that. I didn't edit heat.conf file. I am using admin credentials. I gave here also flavor for nova, because Heat sees that properly. I am using v2 API for login (OS_AUTH_URL=.../v2.0).

Here some output:

# heat-api --version
7.0.1
# heat-api-cfn --version
7.0.1
# heat-engine --version
7.0.1
# heat --version
1.5.0
# glance-api --version
13.0.0
# glance-registry --version
13.0.0
# glance --version
2.6.0
# glance image-show 04c8bc65-7d00-4af9-bb1a-e74c44382685
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | ee1eca47dc88f4879d8a229cc70a07c6     |
| container_format | bare                                 |
| created_at       | 2016-11-25T00:23:15Z                 |
| disk_format      | raw                                  |
| id               | 04c8bc65-7d00-4af9-bb1a-e74c44382685 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | cirros                               |
| owner            | 767bcfa93f374177bd3290ce08d90afd     |
| protected        | False                                |
| size             | 13287936                             |
| status           | active                               |
| tags             | []                                   |
| updated_at       | 2017-01-28T01:28:11Z                 |
| virtual_size     | None                                 |
| visibility       | public                               |
+------------------+--------------------------------------+