RPM package: Fedora 18 adjustments

* Replaced python commands for respective macros
* Add python as a build time requirement

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Server connection: add support for custom ports

Previously we'd only support connection to port 80, but it turns out
that it's useful to connect to other ports such as port 8000 during
RPC server development.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
TKO support: introduce support for multiple services

This is not TKO-only feature, but an enabler to TKO and any other
service that may be added and supported in the feature.

Currently a connection object supports only a single service,
that is, 'AFE'. In fact the current concept of a connection has a
1:1 mapping to a service. This is bad because users would have to
keep various connection objects.

At the object API level, this would be even worse, with users having
to pass the right connection object to the right method.  So, to ease
things at the API level, RPC methods will know what service they
belong to, so that the users of the API do not have to keep track
of that information.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
FIX - service name from arc.defaults

Signed-off-by: Cleber Rosa <crosa@redhat.com>
TKO support: adapt arc/label.py

Signed-off-by: Cleber Rosa <crosa@redhat.com>
TKO support: adapt arc/label.py

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arc/host.py: should use label API instead of connection.run()

Signed-off-by: Cleber Rosa <crosa@redhat.com>
TKO support: adapt arc/job.py

Signed-off-by: Cleber Rosa <crosa@redhat.com>
TKO support: provide a sample wrapper for getting TKO jobs

This requires a new RPC interface on the server also. As we currently
have no means of checking client/servers versions on connection
establishment, a user must make sure he/she is talking to a capable
(recent) enough server.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
arcli: fix fox '$ arcli host -j'

We're not supposed to be used connection.run() directly, but, since
there's no API mapping so far for the job queue, allow this exception.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
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>