Commit Graph

44 Commits

Author SHA1 Message Date
Justin Santa Barbara 9919254205 AWS LaunchConfiguration error handling fix
We would loop forever on an unexpected error.
2018-01-25 08:35:15 -05:00
chrislovecnm 1e418c3e13 more goimport updates 2017-11-04 10:03:02 -06:00
Patrick Harböck 8db87d20cd Check actual EbsOptimized status during cluster update 2017-08-30 00:30:00 +02:00
Ionut Craciunescu 07397ec2f0 ran make gofmt 2017-08-01 00:34:39 +01:00
Ionut Craciunescu 66d377f5c4 comment update 2017-08-01 00:28:59 +01:00
Ionut Craciunescu 847bf0c2e1 updates to support aws disks with provisioned iops 2017-08-01 00:28:21 +01:00
Justin Santa Barbara 3dfe48e5ae Wiring up lifecycle 2017-07-15 22:03:54 -04:00
Justin Santa Barbara 3e1ce4f950 Add Lifecycle 2017-07-15 22:01:03 -04:00
Austin Moore 6ec64704e2 Remove unnecessary json tag on field 2017-06-30 12:05:59 -04:00
Austin Moore f4c7c61fae Add field to enable EBS Volume Optimization 2017-06-27 16:15:54 -04:00
Justin Santa Barbara 48b26d0f93 Add more logging on IAM failure
I hit an odd IAM failure yesterday, and this information would have been
helpful.  It only proved a negative - it turned out to be an AWS problem
that was solved by deleting and recreating the IAM roles - but still
makes diagnosis much easier.
2017-06-20 00:42:17 -04:00
Justin Santa Barbara 725266f834 Add missed error handling from Autoscaling list
Issue #2304
2017-04-07 23:48:05 -04:00
Daniel Cohen bcdf32cebc Added a few small fixes for instance tenancy 2017-03-31 14:20:23 -04:00
Daniel Cohen aa1205036d Specify instance tenancy on AWS
Allow tenancy to default to empty

Don't allow dedicated clusters to launch unsupported instances
2017-03-21 14:13:17 -04:00
Justin Santa Barbara cb4641fea3 Code updates 2017-03-16 02:40:50 -04:00
Justin Santa Barbara 51a1cddafc Output ephemeral devices in terraform in consistent order 2017-02-23 01:09:30 -05:00
Eric Hole f146ac309c Merge pull request #1925 from justinsb/fix_1793
Additional ShouldCreate method to prevent spurious changes
2017-02-22 22:17:05 -05:00
Justin Santa Barbara 7d68f744f6 Initial support for cloudformation output 2017-02-17 10:59:16 -05:00
Justin Santa Barbara 5bba483a61 Additional ShouldCreate method to prevent spurious changes
Fix #1793
2017-02-16 01:53:32 -05:00
Phil Kates 3e0bc7db4c
Fix terraform render for addtl security groups
The update in #1444 didn't add the security groups to terraform meaning
if you did a `kops --target terraform` you only got the standard
security group.
2017-02-10 15:57:30 -08:00
Chris Love feb82cfa55 Merge pull request #1716 from justinsb/launchconfig_async_warning
Wait in launchconfiguration task for IAM profile to be ready
2017-01-31 00:15:01 -07:00
Justin Santa Barbara 17ab0bfb1a Wait in launchconfiguration task for IAM profile to be ready
The error message continues to worry users.  Trade off a bit of speed
for comfort with a friendlier error.
2017-01-30 23:36:08 -05:00
Thomas Peitz 4f30a40f0a Fix launchconfiguration.go with gofmt 2017-01-30 18:58:48 +01:00
Thomas Peitz 96f71b8fab Allow additional NodeSecurityGroupIDs, MasterSecurityGroupIDs 2017-01-30 18:58:48 +01:00
Justin Santa Barbara 4407e91625 Allow clearing of maxPrice
Issue #1562
2017-01-28 20:10:54 -05:00
Zach Loafman e60c36068f Fix retries for AutoScalingGroup pending delete
This:
- reworks how retries are handled in fi/executor.go to a time-based scheme
- changes the single-task limit to 10m (from about 30s of no-progress)
- eliminates the inner IAM propagation retry for LaunchConfigurations,
because the task itself will just be redriven for a while. This also
eliminates any long-pole delay caused by this error (since task Run()
should be 'fast').
2016-11-28 17:04:02 -08:00
Justin Santa Barbara dfb2a40dd5 Increase timeout for IAM instance propagation
From 1 minute -> 5 minutes

Should help with issue #591
2016-10-18 02:15:31 -04:00
chrislovecnm 8fa2aac99f fixing more headers 2016-10-15 19:20:56 -06:00
Justin Santa Barbara a4d9e3c0f9 Better messaging during IAM replication 2016-09-28 00:14:36 -04:00
Justin Santa Barbara bb01cf6ddd Make AWSCloud an interface, mock it out in tests
Beginnings of a mock for the AWSCloud, so that hopefully we aren't
calling out to AWS at all in the tests.  We will likely start mocking
the actual EC2 APIs in future, but this seems a good starting point.

Fix #425
2016-09-24 15:52:52 -04:00
Justin Santa Barbara 3942ffa8fb Deeper DNS validation: don't create hosted zone
Avoids a problem with TF output, but also lays the groundwork for deeper
DNS validation, which is probably the #1 source of problems right now.
2016-09-13 12:45:12 -04:00
Justin Santa Barbara c0477381c1 Fixes for terraform block device mapping output 2016-07-21 10:09:16 -04:00
Justin Santa Barbara f771c2af4c Add support for spot instances
Fixes #58
2016-07-10 23:56:16 -04:00
Justin Santa Barbara 0a8b94e748 More tweaks to the IAM async creation tolerance
Issue #35
2016-07-09 02:45:30 -04:00
Justin Santa Barbara 6c6410dc81 Merge pull request #87 from justinsb/fix_35_part2
Report less-scary message when IAM instance profile is not ready yet
2016-07-09 01:25:28 -04:00
Justin Santa Barbara 13b8e81bd6 Allow configurable RootDeviceSize & RootDeviceType
This allows for a larger EBS root volume (and we now default to 20GB,
just like kube-up did).

We remove the BlockDeviceMappings support because it wasn't used and
made things a lot more complicated.  We always map the ephemeral
devices.

Issue #24
2016-07-08 01:11:14 -04:00
Justin Santa Barbara d1ef7580a9 Report less-scary message when IAM instance profile is not ready yet
IAM instance profile creation is very async, and this causes dependent
resources to fail.  That's fine - we have good retry logic - but we
should output a less frightening error message.

Issue #35
2016-07-07 10:22:44 -04:00
Justin Santa Barbara 05af11b72e Only warn if a _different_ ephemeral device is attached
When we retry a task, we run the Run method again.  But in this case,
the run method actually populated some default values.  Only warn if the
values we are populating are different, to avoid spurious warnings.

We probably need a stronger lifecycle - for example having a Validate
method would probably be helpful.

Fix #48
2016-07-05 22:05:42 -04:00
Justin Santa Barbara d427858477 Rename to kops
The upup tool is now called kops, and we have moved repos
2016-06-30 09:25:25 -04:00
Justin Santa Barbara ee325435e6 Rationalize properties to the minimal set 2016-06-26 09:45:05 -04:00
Justin Santa Barbara 226f0284b1 upup: Fix log message 2016-06-11 23:09:44 -04:00
Justin Santa Barbara f3ebc088f1 upup: make LaunchConfiguration compatible with terraform
This way we can output a LaunchConfiguration prefix into terrform that
we can then read later, so that we can create with terraform and then
transfer to another mode of operation if desired.
2016-06-10 13:36:36 -04:00
Justin Santa Barbara 7543d1c19d upup: apply gofmt
Missed a few gofmt places
2016-06-10 11:41:10 -04:00
Justin Santa Barbara 52496ac73a upup: split launchconfiguration from ASG
It is much more logical this way, and mirrors the way GCE & terraform
work.
2016-06-10 11:36:17 -04:00