Provide simple install, dependency and configuration check
|Assignee:||Javi Fontan||% Done:|
|Category:||Core & System|
|Target version:||Release 3.4 - S0|
While upgrading to 3.0 I found that it is difficult to comply with all dependencies
required by ONE. Agreed, I could read the installation and migration pages
in the documentation very closely, and check manually and do checkmarks on paper.
Since I didn't have libsqlite3-ruby installed (duh!) my onedb upgrade failed,
but with an error message "Database schema does not look to be created by OpenNebula: table user_pool is missing or empty."
which is highly misleading.
A simple script that checks for correct installation of ONE and it's dependencies would be very helpful,
checking e.g. all required gems, maybe even reading oned.conf to see whether sqlite or mysql is needed, etc.
It could do a syntax check on oned.conf, to see whether it has the right format,
it could onedb version to check whether a migration is required. If there are onevm hosts, it could check
whether it can do passwordless ssh etc.
The script could emit INFO (including version information of found gems, etc.),
WARNING (if sqlite3 is not found, which could be OK in case mysql is used)
and stop on ERROR messages. Via command lines it could perform only a subset of the checks.
Answers on the mailing list could have the output of onecheck as a precondition ;-)