Bug 497424
Summary: | Kickstart UI allows '-' in profile names; however, koan does not | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Brad Buckingham <bbuckingham> |
Component: | WebUI | Assignee: | Partha Aji <paji> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Steve Salevan <ssalevan> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 530 | CC: | bperkins, cperry, mmccune, mzazrivec, shughes |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | sat530 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-09-10 19:25:20 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 457075 |
Description
Brad Buckingham
2009-04-23 20:32:34 UTC
This has nothing todo with the hyphen, it is actually complaining that your virtual disk file is already on the file system: invalid location: /var/lib/xen/rhel-guest indicates that either the path is not accessible or the file *already* exists. This often happens if you kickstart more than one guest from the same profile because the profile now specifies the path. Perhaps we should be a bit smarter because by adding the path in the profile as we have now you can only kickstart one virtual guest from the GUI with the default, all subsequent kickstarts have to be overidden or you get the above error. The following changes have been agreed upon 1) Remove Virt Path setting in Profiles.. 2) When a virt guest install is scheduled (under /rhn/systems/details/virtualization/ProvisionVirtualizationWizard.do) if a virt path is provided... use that and put it in the system record, else have the default be Config.get().getVirthPath() + "/" + $guestName and put that in the system record 3) in spacewalk koan , have it check to see if the directory has already been created... If so report a nice error message instead of just saying invalid location, invalid location /var/lib/xen/rhel-guest already exists, please change the virt storage path when provisioning the guest and reschedule.. should be resolved as of http://git.fedorahosted.org/git/?p=spacewalk.git;a=commit;h=20c2216d19621442a2e07418b8205b6468ba795f Changes pertaining to this commit.. 1) Virt Path, which used to be by default /var/lib/xen/{Profile Name} will now be /var/lib/xen/{GuestName} so that guests using the same profile name don't end up with duplicate paths.. 2) Improved the message on spacewalk-koan side to say the disk path already exists instead of "invalid location: /var/lib/xen/rhel-guest".. 3) Removed Virt Path references in the main kickstart details pages since virt path is only set in Virt Provisioning page.. Moving to ON_QA VERIFIED on 5/29 build. Ok the initial bug is a little confusing in Comment #1 It should be modified to 1. create a kickstart profile where the name includes a - (e.g. rhel-guest) 2. Use SDC -> Virturalization -> Provisioning -> Advanced Configuration and setup a Virt Disk Path to an already existing path on the host 3, Schedule the kickstart on the virt host. when you run rhn_check spacewalk koan package should complain that this path already exists and you should get a failed kickstart due to the duplicate path. 4.) Repeat Step 2 but now give a valid disk path (eg /var/lib/xen/{GuestName}) and kickstart again.. The Ks shoudl be successful. i am seeing a failed action with the following reason: Client execution returned "Fatal error in Python code occured [[6]]" (code -1) Verified in stage -> RELEASE_PENDING 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 |