server.autotest_remote_unittest: Fix unittest broken with 2648c15

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Improve virsh_cmd() to support logging output control.

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>

This patch introduces a new parameter print_info with default
value False to support logging output control.
Add virsh_freecell function in libvirt_vm.py

Signed-off-by: Gu Yanhua <guyanhua-fnst@cn.fujitsu.com>
Add virsh_freecell.py to test virsh_freecell command

Signed-off-by: Gu Yanhua <guyanhua-fnst@cn.fujitsu.com>
Add configuration for "virsh freecell"

Signed-off-by: Chris Evich <cevich@redhat.com>
Signed-off-by: Gu Yanhua <guyanhua-fnst@cn.fujitsu.com>
.gitignore: add results/* dir

 $ git status

Will take a long time if the results directory actually holds lots
of results. Since it is not controlled by git, ignore it altogether.

Also, other paths suggested by Amos are added to the ignore list.

Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
cli: change the rpc client to return richer return status codes

Return a non-zero status if it is asked to display information about
a specific object and that object does not exist.

test.py:  modify to return:
    0:  on success
    1:  on failure
    2:  on partial success
  updated description to explain and give example.

topic_common:
    fixed a couple of typos in comments
    modified illegal_arg routine to save error in failuer rather than display the message.
    the message will be display later by "show_all_failures".

Changes from v1:
 * Add assignment line missing from previous commit.

Signed-off-by: Raymond Spear <ray.spear@hp.com>
cli: update unit tests to match new code behavior

Signed-off-by: Raymond Spear <ray.spear@hp.com>
boottool: use glob to auto update grubby tarball shipped

So that we don't have to manually update (or forget to do so) when
the mininum required version changes.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
boottool: make it friendlier to packaging

By adding the .py suffix and making it more explicitly a python module
(besides also being a python app/script).

Also, this patch removes the legacy client/boottool.py file, which be
gone a long time ago.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
install_server: default profile to an empty-string

Profiles are strings and should not be treated like objects. Let's
default them to empty-strings.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
hosts/remote: add install_server_is_configured

Extend the install-server configuration functionality to have a boolean check
of whether the backend has an install-server configured at all. This is mostly
to make future changes smaller.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
database: add profile column to afe_host_queue_entries_table

Store the profile as a string in the database.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
frontend: add XMLRPC lookup of profile information from install server to get_hosts

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
frontend: add profiles parameter to job creation interface

When we get a new job from afe, we might also get a list of profiles to
go with the hosts, and need to pass this down into the HostQueueEntry
logic eventually.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
hosts: add profile to the remote class

The initial implementation of this code added a subclass of SSHHost, but
that is not strictly necessary. Cleber Rosa had this to say:

	Instead of adding yet another inheritance level, simply add a
	optional profile attribute and argument to the remote class.
	This is preferrable IMHO this flattens the class inheritance,
	makes it easier to understand, and adds profile support to both
	SSHHost and ParamikoHost.

	Also, the fact the the current host installation code lives on
	Hosts.Remote, is another great motivator.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
autoserv: append profile selection to hostname parameter

I spent much time going back and forth trying to find the smallest
impact way to present installer server profiles to autoserv for control
file usage. Eventually, I decided that appending it to the hostname
makes sense, as it's a parameter of the host selection -- i.e., I want
UserW on HostX installed with ProfileY.

'#' is not a valid character in hostnames, afaik, so I think it should
be safe to use as a separator. Update the parse_machine to know about
this separator. Now, create_host() automatically puts in a profile
object, if the host is of type InstallableHost.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
frontend/afe: add current profile to host view

Now that we have a backend link between hosts and profiles, it makes
some sense to list the current value of the property in the View Host
tab.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
frontend/afe: add profile used to job view

Each HostQueueEntry in the database has a profile stored with it. Show
this in the Job View tab to indicate what profile was used in that job.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
frontend/afe: add listbox widget support

To facilitate profile selection in the Create Job view, we need to add a
new widget type. Currently, all widgets are assumed to be checkboxes.
Extend the createWidget API to take a type, as a well-defined enum.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>