Bug 708397

Summary: Internal server error when changing Kickstart Distribution tree path
Product: [Community] Spacewalk Reporter: kwyjibo <daniel.christopher.spain>
Component: WebUIAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.4CC: jpazdziora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-21 14:43:35 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: 695242    
Attachments:
Description Flags
catalina.out log of relevent time none

Description kwyjibo 2011-05-27 14:40:57 UTC
Created attachment 501319 [details]
catalina.out log of relevent time

Description of problem:

When changing the Tree Path on the WebUI you get an Intenal Server Error if the current Tree Path is invalid.

Version-Release number of selected component (if applicable):
Spacewalk 1.4

How reproducible:
100%

Steps to Reproduce:
1. Create a valid Kickstart distribution
2. Move the install media to a new location on the disk (so that the current location in spacewalk is invalid).
3. Update the location on the spacewalk WebUI (in the Tree Path field).
  
Actual results:
Spacewalk gets an Internal server error

Expected results:
The new location should be successfully updated.

Additional info:

Comment 1 Jan Pazdziora (Red Hat) 2011-06-08 12:42:56 UTC
Taking.

Comment 2 Jan Pazdziora (Red Hat) 2011-06-08 12:43:08 UTC
What operating system is the Spacewalk running?

Is there any AVC denial in /var/log/audit/audit.log?

Comment 3 kwyjibo 2011-06-08 14:17:09 UTC
(In reply to comment #2)
> What operating system is the Spacewalk running?

Centos 5.5

> Is there any AVC denial in /var/log/audit/audit.log?

Nope, the error that comes up in /var/log/messages is;

Can't stat exported dir <name of deleted directory>: No such file or directory

Comment 4 Jan Pazdziora (Red Hat) 2011-06-08 14:22:27 UTC
(In reply to comment #3)
> 
> Can't stat exported dir <name of deleted directory>: No such file or directory

That's NFS related, isn't it? Is the kickstart distribution on an NFS-mounted volumne?

Comment 5 kwyjibo 2011-06-08 14:42:42 UTC
(In reply to comment #4)
> That's NFS related, isn't it? Is the kickstart distribution on an NFS-mounted
> volumne?

Ah yes sorry, just checked the timestamps and realised it was unrelated to this issue. Just re-created the error now and there is no relevant message in audit.log or the syslog.

Comment 6 Jan Pazdziora (Red Hat) 2011-06-16 13:30:22 UTC
I was not able to reproduce the issue. On Spacewalk (nightly), when the path is no longer valid, I get red warning

    * The initrd could not be found at the specified location: /var/cache/ad-test-23/ks-rhel-i386-server-5-x/images/pxeboot/initrd.img

at the top of the /rhn/kickstart/TreeEdit.do?kstid=1 page, and it allows me to edit the form and save it without any ISE.

Comment 7 Jan Pazdziora (Red Hat) 2011-06-20 07:58:43 UTC
Moving ON_QA.

Comment 8 Jan Pazdziora (Red Hat) 2011-07-21 14:43:35 UTC
Spacewalk 1.5 was released.