[Pulp-list] Symbolically linked CentOS distribution files in pulp rpm repo

Robbie Cannings rcannings at rcannings.com
Fri Jan 8 03:53:43 UTC 2016


Hi,



I’m using a combination of Pulp and Cobbler for deployment of CentOS Linux
environments as follows:



PXE boot via Cobbler (version 2.6.7-1) on CentOS 7.1

-          initrd loaded via TFTP (managed by Cobbler)

-          kernel loaded via TFTP (managed by Cobbler)

-          Kickstart loaded via HTTP (generated by Cobbler)

o   URL for installation points to a Pulp repo



Load root squashfs via HTTP - repo managed by Pulp (version 2.6.2-1)







This was all working perfectly in CentOS 7.1 (the first repo I deployed in
Pulp). Likewise 6.5 worked perfectly too when I created and sync’d the
repo. When I created a new rpm repo for 7.2 however, I can no longer boot
into the 7.1 installer. It fatally terminates the installer when setting up
the new filesystems due to an xfs error, which (when investigated further)
was caused by the loaded kernel (from 7.1 - 3.10.0-229.el7.x86_64) being
different to the kernel the 7.2 squashed-rootfs installation environment
was built against (3.10.0-327.el7.x86_64).



As it turns out, Pulp symbolically links the kernel, initrd and LiveOS data
for minor releases to the Linux major release.

Is there a way to disable the symbolic linking of these distro files, so
that when I reference the 7.1 URL in a kickstart I can load the 7.1
squashed-rootfs? I need to be able to boot installers for both 7.1 and 7.2
using the Pulp repo (as well as future 7.3 etc).





[root at pulp-server ~]# find /var/lib/pulp -name vmlinuz -ls

139105341    0 lrwxrwxrwx   1 apache   apache         77 Aug 12
09:29 /var/lib/pulp/published/yum/master/yum_distributor/centos7.1_os/1439335752.46/images/pxeboot/vmlinuz
->
/var/lib/pulp/content/distribution/ks-CentOS--7-x86_64/images/pxeboot/vmlinuz

269922911    0 lrwxrwxrwx   1 apache   apache         77 Aug 10
13:35 /var/lib/pulp/published/yum/master/yum_distributor/centos7.0_os/1439177642.07/images/pxeboot/vmlinuz
->
/var/lib/pulp/content/distribution/ks-CentOS--7-x86_64/images/pxeboot/vmlinuz

41699877    0 lrwxrwxrwx   1 apache   apache         79 Sep 11
13:20 /var/lib/pulp/published/yum/master/yum_distributor/centos6.5_os/1441941526.59/images/pxeboot/vmlinuz
->
/var/lib/pulp/content/distribution/ks-CentOS--6.5-x86_64/images/pxeboot/vmlinuz

1073746446    0 lrwxrwxrwx   1 apache   apache         77 Jan  4 22:01
/var/lib/pulp/published/yum/master/yum_distributor/centos7.2_os/1451904964.13/images/pxeboot/vmlinuz
->
/var/lib/pulp/content/distribution/ks-CentOS--7-x86_64/images/pxeboot/vmlinuz

443617954 4032 -rw-r--r--   1 apache   apache    4128368 Sep 11
11:53 /var/lib/pulp/content/distribution/ks-CentOS--6.5-x86_64/images/pxeboot/vmlinuz

811174016 4912 -rwxr-xr-x   1 apache   apache    5029136 Jan  5 08:52
/var/lib/pulp/content/distribution/ks-CentOS--7-x86_64/images/pxeboot/vmlinuz





[root at pulp-server ~]# find /var/lib/pulp -name squashfs.img -ls

270143315    0 lrwxrwxrwx   1 apache   apache         74 Aug 12
09:29 /var/lib/pulp/published/yum/master/yum_distributor/centos7.1_os/1439335752.46/LiveOS/squashfs.img
->
/var/lib/pulp/content/distribution/ks-CentOS--7-x86_64/LiveOS/squashfs.img

404071217    0 lrwxrwxrwx   1 apache   apache         74 Aug 10
13:35 /var/lib/pulp/published/yum/master/yum_distributor/centos7.0_os/1439177642.07/LiveOS/squashfs.img
->
/var/lib/pulp/content/distribution/ks-CentOS--7-x86_64/LiveOS/squashfs.img

1280938    0 lrwxrwxrwx   1 apache   apache         74 Jan  4 22:01
/var/lib/pulp/published/yum/master/yum_distributor/centos7.2_os/1451904964.13/LiveOS/squashfs.img
->
/var/lib/pulp/content/distribution/ks-CentOS--7-x86_64/LiveOS/squashfs.img

