Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- heat_template_version: newton
- description: |
- The following steps:
- 1- o stack create test-1 --template test.yaml
- 2- o stack mark unhealthy test-1 host
- 3- o stack update test-1 --existing
- Result in
- CREATE_FAILED BadRequest: resources.host: Invalid volume: volume '70b5ab1f-255e-4692-b112-4431ff474164' status must be
- 'available'. Currently in 'in-use' (HTTP 400) (Request-ID: req-31967ae6-71b5-4f48-a05a-af31001f5497)
- UPDATE_FAILED Resource CREATE failed: BadRequest: resources.host: Invalid volume: volume '70b5ab1f-255e-4692-b112-
- 4431ff474164' status must be 'available'. Currently in 'in-use' (HTTP 400) (Request-ID: req-31967ae6-71b5-4f48-a05a-
- af31001f5497)
- parameters:
- size:
- type: number
- default: 10
- image:
- type: string
- default: RHEL-7.3
- network:
- type: string
- default: mynet
- secgroup:
- type: string
- default: default
- resources:
- config:
- type: OS::Heat::SoftwareConfig
- properties:
- inputs:
- - name: previous
- default: 'NONE'
- group: script
- config: |
- #!/bin/bash
- echo "version: 1"
- echo "Previous: $previous"
- echo "${deploy_resource_name} is running on $(hostname) at $(date)"
- deployment_a:
- type: OS::Heat::SoftwareDeployment
- properties:
- config:
- get_resource: config
- server:
- get_resource: host
- host:
- type: OS::Nova::Server
- properties:
- flavor: m1.tiny
- key_name: shift
- admin_user: cloud-user
- user_data_format: SOFTWARE_CONFIG
- image: {get_param: image}
- networks:
- - network: {get_param: network}
- security_groups:
- - {get_param: secgroup}
- block_device_mapping:
- - device_name: "vda"
- delete_on_termination : "false"
- volume_id : { get_resource : root_volume }
- root_volume:
- type: OS::Cinder::Volume
- properties:
- size: {get_param: size}
- image: {get_param: image}
Advertisement
Add Comment
Please, Sign In to add comment