Guest User

Untitled

a guest
Apr 14th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. ## params
  2. ...
  3. data_nodes: 2
  4. volumes:
  5. volume_id-1: 3c975879-3733-4ce7-92b4-98a05e30c8f0
  6. volume_id-2: 82793e2f-46df-4808-a995-b3d157d91b91
  7. ...
  8.  
  9. ## HEAT_01.yaml
  10. ...
  11. data_node_group:
  12. type: OS::Heat::ResourceGroup
  13. properties:
  14. count: { get_param: data_nodes }
  15. resource_def:
  16. type: ORG::Type
  17. properties:
  18. node_name: { list_join: ['-', [ { get_param: 'OS::stack_name' }, 'data', '%index%'] ] } # {name}-data-X
  19. volume_id: { get_param: [volumes, volume_id_%index%] }
  20. #volume_id: { get_param: [volumes, volume_id_1] } #WORKS!!
  21. ...
  22.  
  23. ## ORG::Type yaml:
  24. ...
  25. data_volume_attachment:
  26. type: OS::Cinder::VolumeAttachment
  27. properties:
  28. volume_id: { get_param: volume_id }
  29. instance_uuid: { get_resource: node }
  30. ...
  31.  
  32. ## Stack FAILURE:
  33. | stack_status | CREATE_FAILED
  34. | stack_status_reason | Resource CREATE failed: StackValidationFailed:
  35. | | resources.data_node_group.resources[1]: Error
  36. | | validating value u'': The Volume () could not be found.
Advertisement
Add Comment
Please, Sign In to add comment