tui: Change highlighted column color in tables

Change-Id: Ia3c331b78e132c3c2ae85f142d752821f4604831
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
ui: Button can be disabled at creation time

Change-Id: I8fe76ba826571fb4b8f551636cc9b32feabd0824
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
installer: Add Installer codebase

This adds a working installer for tehd efault installation codepath.

Change-Id: I0c81e0e85ff35ee073dd5e47df9f53da0a8f7738
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
ui: Disable Reboot and force redraw

The reboot button at the dn of the installer is disabled as long as the
installation hasn't finished.
Additionally we need to redraw the screen if we updated it from outside
of the mainloop.

Change-Id: Iacc649b76049158297b8972ade42131048030c3f
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
installer: Add upgrade/downgrade/reinstall path

This patch adds the codepath for up-/downgrades and reinstalls.

Change-Id: I1a56227f2512466b78e70b45cfbb8119980e5b60
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
ui: Fix password validation on several pages

Change-Id: Ib8736cffa3aedfc0561bbda8cc94dd28caece693
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
ui: Add InfoDialog

Change-Id: Ieba221d2b3d399ace798f29992d6c1a707c8b0d4
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
Several syntax cleanups

Change-Id: Ic1d59ff95586cffc00075f04406e27f606168f24
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
system: No version failure when not installed

Previously the retrieval of version informations about an (probably)
existing Node installation failed in the case when no Node was
installed.
Now the output is handled correctly.

Change-Id: I362a648b3766b5bd37e9fac404dece915084bf4f
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
console: Capture console output

Sometimes transaction elements would call functions which wrote to
stderr/stdout, this scrambled the screen.
Now this output from transaction elements is captured (for a later
usage) to prevent the scramblind of the screen contents.

Change-Id: I78739975bf9290f650e1b163d68aedd0ce4ebf79
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
installer: Don't overwrite custom sizes

Previously the custom sizes given on in the UI were overwritten by the
defaults set in the storage module.
Now the default sizes only used when no custom value is given.

Change-Id: I7d3402d861615cf617236c9bd2ece0bb3f9adfc2
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
installer: Fix default flags

Previously not all necessary flags were set for a successful
installation, even worse - the file containaing the flags
(/etc/default/ovirt) wasn't re-read after it was modified.

Now all flags are set and the file is re-read prior to starting the
installation.

Change-Id: I9673df42b08e7082b8fc0982aacf6a380b2381f9
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
spec: Include ovirt-node-installer

Change-Id: I4b25727ec6b698cfa3a427cfdf3e9c87c1eba598
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
config: Fix validation of NTP/DNS servers

Previously the validation of NTP and DNS servers failed in some cases
because the validator was called incorrectly.
Now the validator is called correctly.

rhbz#917485

Change-Id: I233c9b9fc2dfeba1c1ed8bbab3d8ba2c656ccd80
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
security: Fix password checks

Change-Id: Ic21530a92d40a7357ad3b2ec7387f55fbfe3ddee
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
valid: Allow digit-only hostnames

RFC 1123 [0] allows digit-only hostnames, this is now respected in the
FQDN validation class.

[0] http://tools.ietf.org/html/rfc1123

Change-Id: I5fa1ece905a5f8ae43abf5690b18e572984242b6
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
storage: Don't run device discovery in new thread

DeviceDiscovery can not be run in another thread, because the main
thread and the discovery thread both access ovirtnpode.ovirtfunctions,
which uses module-wide variables which aren't threadsafe (aug/augeas).

Change-Id: Idc369e43e60edd64dd0448847589b9943fdd9496
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
installer: Fix loading installed version

Previously the installer tried to load version informations about the
installed system even in the case that no system was installed.

Change-Id: I2d53615807703e04e8e88d5b9f95d8f5d4f83ba8
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
installer: Don't reload, just re-parse

Previously ovirtnode.ovirtfunctions were used by the main thread (running
the UI) and the installer thread (which is a different thread
running in the backgrouund to keep the ui respsonsive). This lead to
problems with th eaug variable in ovirtfunctions. To work around this
problem, the installer thread is now only explicitly using
parse_defaults to re-parse the defaults file, instead of reloading the
whole ovirtfunctions module.

Change-Id: I368b6cf56e0ede48b6a564ed4cea274a9198a858
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
installer: Hardcode username in upgrade page

Previously os.getlogin() was used to determin the username during
upgrade, but this doesn't work because the username is not yet available
(because we are still botting).

Change-Id: Ib9f57a64bc395b1af072a9a60db111a6b7b749e7
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>