Created attachment 860238 [details] foreman-debug Description of problem: Add_Config template fails Version-Release number of selected component (if applicable): # rpm -qa | grep foreman foreman-proxy-1.5.1-1.el6sat.noarch foreman-1.5.0.1-1.noarch rubygem-foreman_api-0.1.11-2.el6sat.noarch rubygem-hammer_cli_foreman-0.0.18-1.el6sat.noarch foreman-selinux-1.3.0-1.el6sat.noarch qe-blade-04.idm.lab.bos.redhat.com-foreman-proxy-1.0-1.noarch foreman-postgresql-1.5.0.1-1.noarch qe-blade-04.idm.lab.bos.redhat.com-foreman-client-1.0-1.noarch How reproducible: Steps to Reproduce: 1.# hammer -v -u admin -p changeme template create --type='provision' --name='9sx9w6' --file='/tmp/vgewsu' [ERROR 2014-02-06 10:14:37 Exception] Template can't be blank Template kind can't be blank Could not create the config template: Template can't be blank Template kind can't be blank 2. 3. Actual results: the cli fails Expected results: the cli should work Additional info:
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
Verified by QA: ~/hacking/robottelo $ nosetests -c robottelo.properties tests/cli/test_org.py:TestOrg.test_bugzilla_1062295_1 2014-03-21 19:48:23 - robottelo - DEBUG - Running test TestOrg/test_bugzilla_1062295_1 2014-03-21 19:48:23 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv organization create --name='c8oftty' 2014-03-21 19:48:27 - robottelo - DEBUG - <<< [u'Message,Id,Name', u'Organization created,386,c8oftty', u''] 2014-03-21 19:48:27 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv organization info --id='386' 2014-03-21 19:48:29 - robottelo - DEBUG - <<< [u'Id,Name,Created at,Updated at,Label,Description', u'386,c8oftty,2014/03/21 23:48:23,2014/03/21 23:48:23,c8oftty,""', u''] 2014-03-21 19:48:34 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv template create --type='iPXE' --name='k576dm5' --file='/tmp/lun11' 2014-03-21 19:48:36 - robottelo - DEBUG - <<< [u'Message,Id,Name', u'Config template created,43,k576dm5', u''] 2014-03-21 19:48:36 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv template info --id='43' 2014-03-21 19:48:38 - robottelo - DEBUG - <<< [u'Id,Name,Type,OS ids', u'43,k576dm5,iPXE,""', u''] 2014-03-21 19:48:44 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme organization add-config-template --config-template='k576dm5' --name='c8oftty' . ---------------------------------------------------------------------- Ran 1 test in 82.182s OK ~/hacking/robottelo $ nosetests -c robottelo.properties tests/cli/test_org.py:TestOrg.test_bugzilla_1062295_2 2014-03-21 19:45:20 - robottelo - DEBUG - Running test TestOrg/test_bugzilla_1062295_2 2014-03-21 19:45:20 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv organization create --name='lfb60j' 2014-03-21 19:45:24 - robottelo - DEBUG - <<< [u'Message,Id,Name', u'Organization created,385,lfb60j', u''] 2014-03-21 19:45:24 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv organization info --id='385' 2014-03-21 19:45:26 - robottelo - DEBUG - <<< [u'Id,Name,Created at,Updated at,Label,Description', u'385,lfb60j,2014/03/21 23:45:20,2014/03/21 23:45:20,lfb60j,""', u''] 2014-03-21 19:45:32 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv template create --type='PXEGrub' --name='qa3kcu' --file='/tmp/sqdj9zs' 2014-03-21 19:45:34 - robottelo - DEBUG - <<< [u'Message,Id,Name', u'Config template created,41,qa3kcu', u''] 2014-03-21 19:45:34 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv template info --id='41' 2014-03-21 19:45:35 - robottelo - DEBUG - <<< [u'Id,Name,Type,OS ids', u'41,qa3kcu,PXEGrub,""', u''] 2014-03-21 19:45:41 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme organization add-config-template --config-template='qa3kcu' --name='lfb60j' 2014-03-21 19:46:41 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme organization remove-config-template --config-template='qa3kcu' --name='lfb60j' . ---------------------------------------------------------------------- Ran 1 test in 142.848s OK
This was delivered in 6.0.3, the Beta version of Satellite 6.0
This was delivered with 6.0.3, which is the Satellite 6 Beta.