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

Fixing transient AWS errors during EBS builds #1764

Merged
merged 1 commit into from
Jun 10, 2015

Conversation

renat-sabitov
Copy link

Relates to #1539

AWS is eventually consistent and instance can be not visibile for
some time after creation. This fix eliminates describe-instances
call before going to the proper wait loop

@victortrac
Copy link
Contributor

👍 to this fix.

@pleschev
Copy link

pleschev commented Jan 8, 2015

+1 We're getting hit by this problem as well & would appreciate this fix being merged

@ColinHebert
Copy link
Contributor

Any news on this? @renat-sabitov-sirca Are you using a patched version of packer? Can you confirm that the problem is fixed?

@renat-sabitov
Copy link
Author

@ColinHebert Yes we are and the problem's completely gone.

@renat-sabitov renat-sabitov changed the title Fixing the errors while waiting for instance Fixing transient AWS errors during EBS builds Jan 23, 2015
@MartinMeinhold
Copy link

What's left todo to get this change merged into master?

@ColinHebert
Copy link
Contributor

@mitchellh Can we get this in the master branch (and possibly a new version of packer)?

This issue prevents boxes from being generated properly and can result in a waste of time/money.

@victortrac
Copy link
Contributor

I was about to submit my own PR to fix this problem until I saw this existing one. This bug leaves EC2 instances hanging, so unless users are aware of the problem, they may have packer instances running indefinitely. IMO this should be merged and released with the next packer version.

@dramdass
Copy link

dramdass commented Feb 3, 2015

Can this be merged? Seeing this issue a lot in our environment

@SStorm
Copy link

SStorm commented Feb 4, 2015

+1, really frustrating

@gergnz
Copy link
Contributor

gergnz commented Feb 9, 2015

👍 keen to see this in a release.

@mgcleveland
Copy link

image we could really use this fix merged in

@andrewtchin
Copy link

we're seeing this too. this should be merged.

@renat-sabitov
Copy link
Author

@mitchellh @rasa @sethvargo @erjohnso
What is the policy for merging pull requests? This fix is waiting for more than 2 months for your attention

@sethvargo
Copy link
Contributor

@renat-sabitov-sirca we have not had a chance to triage Packer recently. We will get to it as soon as possible 😄

@@ -63,9 +63,9 @@ func AMIStateRefreshFunc(conn *ec2.EC2, imageId string) StateRefreshFunc {

// InstanceStateRefreshFunc returns a StateRefreshFunc that is used to watch
// an EC2 instance.
func InstanceStateRefreshFunc(conn *ec2.EC2, i *ec2.Instance) StateRefreshFunc {
func InstanceStateRefreshFunc(conn *ec2.EC2, instanceId string ) StateRefreshFunc {
Copy link
Contributor

Choose a reason for hiding this comment

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

The formatting here looks a bit off - could you please run go vet?

@sethvargo
Copy link
Contributor

Minor style comments, but LGTM otherwise

@renat-sabitov
Copy link
Author

@sethvargo Ran go vet and go fmt on amazon/ebs and fixed one problem.
Ran "go fmt" on amazon/common to fix style issue, but go vet reports to many problems unrelated to my patch.

@renat-sabitov
Copy link
Author

@sethvargo Do you have rights on mitchelh/goamz? There is a related patch to it
mitchellh/goamz#180

@renat-sabitov
Copy link
Author

@sethvargo can this me merged now?

@schnipseljagd
Copy link

👍

Relates to hashicorp#1539

AWS is eventually consistent and instance can be not visibile for
some time after creation. This fix eliminates describe-instances
call before going to the proper wait loop
@renat-sabitov
Copy link
Author

rebased on the master's HEAD

@fstehle
Copy link

fstehle commented Mar 12, 2015

👍

@martin-jujou-sirca
Copy link

Can this please be merged, we really need this fix 👍

@schnipseljagd
Copy link

Same here.

@anthonyroach
Copy link

👍 We hit this many times per day, so getting this fixed and released would be very helpful.

@ColinHebert
Copy link
Contributor

@sethvargo if this one has been reviewed, it'd be nice to include it in the next release as currently the AWS/EBS aspect of packer is unstable at best :/

@ehershey
Copy link
Contributor

+1. I'd love to see this merged and in a new release.

@jperry
Copy link

jperry commented Mar 30, 2015

++ on getting this merged and part of 0.8.0 release or a 0.7.X patch.

mefellows added a commit to packer-community/packer-windows-plugins that referenced this pull request Apr 1, 2015
@isaacaggrey
Copy link

Could we stop with the +1 / ++ comments? Those add nothing to the discussion and I don't believe will get this in any sooner as much I want this too.

That said, @mitchellh and @sethvargo, the last commit to this project was 2 weeks ago. If triaging is backing things up, then that is where you can ask trusted members of the Packer dev community to help out and get involved (provided you give them write access). That is the beauty of open source. 😄

@ehershey
Copy link
Contributor

ehershey commented Apr 3, 2015

If there's a preferable medium for conveying interest as a user to the authors, I'd be happy to use it instead of +1 comments.

@renat-sabitov
Copy link
Author

fixes #2001

@BlinkyStitt
Copy link

Anything we can do to help get this merged in faster? About half my AWS builds are failing because of this error.

@lokulin
Copy link
Contributor

lokulin commented May 24, 2015

👍 About time this was merged. Probably also fixes #2128

@martin-jujou-sirca
Copy link

@mitchellh and @sethvargo can we please get this merged, it's been 5 months since this was first put up

@mitchellh
Copy link
Contributor

LGTM! Sorry for the delay.

@mitchellh mitchellh merged commit d046e1c into hashicorp:master Jun 10, 2015
@renat-sabitov renat-sabitov deleted the fix_amazon_instance_waits branch June 10, 2015 23:43
@ghost ghost locked and limited conversation to collaborators Apr 9, 2020
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.

None yet