-
Notifications
You must be signed in to change notification settings - Fork 44
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
Adding child commit to repository fails with "parent commit could not be loaded" #279
Comments
Here's a standalone reproducer: #!/usr/bin/env bash
set -euo pipefail
workdir=$(mktemp -d)
cd "${workdir}"
# prepare pulp
pulp ostree repository create --name test
pulp ostree distribution create --name test --repository test --base-path test
# first commit
mkdir "${workdir}/first"
cd "${workdir}/first"
ostree --repo="${workdir}/first/repo" init --mode=archive
mkdir "${workdir}/first/files"
echo "one" > files/file.txt
commit=$(ostree commit --repo "${workdir}/first/repo" --branch ostree-main "${workdir}/first/files/")
cd "${workdir}/first"
tar czvf repo.tar "repo/"
# first upload
pulp ostree repository import-all --name test --file repo.tar --repository_name repo
# second commit
mkdir "${workdir}/second"
cd "${workdir}/second"
mkdir files
echo "two" > files/file2.txt
ostree --repo="${workdir}/second/repo" init --mode=archive
ostree commit --repo repo --branch ostree-main files/ --parent="${commit}"
tar czvf repo.tar repo/
# second upload
echo "Uploading and importing second repo"
pulp ostree repository import-all --name test --file repo.tar --repository_name repo # Error: Task /pulp/api/v3/tasks/.../ failed: 'The parent commit '...' could not be loaded' |
lubosmj
added a commit
to lubosmj/pulp_ostree
that referenced
this issue
Aug 28, 2023
lubosmj
added a commit
to lubosmj/pulp_ostree
that referenced
this issue
Aug 28, 2023
lubosmj
added a commit
to lubosmj/pulp_ostree
that referenced
this issue
Aug 28, 2023
lubosmj
added a commit
to lubosmj/pulp_ostree
that referenced
this issue
Sep 4, 2023
lubosmj
added a commit
to lubosmj/pulp_ostree
that referenced
this issue
Sep 4, 2023
lubosmj
added a commit
to lubosmj/pulp_ostree
that referenced
this issue
Sep 4, 2023
3 tasks
lubosmj
added a commit
that referenced
this issue
Sep 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
pulpcore version: 3.31.0
pulp-ostree version: 2.1.1
Describe the bug
Importing a child commit to a repository fails with
The parent commit '<PARENT COMMIT ID>' could not be loaded
, even though the parent commit is already in the repository.To Reproduce
I have an ostree repository in Pulp with a single commit under the ref
test/iot
. I created a child commit using osbuild-composer.Status checks:
with ostree summary
With
commit.tar
being the child tarball built by image builder:Expected behavior
The child commit should import successfully and become the new commit for the
test/iot
ref.Additional context
The following appears in the pulp container log
The text was updated successfully, but these errors were encountered: