Bug 647769 - upgrade-cobbler.sh: find: *: No such file or directory
Summary: upgrade-cobbler.sh: find: *: No such file or directory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Upgrades
Version: 540
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat54-errata
TreeView+ depends on / blocked
 
Reported: 2010-10-29 11:44 UTC by Miroslav Suchý
Modified: 2010-12-13 14:31 UTC (History)
2 users (show)

Fixed In Version: rhn-upgrade-5.4.0.12-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-13 14:31:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0973 0 normal SHIPPED_LIVE RHN Satellite Server 5.4.0 Upgrade Bug Fix Update 2010-12-13 14:31:01 UTC

Description Miroslav Suchý 2010-10-29 11:44:30 UTC
Description of problem:
During upgrade of sputnik-prod I get:
# /etc/sysconfig/rhn/satellite-upgrade/upgrade-cobbler.sh
find: *: No such file or directory

It happen in such situation:
[root@sputnik-prod satellite-upgrade]# ls /var/lib/rhn/kickstarts/snippets/*/
[root@sputnik-prod satellite-upgrade]# ls /var/lib/rhn/kickstarts/snippets/*
/var/lib/rhn/kickstarts/snippets/keep_system_id      /var/lib/rhn/kickstarts/snippets/post_reactivation_key
/var/lib/rhn/kickstarts/snippets/post_delete_system  /var/lib/rhn/kickstarts/snippets/redhat_register

/var/lib/rhn/kickstarts/snippets/1:


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

How reproducible:
done once

Steps to Reproduce:
1. have no snippets in cobbler
2. upgrade from 530 to 540
  
Actual results:
find: *: No such file or directory

Expected results:
ignore empty directory without warning

Comment 1 Miroslav Suchý 2010-11-03 22:35:08 UTC
commited to satellite.git as commit 40bdefecd2dfe5df55f4d8adb29deeb05e6e88f9

Comment 2 Miroslav Suchý 2010-11-03 22:41:17 UTC
cherrypicked to SATELLITE-5.4 branch as commit 21b965b1af1ba7c38ab5a5c19aa6b981635345f8

Comment 4 Petr Sklenar 2010-12-08 09:01:16 UTC
sat530, before upgrade
no snippet:

[root@ibm-hs21-04 ~]# ls /var/lib/rhn/kickstarts/snippets
1
[root@ibm-hs21-04 ~]# ls /var/lib/rhn/kickstarts/snippets/1/
[root@ibm-hs21-04 ~]# ls /var/lib/rhn/kickstarts/snippets/*/*
ls: /var/lib/rhn/kickstarts/snippets/*/*: No such file or directory
--
upgrade from sat530 > sat540 works well without error in find command.

Comment 5 errata-xmlrpc 2010-12-13 14:31:21 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/RHBA-2010-0973.html


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