Ticket #505 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Chkconfig.py is looking for wrong error message

Reported by: labrown Owned by: desai
Priority: major Milestone:
Component: bcfg2-client Version: 0.9.x
Keywords: VerifyService Cc:

Description

VerifyService? runs this code:

try:

srvdata = self.cmd.run('/sbin/chkconfig --list %s | grep -v "unknown service"'

% entry.attribname?)[1][0].split()

which is broken, at least on Fedora Core 4, Centos4, and Centos5 boxes. chkconfig returns this instead:

trogdor:brown /etc/yum.repos.d $ sudo chkconfig --list asdfasdf Password: error reading information on service asdfasdf: No such file or directory

The error message being grepped for needs to be changed.

Attachments

Change History

Changed 2 years ago by labrown

Blargh. Lemme try that paste again:

trogdor:brown /etc/yum.repos.d $ sudo chkconfig --list asdfasdf
Password:
error reading information on service asdfasdf: No such file or directory

Changed 2 years ago by desai

  • status changed from new to closed
  • resolution set to fixed

Resolved in [4120]

Add/Change #505 (Chkconfig.py is looking for wrong error message)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.