Skip to content
This repository was archived by the owner on Sep 26, 2021. It is now read-only.

Added provisioner for AMZN Linux AMI #3609

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wrotki
Copy link

@wrotki wrotki commented Jul 25, 2016

Tested against EC2 (including creating a multi-node swarm) with Amazon Linux AMI 2016.03 (ami-6869aa05)

However need to specify --amazonec2-device-name=xvdb ,
otherwise the EC2 instance won't be able to boot
due to trying an incorrect boot device

Signed-off-by: Mariusz Borsa [email protected]

@nathanleclaire
Copy link
Contributor

I wonder if we could detect the correct root device automatically... we've run into that issue before. It's not really safe to assume /dev/xvda is the boot disk

@leifg
Copy link

leifg commented Nov 10, 2016

Can this be merged?

@wrotki
Copy link
Author

wrotki commented Nov 10, 2016

I'll see if Nathan's suggestion can be implemented

@wrotki
Copy link
Author

wrotki commented Nov 18, 2016

I've updated the PR with Amazon Linux detection and updating device name and ssh user name if the AMI appears to be it. Tested manually with the latest Amazon Linux AMI ami-b73b63a0

@wrotki wrotki force-pushed the master_start branch 2 times, most recently from acbe4e0 to 04a2b4e Compare November 19, 2016 01:28
@mgmorcos
Copy link

👍

@R-Gerard
Copy link

What's the holdup with merging this?

@inhumantsar
Copy link

@nathanleclaire are there changes that need to be made to this before it can be merged?

@nathanleclaire
Copy link
Contributor

I am not maintainer anymore, ping @shin-

@briceburg
Copy link

Would this allow the generic driver to provision existing Amazon Linux instances? Currently docker-machine is failing to parse CPE_NAME="cpe:/o:amazon:linux:2017.03:ga" when provisioning to an existing instance using generic driver;

docker-machine --debug create ... output
Detecting the provisioner...
(aws-psa-1) Calling .GetSSHHostname
(aws-psa-1) Calling .GetSSHPort
(aws-psa-1) Calling .GetSSHKeyPath
(aws-psa-1) Calling .GetSSHKeyPath
(aws-psa-1) Calling .GetSSHUsername
Using SSH client type: external
...
About to run SSH command:
cat /etc/os-release
SSH cmd err, output: <nil>: NAME="Amazon Linux AMI"
VERSION="2017.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2017.03"
PRETTY_NAME="Amazon Linux AMI 2017.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2017.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"

Couldn't set key CPE_NAME, no corresponding struct field found
Error creating machine: Error detecting OS: OS type not recognized
notifying bugsnag: [Error creating machine: Error detecting OS: OS type not recognized]

..

@knoxilla
Copy link

@shin- Is there anything we can do to get this merged? Thanks!

@inhumantsar
Copy link

inhumantsar commented May 15, 2018

@wrotki i think this might need a rebase.

@dgageot could you have a look at this? it's been ready to merge for about a year and a half.

@brentstrong
Copy link

@wrotki would you consider rebasing this? It would be a big win for those of us heavily using AWS!

    Added detection of Amazon Linux and modifying defaults if detected
    Tested with Amazon Linux AMI 2016.03

Signed-off-by: Mariusz Borsa <[email protected]>
@wrotki
Copy link
Author

wrotki commented Jun 13, 2018

Pushed a rebase

@brentstrong
Copy link

Awesome, thanks so much!!

@shin- or @dgageot would you be able to take a look at this? Much appreciated!

@brentstrong
Copy link

Checking up on this. Is there anything I can do to help move this along? @shin- @dgageot

@sestary
Copy link

sestary commented Jan 12, 2019

Any idea why this hasn't been merged yet? @shin-

@wrotki
Copy link
Author

wrotki commented Jan 14, 2019

Nope. I guess everybody is busy with Kubernetes now (and why? Go AWS Fargate for all I know, you'll be sleeping sound). Can we just merge it and move on with our lives please? Shouldn't break anyone as this is a rare scenario, and perhaps it can help someone, so it's a win-win. And I don't feel happy about rebasing again.

@christopher-dG
Copy link

Does this work for Amazon Linux 2 which uses systemd?

@brentstrong
Copy link

It may, but since this project is no longer merging pull requests, it's unlikely to ever be relevant.

See:
#4537

@christopher-dG
Copy link

Oh, shoot. That's unfortunate.

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

Successfully merging this pull request may close these issues.