kimchi-project / ginger

WoK plugin for host management
Other
66 stars 41 forks source link

Unable to add server under System Platform #409

Open alinefm opened 8 years ago

alinefm commented 8 years ago

Not matters what data I entered, I always got the message that was not able to contact the server. What kind of inputs that feature needs?

(Verified on CentOS 7)

hari-g-m commented 8 years ago

Hi, The details required to add server are the server name (user defined name), server ip address & the IPMI username & password. The username is optional. The communication happens via IPMI.

Thanks.

alinefm commented 8 years ago

Seems it is only a valid feature for Power systems. So it should not be shown for x86, which is the case of my tests.

danielhb commented 8 years ago

This feature is not platform dependent. It relies on the ipmitool to communicate with the server to turn it on/off and to retrieve the server logs. I can assert that it exists in both Intel and Power archs at least.

What we need to do is to check the availability of the ipmitool package in the distros we support. This is the package name for Fedora:

[danielhb@arthas tests]$ sudo dnf search ipmitool
Last metadata expiration check: 0:29:22 ago on Tue Sep 20 14:04:47 2016.
=============================== N/S Matched: ipmitool ================================
ipmitool.x86_64 : Utility for IPMI control
[danielhb@arthas tests]$ 

If ipmitool isn't present in all the OS/archs we support then we'll need to put the whole feature in conditional control, hiding the entire tab (something what we haven't done before) if ipmitool isn't present.

@sureshab can you please verify if s390x contains the ipmitool package?

hari-g-m commented 8 years ago

@danielhb is correct. The feature is supported as long as the ipmitool is supported. Another package that is required is the python crypto package which is already added in the spec file as dependency. I am trying to make changes to add the is_feature_available method to check for the platform i.e x86/ppc for now so that it doesn't affect s390x & can check if ipmitool is installed or not.

danielhb commented 8 years ago

Even after getting the is_feature_available right, at this moment we do not have the tech to hide a whole tab in WoK UI from inside Ginger. We can hide frames inside tabs, but not tabs. This will required additional code in WoK and we do not have the time to do it before 2.3.

That said, I've hidden this entire tab from the code that will make it for the 2.3 community release. The backend and UI code are still there, but the UI will not be available for the user. This workaround was made in a 'stable' branch that will be used as a basis for 2.3. The 'master' and 'next' branches are kept unchanged.

As such, I am removing the 2.3 milestone from this issue.

hari-g-m commented 8 years ago

Hi Daniel, Does this mean the servers functions will not be available in the 2.3 release for the user? Thanks.