Bug 754278

Summary: Exporting of templates should not work for the locker
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: APIAssignee: Tomas Strachota <tstrachota>
Status: CLOSED CURRENTRELEASE QA Contact: Jitendra Yejare <jyejare>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: sghai, tstrachota
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-0.1.111-1.git.14.3e2fbdf Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:06:50 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: 747354    

Description Bryan Kearney 2011-11-15 23:01:07 UTC
This should only be supported from a real environment.

Comment 1 Tomas Strachota 2011-11-22 10:43:49 UTC
Fixed in commit

commit 7fef87ea1a2ebe618aacd5b3bc8d3132c2000340
Author: Tomas Strachota <tstrachota>
Date:   Mon Nov 21 11:07:54 2011 +0100

    template export - system test for exporting from non-locker env

Comment 2 Sachin Ghai 2011-11-24 07:20:53 UTC
Verified with following katello builds:

[root@dhcp201-152 ~]# rpm -qa | grep katello
katello-cli-common-0.1.13-1.git.31.0d131f9.fc15.noarch
katello-glue-foreman-0.1.112-1.git.5.4e00e02.fc15.x86_64
katello-glue-pulp-0.1.112-1.git.5.4e00e02.fc15.x86_64
katello-configure-0.1.16-1.git.20.8d693e7.fc15.noarch
katello-common-0.1.112-1.git.5.4e00e02.fc15.noarch
katello-0.1.112-1.git.5.4e00e02.fc15.x86_64
katello-all-0.1.112-1.git.5.4e00e02.fc15.x86_64
katello-glue-candlepin-0.1.112-1.git.5.4e00e02.fc15.x86_64
katello-cli-0.1.13-1.git.31.0d131f9.fc15.noarch
katello-repos-0.1.3-1.git.0.db2bd1d.fc15.noarch
[root@dhcp201-152 ~]# 


Now template exporting is working only from real env, not from Locker.

katello> template export --name mytemp --org ACME_Corporation --file=/root/mytemp --env Locker
Exporting template, please wait... Cannot export templates form the Locker environment., 

katello> template export --name mytemp --org ACME_Corporation --file=/home/mytemp --env test
Template was exported successfully to file /home/mytemp