Modify

Ticket #31 (closed defect: fixed)

Opened 14 years ago

Last modified 13 years ago

0.8.1pre8 client super-broken

Reported by: lueningh@… Owned by: desai
Priority: major Milestone:
Component: bcfg2-client Version:
Keywords: Cc:

Description

Running the 0.8.1pre8 client for the first time lead to a long string of tracebacks and a client that, amusingly, kept looping around and reporting that it was dirty. I eventually control-c killed it. Anyway, it said:

RecvProbeData completed successfully
GetConfig completed successfully
> rpm -qa --qf '%{NAME} %{VERSION}-%{RELEASE}
'
Traceback information (please include in any bug report):
File /usr/sbin/bcfg2, line 126, in load_toolset
   self.toolset = mod.ToolsetImpl(self.config, self.setup)

exceptions.NameError: global name 'sys' is not defined

File /usr/lib/python2.3/site-packages/Bcfg2/Client/Redhat.py, line 17, in __init__
   self.Refresh()

exceptions.NameError: global name 'sys' is not defined

File /usr/lib/python2.3/site-packages/Bcfg2/Client/Redhat.py, line 34, in Refresh
   for line in self.saferun("rpm -qa --qf '%{NAME} %{VERSION}-%{RELEASE}\n'")[1]:

exceptions.NameError: global name 'sys' is not defined

File /usr/lib/python2.3/site-packages/Bcfg2/Client/Toolset.py, line 70, in saferun
   runpipe = readonlypipe(command, bufsize=16384)

exceptions.NameError: global name 'sys' is not defined

File /usr/lib/python2.3/site-packages/Bcfg2/Client/Toolset.py, line 33, in __init__
   os.dup2(null.fileno(), sys.__stdin__.fileno())

exceptions.NameError: global name 'sys' is not defined

Fatal error: An unexpected failure occurred in instantiating toolset rh

as well as

> /sbin/chkconfig --list jumbo
Failure in VerifyEntry
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/Bcfg2/Client/Toolset.py", line 208, in VerifyEntry
    self.states[entry] = method(entry)
  File "/usr/lib/python2.3/site-packages/Bcfg2/Client/Redhat.py", line 41, in VerifyService
    srvdata = self.saferun("/sbin/chkconfig --list %s"%entry.attrib['name'])[1][0].split()
  File "/usr/lib/python2.3/site-packages/Bcfg2/Client/Toolset.py", line 70, in saferun
    runpipe = readonlypipe(command, bufsize=16384)
  File "/usr/lib/python2.3/site-packages/Bcfg2/Client/Toolset.py", line 33, in __init__
    os.dup2(null.fileno(), sys.__stdin__.fileno())
NameError: global name 'sys' is not defined

Attachments

toolset.patch (606 bytes) - added by desai 14 years ago.

Change History

Changed 14 years ago by desai

comment:1 Changed 14 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

I think that the attached patch fixes things. It was a missing import. This should be fixed in [515c5c0ffe784820d63764678afc396b989f7ca9] (SVN r1782).

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.