Bug 512679 - virtual guest provisioning broken on kickstarted host due to missing dir
Summary: virtual guest provisioning broken on kickstarted host due to missing dir
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Provisioning
Version: 530
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Mike McCune
QA Contact: Brad Buckingham
URL:
Whiteboard:
: 512460 (view as bug list)
Depends On:
Blocks: 457075
TreeView+ depends on / blocked
 
Reported: 2009-07-20 11:20 UTC by Tomas Lestach
Modified: 2009-09-10 19:27 UTC (History)
5 users (show)

Fixed In Version: sat530
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-10 19:27:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tomas Lestach 2009-07-20 11:20:46 UTC
Description of problem:
It's impossible to kickstart a Virtual Guest on a Kickstarted Virtual Host.

Version-Release number of selected component (if applicable):
Satellite-5.3.0-RHEL5-re20090707.0
Satellite-5.3.0-RHEL5-re20090714.0-x86_64
Satellite-5.3.0-RHEL5-re20090716.0

How reproducible:
always

Steps to Reproduce:
1. Provision a virtual host
(ks-rhel-i386-server-5-u3/Xen Virtualized Host)

2. Create a new para-virtual guest to be hosted on the virtual host
(ks-rhel-i386-server-5-u3/Xen Para-Virtualized Guest)
over WEBUI (Virtualization - Provisioning).

3. When kickstart of the virtual-guest fails, check for the following directory:
# ll /var/lib/libvirt/images/
ls: /var/lib/libvirt/images/: No such file or directory
4. Create the missing directory
# mkdir /var/lib/libvirt/images/
5. And re-schedule the failed event ...
6. Make sure the virtual-guest was successfully provisioned.


Actual results:
Para-virtual guest kickstart fails with following error (after point 2. of the reproducer):

---------------------------------------------------------------------------
Details:	This action will be executed after 07/20/09 9:24:51 AM EDT.

This action's status is: Failed.
The client picked up this action on 07/20/09 9:33:46 AM EDT.
The client completed this action on 07/20/09 9:33:49 AM EDT.
Client execution returned "Virtual kickstart failed. Koan error.: invalid location: /var/lib/libvirt/images/para_guest0" (code 1)
---------------------------------------------------------------------------

/var/lib/libvirt/images/para_guest0 cannot be created due to the missing directory. When a directory is created manually, guest kickstart will be successful.

Expected results:
Para-virtual guest will be kickstarted without any additional manual actions (without any need to create directories).

Comment 1 Clifford Perry 2009-07-20 15:33:00 UTC
*** Bug 512460 has been marked as a duplicate of this bug. ***

Comment 4 Brad Buckingham 2009-07-23 17:27:43 UTC
Satellite-5.3.0-RHEL5-re20090721.0-i386-embedded-oracle.iso

Verified using scenario:

1. registered client to satellite
2. gave client virt and prov entitlements

3. created ks profile for xen virt host
4. provisioned client as virt host using above profile
5. host provisioned... but had couple of failed actions due to gpg checking... so disabled gpg checking and rescheduled/executed those actions (e.g. install rhn-virtualization-host & osad)... (these failures were expected, since testing with unsigned pkgs)

6. created ks profile for xen virt guest
7. provisioned virt guest on client

Guest was provisioned successfully in step 7.  No manual steps required.

Comment 5 Brandon Perkins 2009-07-28 20:14:05 UTC
Release Pending.  Images are now stored in /var/lib/xen/images/

Comment 6 Brandon Perkins 2009-09-10 19:27:20 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1434.html


Note You need to log in before you can comment on or make changes to this bug.