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

podman mount: fix storage/libpod ctr race #23645

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Aug 16, 2024

When we create a container we first create it in the storage then in the libpod db so there is a tiny window where it is seen as storage ctr but then by the time we mount it we see it was a libpod container.

Fixes #23637

Does this PR introduce a user-facing change?

None

When we create a container we first create it in the storage then in the
libpod db so there is a tiny window where it is seen as storage ctr but
then by the time we mount it we see it was a libpod container.

Fixes containers#23637

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Copy link
Contributor

openshift-ci bot commented Aug 16, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 16, 2024
Copy link

We were not able to find or create Copr project packit/containers-podman-23645 specified in the config with the following error:

Cannot create a new Copr project (owner=packit project=containers-podman-23645 chroots=['fedora-39-aarch64', 'fedora-40-x86_64', 'fedora-39-x86_64', 'fedora-rawhide-aarch64', 'fedora-40-aarch64', 'fedora-rawhide-x86_64', 'fedora-eln-aarch64', 'fedora-eln-x86_64']): Copr: 'packit/containers-podman-23645' already exists. Copr HTTP response is 400 BAD REQUEST.

Unless the HTTP status code above is >= 500, please check your configuration for:

  1. typos in owner and project name (groups need to be prefixed with @)
  2. whether the project name doesn't contain not allowed characters (only letters, digits, underscores, dashes and dots must be used)
  3. whether the project itself exists (Packit creates projects only in its own namespace)
  4. whether Packit is allowed to build in your Copr project
  5. whether your Copr project/group is not private

@Luap99 Luap99 added the No New Tests Allow PR to proceed without adding regression tests label Aug 16, 2024
@Luap99
Copy link
Member Author

Luap99 commented Aug 16, 2024

@edsantiago PTAL, I think this is the only place where this error could happen

@baude
Copy link
Member

baude commented Aug 16, 2024

LGTM

@mheon
Copy link
Member

mheon commented Aug 16, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 16, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit e8410b8 into containers:main Aug 16, 2024
72 of 82 checks passed
@Luap99 Luap99 deleted the mount-race branch August 16, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. No New Tests Allow PR to proceed without adding regression tests release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

another mount race: ctr XYZ is a libpod container: container already exists
3 participants