939607697 390556 -rw-r--r--   1 apache   apache   399929344 Jan  7 08:14
/var/lib/pulp/content/distribution/ks-CentOS--7-x86_64/LiveOS/squashfs.img



(Interestingly, CentOS 6.5 LiveOS didn’t get sync’d into the distribution
directory)



I can see that both the 7.1 repo and 7.2 repo are linked to the major
number release, but can’t find any commands to separate them, unlink them,
etc (and I don’t want to go playing with symlinks for the fear that I’ll
break the automated pulp workflows).



[root at pulp-server~]# pulp-admin rpm repo content distribution
--repo-id=centos7.1_os

Id:            ks-CentOS--7-x86_64

Family:        CentOS

Architecture:  x86_64

Variant:

Storage Path:  /var/lib/pulp/content/distribution/ks-CentOS--7-x86_64



Files:

  Filename:       initrd.img

  Relative Path:  images/pxeboot/initrd.img

  Size:           None

  Checksum Type:  sha256

  Checksum:
ad1f8fc2bebe9ec1eb5c36d4c38177e39fe8423602098d60c29804081f81b8

                  bd



  Filename:       vmlinuz

  Relative Path:  images/pxeboot/vmlinuz

  Size:           None

  Checksum Type:  sha256

  Checksum:
ee2df000e29c79ae96db95f61766a8c5adc527d8c92c4114badedf251f73b2

                  0e



  Filename:       boot.iso

  Relative Path:  images/boot.iso

  Size:           None

  Checksum Type:  sha256

  Checksum:
9ed9ffb5d89ab8cca834afce354daa70a21dcb410f58287d6316259ff89758

                  f5



  Filename:       upgrade.img

  Relative Path:  images/pxeboot/upgrade.img

  Size:           None

  Checksum Type:  sha256

  Checksum:
fa54ce9a3aedad9d7de59507410af3eec51ac7e65b45b7ac9a14c971f33e45

                  cf



  Filename:       efiboot.img

  Relative Path:  images/efiboot.img

  Size:           None

  Checksum Type:  sha256

  Checksum:
08743dd12b338a6c726dd0d66e2109e18e19db8b6f0191f9882929035e7875

                  a6



  Filename:       squashfs.img

  Relative Path:  LiveOS/squashfs.img

  Size:           None

  Checksum Type:  sha256

  Checksum:
1778a13e6a0bd98c0db94c4c068e08f84f6f91cdca7b2a5111aad1b5a181c0

                  c4



[root at pulp-server ~]# pulp-admin rpm repo content distribution
--repo-id=centos7.2_os

Id:            ks-CentOS--7-x86_64

Family:        CentOS

Architecture:  x86_64

Variant:

Storage Path:  /var/lib/pulp/content/distribution/ks-CentOS--7-x86_64



Files:

  Filename:       initrd.img

  Relative Path:  images/pxeboot/initrd.img

  Size:           None

  Checksum Type:  sha256

  Checksum:
ad1f8fc2bebe9ec1eb5c36d4c38177e39fe8423602098d60c29804081f81b8

                  bd



  Filename:       vmlinuz

  Relative Path:  images/pxeboot/vmlinuz

  Size:           None

  Checksum Type:  sha256

  Checksum:
ee2df000e29c79ae96db95f61766a8c5adc527d8c92c4114badedf251f73b2

                  0e



  Filename:       boot.iso

  Relative Path:  images/boot.iso

  Size:           None

  Checksum Type:  sha256

  Checksum:
9ed9ffb5d89ab8cca834afce354daa70a21dcb410f58287d6316259ff89758

                  f5



  Filename:       upgrade.img

  Relative Path:  images/pxeboot/upgrade.img

  Size:           None

  Checksum Type:  sha256

  Checksum:
fa54ce9a3aedad9d7de59507410af3eec51ac7e65b45b7ac9a14c971f33e45

                  cf



  Filename:       efiboot.img

  Relative Path:  images/efiboot.img

  Size:           None

  Checksum Type:  sha256

  Checksum:
08743dd12b338a6c726dd0d66e2109e18e19db8b6f0191f9882929035e7875

                  a6



  Filename:       squashfs.img

  Relative Path:  LiveOS/squashfs.img

  Size:           None

  Checksum Type:  sha256

  Checksum:
1778a13e6a0bd98c0db94c4c068e08f84f6f91cdca7b2a5111aad1b5a181c0

                  c4


Any help in the right direction would be greatly appreciated. Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20160108/687f6b42/attachment.htm>


More information about the Pulp-list mailing list