Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Doesn't work with instances bigger than VC1S #1

Open
chokosabe opened this issue Aug 17, 2017 · 2 comments
Open

Doesn't work with instances bigger than VC1S #1

chokosabe opened this issue Aug 17, 2017 · 2 comments

Comments

@chokosabe
Copy link

Get this error when trying with X64-15GB instances for workers

Error applying plan:
2017/08/17 14:31:49 [DEBUG] plugin: waiting for all plugin processes to complete...

1 error(s) occurred:

  • scaleway_server.swarm_manager: 1 error(s) occurred:

  • scaleway_server.swarm_manager: StatusCode: 400, Type: invalid_request_error, APIMessage: The total volume size of X64-15GB instances must be equal to 200GB

@stefanprodan
Copy link
Owner

Maybe you need to add a 200GB disk see https://www.terraform.io/docs/providers/scaleway/r/volume.html

If that doesn't work better submit an issue on scaleway, it's nothing I can do if the API blocks you

@lvnilesh
Copy link

add 150GB like this to make a total of 200GB scaleway requirement

volume {
  size_in_gb = 150
  type       = "l_ssd"
}

and then mount it like this.

provisioner "remote-exec" {
  script = "mount-disk.sh"
}

mount-disk.sh could be like this.

df -h
mkfs -t ext4 /dev/vdb
rm -rf /mnt/gluster
mkdir -p /mnt/gluster
echo "/dev/vdb /mnt/gluster auto  defaults,errors=remount-ro 0 2" >> /etc/fstab  # scaleway
mount -a
df -h

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants