Bug 699966
Summary: | Add an option on rhncfg-manager to ignore missing local files | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | Marcelo Moreira de Mello <mmello> | ||||||
Component: | Clients | Assignee: | Marcelo Moreira de Mello <mmello> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 1.5 | CC: | mmello, msuchy | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2011-07-21 14:43:32 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
Marcelo Moreira de Mello
2011-04-27 05:16:44 UTC
Created attachment 495111 [details] Patch proposed Hello, This patch allows to use --force option in rhncfg-manager to ignore missing local files when adding or uploading files. [root@server ~]# rhncfg-manager update --help usage: rhncfg-manager update [options] file [ file ... ] options: -c CHANNEL, --channel=CHANNEL Upload files in this config channel -d DEST_FILE, --dest-file=DEST_FILE Upload the file as this path -t TOPDIR, --topdir=TOPDIR Make all files relative to this string --delim-start=DELIM_START Start delimiter for variable interpolation --delim-end=DELIM_END End delimiter for variable interpolation -f, --force Ignore errors if some local files does not exist -h, --help show this help message and exit [root@server ~]# rhncfg-manager update --channel=test-channel --force /etc/shadow /etc/autofss /etc/group /etc/no_exists Local file /etc/autofss does not exist. Ignoring file... Local file /etc/no_exists does not exist. Ignoring file... Pushing to channel test-channel: Local file /etc/shadow -> remote file /etc/shadow Local file /etc/group -> remote file /etc/group Patch already sent to spacewalk-devel maillist Mail thread: https://www.redhat.com/archives/spacewalk-devel/2011-April/msg00101.html Cheers, Marcelo Moreira de Mello Created attachment 495218 [details] Patch proposed (enhanced) Hello Miroslav and Jan, Follow a better patch for BZ#699966 with --ignore-missing and a better logical flow. [root@server ~]# rhncfg-manager update --channel=test2-channel --ignore-missing /etc/hosts /etc/shadow /etc/autofss /etc/group /etc/bunda Local file /etc/autofss does not exist. Ignoring file... Local file /etc/bunda does not exist. Ignoring file... Pushing to channel nega: Local file /etc/hosts -> remote file /etc/hosts Local file /etc/shadow -> remote file /etc/shadow Local file /etc/group -> remote file /etc/group Cheers, Marcelo Commited as 812793c6c24678e6e362d628ddef225c298f7ead This bugzilla is currently MODIFIED, so we believe the fix is in the Spacewalk nightly yum repository at http://spacewalk.redhat.com/yum/nightly/ Therefore, moving ON_QA. Spacewalk 1.5 was released. |