-
Notifications
You must be signed in to change notification settings - Fork 243
fix: skip update repo if install has opt to define source #7504
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
base: main
Are you sure you want to change the base?
Conversation
qweeah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
qweeah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
parts/linux/cloud-init/artifacts/mariner/cse_helpers_mariner.sh
Outdated
Show resolved
Hide resolved
| # Install the package from the local repository | ||
| echo "Installing ${tool_name} from local repository" | ||
| if ! dnf_install 30 1 600 ${tool_name} --disablerepo='*' --enablerepo="${repo_name}"; then | ||
| if ! dnf_install 4 1 120 ${tool_name} --disablerepo='*' --enablerepo="${repo_name}"; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we adjusting the retry and timeout values for the install?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
600s means 10min, which already exceed the cse timeout. (though it seems timeout is not implement in dnf_install)
if the cse timeout, the extension error msg will only left csetimeout without correct exit code or helpful log.
But considering the timeout is not working for now, i will revert this retry and timeout values
What type of PR is this?
/kind bug
What this PR does / why we need it:
we observed ni cluster with for azure linux node pool has latency issue for vmss creation. The cse will stuck at 'dnf makecache --disablerepo='*' --enablerepo="${repo_name}"' It will stuck over 10 minutes and finally caused the cse exit with timeout. However, the next instance or ssh into failed node both can work. Thus i make this pr to add timeout option for 'dnf makecache' and 'apt update'.
Which issue(s) this PR fixes:
Fixes #
Requirements:
Special notes for your reviewer:
Release note: