Silencing the curl command executed on the guest.

Added --silent to the guest curl command.  We already print a nice
debug statement if we need to set up a tunnel from the guest.  The
curl error code was getting logged and would be somewhat alarming to
the an administrator if they didn't have context into how we are determining
network connectivity.  The curl error is a non-exception case, and thus doesn't
need to be logged.
Use proper element name for persisted
Fix bug#766983 and add a unittest.
Change the pycurl.Curl object name from c to crl.

Patch originally from Chris Alfonso.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Add more error information when establishing tunnels.

Patch originally from Chris Alfonso.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
[PATCH] Implement SSL vhost support in ssh tunneling.

This patch creates a forwarding tunnel to the repository hosts.  A
temporary host entry is added as an alias in the guest /etc/hosts.
When the tunnel is finished being used, the alias is removed and any
persisted repositories are reverted to their original base urls.

Patch originally from Chris Alfonso.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
The repositoryid is not allowed to have spaces.

From the yum.conf man page:
repositoryid Must be a unique name for each repository, one word.

Following the pattern for the file name, replacing spaces with underscores.
Remove extra console in libvirt XML declaration to enable Oz on libvirt 0.9.7 [BZ758561]

Fix provided by Steven Dake <sdake@redhat.com>

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Release 0.8.0

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Bump version to next release of Oz.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Modify MANIFEST.in to fix RHEL6 RPM builds

RHEL6 uses a slightly older Python version (and associated libs) than recent Fedoras.
Without explicitly adding the oz/auto/* content to the MANIFEST the auto files don't
make it into the sdist and, as a result, are missing from the RPMS.

Adding this content to the manifest fixes the issue and doesn't break things on the
newer Python dists in Fedora.
add VIR_ERR_OPERATION_INVALID as valid complete install error [BZ 755830]

In F16 (and possibly earlier) this is one of the errors that libvirt
throws when you attempt to operate on a domain that has shut down.
This needs to be one of the "acceptable errors" we catch as an indication
that the JEOS install has finished.
Increased timeout for icicle creation.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
guestfs_handle_setup: handle disappearing domains

The operation to look at running instances and check
if their names or disks conflict with what we are about
to do is inherently racy.  conn.listDomainsID() can return
a domain which disappears before the subsequent
lookupDomainByID can complete.  Instead of bombing out,
just log the fact that a domain disappeared on us and
continue on.

Original patch is from Ian Mcleod.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
quote packages in yum command to allows spaces in group names
Add RHEL5 U8 to whitelist
Improve URL validation logging

Original patch was from Ian Mcleod

Signed-off-by: Chris Lalancette <clalance@redhat.com>
Update my email address in the man pages.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
Refactor capture_screenshot.

This just takes the exception string, which was duplicated
in two places, and consolidates it into capture_screenshot.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
Refactor wait_for_install_finish.

This method was getting out of hand with how complicated
it was.  To help, factor out the bits that detect the
disks and interfaces attached, and the bits that actually
do the stats gathering.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>