arcli: implemented host lock/unlock support

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/job.py: reorganized params to match signature on RPC server method

Signed-off-by: Cleber Rosa <crosa@redhat.com>
host: add reverify method and command line action

Signed-off-by: Cleber Rosa <crosa@redhat.com>
version information: introduce arc/version.py

As a means to concentrate the various places that can look for
version information. Examples include distutils' setup.py, and
sphinx's conf.py.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/cli/args/parser.py: fix typo

Signed-off-by: Cleber Rosa <crosa@redhat.com>
docs: cleanup documentation configuration

To make it obvious what we differ from the defaults, and to set
values that are used many times throughout the config file.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/host.py: add support for setting labels

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/job.py: update job creation signature

To match the new parameters on autotest upstream.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/job.py: reuse create_complete instead of calling connection.run

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/connection.py: replace RPC method for ping()

Since the get_server_time() method is in upstream RPC server for
ages and serves the needed purpose (basic connectivity check).

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/connection.py: add support for service interface versions

Since the interface exposed by the RPC server can be different
depending on the version, keep track of the interface version
on a service basis.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/connection.py: add minimum required interface versions

For both the AFE and TKO service. These should always match the
most recent value on autotest's frontend/<afe|tko>/rpc_interface.py.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/connection.py: add minimum version check

This adds automatic version checking while adding services. If
version does not satisfy requirements, and exception will be
raised.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/cli/app.py: check RPC service version support

And instruct user to get a more recent version of arc if needed.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/defaults.py: bugfix for typo on server port

Should be PORT and not HOST.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
data/arc.conf: add default port number

Signed-off-by: Cleber Rosa <crosa@redhat.com>
actions: implement action lookup by introspection

Rather than using a static list of possible action names. Now
all actions should be marked as such.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
release: bumped version to 0.2.0

Signed-off-by: Cleber Rosa <crosa@redhat.com>
RPM package: updated to version 0.2.0

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/cli/app.py: remove interpreter

Since this is not intended to be an executable script

Signed-off-by: Cleber Rosa <crosa@redhat.com>