ioggstream

heat_nova_root_volume_recreate_failed

Sep 19th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. heat_template_version: newton
  2. description: |
  3. The following steps:
  4. 1- o stack create test-1 --template test.yaml
  5. 2- o stack mark unhealthy test-1 host
  6. 3- o stack update test-1 --existing
  7. Result in
  8. CREATE_FAILED BadRequest: resources.host: Invalid volume: volume '70b5ab1f-255e-4692-b112-4431ff474164' status must be
  9. 'available'. Currently in 'in-use' (HTTP 400) (Request-ID: req-31967ae6-71b5-4f48-a05a-af31001f5497)
  10. UPDATE_FAILED Resource CREATE failed: BadRequest: resources.host: Invalid volume: volume '70b5ab1f-255e-4692-b112-
  11. 4431ff474164' status must be 'available'. Currently in 'in-use' (HTTP 400) (Request-ID: req-31967ae6-71b5-4f48-a05a-
  12. af31001f5497)
  13.  
  14.  
  15. parameters:
  16.  
  17. size:
  18. type: number
  19. default: 10
  20.  
  21. image:
  22. type: string
  23. default: RHEL-7.3
  24.  
  25. network:
  26. type: string
  27. default: mynet
  28.  
  29. secgroup:
  30. type: string
  31. default: default
  32.  
  33. resources:
  34.  
  35. config:
  36. type: OS::Heat::SoftwareConfig
  37. properties:
  38. inputs:
  39. - name: previous
  40. default: 'NONE'
  41. group: script
  42. config: |
  43. #!/bin/bash
  44. echo "version: 1"
  45. echo "Previous: $previous"
  46. echo "${deploy_resource_name} is running on $(hostname) at $(date)"
  47.  
  48. deployment_a:
  49. type: OS::Heat::SoftwareDeployment
  50. properties:
  51. config:
  52. get_resource: config
  53. server:
  54. get_resource: host
  55.  
  56. host:
  57. type: OS::Nova::Server
  58. properties:
  59. flavor: m1.tiny
  60. key_name: shift
  61. admin_user: cloud-user
  62. user_data_format: SOFTWARE_CONFIG
  63. image: {get_param: image}
  64. networks:
  65. - network: {get_param: network}
  66. security_groups:
  67. - {get_param: secgroup}
  68. block_device_mapping:
  69. - device_name: "vda"
  70. delete_on_termination : "false"
  71. volume_id : { get_resource : root_volume }
  72.  
  73. root_volume:
  74. type: OS::Cinder::Volume
  75. properties:
  76. size: {get_param: size}
  77. image: {get_param: image}
Advertisement
Add Comment
Please, Sign In to add comment