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 1222910

Summary: upgrading Capsule 6.0 to 6.1: sh: katello-service: command not found
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: InstallationAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: 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: 2015-05-19 19:59:39 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:
Bug Depends On:    
Bug Blocks: 1195450    

Description Jan Hutař 2015-05-19 12:29:45 UTC
Description of problem:
capsule-installer --upgrade requires katello-service script, but katello-service package provides only link /usr/bin/katello-service pointing to nonexistent location.


Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-7-20150513.0-Capsule-x86_64


How reproducible:
1 of 1


Steps to Reproduce:
1. Install Capsule 6.0
2. Setup 6.1 repos
3. # yum -y upgrade
4. # yum -y install capsule-installer
5. # capsule-installer --upgrade


Actual results:
# capsule-installer --upgrade
Upgrading...
Upgrade Step: stop_services...
Upgrade step stop_services failed. Check logs for more information.

When you install katello-service package, you are step further:

# yum info katello-service | grep 'From repo'
From repo   : sat6-Satellite-6.1.0-RHEL-7-20150513.0-Capsule-x86_64-dvd1.iso
# ls -al `type -p katello-service`
lrwxrwxrwx. 1 root root 41 May 19 07:10 /usr/bin/katello-service -> /usr/share/katello/script/katello-service
# yum install /usr/share/katello/script/katello-service
Loaded plugins: package_upload, product-id, subscription-manager
[...]
No package /usr/share/katello/script/katello-service available.
Error: Nothing to do

When I attempt to install katello-common package which owns the target file in Satellite repo, due to dependencies it wants to take 406 dependent packages with it.


Expected results:
Should work


Additional info:
I have workarounded this by creating mine own dumb katello-service script (based on bug 1195618 comment #17):

# cat /usr/share/katello/script/katello-service
#!/bin/bash
if [ "$1" == 'start' ]; then
  for app in pulp_workers pulp_celerybeat pulp_resource_manager; do service $app start; done
elif [ "$1" == 'stop' ]; then
  for app in pulp_workers pulp_celerybeat pulp_resource_manager; do service $app stop; done
elif [ "$1" == 'restart' ]; then
  for app in pulp_workers pulp_celerybeat pulp_resource_manager; do service $app stop; done
  for app in pulp_workers pulp_celerybeat pulp_resource_manager; do service $app start; done
elif [ "$1" == 'status' ]; then
  return 0
fi

Comment 4 RHEL Program Management 2015-05-19 12:43:58 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.