Autoscale fails to create a machine when provisioning with amazonec2
I'm testing autoscaling using version gitlab-ci-multi-runner 1.1.0~beta.138.g9bd45fd
and docker-machine version 0.6.0, build e27fb87
My config looks like this:
concurrent = 10
[[runners]]
name = "docker-machine-cirrostratus-t2-medium"
url = "https://my.gitlab/ci"
token = "my_token"
executor = "docker+machine"
[runners.docker]
image = "ubuntu:14.04"
privileged = false
volumes = ["/cache"]
allowed_images = ["*", "*/*", "*/*/*"]
allowed_services = ["*", "*/*"]
[runners.machine]
IdleCount = 0
IdleTime = 2400
MaxBuilds = 100
MachineName = "gitlab-ci-%s"
MachineDriver = "amazonec2"
MachineOptions = [
"amazonec2-access-key=MY_KEY",
"amazonec2-secret-key=MY_SECRET",
"amazonec2-vpc-id=vpc-473a5a2b",
"amazonec2-zone=b",
"amazonec2-subnet-id=subnet-24fde50c",
"amazonec2-tags=PURPOSE,ci,DEPARTMENT,engineering",
"amazonec2-instance-type=t2.medium",
"amazonec2-iam-instance-profile=gitlab-ci-runner-instance",
"amazonec2-private-address-only=true"
]
[runners.cache]
Insecure = false
When running gitlab-ci-multi-runner in debug mode, I am able to spot the following errors which are repeated 3 times per build:
Checking for builds... received runner=<my_token>
Invalid command line. Found extra arguments [runner-<my_token>-gitlab-ci-1456782442-1b5b8590]
WARNING: Machine creation failed, trying to provision exit status 1 name=runner-<my_token>-gitlab-ci-1456782442-1b5b8590
Host does not exist: "runner-70b5bafd-gitlab-ci-1456782442-1b5b8590"
WARNING: Machine creation failed, trying to provision exit status 1 name=runner-<my_token>-gitlab-ci-1456782442-1b5b8590
Host does not exist: "runner-70b5bafd-gitlab-ci-1456782442-1b5b8590"
WARNING: Machine creation failed, trying to provision exit status 1 name=runner-<my_token>-gitlab-ci-1456782442-1b5b8590
1180 Submitting build to coordinator... ok runner=70b5bafd
Host does not exist: "runner-<my_token>-gitlab-ci-1456782442-1b5b8590"
WARNING: Removing machine created=3.063085757s name=runner-<my_token>-gitlab-ci-1456782442-1b5b8590 reason=Failed to create used=3.063084067s
About to remove runner-<my_token>-gitlab-ci-1456782442-1b5b8590
Error removing host "runner-<my_token>-gitlab-ci-1456782442-1b5b8590": Host does not exist: "runner-<my_token>-gitlab-ci-1456782442-1b5b8590"
Can't remove "runner-<my_token>-gitlab-ci-1456782442-1b5b8590"
The key from the above of course being Invalid command line. Found extra arguments [runner-<my_token>-gitlab-ci-1456782442-1b5b8590]
.
I don't see anywhere that I've accidentally done something silly and included a space in my MachineOption strings, or any other setting. I'm at a bit of a loss on how to troubleshoot this one.