scaleway-swarm-terraform
scaleway-swarm-terraform copied to clipboard
Doesn't work with instances bigger than VC1S
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
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
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