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

[BUG] hauler store copy copies all store content, including non-OCI resources #410

Open
TLASLRDOPSTEAM opened this issue Feb 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@TLASLRDOPSTEAM
Copy link

Environmental Info:

Hauler Version:

  • 1.1.1

Describe the Bug:

  • The command hauler store copy copies the entire store content, including files that are not OCI resources. There are no available options to filter the type of resources to copy (e.g., --image, --chart).

Steps to Reproduce:

  • Add a file to the store:

hauler store add file registry.tar --name install/local/registry.tar

Display store information:

hauler store info

Output:

+-----------------------------------+-------+-------------+----------+---------+
| REFERENCE                         | TYPE  | PLATFORM    | # LAYERS | SIZE    |
+-----------------------------------+-------+-------------+----------+---------+
| install/local/registry.tar:latest | file  | -           |        1 | 26.0 MB |
| library/registry:2.8.`3           | image | linux/amd64 |        5 | 10.1 MB |
|                                   | sigs  | -           |        2 | 609 B   |
+-----------------------------------+-------+-------------+----------+---------+
|                                                            TOTAL   | 36.1 MB |
+-----------------------------------+-------+-------------+----------+---------+

Copy the store to a registry:

hauler store copy registry://registry.lab.local:5000

Output:

2025-02-04 21:13:52 INF install/local/registry.tar:latest
2025-02-04 21:13:52 INF 2025/02/04 21:13:52 pushed blob: sha256:3ce04e6d276167e3025dd4a7b0ad9c175687cfa687468d0f8c60418b7614e6d6
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 pushed blob: sha256:4942321110d7acb55f87e335223e03f01da82b892e0edfa54fa8d7167ddf6296
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 registry.lab.local:5000/install/local/registry.tar:latest: digest: sha256:5c3ac905877dbad5514043d99fb83d5c932fc69c040110dbb62d08c2022b2135 size: 500
2025-02-04 21:13:53 INF library/registry:2.8.3
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 pushed blob: sha256:665375f3730237f2109d398104a2072e38166ecf5d8316b1464f8a005146384e
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 pushed blob: sha256:b6afea20d55c46e60901e594cad0651da46b7437cf42a3c27e52d5bd37320165
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 pushed blob: sha256:f54a5150a7602eaef3169b83e73d5927b20aef2fcaefcba18b532bd63b328fff
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 pushed blob: sha256:9959184a302f6f95d8be97229fb31def6700b1895b1ee92090129b60e6567820
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 pushed blob: sha256:282bd1664cf1fccccf9f225118e31f9352f1f93e4d0ad485c92e74ec6b11ebd1
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 pushed blob: sha256:c8f4e00e7d3c5ea061e25a18ba6127f79930efbbd3f3deb59c272ca0d6de23c3
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 registry.lab.local:5000/library/registry:2.8.3: digest: sha256:57350583fba19eaab4b4632aafa1537483a390dfd29c5b37c9d59e2467ce1b8e size: 1915
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 pushed blob: sha256:d60046a7cba114f4c858d059d96804f8fe718689e1a765ab49f6285d950ae859
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 pushed blob: sha256:3463ccc50eafbdae034ac8ae056433dbab583485ab8a0c683df63b2271543d8d
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 pushed blob: sha256:e8ec5887762e9b7c53cde2cfd444558c1fd54a15020fa5e74ce8e74f6d71c22e
2025-02-04 21:13:53 INF 2025/02/04 21:13:53 registry.lab.local:5000/library/registry:sha256-57350583fba19eaab4b4632aafa1537483a390dfd29c5b37c9d59e2467ce1b8e.sig: digest: sha256:9befb690a467ed355109cb5b76a8efd810d997bc2ffa679ee944839a53f1b8d1 size: 869
2025-02-04 21:13:53 INF copied

podman search registry.lab.local:5000/

Output:

NAME                                                      DESCRIPTION
registry.lab.local:5000/install/local/registry.tar  
registry.lab.local:5000/library/registry

Expected Behavior:

  • An option should be available to copy only specific resource types (e.g., --image, --chart), excluding non-OCI resources.

Actual Behavior:

  • Non-OCI resources are copied into the registry.

Additional Context:

  • Implementing resource-type filters would improve usability and avoid unnecessary file copying.
@TLASLRDOPSTEAM TLASLRDOPSTEAM added the bug Something isn't working label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant