Skip to content

Specify additional disks with GCE provider #22346

Closed

Description

@RobertAtomic

Hi,

Is it possible to create and / or attach multiple disks to an instance at create time when using the GCE provider? The EC2 provider has this in it's example:

volumes:
    - { size: 10, device: /dev/sdf }
    - { size: 10, device: /dev/sdg, type: io1, iops: 1000 }
    - { size: 10, device: /dev/sdh, type: io1, iops: 1000 }

but doesn't call it out as provider specific. My GCE config looks like this:

test:
  image: backports-debian-7
  size: f1-micro
  location: us-central1-f
  network: default
  tags: '["test"]'
  use_persistent_disk: True
  delete_boot_pd: True
  deploy: True
  make_master: False
  provider: gce
  ssh_username: salt
  ssh_keyfile: /root/.ssh/id_rsa
  volumes:
    - { size: 100 }

When instances are created they always have a single 10G volume.
Thanks for any help or advice.

Activity

  1. erjohnso commented on Apr 6, 2015

    @erjohnso
    Contributor

    @RobertAtomic, no I'm afraid the GCE driver does not support this currently. If we were to add this, the underlying implementation would have to first create all the disks in a loop and wait for successful completion of those operations. Then, it could move on to creating the VM and attach the disks.

    It also gets a bit trickier in terms of expected user behavior and matching that up with the GCE API. A boot disk can be created simultaneously during VM create, but additional disks must be created first. I'm not familiar enough with how this syntax for the EC2 driver works to know the best way to mimic that for the GCE driver. Does the volumes block contain both boot and extra volumes, or is the boot disk handled separately?

  2. rallytime commented on Apr 6, 2015

    @rallytime
    Contributor

    Thanks for the suggestion @RobertAtomic.

  3. added
    Feature
    on Apr 6, 2015
  4. added this to the Approved milestone on Apr 6, 2015
  5. added
    RIoT
    on Jun 9, 2015
  6. stale commented on Nov 15, 2017

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

    If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRIoTSalt-Cloudstale

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions