Bug 2106530
Summary: | Migration to pulp3 requires additional disk space to migrate the docker blobs ( /var/lib/pulp/content/units/docker_blob ) in Satellite 6.9 | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sayan Das <saydas> |
Component: | Pulp | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED WORKSFORME | QA Contact: | Vladimír Sedmík <vsedmik> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.9.9 | CC: | dalley, ggainey, ipanova, ttereshc |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-10-19 18:09:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sayan Das
2022-07-12 21:50:34 UTC
There is nothing special about docker blobs, they should be handled in the same way as other content with artifacts. Looking at the traceback `shutil.copy2(pulp2_storage_path, pulp3_storage_path)`, it seems that Pulp does go into the copy mode. That's a failover behaviour when it is not possible to create hard links https://github.com/pulp/pulp-2to3-migration/blob/0.11/pulp_2to3_migration/app/plugin/content.py#L144-L150 Could you or customer check that it is possible to create a hard link from pulp3 storage to a docker blob in pulp2 storage? cc @ggainey @ipanova (In reply to Tanya Tereshchenko from comment #4) > There is nothing special about docker blobs, they should be handled in the > same way as other content with artifacts. > Looking at the traceback `shutil.copy2(pulp2_storage_path, > pulp3_storage_path)`, it seems that Pulp does go into the copy mode. > That's a failover behaviour when it is not possible to create hard links > https://github.com/pulp/pulp-2to3-migration/blob/0.11/pulp_2to3_migration/ > app/plugin/content.py#L144-L150 > > Could you or customer check that it is possible to create a hard link from > pulp3 storage to a docker blob in pulp2 storage? > > cc @ggainey @ipanova Hello Tanya, So my doubt was correct for this CU i.e. the docker_blobs were indeed being copied instead of hard-linked. They use XFS file system for /var LV and that is the only LV that contains all satellite+pulp stuff. So I am not sure why hard linking will fail and fall back to failover code. Anyway, I am testing migration on a small scale and have requested the customer to do the following as well i.e. * Take Any one docker_blob file from inside /var/lib/pulp/content/units/docker_blob/*/ directory and try to hardlink it by a different name inside /var/lib/pulp/media/artifacts. * Once done, verify the inode number of both and share that data with me. If the customer gets back to me, I will share the details here. |