Modify ↓
Ticket #241 (closed defect: fixed)
Cfg: probes will fail to execute
Reported by: | [email protected]… | Owned by: | desai |
---|---|---|---|
Priority: | blocker | Milestone: | Bcfg2 0.8.5 Release |
Component: | bcfg2-server | Version: | |
Keywords: | cfg, probes | Cc: |
Description
bcfg2 with Gamin.
When using Cfg with probes, I created a directory repo/Probes/ where I put all my probe files.
Gamin adds the directory repo/Probes to the probes to be executed on the client.
The bcfg2 client will fail with the followjng message:
GetProbes completed successfully Failed to execute probe: /home/gogo/subversion/svn-mj/trunk/bcfg2-repository/Probes Traceback (most recent call last): File "/usr/sbin/bcfg2", line 95, in run_probe script.write(probe.text) TypeError: argument 1 must be string or read-only character buffer, not None Failed to Execute probes
Also if another directory under repo/Probes/ gets created, the error will appear since probe.text is None.
Attachments
Change History
comment:1 Changed 16 years ago by [email protected]…
comment:2 Changed 16 years ago by bradshaw
- Status changed from new to closed
- Resolution set to fixed
So I decided to fix this on the server side instead of the client. I added code so if the probe file is empty it is not included in the config being sent to the client. This fixes the problem and also some of the fallout where we could have probedata that is empty. look at rev 2453
Note: See
TracTickets for help on using
tickets.
I suggest the following workaround:
A better solution would be to only add files as probes under repo/Probes.