Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Allow kata-deploy containers to restart gracefully #477

Merged
merged 1 commit into from
May 10, 2019
Merged

Allow kata-deploy containers to restart gracefully #477

merged 1 commit into from
May 10, 2019

Conversation

brtkwr
Copy link
Contributor

@brtkwr brtkwr commented May 1, 2019

If the containers deployed by kata-deploy.yaml have had to restart, lack of overwrite here causes a benign error message to appear since the nodes already have katacontainers.io/kata-runtime=true label. Having a overwrite here means that we don't get the following error message in the logs and prevent the deployment to fail needlessly:

error: 'katacontainers.io/kata-runtime' already has a value (true), and --overwrite is false

@grahamwhaley grahamwhaley requested a review from egernst May 1, 2019 14:16
@grahamwhaley
Copy link
Contributor

@krsna1729 ptal wdyt

@grahamwhaley
Copy link
Contributor

Thanks @brtknr - I know you are now swatting up on the contributors guide, and will be updating the patch/PR format to make the CIs happy. If you need any input on that, just ask.

@brtkwr brtkwr changed the title Allow container to restart gracefully Allow deploy container to restart gracefully May 1, 2019
@brtkwr brtkwr changed the title Allow deploy container to restart gracefully Allow kata-deploy containers to restart gracefully May 1, 2019
@krsna1729
Copy link

Yup will help make it idempotent

@krsna1729
Copy link

We could also check for the label early on and go to sleep

Copy link
Member

@egernst egernst left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good. Just need a fixes in the commit message and then should be good to go.

@egernst
Copy link
Member

egernst commented May 6, 2019

/test

@brtkwr
Copy link
Contributor Author

brtkwr commented May 7, 2019

Hi @egernst, what fix in the commit message are you referring to?

If the container has had to restart, lack of overwrite here causes a benign error message to appear since the nodes already have `katacontainers.io/kata-runtime=true` label. Having a overwrite here means that we don't get the following error message:

    error: 'katacontainers.io/kata-runtime' already has a value (true), and --overwrite is false

Signed-off-by: Bharat Kunwar <b.kunwar@gmail.com>
@grahamwhaley
Copy link
Contributor

/test
think you updated the commit with a subject: entry - thx @brtknr

@jodh-intel jodh-intel merged commit fca62b1 into kata-containers:master May 10, 2019
@brtkwr brtkwr deleted the patch-1 branch May 10, 2019 10:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants