heat stack get failed (ERROR: Failed to validate: Failed to validate: Neither image nor bootable )
Hi All,
Thanks in advance. I have create the stack environment and try to boot it with using the following files and it is getting failed with the error
ERROR: Failed to validate: Failed to validate: Neither image nor bootable volume is specified for instance server1
So please suggest what changes i have to make in the yaml's file to work it properly.
Below is the detail of the each file.
[root@controller log(keystone)]# heat stack-create -f simple.yaml -e environment.yaml thakurr ERROR: Failed to validate: Failed to validate: Neither image nor bootable volume is specified for instance server1 [root@controller log(keystone)]# cat simple.yaml heat_template_version: 2014-10-16 description: A simple auto scaling group. resources: group: type: OS::Heat::AutoScalingGroup properties: cooldown: 60 desired_capacity: 2 max_size: 5 min_size: 1 resource: type: OS::Nova::Server::Cirros
scaleup_policy: type: OS::Heat::ScalingPolicy properties: adjustment_type: change_in_capacity auto_scaling_group_id: { get_resource: group } cooldown: 60 scaling_adjustment: 1
cpu_alarm_high: type: OS::Ceilometer::Alarm properties: meter_name: cpu_util statistic: avg period: 60 evaluation_periods: 1 threshold: 50 alarm_actions: - {get_attr: [scaleup_policy, alarm_url]} comparison_operator: gt [root@controller log(keystone)]# cat environment.yaml resource_registry: "OS::Nova::Server::Cirros": "cirros.yaml" [root@controller log(keystone)]# cat cirros.yaml heat_template_version: 2014-10-16
description: Heat Sample Template
parameters: ImageID: type: string description: Image used to boot a server NetID: type: string description: Network ID for the server
resources: server1: type: OS::Nova::Server properties: name: "Heat_Deployed_Server" image: { get_param: ImageID } flavor: "m1.small" networks: - network: { get_param: NetID }
outputs: server1_private_ip: description: IP address of the server in the private network value: { get_attr: [ server1, first_address ] }
[root@controller log(keystone)]#
[root@controller log(keystone)]# nova list +--------------------------------------+----------------------+---------+------------+-------------+------------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+----------------------+---------+------------+-------------+------------------------------------+ | 911134c0-ea8c-4cc8-93f4-01b345ccab2e | Heat_Deployed_Server | SHUTOFF | - | Shutdown | int_net=192.168.100.139 | | 92b12dff-11df-4a07-a3fe-bfd4fdf143ea | Heat_Deployed_Server | SHUTOFF | - | Shutdown | int_net=192.168.100.138 | | 848ecad0-da0b-474f-bf71-379e2797c8bf | cloud | SHUTOFF | - | Shutdown | int_net=192.168.100.3, 172.0.0.102 | | 05e6fdc9-bfff-4405-88d7-1109eed02575 | cloud1 | SHUTOFF | - | Shutdown | int_net=192.168.100.4, 172.0.0.103 | | aad39ba0-b64d-445b-b992-7546ba6fcb23 | web01 | ACTIVE | - | Running | int_net=192.168.100.8, 172.0.0.106 | | d886666f-0f1d-46f9-afa9-53ce46e0073e | web02 | ACTIVE | - | Running | int_net=192.168.100.9, 172.0.0.107 | +--------------------------------------+----------------------+---------+------------+-------------+------------------------------------+ [root@controller log(keystone)]# glance image-list +--------------------------------------+----------+-------------+------------------+-----------+--------+ | ID | Name | Disk Format | Container Format | Size | Status | +--------------------------------------+----------+-------------+------------------+-----------+--------+ | e6edb708-cdb9-4866-a2d0-6cf6bda3b530 | cirros | qcow2 | bare | 13167616 | active | | fc761829-869e-42ab-bae8-82b56289d990 | Fedora22 | qcow2 | bare | 228599296 | active | +--------------------------------------+----------+-------------+------------------+-----------+--------+ [root@controller log(keystone)]#
THanks once again.!!!!!!!