Bug 574393

Summary: Cannot create entitlement cert with script gen-oss-sat-cert.pl
Product: [Fedora] Fedora Reporter: Patrick Grieshaber <patrick>
Component: spacewalk-certs-toolsAssignee: Miroslav Suchý <msuchy>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: msuchy
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-17 14:27:27 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:

Description Patrick Grieshaber 2010-03-17 13:18:14 UTC
Description of problem:
I have to create the entitlements certification file according to:
https://fedorahosted.org/spacewalk/wiki/CertCreation

I try this with the following command:
./gen-oss-sat-cert.pl --dsn spacewalk/spacewalk@xe --signer 1409A43D --owner admin --no-passphrase --output templace.cert --expires 20.1.2015 --slots 99 --orgid 1
Unknown option: dsn
RHN::Exception: Attempt to set invalid mode 'all_rh_channel_families_insecure' for datasource 'RHN::DataSource::Channel'
  RHN::DataSource /usr/lib/perl5/vendor_perl/5.10.0/RHN/DataSource.pm 67 RHN::Exception::throw
  RHN::DataSource /usr/lib/perl5/vendor_perl/5.10.0/RHN/DataSource.pm 38 RHN::DataSource::mode
  main ./scripts_gen-oss-sat-cert.pl 94 RHN::DataSource::new

It is a fresh n' clean installation of spacewalk. 

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. Install spacewalk 
2. ./gen-oss-sat-cert.pl --dsn spacewalk/spacewalk@xe --signer 1409A43D --owner admin --no-passphrase --output templace.cert --expires 20.1.2015 --slots 99 --orgid 1
3.
  
Actual results:
Fail to genereate entitlement certificate file.

Expected results:
Output file containing a valid entitlement.

Additional info:

Comment 1 Miroslav Suchý 2010-03-17 14:05:44 UTC
please provide output of:
rpm -q spacewalk-certs-tools

Comment 2 Miroslav Suchý 2010-03-17 14:27:27 UTC
There is no option --dsn. connect string is taken from /etc/rhn/rhn.conf (I edited wiki).

Script ./gen-oss-sat-cert.pl is not part of spacewalk-certs-tools

This is duplicate of 529371

*** This bug has been marked as a duplicate of bug 529371 ***