Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenStack: Add possibility to boot from volumes #46

Open
Sidiox opened this issue Aug 7, 2018 · 0 comments
Open

OpenStack: Add possibility to boot from volumes #46

Sidiox opened this issue Aug 7, 2018 · 0 comments

Comments

@Sidiox
Copy link

Sidiox commented Aug 7, 2018

Currently the HOT template used for instances in OpenStack simply boots from an image, which takes up ephemeral storage on compute nodes. This should also make the use of thin allocated storage possible. This is especially useful for the control plane, since it's virtual size is 30GB

I propose to add the option to boot from volume as well via configuration.

The template would go from:

heat_template_version: '2013-05-23'
resources:
  t8_volumeTesti1:
    properties:
      flavor: m1.large
      image: cirros3
      name: t8_volumeTesti1
      networks:
      - port: {get_resource: t8_volumeTesti1_port0}
    type: OS::Nova::Server
  t8_volumeTesti1_port0:
    properties:
      fixed_ips:
      - {ip_address: 192.168.122.36}
      network_id: wistar_mgmt
    type: OS::Neutron::Port

to:

heat_template_version: '2013-05-23'
resources:
  t8_volumeTesti1:
    depends_on: t8_volumeTesti1_vol0
    properties:
      flavor: m1.large
      name: t8_volumeTesti1
      networks:
      - port: {get_resource: t8_volumeTesti1_port0}
      block_device_mapping: [{ device_name: "vda", volume_id  : { get_resource : t8_volumeTesti1_vol0}, delete_on_termination : "true" }]
    type: OS::Nova::Server
  t8_volumeTesti1_vol0:
    type: OS::Cinder::Volume
    properties:
      size: 10
      image: cirros3
  t8_volumeTesti1_port0:
    properties:
      fixed_ips:
      - {ip_address: 192.168.122.36}
      network_id: wistar_mgmt
    type: OS::Neutron::Port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant