Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aws i3 support #1308

Merged
merged 6 commits into from
Mar 13, 2017
Merged

Aws i3 support #1308

merged 6 commits into from
Mar 13, 2017

Conversation

yuyantingzero
Copy link
Contributor

No description provided.

@@ -294,6 +296,10 @@ def __init__(self, vm_spec):
raise ValueError(
'In order to use dedicated hosts, you must specify an availability '
'zone, not a region ("zone" was %s).' % self.zone)
if self.machine_type[:2].lower() == 'i3' and not FLAGS['image'].present:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the image can be specified through configs too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@@ -136,7 +137,8 @@ def GetBlockDeviceMap(machine_type, root_volume_size_gb=None,
root_block_device['Ebs'].pop('Encrypted')
mappings.append(root_block_device)

if machine_type in NUM_LOCAL_VOLUMES:
if (machine_type in NUM_LOCAL_VOLUMES and
not aws_disk.LocalDriveIsNvme(machine_type)):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you don't ever need to supply a mapping for i3s?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool - thanks

@yuyantingzero
Copy link
Contributor Author

@ehankland PTAL

Copy link
Contributor

@ehankland ehankland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@yuyantingzero yuyantingzero merged commit fe7b258 into master Mar 13, 2017
@yuyantingzero yuyantingzero deleted the aws-i3 branch March 13, 2017 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants