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

unattended-upgrades disable issue #308

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

devidask27
Copy link
Contributor

@devidask27 devidask27 commented May 27, 2022

ISSUE(S):

https://platform9.atlassian.net/browse/FT-388

SUMMARY

Before running the installer script we are disabling the unattended-upgrades so that there should not be any problem while installing hostagent, but one of the user git dpkg lock error while installing hostagent.

ISSUE TYPE

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that may cause existing functionality to not work as expected)
  • This change requires a documentation update

IMPACTED FEATURES/COMPONENTS:

prep-node

TESTING DONE

Manual

if user already have disabled unattended-upgrades
Screenshot 2022-05-27 at 10 47 31 AM
if unattended-upgrades are enabled
Screenshot 2022-05-27 at 11 00 07 AM
Screenshot 2022-05-27 at 11 00 57 AM

Reviewers

/cc @pshanbhag @anmolsachan

pkg/pmk/node.go Outdated Show resolved Hide resolved
pkg/pmk/node.go Outdated Show resolved Hide resolved
@devidask27 devidask27 requested review from pshanbhag and removed request for anupbarve August 2, 2022 07:05
@pshanbhag
Copy link
Collaborator

@devidask27 - I am not for such a change. It is too intrusive and I don't think we are restoring the file back to the original settings.
Is there value in this check? I would like to discuss with anyone who is pushing for this check. One option is to detect unattended upgrade is running and share the message with the user.

@devidask27
Copy link
Contributor Author

@devidask27 - I am not for such a change. It is too intrusive and I don't think we are restoring the file back to the original settings. Is there value in this check? I would like to discuss with anyone who is pushing for this check. One option is to detect unattended upgrade is running and share the message with the user.

The issue is hostagent installation failed because of dpkg was acquired by unattended upgrades. we have check for dpkg lock check. it checks if dpkg lock is acquired by any other process. if it is acquired then it error out. but here the case is hostagent installation is failing if unattended upgrade or any other process acquires dpkg lock after our dpkg check or while hostagent is being installed.

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.

3 participants