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

Fix that felix didn't restart when config was deleted. #1645

Merged
merged 1 commit into from
Dec 4, 2017

Conversation

fasaxc
Copy link
Member

@fasaxc fasaxc commented Dec 4, 2017

Description

Fixes #1644; needs backport to 2.6.x

Todos

  • Unit tests (full coverage)
  • Integration tests (delete as appropriate) In plan/Not needed/Done
  • Documentation
  • Backport
  • Release note

Release Note

None required

@fasaxc fasaxc added this to the Calico v3.0.0 milestone Dec 4, 2017
@fasaxc fasaxc requested a review from nelljerram December 4, 2017 16:56
fasaxc added a commit to fasaxc/felix that referenced this pull request Dec 4, 2017
@fasaxc fasaxc force-pushed the fix-config-delete-restart branch from 6e14187 to 1abe937 Compare December 4, 2017 17:17
Copy link
Member

@nelljerram nelljerram left a comment

Choose a reason for hiding this comment

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

One query - but happy to defer to your judgement, as obviously better to have this fix in soon.

break
}
Expect(time.Since(start)).To(BeNumerically("<", time.Second))
time.Sleep(50 * time.Millisecond)
Copy link
Member

Choose a reason for hiding this comment

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

Logic here doesn't feel quite right to me. Shouldn't it be 'wait until there's 1 Felix PID that is stable for 0.5s' ? As it stands, I think the code can be fooled by seeing a PID of a Felix on the verge of restarting.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's OK, I think: we want to get the old PID, then the tests use that to see whether felix restarted or not.

When we call this update method in the new test, it's after waiting for the old PID to disappear.

@fasaxc fasaxc merged commit 24db632 into projectcalico:master Dec 4, 2017
@fasaxc fasaxc deleted the fix-config-delete-restart branch December 4, 2017 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Felix does not handle removal of IP-in-IP tunnel address for its node
2 participants