Author Topic: NOT getting host to import  (Read 1872 times)

vmluva

  • Newbie
  • *
  • Posts: 5
NOT getting host to import
« on: June 12, 2011, 05:12:19 AM »
after I get logged in using Chrome on another host,   I get the Funcman
Infrastructure management screen.
BUT, the only thing on the screen  in the "Select hosts to import" is
a blank check box with  0.0.0.0 beside it.

I have OpenNode selected and (click on R)  nothing happens

there is nothing in the Set host types if needed box

the Upload button in hte upper right hand corner is gray.

exactly how do i get the templates and the host there?

the documentation is not very good here.  Please help me
I am determined to get this working.
I tried to do a print screen so you could see exactly what I have
but that did not work.

One more thing to get to this Funcman (infrastructure management screen)
i user chrome and i enter in the address bar   the ip 192.168.2.32/oms logged in and
go the screen.  help me from here.... what do I need to do?

thanx a bunch

Virtual Lover

activesys

  • Administrator
  • Full Member
  • *****
  • Posts: 171
Re: NOT getting host to import
« Reply #1 on: June 14, 2011, 11:16:15 AM »
You need to generate sign eg register request on OpenNode host you want to put under central management - its generated through OpenNode CLI Utility "Register with OMS" form. You must use resolvable hostnames for both OpenNode and OMS host - otherwise it wont work. After generating sign request you should see it under FuncMAN import. For debug you can log into OMS and execute "certmaster-ca --list" - it will show unsigned (not yet imported) registering requests. If there isn't any - then you havent done the request generation part or you are using non-resolvable hostnames for OpenNode host or OMS or both.

The importing process is described in more details here:
http://opennode.activesys.org/documentation/opennode-oms-documentation/opennode-management-server-user-guide/

And here is the video guide:
http://opennode.activesys.org/documentation/video-tutorials/ocu/ocu-register-with-oms/  

4shura

  • Newbie
  • *
  • Posts: 2
Re: NOT getting host to import
« Reply #2 on: September 30, 2011, 12:34:31 PM »
Hi, I did try to register with the oms and I saw my host in the select host for import box. However, after I ticked and tried to import it, it didn't do anything.

I tried to click "R" besise the OpenNode option but the host just dissapeared, and when I tried to register with the oms, nothing is shown on the select host to import box anymore.


activesys

  • Administrator
  • Full Member
  • *****
  • Posts: 171
Re: NOT getting host to import
« Reply #3 on: September 30, 2011, 03:55:03 PM »
Is your OpenNode host hostname resolvable in local DNS - or resolvable by putting node hostname to OMS /etc/hosts?
For host import to succeed it is vital to have this host resolvable by OMS environment. If that is verified (just ping hostname from OMS) please try to do manual cleanup and re-register.

For cleanup please execute on OMS console:

certmaster-ca --clean hostname

On OpenNode console:
delete hosts certificates under /etc/pki/certmaster/ folder

cd /etc/pki/certmaster/ && rm hostname.*

Now you can generate new OMS registration request with local OpenNode CLI Utility.

4shura

  • Newbie
  • *
  • Posts: 2
Re: NOT getting host to import
« Reply #4 on: October 03, 2011, 12:42:21 PM »
Hi Activesys,

Your suggestion is working. However, I do encounter other issue where the funcd is keep on dying.

The following error is from the funcd.log

2011-10-03 16:58:09,528 - WARNING - Could not load  module
2011-10-03 16:58:09,528 - WARNING - ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.4/site-packages/func/module_loader.py", line 108, in load_modules\n    blip =  __import__("%s%s" % ( mod_dir,mod_imp_name), globals(), locals(), [mod_imp_name])\n', 'ValueError: Empty module name\n']
2011-10-03 16:58:10,736 - INFO - Exception occured: exceptions.IndexError
2011-10-03 16:58:10,736 - INFO - Exception value: list index out of range
2011-10-03 16:58:10,736 - INFO - Exception Info:
  File "/usr/bin/funcd", line 23, in ?
    server.main(sys.argv)
   File "/usr/lib/python2.4/site-packages/func/minion/server.py", line 413, in main
    serve()
   File "/usr/lib/python2.4/site-packages/func/minion/server.py", line 225, in serve
    server = setup_server()
   File "/usr/lib/python2.4/site-packages/func/minion/server.py", line 220, in setup_server
    server = FuncSSLXMLRPCServer((listen_addr, listen_port), config.module_list)
   File "/usr/lib/python2.4/site-packages/func/minion/server.py", line 265, in __init__
    self.cert = func_utils.find_files_by_hostname(hn, self.cm_config.cert_dir, '.cert')[0]

Any advise? Thanks

activesys

  • Administrator
  • Full Member
  • *****
  • Posts: 171
Re: NOT getting host to import
« Reply #5 on: October 04, 2011, 12:32:41 AM »
Seems to be related old hostname and func config - did you do:

On OpenNode console:
delete hosts certificates under /etc/pki/certmaster/ folder

cd /etc/pki/certmaster/ && rm hostname.*

Now you can generate new OMS registration request with local OpenNode CLI Utility.

activesys

  • Administrator
  • Full Member
  • *****
  • Posts: 171
Re: NOT getting host to import
« Reply #6 on: October 10, 2011, 11:15:57 PM »
Seems that func minion conf does not exist yet - just fire up opennode cli utility and hit "Register with OMS" button and enter correct hostname for FUNC overlord or OMS server.

tipsimagi

  • Newbie
  • *
  • Posts: 3
Re: NOT getting host to import
« Reply #7 on: December 27, 2011, 06:59:21 PM »
I also noticed there is no way to "register" on 2.0.0.a

is this supposed to be that way?

activesys

  • Administrator
  • Full Member
  • *****
  • Posts: 171
Re: NOT getting host to import
« Reply #8 on: December 28, 2011, 08:05:17 AM »
Yes - until new OMS is packaged and released.