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

gen-manifests: derrive seedArg from filename and env #4124

Closed
wants to merge 1 commit into from

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented May 2, 2024

To ensure that manifests get random(ish) and stable UUIDs we set the seed arg based on the filename and the environment (OSBUILD_GEN_MANIFEST_RNG_SEED).

This should fix the issue discovered in
osbuild/manifest-db#124

that duplicated UUIDs for xfs/btrfs can trigger random(ish) and hard to diagnose errors.

[draft as it lacks testing, I don't know yet how to do that]

To ensure that manifests get random(ish) and stable UUIDs we set
the seed arg based on the filename and the environment
(`OSBUILD_GEN_MANIFEST_RNG_SEED`).

This should fix the issue discovered in
osbuild/manifest-db#124

that duplicated UUIDs for xfs/btrfs can trigger random(ish) and
hard to diagnose errors.
@mvo5 mvo5 requested a review from achilleas-k May 2, 2024 16:20
@achilleas-k
Copy link
Member

I think we might want to get rid of this cmd and only keep the one in images. We'd have retool some things in manifest-db maybe so let's discuss it tomorrow and do it all then.

@achilleas-k
Copy link
Member

Unless this is urgent

mvo5 added a commit to mvo5/images that referenced this pull request May 6, 2024
To ensure that manifests get random(ish) and stable UUIDs we set
the rng seed arg based on the filename.

This should fix the issue discovered in
osbuild/manifest-db#124

that duplicated UUIDs for xfs/btrfs can trigger random(ish) and
hard to diagnose errors.

This is the same as
osbuild/osbuild-composer#4124
hopefully for the right place this time.
mvo5 added a commit to mvo5/images that referenced this pull request May 6, 2024
To ensure that manifests get random(ish) and stable UUIDs we set
the rng seed arg based on the filename.

This should fix the issue discovered in
osbuild/manifest-db#124

that duplicated UUIDs for xfs/btrfs can trigger random(ish) and
hard to diagnose errors.

This is the same as
osbuild/osbuild-composer#4124
hopefully for the right place this time.
mvo5 added a commit to mvo5/images that referenced this pull request May 8, 2024
To ensure that manifests get random(ish) and stable UUIDs we set the rng seed arg based on the filename.

This should fix the issue discovered in
osbuild/manifest-db#124

that duplicated UUIDs for xfs/btrfs can trigger random(ish) and hard to diagnose errors.

This is the same as
osbuild/osbuild-composer#4124 hopefully for the right place this time.
mvo5 added a commit to mvo5/images that referenced this pull request May 14, 2024
To ensure that manifests get random(ish) and stable UUIDs we set
the rng seed arg based on the filename.

This should fix the issue discovered in
osbuild/manifest-db#124

that duplicated UUIDs for xfs/btrfs can trigger random(ish) and
hard to diagnose errors.

This is the same as
osbuild/osbuild-composer#4124
hopefully for the right place this time.
mvo5 added a commit to mvo5/images that referenced this pull request May 14, 2024
To ensure that manifests get random(ish) and stable UUIDs we set the rng seed arg based on the filename.

This should fix the issue discovered in
osbuild/manifest-db#124

that duplicated UUIDs for xfs/btrfs can trigger random(ish) and hard to diagnose errors.

This is the same as
osbuild/osbuild-composer#4124 hopefully for the right place this time.
@mvo5
Copy link
Contributor Author

mvo5 commented May 14, 2024

If we get rid of this command I will close this PR and open one that removes the command - otherwise we could simply import the helper from osbuild/images#674 here now

github-merge-queue bot pushed a commit to osbuild/images that referenced this pull request May 14, 2024
To ensure that manifests get random(ish) and stable UUIDs we set the rng seed arg based on the filename.

This should fix the issue discovered in
osbuild/manifest-db#124

that duplicated UUIDs for xfs/btrfs can trigger random(ish) and hard to diagnose errors.

This is the same as
osbuild/osbuild-composer#4124 hopefully for the right place this time.
mvo5 added a commit to mvo5/osbuild-composer that referenced this pull request May 16, 2024
This is a result of the outcome of
osbuild#4124

Achilleas suggested that instead of having a copy of `gen-manifests`
in osbuild-composer we could use the one from images. AFAICT nothing
in the code references `gen-manifests` except the `test/README` so
it seems safe to remove and just run the one from images.

Note that osbuild/images#693 needs to
land before:
```
go run github.com/osbuild/images/cmd/gen-manifests@latest
```
works.
@mvo5
Copy link
Contributor Author

mvo5 commented May 16, 2024

Closing in favor of #4152

@mvo5 mvo5 closed this May 16, 2024
mvo5 added a commit to mvo5/osbuild-composer that referenced this pull request May 17, 2024
This is a result of the outcome of
osbuild#4124

Achilleas suggested that instead of having a copy of `gen-manifests`
in osbuild-composer we could use the one from images. AFAICT nothing
in the code references `gen-manifests` except the `test/README` so
it seems safe to remove and just use images.

The README got updated to point to `images` and we will also
need to remove `test/data/manifest` at a later point (after
checking that nothing else depends on this anymore).
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.

None yet

2 participants