Bug 703833

Summary: rhnreg_ks complaints on registering Debian client
Product: [Community] Spacewalk Reporter: David Hrbáč <david>
Component: ClientsAssignee: Šimon Lukašík <slukasik>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.4CC: jpazdziora, slukasik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhn-client-tools-1.6.41-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-12 13:12:17 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: 723481    

Description David Hrbáč 2011-05-11 11:43:14 UTC
Description of problem:

During Debian client registration rhnreg_ks says:

simon-test:~# rhnreg_ks --serverUrl=http://spacewalk.vsb.cz/XMLRPC --activationkey=1-debian-test
sh: /sbin/service: not found
sh: /sbin/service: not found


Version-Release number of selected component (if applicable):
simon-test:~# cat /etc/debian_version
6.0.1
rhnsd 0.5.14-6

Comment 1 Jan Pazdziora (Red Hat) 2011-07-20 11:51:45 UTC
Aligning under space16.

Comment 2 Jan Pazdziora (Red Hat) 2011-12-09 10:10:47 UTC
If you do

  ln -s /usr/sbin/service /sbin/service

will it make things work?

Comment 3 David Hrbáč 2011-12-12 09:15:09 UTC
simon-test:~# ls -al  /usr/sbin/service
-rwxr-xr-x 1 root root 4614 Jan  1  2011 /usr/sbin/service

simon-test:~# ln -s /usr/sbin/service /sbin/service

simon-test:~# ls -al /usr/sbin/service /sbin/service
lrwxrwxrwx 1 root root   17 Dec 12 10:11 /sbin/service -> /usr/sbin/service
-rwxr-xr-x 1 root root 4614 Jan  1  2011 /usr/sbin/service

simon-test:~# rhnreg_ks --serverUrl=http://spacewalk.vsb.cz/XMLRPC --activationkey=1-debian-test --force
simon-test:~#

Jane,
Symlink resolves the issue.
DH

Comment 4 Jan Pazdziora (Red Hat) 2011-12-12 09:36:29 UTC
I now added a check for /usr/sbin/service if /sbin/service does not exist, Spacewalk master ae55c7bf1a5ccab257ff7c5e43981b0d77cae563.

Šimon, you might want to rebase the Debian packages with this change.

Comment 5 David Hrbáč 2011-12-12 09:50:59 UTC
Looks good to me, thanks,
DH

Comment 6 Šimon Lukašík 2011-12-12 13:12:17 UTC
Fixed in python-rhn-client-tools_1.6.41-1_all.deb

The package just made it's way to the msychy's repository.

Closing as current release.