Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 581541

Summary: osad says it starts OK but there is no process running
Product: Red Hat Satellite 5 Reporter: Issue Tracker <tao>
Component: ClientAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED EOL QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 530CC: dariusz.panasiuk, degts, kabbott, pbatkowski, tao, tlestach, vgaikwad, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-21 16:00:16 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: 462714    

Comment 11 Issue Tracker 2010-04-12 15:01:24 UTC
Event posted on 04-12-2010 10:56am EDT by vgaikwad

--- Engineering ---

# /etc/init.d/osad start
+ . /etc/rc.d/init.d/functions
++ TEXTDOMAIN=initscripts
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin
++ export PATH
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -f /etc/sysconfig/i18n -a -z '' ']'
++ . /etc/profile.d/lang.sh
+++ sourced=0
+++ for langfile in /etc/sysconfig/i18n '$HOME/.i18n'
+++ '[' -f /etc/sysconfig/i18n ']'
+++ . /etc/sysconfig/i18n
++++ LANG=en_US.UTF-8
++++ SYSFONT=latarcyrheb-sun16
+++ sourced=1
+++ for langfile in /etc/sysconfig/i18n '$HOME/.i18n'
+++ '[' -f /root/.i18n ']'
+++ '[' -n '' ']'
+++ '[' 1 = 1 ']'
+++ '[' -n en_US.UTF-8 ']'
+++ export LANG
+++ '[' -n '' ']'
+++ unset LC_ADDRESS
+++ '[' -n '' ']'
+++ unset LC_CTYPE
+++ '[' -n '' ']'
+++ unset LC_COLLATE
+++ '[' -n '' ']'
+++ unset LC_IDENTIFICATION
+++ '[' -n '' ']'
+++ unset LC_MEASUREMENT
+++ '[' -n '' ']'
+++ unset LC_MESSAGES
+++ '[' -n '' ']'
+++ unset LC_MONETARY
+++ '[' -n '' ']'
+++ unset LC_NAME
+++ '[' -n '' ']'
+++ unset LC_NUMERIC
+++ '[' -n '' ']'
+++ unset LC_PAPER
+++ '[' -n '' ']'
+++ unset LC_TELEPHONE
+++ '[' -n '' ']'
+++ unset LC_TIME
+++ '[' -n '' ']'
+++ unset LC_ALL
+++ '[' -n '' ']'
+++ unset LANGUAGE
+++ '[' -n '' ']'
+++ unset LINGUAS
+++ '[' -n '' ']'
+++ unset _XKB_CHARSET
+++ consoletype=pty
+++ '[' -z pty ']'
+++ '[' -n '' ']'
+++ '[' -n '' ']'
+++ '[' -n en_US.UTF-8 ']'
+++ case $LANG in
+++ '[' xterm = linux ']'
+++ unset SYSFONTACM SYSFONT
+++ unset sourced
+++ unset langfile
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ GRAPHICAL=yes
+++ RES_COL=60
+++ MOVE_TO_COL='echo -en \033[60G'
+++ SETCOLOR_SUCCESS='echo -en \033[0;32m'
+++ SETCOLOR_FAILURE='echo -en \033[0;31m'
+++ SETCOLOR_WARNING='echo -en \033[0;33m'
+++ SETCOLOR_NORMAL='echo -en \033[0;39m'
+++ LOGLEVEL=3
+++ PROMPT=yes
+++ AUTOSWAP=no
++ '[' pty = serial ']'
++ '[' color '!=' verbose ']'
++ INITLOG_ARGS=-q
++
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
+ . /etc/sysconfig/network
++ NETWORKING=yes
++ NETWORKING_IPV6=yes
++ HOSTNAME=reserved208-85.gsslab.pnq.redhat.com
+ '[' yes = no ']'
+ RETVAL=0
+ prog=osad
+ script=/usr/sbin/osad
+ '[' -f /usr/sbin/osad ']'
+ case "$1" in
+ start
+ echo -n 'Starting osad: '
Starting osad: + daemon /usr/sbin/osad --pid-file /var/run/osad.pid
+ local gotbase= force= nicelevel corelimit
+ local pid base= user= nice= bg= pid_file=
+ nicelevel=0
+ '[' /usr/sbin/osad '!=' /usr/sbin/osad ']'
+ '[' -z '' ']'
+ base=osad
+ __pids_var_run osad ''
+ local base=osad
+ local pid_file=/var/run/osad.pid
+ pid=
+ '[' -f /var/run/osad.pid ']'
+ return 3
+ '[' -n '' -a -z '' ']'
+ corelimit='ulimit -S -c 0'
+ '[' -n '' ']'
+ '[' color = verbose -a -z '' ']'
+ '[' -z '' ']'
+ /bin/bash -c 'ulimit -S -c 0 >/dev/null 2>&1 ; /usr/sbin/osad
--pid-file /var/run/osad.pid'
2010-04-12 20:27:52 osad._setup_config: Updating configuration
2010-04-12 20:27:52 osad._setup_config: Time drift -1201
2010-04-12 20:27:52 osad._setup_config: Client name 49a37dd310da762d
2010-04-12 20:27:52 osad._setup_config: Shared key
1611924220436dd30acf82110a8adce8e3ecf341
2010-04-12 20:27:52 jabber_lib.setup_connection: Connecting to
rhns-15.gsslab.pnq.redhat.com
2010-04-12 20:27:52 jabber_lib._get_jabber_client: 
2010-04-12 20:27:52 jabber_lib._get_jabber_client: Connecting to
rhns-15.gsslab.pnq.redhat.com
2010-04-12 20:27:52 jabber_lib.__init__: 
2010-04-12 20:27:52 jabber_lib.__init__: 
2010-04-12 20:27:52 jabber_lib.check_cert: Loading cert <X509Name object
'/C=IN/ST=MH/L=Pune/O=GSS/OU=rhns-15.gsslab.pnq.redhat.com/CN=rhns-15.gsslab.pnq.redhat.com'>
2010-04-12 20:27:52 jabber_lib.connect: 
2010-04-12 20:27:52 jabber_lib.connect: Attempting to connect
--> <?xml version='1.0' encoding='UTF-8'?><stream:stream
to='rhns-15.gsslab.pnq.redhat.com' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>

