-
Notifications
You must be signed in to change notification settings - Fork 116
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
Pulp file sync for remote manifest files #6112
Comments
Can you post what the contents of the manifest file are? Like the error message says the sync is expecting a specific format for each line so I would first check that your file follows the format correctly.
I am not sure I understand what your question means. You can always do an on_demand sync by setting the |
I ran these command: pulp file repository create --name k8s-manifest-repo Once I try to sync this I get below errors: However, my second paragraph means I was able to upload after downloading it on my machine using Is there any way to sync above one without downloading it on machine? |
@gerrod3 Is there any missing part or it is something under consideration? |
I think I understand what you are missing. You are trying to "sync" these yml files into a pulp-file repo without downloading & uploading them manually, correct? In order to sync files they need to be present in a format that pulp-file can understand. Take a look at an example repository we use in our tests to understand the repository layout pulp-file expects to find: https://fixtures.pulpproject.org/file/. The If there is no easy way to group all the yml files you want into a repository that you can sync, you could create the content one by one using the file-url field on file create. e.g. |
I am unable to sync repo for manifest file (example-> https://example.com/xyz.yaml ) present over remote url.
However, I am able to upload content on pulp repo for locally present yaml manifest files. Is there any way to do to sync remotely without downloading on localhost ? I am unable to find such things in document.
Repo details
pulp file repository list
[
{
"pulp_href": "/pulp/api/v3/repositories/file/file/01939b23-e5e2-726c-9bc0-8f523e847cf5/",
"prn": "prn:file.filerepository:01939b23-e5e2-726c-9bc0-8f523e847cf5",
"pulp_created": "2024-12-06T08:44:01.380551Z",
"pulp_last_updated": "2024-12-06T08:44:01.404199Z",
"versions_href": "/pulp/api/v3/repositories/file/file/01939b23-e5e2-726c-9bc0-8f523e847cf5/versions/",
"pulp_labels": {},
"latest_version_href": "/pulp/api/v3/repositories/file/file/01939b23-e5e2-726c-9bc0-8f523e847cf5/versions/0/",
"name": "mpi-operator-repo",
"description": null,
"retain_repo_versions": null,
"remote": null,
"autopublish": false,
"manifest": "PULP_MANIFEST"
}
]
Below errors:
pulp file repository sync --name mpi-operator-repo --remote mpi-operator-remote
Started background task /pulp/api/v3/tasks/01939b24-4000-730d-825e-60b9fdc335cd/
Error: Task /pulp/api/v3/tasks/01939b24-4000-730d-825e-60b9fdc335cd/ failed: 'Error: Parsing of the manifest file failed on line:9.
Please make sure the remote URL is pointing to a valid manifest file.
The manifest file should be composed of lines in the following format: <relative_path>,,.'
The text was updated successfully, but these errors were encountered: