Bug 798602 - rhncfg-management doesn't interpret macros
Summary: rhncfg-management doesn't interpret macros
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Configuration Management
Version: 540
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2012-02-29 11:16 UTC by colinvann
Modified: 2015-05-29 20:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-29 20:11:50 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description colinvann 2012-02-29 11:16:58 UTC
Description of problem:
preamble - a config file has been created via the web interface on the satellite server and the system has been subscribed to the correct configuration channel.

what works - if you use the webGUI to deploy the config file to the system, an run rhn_check, everything works and the macro is interpreted and the configuration file looks correct.

what doesn't work - if you use the exact same config file without changes but you use the rhncfg-manager cli tool on the same client system to get the file using the below command it doesn't interpret the macro:

cli command - # rhncfg-manager get -c example-configs /etc/issue -t /

config file content: 
<snip>
*** Example Inc. ***
No trespassing allowed.

IP={|rhn.system.ip_address)|}
</snip>


Version-Release number of selected component (if applicable):
[root@desktop10 config-mgmt]# rpm -q rhncfg-management
rhncfg-management-5.9.27-1.el6sat.noarch


How reproducible: very :)


Steps to Reproduce:
as described above...

  
Actual results:
[root@desktop10 config-mgmt]# rhncfg-manager get -c example-configs -t / /etc/issue
Red Hat Network username: configurator
Password: 
Deploying /etc/issue
[root@desktop10 config-mgmt]# cat /etc/issue
*** Example Inc. ***
No trespassing allowed.

IP={|rhn.system.ip_address|}
[root@desktop10 config-mgmt]# rhn_check 
[root@desktop10 config-mgmt]# cat /etc/issue
*** Example Inc. ***
No trespassing allowed.

IP={|rhn.system.ip_address|}
[root@desktop10 config-mgmt]# ## DEPOYED VIA WEBGUI ##
[root@desktop10 config-mgmt]# rhncfg-manager get -c example-configs -t / /etc/issue
Deploying /etc/issue
[root@desktop10 config-mgmt]# cat /etc/issue
*** Example Inc. ***
No trespassing allowed.

IP={|rhn.system.ip_address|}
[root@desktop10 config-mgmt]# rhn_check 
[root@desktop10 config-mgmt]# cat /etc/issue
*** Example Inc. ***
No trespassing allowed.

IP=192.168.0.10



Expected results:
the macro should be interpreted both ways

Comment 1 Clifford Perry 2012-03-26 15:03:46 UTC
Side note - macro's are expanded out on server side, not client side tools.


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