zenoss / ZenPacks.zenoss.OpenStackInfrastructure

OpenStack Monitoring (Provider-Oriented)
GNU General Public License v2.0
37 stars 17 forks source link

Plugin zenoss.Openstack not starting #13

Open radosevic opened 10 years ago

radosevic commented 10 years ago

Hello, I added ZenPacks.zenoss.Openstack version 1.2.2 on Zenoss Core 4.2.5. When I add my Openstack credentials and API URL job is started, but zen.ZenDisc never starts zenoss.OpenStack plugin and flavours, images and servers aren't requested. Here is job log (I changed IP to 1.1.1.1 on purpose) :

2014-06-11 15:01:46,794 INFO zen.Job: Job e0ff5837-6749-4e79-bd81-40154b58df54 (Products.ZenModel.ZDeviceLoader.DeviceCreationJob) received 2014-06-11 15:01:46,817 INFO zen.Job: Beginning job Add Device Products.ZenModel.ZDeviceLoader.DeviceCreationJob 2014-06-11 15:01:47,158 INFO zen.Job: Running Job Add Device Products.ZenModel.ZDeviceLoader.DeviceCreationJob 2014-06-11 15:01:47,158 INFO zen.Job: Spawning subprocess: /opt/zenoss/bin/zendisc run --now -d 1.1.1.1 --monitor localhost --deviceclass /Devices/OpenStack --prod_state 1000 --job e0ff5837-6749-4e79-bd81-40154b58df54 2014-06-11 15:01:51,410 INFO zen.ZenDisc: Connecting to localhost:8789 2014-06-11 15:01:51,415 INFO zen.ZenDisc: Connected to ZenHub 2014-06-11 15:01:51,524 INFO zen.ZenDisc: Looking for 1.1.1.1 2014-06-11 15:01:58,836 INFO zen.ZenDisc: Result: Discovered device 1.1.1.1. 2014-06-11 15:01:58,891 INFO zen.ZenDisc: skipping WMI-based collection, PySamba zenpack not installed 2014-06-11 15:01:58,934 INFO zen.ZenDisc: No Python plugins found for 1.1.1.1 2014-06-11 15:01:58,936 INFO zen.ZenDisc: No command plugins found for 1.1.1.1 2014-06-11 15:01:58,939 INFO zen.ZenDisc: SNMP collection device 1.1.1.1 2014-06-11 15:01:58,939 INFO zen.ZenDisc: plugins: zenoss.snmp.NewDeviceMap, zenoss.snmp.DeviceMap, zenoss.snmp.InterfaceMap, zenoss.snmp.RouteMap 2014-06-11 15:01:58,943 INFO zen.ZenDisc: No portscan plugins found for 1.1.1.1 2014-06-11 15:02:04,946 INFO zen.SnmpClient: Device timed out: SNMP info for 1.1.1.1 at 1.1.1.1:161 timeout: 1 tries: 6 version: v2c community: public 2014-06-11 15:02:04,946 INFO zen.SnmpClient: snmp client finished collection for 1.1.1.1 2014-06-11 15:02:04,947 WARNING zen.SnmpClient: Device 1.1.1.1 timed out: are your SNMP settings correct? 2014-06-11 15:02:04,947 INFO zen.ZenDisc: No change in configuration detected 2014-06-11 15:02:04,947 INFO zen.ZenDisc: Scan time: 6.11 seconds 2014-06-11 15:02:04,948 INFO zen.ZenDisc: Daemon ZenDisc shutting down 2014-06-11 15:02:06,327 INFO zen.Job: Job e0ff5837-6749-4e79-bd81-40154b58df54 Finished with result 0 2014-06-11 15:02:06,329 INFO zen.Job: Job e0ff5837-6749-4e79-bd81-40154b58df54 finished with result 0

After job is finished, when I go to device added and click "Modeller Plugins", only zenoss.snmp.NewDeviceMap, zenoss.snmp.DeviceMap, zenoss.snmp.InterfaceMap, zenoss.snmp.RouteMap are selected. There is no zenoss.OpenStack. If I add it manually and push changes nothing happens...

Am I doing something wrong or I encountered some bug?

Thanks

cluther commented 10 years ago

That's strange. It's as though it's trying to add the device to the /Server/Linux device class instead of the /OpenStack device class. Can you confirm what device class the device ends up in?

Can you also confirm that you're using the "Add OpenStack..." option from the infrastructure device list to add the OpenStack endpoint?

radosevic commented 10 years ago

Thanks for quick reply.

Device ends in OpenStack class. And yes... I am using "Add OpenStack..." to add it. I can provide you with video of process if necessary.

Once again... thanks for your effort.

cluther commented 10 years ago

Can you verify that the modeler plugins enabled for the OpenStack only includes "zenoss.OpenStack"? Then try to remodel the device directly?

radosevic commented 10 years ago

Yes, that helped, but after 3 strange errors when modelling again. Now I have problem that images, flavours and servers aren't refreshed in real time. To see changes I have to remodel again. Also, there is no graphs for active servers. Is this normal behaviour of OpenStack zenpack or something is wrong? Am I missing something here? Do I have to do something on my OpenStack side to enable realtime updates and graphs?

I'm very thankful for your replies. Thank you!

simplyecan commented 10 years ago

Hello Redosevic! Were you able to resolve the server graph issue and if yes, how did you go about? I seem to be having the same problem as well...