Bug 1062295 - Foreman Cli : Add_Config template fails
Summary: Foreman Cli : Add_Config template fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: Nightly
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Tazim Kolhar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-06 15:30 UTC by Tazim Kolhar
Modified: 2019-09-26 18:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:09:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
foreman-debug (94.36 KB, application/x-xz)
2014-02-06 15:30 UTC, Tazim Kolhar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 4232 0 None None None 2016-04-22 15:52:54 UTC

Description Tazim Kolhar 2014-02-06 15:30:34 UTC
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:

Comment 1 RHEL Program Management 2014-02-06 15:31:55 UTC
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.

Comment 6 Og Maciel 2014-03-21 23:53:39 UTC
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

Comment 7 Bryan Kearney 2014-07-02 14:09:02 UTC
This was delivered in 6.0.3, the Beta version of Satellite 6.0

Comment 8 Bryan Kearney 2014-07-02 14:09:03 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.


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