2010-04-12 20:27:52 jabber_lib.process: 300
2010-04-12 20:27:52 jabber_lib.process: before select(); timeout
299.999998808
2010-04-12 20:27:52 jabber_lib.process: select() returned
2010-04-12 20:27:52 jabber_lib._auth_dispatch: <features><starttls xmlns =
'urn:ietf:params:xml:ns:xmpp-tls'  /><mechanisms xmlns =
'urn:ietf:params:xml:ns:xmpp-sasl'
><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms></features>
<-- <features><starttls xmlns = 'urn:ietf:params:xml:ns:xmpp-tls' 
/><mechanisms xmlns = 'urn:ietf:params:xml:ns:xmpp-sasl'
><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms></features>

2010-04-12 20:27:52 jabber_lib.connect: Connected
2010-04-12 20:27:52 jabber_lib.connect: Expecting features stanza, got:
<features><starttls xmlns = 'urn:ietf:params:xml:ns:xmpp-tls' 
/><mechanisms xmlns = 'urn:ietf:params:xml:ns:xmpp-sasl'
><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms></features>
2010-04-12 20:27:52 jabber_lib.connect: starttls node <starttls />
2010-04-12 20:27:52 jabber_lib.process: None
2010-04-12 20:27:52 jabber_lib.process: before select(); timeout None
2010-04-12 20:27:52 jabber_lib.process: select() returned
2010-04-12 20:27:52 jabber_lib._auth_dispatch: <proceed />
<-- <proceed />

