Skip to content

Central Agent not Working #1208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
thegaragelab opened this issue Dec 16, 2017 · 2 comments
Open

Central Agent not Working #1208

thegaragelab opened this issue Dec 16, 2017 · 2 comments

Comments

@thegaragelab
Copy link

Hi,

I have been trying to get the Central Agent to work without success. I have tried from the 'nightly' package as well as from source, running on ejabberd server and running on a separate server without success. The 'centralagent' user is never created and I can't see any indication that it is even trying to connect to the Jabber server in either the central agent logs or the jabber logs. In all cases the central agent logs seem to stop at this point (I have removed my server name) ...

INFO    ::2017-12-16 18:51:40.880::utils.py:73::TNArchipelCentralAgent.register_hook (centralagent@XXX)::HOOK: registering hook method handle_autogroup_for_entities for hook name HOOK_CENTRALAGENT_VM_REGISTERED (oneshot: False)
INFO    ::2017-12-16 18:51:42.162::utils.py:73::TNArchipelCentralAgent.initialize_modules (centralagent@XXX)::PLUGIN: loaded plugin xmppserver 
INFO    ::2017-12-16 18:51:42.167::utils.py:73::TNArchipelCentralAgent.perform_hooks (centralagent@XXX)::HOOK: going to run methods for hook HOOK_ARCHIPELENTITY_PLUGIN_ALL_LOADED

Can anyone offer suggestions on how to progress? The hypervisor agents seems to work just fine, I can create an manage VMs as the admin user.

@thegaragelab
Copy link
Author

Update: I finally managed to get it working. It appears the buildCentralAgent -d script doesn't build and install all required modules (and yet didn't report an error). I had to install the following modules by hand ...

cd ~/Archipel/archipel-central-agent-platformrequest
sudo -H python setup.py install
cd ~/Archipel/archipel-central-agent-platformrequest-defaultcomputingunit
sudo -H python setup.py install

After adding the configuration for 'platformrequest' I managed to get the central agent working.

Running the central agent directly using the 'runcentralagent' script reported more errors than appeared in the log file.

@flashydave
Copy link

flashydave commented Feb 16, 2018

Just for anybody else the platformrequest config addition mentioned by @thegaragelab is to add
platformrequest = True
under the [MODULES] section in centraldb.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants