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

fix(jobbergate-agent-snap): Fixed problem config hook #695

Closed
wants to merge 1 commit into from

Conversation

dusktreader
Copy link
Member

When the snap set command is used in quick succession (such as when invoked through the cloud-init.yaml of the democluster, the command can fail. This is happening because the snap attempts to restart rapidly when it fails to start. The start will fail because the jobbergate-agent is missing required config.

When the configure hook directs the snap to restart, it may happen while the snap is in a restart cycle. Snap will detect that the restart request happened too soon after a failed restart attempt and the command will fail.

Setting the snap as disabled while the configure hook is running seems to fix this issue.

When the `snap set` command is used in quick succession (such as when
invoked through the `cloud-init.yaml` of the democluster, the command
can fail. This is happening because the snap attempts to restart rapidly
when it fails to start. The start will fail because the jobbergate-agent
is missing required config.

When the configure hook directs the snap to restart, it may happen while
the snap is in a restart cycle. Snap will detect that the restart
request happened too soon after a failed restart attempt and the command
will fail.

Setting the snap as disabled while the configure hook is running seems
to fix this issue.
Copy link

codecov bot commented Jan 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.65%. Comparing base (0948b69) to head (d947f7c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #695   +/-   ##
=======================================
  Coverage   92.65%   92.65%           
=======================================
  Files          85       85           
  Lines        4466     4466           
=======================================
  Hits         4138     4138           
  Misses        328      328           
Flag Coverage Δ
agent 93.39% <ø> (ø)
api 95.33% <ø> (ø)
cli 88.62% <ø> (ø)
core 96.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant