Bug 574393 - Cannot create entitlement cert with script gen-oss-sat-cert.pl
Summary: Cannot create entitlement cert with script gen-oss-sat-cert.pl
Keywords:
Status: CLOSED DUPLICATE of bug 529371
Alias: None
Product: Fedora
Classification: Fedora
Component: spacewalk-certs-tools
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-17 13:18 UTC by Patrick Grieshaber
Modified: 2010-03-17 14:27 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-03-17 14:27:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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