This should only be supported from a real environment.
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
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