{"id":508,"date":"2016-03-15T12:22:30","date_gmt":"2016-03-15T12:22:30","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=508"},"modified":"2016-03-15T12:22:30","modified_gmt":"2016-03-15T12:22:30","slug":"using-cbs-boot-from-volume-with-rackspace-heat-orchestration","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/03\/15\/using-cbs-boot-from-volume-with-rackspace-heat-orchestration\/","title":{"rendered":"Using CBS boot from volume with Rackspace HEAT Orchestration"},"content":{"rendered":"<p>So, a customer reached out to us today concerning ways to use HEAT to build CBS <\/p>\n<pre>\r\n  blk_server:\r\n    type: \"Rackspace::Cloud::Server\"\r\n    properties:\r\n      flavor: 15 GB Memory v1\r\n      image: { get_param: image }\r\n      name: \"blk\"\r\n      user_data:\r\n...\r\n<\/pre>\n<p>The problem is using this format they get an error<\/p>\n<pre>\r\nERROR: Image Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM) requires 20 GB minimum disk space. Flavor 15 GB Memory v1 has only 0 GB.\r\n<\/pre>\n<p>This is happening because memory flavor doesn&#8217;t use the hypervisor instance store, and instead is using Cloud Block Storage, hence &#8216;0GB&#8217;.<br \/>\nThanks to my friend Aaron I have dug out the documentation for building CBS boot from volume server flavors. Here is how  it would be done.<\/p>\n<pre>\r\nparameters:\r\n  nodesize:\r\n    type: number\r\n    label: Nodes Disk Size\r\n    description: Size of the each Nodes primary disk.\r\n    default: 50\r\n    constraints:\r\n      - range: { min: 50, max: 1024 }\r\n        description: must be between 50 and 1024 Gb.\r\n\r\n    nodeimage:\r\n    label: Operating system\r\n    description: |\r\n      Server image. Defaults to 'CentOS 6 (PVHVM)'.\r\n    type: string\r\n    default: CentOS 7 (PVHVM)\r\n    constraints:\r\n    - allowed_values:\r\n      - CentOS 7 (PVHVM)\r\n      - Red Hat Enterprise Linux 7 (PVHVM)\r\n      description: Must be a supported operating system.\r\n\r\n  \r\n  elk_server:\r\n    type: \"Rackspace::Cloud::Server\"\r\n    properties:\r\n      flavor: 15 GB Memory v1\r\n      block_device_mapping: [{ device_name: \"vda\", volume_id : { get_resource : cinder_volume }, delete_on_termination : \"true\" }]\r\n      name: \"elk\"\r\n      user_data:\r\n  \r\n    cinder_volume:\r\n    type: OS::Cinder::Volume\r\n    properties:\r\n      size: { get_param: nodesize }\r\n      image: { get_param: nodeimage }\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>So, a customer reached out to us today concerning ways to use HEAT to build CBS blk_server: type: &#8220;Rackspace::Cloud::Server&#8221; properties: flavor: 15 GB Memory v1 image: { get_param: image } name: &#8220;blk&#8221; user_data: &#8230; The problem is using this format &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/03\/15\/using-cbs-boot-from-volume-with-rackspace-heat-orchestration\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,35,40,41],"tags":[],"class_list":["post-508","post","type-post","status-publish","format-standard","hentry","category-automation","category-cinder-api","category-heat","category-orhcestration"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=508"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/508\/revisions"}],"predecessor-version":[{"id":509,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/508\/revisions\/509"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}