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

Add container cleanup to airship executor containers #546

Closed
teoyaomiqui opened this issue May 17, 2021 · 1 comment
Closed

Add container cleanup to airship executor containers #546

teoyaomiqui opened this issue May 17, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request priority/medium Default priority for items size s
Milestone

Comments

@teoyaomiqui
Copy link
Contributor

Problem description (if applicable)
When run phases that are built on top of GenericContainer executor with airship container as a back end, containers are never deleted.

At the time of implementation, this was intentionally left on the user to do, because of the simplified debugging. However now we need to make sure that there are no leftovers are running the container.

Proposed change

  1. Add RmContainer() in the deferred function that runs the containers
  2. Remove log message related to getting logs from the container, as the logs are printed to stderr anyway.

Potential impacts
It would be harder to debug in cased of failed containers.

@teoyaomiqui teoyaomiqui added enhancement New feature or request triage Needs evaluation by project members labels May 17, 2021
@airshipbot
Copy link

airshipbot commented May 17, 2021

Related Change #791811

Subject: Add airship container cleanup
Link: https://review.opendev.org/c/airship/airshipctl/+/791811
Status: NEW
Owner: Kostyantyn Kalynovskyi ([email protected])

This change will close this issue when merged.

Approvals

Code-Review
+1 Vladislav Kuzmin
+2 Ian Howell
+1 Sean Eagan
+1 Bijaya Sharma
Verified
+1 Zuul
+1 ATT Airship2.0 CI
Workflow
! None

Last Updated: 2021-05-24 14:02:56 CDT

@teoyaomiqui teoyaomiqui self-assigned this May 18, 2021
@jezogwza jezogwza added priority/critical Items critical to be implemented, usually by the next release and removed triage Needs evaluation by project members labels May 19, 2021
@jezogwza jezogwza added this to the v2.1 milestone May 19, 2021
@jezogwza jezogwza added priority/medium Default priority for items and removed priority/critical Items critical to be implemented, usually by the next release labels May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority/medium Default priority for items size s
Projects
None yet
Development

No branches or pull requests

3 participants