2010-04-12 20:27:52 jabber_lib.connect: Expecting proceed stanza, got:
<proceed />
2010-04-12 20:27:52 jabber_lib.connect: Preparing for TLS handshake
--> <?xml version='1.0' encoding='UTF-8'?><stream:stream
to='rhns-15.gsslab.pnq.redhat.com' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>

2010-04-12 20:27:52 jabber_lib.process: None
2010-04-12 20:27:52 jabber_lib.process: before select(); timeout None
2010-04-12 20:27:52 jabber_lib.process: select() returned
2010-04-12 20:27:52 jabber_lib.process: Reading 1024 bytes from ssl
socket
2010-04-12 20:27:52 jabber_lib.process: Read 203 bytes
2010-04-12 20:27:52 jabber_lib.process: None
2010-04-12 20:27:52 jabber_lib.process: before select(); timeout None
2010-04-12 20:27:52 jabber_lib.process: select() returned
2010-04-12 20:27:52 jabber_lib.process: Reading 1024 bytes from ssl
socket
2010-04-12 20:27:52 jabber_lib.process: Read 210 bytes
2010-04-12 20:27:52 jabber_lib._auth_dispatch: <features><mechanisms xmlns
= 'urn:ietf:params:xml:ns:xmpp-sasl'
><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms></features>
<-- <features><mechanisms xmlns = 'urn:ietf:params:xml:ns:xmpp-sasl'
><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms></features>

2010-04-12 20:27:52 jabber_lib.connect: connect returning
2010-04-12 20:27:52 jabber_lib.setup_connection: Connected to jabber
server rhns-15.gsslab.pnq.redhat.com
2010-04-12 20:27:52 jabber_lib.push_to_background: Pushing process into
background
+ '[' 0 -eq 0 ']'
+ success 'osad startup'
+ '[' color '!=' verbose -a -z '' ']'
+ echo_success
+ '[' color = color ']'
+ echo -en '\033[60G'
                                                           + echo -n
'['
[+ '[' color = color ']'
+ echo -en '\033[0;32m'
+ echo -n '  OK  '
  OK  + '[' color = color ']'
+ echo -en '\033[0;39m'
+ echo -n ']'
]+ echo -ne '\r'
+ return 0
+ return 0
+ RETVAL=0
+ '[' 0 -eq 0 ']'
+ echo_success
+ '[' color = color ']'
+ echo -en '\033[60G'
                                                           + echo -n
'['
[+ '[' color = color ']'
+ echo -en '\033[0;32m'
+ echo -n '  OK  '
  OK  + '[' color = color ']'
+ echo -en '\033[0;39m'
+ echo -n ']'
]+ echo -ne '\r'
+ return 0
+ echo

+ '[' 0 -eq 0 ']'
+ touch /var/lock/subsys/osad
+ return 0
+ exit 0


[root@reserved208-85 ~]# /etc/init.d/osad status
+ . /etc/rc.d/init.d/functions
++ TEXTDOMAIN=initscripts
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin
++ export PATH
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -f /etc/sysconfig/i18n -a -z '' ']'
++ . /etc/profile.d/lang.sh
+++ sourced=0
+++ for langfile in /etc/sysconfig/i18n '$HOME/.i18n'
+++ '[' -f /etc/sysconfig/i18n ']'
+++ . /etc/sysconfig/i18n
++++ LANG=en_US.UTF-8
++++ SYSFONT=latarcyrheb-sun16
+++ sourced=1
+++ for langfile in /etc/sysconfig/i18n '$HOME/.i18n'
+++ '[' -f /root/.i18n ']'
+++ '[' -n '' ']'
+++ '[' 1 = 1 ']'
+++ '[' -n en_US.UTF-8 ']'
+++ export LANG
+++ '[' -n '' ']'
+++ unset LC_ADDRESS
+++ '[' -n '' ']'
+++ unset LC_CTYPE
+++ '[' -n '' ']'
+++ unset LC_COLLATE
+++ '[' -n '' ']'
+++ unset LC_IDENTIFICATION
+++ '[' -n '' ']'
+++ unset LC_MEASUREMENT
+++ '[' -n '' ']'
+++ unset LC_MESSAGES
+++ '[' -n '' ']'
+++ unset LC_MONETARY
+++ '[' -n '' ']'
+++ unset LC_NAME
+++ '[' -n '' ']'
+++ unset LC_NUMERIC
+++ '[' -n '' ']'
+++ unset LC_PAPER
+++ '[' -n '' ']'
+++ unset LC_TELEPHONE
+++ '[' -n '' ']'
+++ unset LC_TIME
+++ '[' -n '' ']'
+++ unset LC_ALL
+++ '[' -n '' ']'
+++ unset LANGUAGE
+++ '[' -n '' ']'
+++ unset LINGUAS
+++ '[' -n '' ']'
+++ unset _XKB_CHARSET
+++ consoletype=pty
+++ '[' -z pty ']'
+++ '[' -n '' ']'
+++ '[' -n '' ']'
+++ '[' -n en_US.UTF-8 ']'
+++ case $LANG in
+++ '[' xterm = linux ']'
+++ unset SYSFONTACM SYSFONT
+++ unset sourced
+++ unset langfile
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ GRAPHICAL=yes
+++ RES_COL=60
+++ MOVE_TO_COL='echo -en \033[60G'
+++ SETCOLOR_SUCCESS='echo -en \033[0;32m'
+++ SETCOLOR_FAILURE='echo -en \033[0;31m'
+++ SETCOLOR_WARNING='echo -en \033[0;33m'
+++ SETCOLOR_NORMAL='echo -en \033[0;39m'
+++ LOGLEVEL=3
+++ PROMPT=yes
+++ AUTOSWAP=no
++ '[' pty = serial ']'
++ '[' color '!=' verbose ']'
++ INITLOG_ARGS=-q
++
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
+ . /etc/sysconfig/network
++ NETWORKING=yes
++ NETWORKING_IPV6=yes
++ HOSTNAME=reserved208-85.gsslab.pnq.redhat.com
+ '[' yes = no ']'
+ RETVAL=0
+ prog=osad
+ script=/usr/sbin/osad
+ '[' -f /usr/sbin/osad ']'
+ case "$1" in
+ status /usr/sbin/osad
+ local base pid pid_file=
+ '[' 1 = 0 ']'
+ '[' /usr/sbin/osad = -p ']'
+ base=osad
+ __pids_var_run /usr/sbin/osad ''
+ local base=osad
+ local pid_file=/var/run/osad.pid
+ pid=
+ '[' -f /var/run/osad.pid ']'
+ local line p
+ read line
+ for p in '$line'
+ '[' -z '' -a -d /proc/14198 ']'
+ '[' -n '' ']'
+ return 1
+ RC=1
+ '[' -z '' -a -z '' ']'
++ __pids_pidof /usr/sbin/osad
++ pidof -c -o 14226 -o 13971 -o %PPID -x /usr/sbin/osad
++ pidof -c -o 14226 -o 13971 -o %PPID -x osad
+ pid=
+ '[' -n '' ']'
+ case "$RC" in
+ echo 'osad dead but pid file exists'
osad dead but pid file exists
+ return 1
+ RETVAL=1
+ exit 1



This event sent from IssueTracker by vgaikwad  [Support Engineering Group]
 issue 688133

Comment 12 Vishal Gaikwad 2010-04-12 15:05:24 UTC
--- Engineering ---

The Expected behaviour from osad is that it should report success only if it has started successfully. If not it should give us an error or 'FAILED' indication.

regards,

Comment 20 Tomas Lestach 2016-01-21 16:00:16 UTC
We have re-reviewed this bug, as part of an ongoing effort to improve Satellite/Proxy feature and bug updates, review and backlog.
We're closing this Bugzilla due to the Satellite 5 version this bug was reported against having been EOL (End-of-Life) [1].
Please re-open if the issue still exists in the latest Satellite 5 version.

[1] Satellite Life Cycle page: https://access.redhat.com/support/policy/updates/satellite