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

Improve handling of Anaconda hanging #1101

Merged
merged 3 commits into from Dec 16, 2020
Merged

Improve handling of Anaconda hanging #1101

merged 3 commits into from Dec 16, 2020

Conversation

bcl
Copy link
Contributor

@bcl bcl commented Dec 9, 2020

No description provided.

@bcl bcl changed the title Improve handling of Anacona hanging Improve handling of Anaconda hanging Dec 9, 2020
When monitoring log output in livemedia-creator --no-virt it could get
stuck if the output from anaconda stops for some reason.

This changes execReadlines so that it will only read output when it is
available, will monitor the process state, and continue to call the
callback function.

It also adds a final timeout on proc.communicate() so that if Anaconda
becomes stuck and won't exit livemedia-creator will eventually exit.

When the no-virt callback terminates anaconda on an error it now sends a
TERM signal to all of the unshare process' children because just sending
it to unshare doesn't cause anaconda to exit.
This will cause livemedia-creator to terminate anaconda and exit when an
install hits an error that often causes anaconda to get stuck and not
exit.

Resolves: rhbz#1900596
The libgomp bug rhbz#1722181 has been closed since August.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 424372319

  • 19 of 33 (57.58%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.1%) to 38.679%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/pylorax/installer.py 0 5 0.0%
src/pylorax/executils.py 19 28 67.86%
Files with Coverage Reduction New Missed Lines %
src/pylorax/installer.py 1 5.56%
Totals Coverage Status
Change from base Build 408977509: 0.1%
Covered Lines: 1670
Relevant Lines: 4019

💛 - Coveralls

@bcl bcl merged commit b0318ef into weldr:master Dec 16, 2020
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.

None yet

2 participants