Modify

Ticket #1065 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

TCheetah = argument 1 must be string or read-only character buffer, not None

Reported by: https://www.google.com/accounts/o8/id?id=AItOawm7-QeHxXGyyMwjN6_wFPC-gGTvrxu0YaE Owned by: desai
Priority: major Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-server Version: 1.0
Keywords: TCheetah Cc: [email protected]…, [email protected]

Description

Installing ConfigFile /etc/snmp/snmpd.conf
Unexpected failure of install method for entry type Path
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/__init__.py", line 150, in Install
    states[entry] = func(entry)
  File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/POSIX.py", line 735, in InstallPath
    return ret(entry)
  File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/POSIX.py", line 715, in Installfile
    return ret(entry)
  File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/POSIX.py", line 674, in InstallConfigFile
    newfile.write(filedata)
TypeError: argument 1 must be string or read-only character buffer, not None

The file TCheetah/etc/snmp/snmpd.conf/template is empty:

nagios# cat TCheetah/etc/snmp/snmpd.conf/template
nagios#

Attachments

Change History

comment:1 Changed 11 years ago by solj

What version are you using? I believe this is fixed in 3c290811195e23c9a948ac15c304b34ea16fbe9b.

comment:2 Changed 11 years ago by https://www.google.com/accounts/o8/id?id=AItOawm7-QeHxXGyyMwjN6_wFPC-gGTvrxu0YaE

I use version 1.1.3 (client and server) from upstream.

comment:3 Changed 11 years ago by solj

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

I have verified that this is, in fact, fixed in the latest code and will work in 1.2.0. Also, on my end, I get an additional warning from the Cheetah code:

/usr/lib64/python2.7/site-packages/Cheetah/Compiler.py:1555: UserWarning: You supplied an empty string for the source!", )
  warnings.warn("You supplied an empty string for the source!", )

comment:4 Changed 11 years ago by solj

  • Milestone changed from Bcfg2 1.2.1 Release (Bugfix) to Bcfg2 1.2.0 Release

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.