Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 772574

Summary: Puppet: Could not set 'link on ensure: No such file or directory'
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: InstallationAssignee: Ivan Necas <inecas>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: sghai
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:17:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 747354    

Description Lukas Zapletal 2012-01-09 10:00:48 UTC
This is with the latest:

katello-0.1.170-1.el6.noarch
katello-all-0.1.170-1.el6.noarch
katello-certs-tools-1.0.1-1.el6.noarch
katello-cli-0.1.34-1.el6.noarch
katello-cli-common-0.1.34-1.el6.noarch
katello-common-0.1.170-1.el6.noarch
katello-configure-0.1.51-1.el6.noarch
katello-glue-candlepin-0.1.170-1.el6.noarch
katello-glue-foreman-0.1.170-1.el6.noarch
katello-glue-pulp-0.1.170-1.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-repos-0.1.4-1.el6.noarch
katello-trusted-ssl-cert-1.0-1.noarch

error:

Starting Katello configuration
The top-level log file is
[/var/log/katello/katello-configure-20120106-174925/main.log]
err: /File[/etc/pki/pulp/content/pulp-global-repo.ca]/ensure: change
from absent to link failed: Could not set 'link on ensure: No such
file or directory - /etc/pki/pulp/content at
/usr/share/katello/install/puppet/modules/pulp/manifests/config.pp:15
err: /Stage[main]/Pulp::Config/Exec[set candlepin crl file]/returns:
change from notrun to 0 failed: /usr/bin/openssl x509 -in
'/etc/candlepin/certs/candlepin-ca.crt' -hash -noout | /usr/bin/xargs
-I{} /bin/ln -sf '/var/lib/candlepin/candlepin-crl.crl'
'/etc/pki/pulp/content/{}.r0' returned 123 instead of one of [0] at
/usr/share/katello/install/puppet/modules/pulp/manifests/config.pp:28

Comment 1 Lukas Zapletal 2012-01-09 10:22:24 UTC
768420 - config Pulp for new content location (a226f3506d5415c3856ae7957b5132aa8329a139) introduced this.

FYI We are creating this symlink because of:

https://www.redhat.com/archives/katello-devel/2011-September/msg00157.html

The error is:

# /usr/bin/openssl x509 -in '/etc/candlepin/certs/candlepin-ca.crt' -hash -noout | /usr/bin/xargs -I{} /bin/ln -sf '/var/lib/candlepin/candlepin-crl.crl' '/etc/pki/pulp/content/{}.r0'
/bin/ln: failed to create symbolic link `/etc/pki/pulp/content/76372f23.r0': No such file or directory

# ls /etc/pki/pulp/content -lad
Not found...

Comment 2 Lukas Zapletal 2012-01-09 12:41:27 UTC
Enabling testing repo until CR is out.

150c020 772574 - enabling pulp-testing repo

Comment 3 Lukas Zapletal 2012-01-09 13:51:14 UTC
Oh the patch does not change a thing since we do not use puppet installation tasks (only setup tasks). We do setup repos using rpms. Reverting.

I guess we could provide katello-repos-testing rpm. More on the list.

Comment 4 Sachin Ghai 2012-01-16 11:24:04 UTC
I faced the similar issue today. However seems that we need to use pulp-testing repo as of now. I installed katello with enabling pulp-testing repo and katello-configure ran perfectly. So moving this to verified.

[root@dhcp201-176 yum.repos.d]# katello-configure 
Starting Katello configuration
The top-level log file is [/var/log/katello/katello-configure-20120116-160105/main.log]
[root@dhcp201-176 yum.repos.d]# echo $?
0


[root@dhcp201-176 yum.repos.d]# yum repolist
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.
repo id                           repo name                            status
candlepin                         An open source entitlement managemen     5
epel                              Extra Packages for Enterprise Linux  6,843
katello                           integrates together a series of open   156
pulp-testing                      Pulp Testing Builds                     20
rhel-x86_64-server-6.1.z          RHEL EUS Server (v. 6.1.z for 64-bit 5,622
rhel-x86_64-server-optional-6.1.z RHEL EUS Server Optional (v. 6.1.z 6 3,662
thumbslug                         An open source content proxy             3
repolist: 16,311
[root@dhcp201-176 yum.repos.d]# 


root@dhcp201-176 yum.repos.d]# rpm -qa | grep -ie katello-0 -ie pulp-0
katello-0.1.178-1.el6.noarch
katello-glue-pulp-0.1.178-1.el6.noarch
pulp-0.0.257-1.el6.noarch
[root@dhcp201-176 yum.repos.d]#

Comment 7 Mike McCune 2013-08-16 18:20:01 UTC
getting rid of 6.0.0 version since that doesn't exist