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

Cease and desist destructive tendencies #24

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Cease and desist destructive tendencies #24

merged 1 commit into from
Oct 17, 2023

Conversation

rustydb
Copy link
Contributor

@rustydb rustydb commented Oct 17, 2023

Summary and Scope

Issue Type

  • Bugfix Pull Request

I'm hitting a problem when restarting nexus, where the registry suddenly changes blobstore and repos vanish.

The problem is that nexus-setup.sh runs as an ExecPostStart script on the systemd service, and when it runs it has two destructive options.

These destructive options make it impossible to restart the nexus service without harming an existing registry. For example, in Fawkes we create a registry in the fawkes blobstore. Restarting nexus causes that registry to be recreated again under the default blobstore, this ends up breaking image pulls.

Prerequisites

  • I have included documentation in my PR (or it is not required)
  • I tested this on internal system (if yes, please include results or a description of the test)
  • I tested this on a vshasta system (if yes, please include results or a description of the test)

Idempotency

Risks and Mitigations

I'm hitting a problem when restarting nexus, where the `registry` suddenly changes blobstore and repos vanish.

The problem is that `nexus-setup.sh` runs as an `ExecPostStart` script on the systemd service, and when it runs it has two destructive options.

These destructive options make it impossible to restart the nexus service without harming an existing registry. For example, in Fawkes we create a registry in the fawkes blobstore. Restarting nexus causes that registry to be recreated again under the default blobstore, this ends up breaking image pulls.

Signed-off-by: Russell Bunch <[email protected]>
@rustydb rustydb requested a review from a team as a code owner October 17, 2023 18:07
rustydb added a commit to Cray-HPE/metal-provision that referenced this pull request Oct 17, 2023
When uploading docker images, also ensure the registry is created.

This needs to be merged before Cray-HPE/metal-nexus#24
@rustydb rustydb merged commit 8eb10fe into main Oct 17, 2023
1 of 2 checks passed
@rustydb rustydb deleted the rustydb-patch-1 branch October 17, 2023 19:12
github-actions bot pushed a commit to Cray-HPE/metal-provision that referenced this pull request Oct 17, 2023
When uploading docker images, also ensure the registry is created.

This needs to be merged before Cray-HPE/metal-nexus#24

(cherry picked from commit 07ef993)
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.

2 participants