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

[BUG] [download-requirements.py] Running yum commands may hang waiting for user input #3025

Closed
6 of 18 tasks
przemyslavic opened this issue Mar 15, 2022 · 0 comments
Closed
6 of 18 tasks

Comments

@przemyslavic
Copy link
Collaborator

przemyslavic commented Mar 15, 2022

Describe the bug
When download-requirements.py script is executed, repository gpg keys are added and then yum commands are run.

2022-03-14 13:04:59,881 [DEBUG]: [1/3] Running: yum -y repolist
2022-03-14 13:05:00,470 [DEBUG]: [1/3] Running: yum repolist enabled

However, recently I ran into a problem with gpg key for the kubernetes repository.
This caused the script to hang waiting for confirmation from the user:

[root@8ad3e885293f /]# yum repolist enabled
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: ftp.agh.edu.pl
* extras: ftp.pbone.net
* updates: ftp.pbone.net
kubernetes/signature | 844 B 00:00:00
Retrieving key from https://packages.cloud.google.com/yum/doc/yum-key.gpg
Importing GPG key 0x7AA99B80:
Userid : "Rapture Automatic Signing Key (cloud-rapture-signing-key-2022-03-07-08_01_01.pub)"
Fingerprint: e89b faec 34d3 1829 362f 7f7b 5668 44f3 7aa9 9b80
From : https://packages.cloud.google.com/yum/doc/yum-key.gpg
Is this ok [y/N]:

We should add the -y flag to the yum commands to be able to continue executing the script in non-interactive mode.

How to reproduce
Steps to reproduce the behavior:

  1. Run download-requirements script on RHEL where we are now experiencing a problem with the kubernetes repository key.

Expected behavior
The download requirements script should succeed or simply fail but not hang forever.

Environment

  • Cloud provider: [AWS | Azure | All | None]
  • OS: [RHEL 7.9`]

epicli version: [2.0.0dev]

Additional context
Add any other context about the problem here.


DoD checklist

  • Changelog
    • updated
    • not needed
  • COMPONENTS.md
    • updated
    • not needed
  • Schema
    • updated
    • not needed
  • Backport tasks
    • created
    • not needed
  • Documentation
    • added
    • updated
    • not needed
  • Feature has automated tests
  • Automated tests passed (QA pipelines)
    • apply
    • upgrade
    • backup/restore
  • Idempotency tested
  • All conversations in PR resolved
@sbbroot sbbroot self-assigned this Mar 15, 2022
sbbroot added a commit that referenced this issue Mar 15, 2022
* Fix Running yum commands may hang waiting for user input (#3025)
@przemyslavic przemyslavic self-assigned this Mar 15, 2022
@seriva seriva closed this as completed Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants