client.shared.iscsi: Update iscsi.py

Include some coding style update and one bug fix for ignoring status for
some query command.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Updating to the latest autotest-client-tests

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
frontend.pkgdeps: Adding python-psutil to the list of required packages

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
utils.external_packages: Add python-psutil build info

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
frontend.afe.rpc_interface: Add get_server_status() method

In order to display a dashboard of the autotest server
status, we need to know some things:

 1) Free disk space in the autotest results directory
 2) Whether the autotest scheduler and the scheduler
    monitor are up

So use the very nice, 3rd party python module psutil:

https://code.google.com/p/psutil/

To inspect system information and return it through
the RPC call interface.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
utils.external_packages: Add minimum version for python-psutil

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
server status RPC method: deal with servers without a install server

Autotest servers without a installation server are actually a valid
deployment scenario. So, in those cases, do not set the server's
"concern" status.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Merge pull request #740 from clebergnu/server_status_install_server

server status RPC method: deal with servers without a install server
autotest-scheduller: add the dependency on mysql to the systemd service file

After a fresh install of autotest from next, I tested a new feature of arc:

$ arcli server -s
Concerns: Yes
Scheduler Running: No
Scheduler Watcher Running: Yes
Install Server Running: No
Log Disk Space Usage: 18%

Running `systemctl status autotestd` would show:

_drone_manager.shutdown()
AttributeError: 'NoneType' object has no attribute 'shutdown'
Traceback (most recent call last):
File "/usr/local/autotest/scheduler/autotest-scheduler", line 13, in <module>
monitor_db.main()
File "/usr/local/autotest/scheduler/monitor_db.py", line 279, in main
main_without_exception_handling()
File "/usr/local/autotest/scheduler/monitor_db.py", line 272, in main_without_exce...andling
_drone_manager.shutdown()
AttributeError: 'NoneType' object has no attribute 'shutdown'

Turns out that the autotestd was trying to start before the MySQL
database, which is hard dependency.

After this patch, arcli is happy about the server state:

$ arcli server -s
Concerns: No
Scheduler Running: Yes
Scheduler Watcher Running: Yes
Install Server Running: No
Log Disk Space Usage: 18%

Signed-off-by: Cleber Rosa <crosa@redhat.com>
server.hosts.remote: When install server is not available, retry

Rather than giving up and throwing a hard to understand
exception to users when the install server code can't reach
the install server, retry every install_timeout / 100 seconds.

If after install_timeout / 10 we still could not reach
the server, then throw an easier to understand error
(Could not contact the install server).

CC: Rudá Moura <rmoura@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #742 from clebergnu/autotestd_service_dep

systemctl autotestd service file dependency