SOLVED: in installing Mercury 1.1 on Centos 5.5 - BCFG2-SERVER doesn't start

Events happening in the community are now at Drupal community events on www.drupal.org.
joostvdl's picture

I have followed the description on: Step-by-step: Installing Project Mercury 1.1 (Beta) on Centos 5.5

When the bcfg2-server should be starting it fails. I tried running the server manually and it gives then this error:

Failed to read file probed.xml
Traceback (most recent call last):
  File "/usr/sbin/bcfg2-server", line 69, in ?
    ca=setup['ca'],
  File "/usr/lib/python2.4/site-packages/Bcfg2/Component.py", line 62, in run_component
    component = component_cls(cfile=cfile, **cls_kwargs)
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 71, in __init__
    self.init_plugins(plugin)
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 135, in init_plugins
    mod = getattr(__import__("Bcfg2.Server.Plugins.%s" %
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/TGenshi.py", line 17
    raise Bcfg2.Server.Plugin.PluginInitError
                                            ^
IndentationError: unindent does not match any outer indentation level

How to solve this problem?

Comments

There is a problem in the

joostvdl's picture

There is a problem in the stock BCFG2 package (1.1.0-0.0rc4r5983)

The solution is in: Changeset 5985 of the BCFG2 software.

link not working

sreyas's picture

Hi

The link you provided is not working at the moment. i had checked this same link two days earlier on friday also. Could you please tell us what you did to solve this issue as the link is not up and running

Regards
Sreyas

The file

joostvdl's picture

The file /usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/TGenshi.py has to be changed.

At line 16 logger.error("TGenshi: Failed to import Genshi. Is it installed?") the line starts with a tab. This tab needs to be replaces with whitespaces.

That's it.

Great that works

sreyas's picture

Thank you for that note joostvdl. I jsut edited the line and was able to start bcfg2-server successfully.

There is also a prblem with

joostvdl's picture

There is also a prblem with the YUM replace plugin. When Yum plugin Replace is activated the BCFG2-Server gives an error en stops working. This has to be disabled via: /etc/yum/pluginconf.d/replace.conf

BCFG2 client dont start

sreyas's picture

Yes thats true joostvdl, unless you set enabled=0, "bcfg2 -vqed" stops abruptly with an error message.

The issue with the

aaronlevy's picture

The issue with the yum-replace-plugin has been resolved upstream. Newly deployed servers should not have this problem.

On existing servers you can update the 'yum-plugin-replace' and 'ius-release' packages.

update: yum update yum-plugin-replace ius-release
(optional) remove: yum remove yum-plugin-replace

The yum-plugin-replace package was originally set as a requirement of the ius-release package, but is no longer (and is optional - but sometimes helpful).


The bug fix for the BCFG2 TGenshi plugin should also be released very soon.

Mercury

Group organizers

Group categories

Post Type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: