[Solved] Creating License Pool fails

Antworten
tjoene
Beiträge: 4
Registriert: 19 Mär 2013, 10:23

[Solved] Creating License Pool fails

Beitrag von tjoene »

Hello,

I'm currently testing the licensing modules for my thesis on Automated Software Deployment. Unfortunately, I get an error when I try to create a license pool:

Code: Alles auswählen

Opsi service error: [Exception] Failed to create license pool
I have found only 1 similar topic, but there is no solution in it.
viewtopic.php?f=7&t=2123

The trial license I use, is valid:

Code: Alles auswählen

opsi-admin -d method backend_info
{
"opsiVersion" : "4.0.3.1",
...
"modules" :
          {
          "license_management" : true,
          "expires" : "2013-06-02",
          "valid" : true,
          "mysql_backend" : true,
           ...
          }
}
My /etc/opsi/backendManager/dispatch.conf looks like this:

Code: Alles auswählen

backend_.*         : file, mysql, opsipxeconfd
host_.*            : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.*     : file, opsipxeconfd
.*                 : file
softwareLicense.*  : mysql
license.*          : mysql
audit.*            : mysql
In the logs, I have found the following error, but there is not much info in it:

Code: Alles auswählen

[5] [Apr 26 10:04:32] Application 'opsi config editor 4.0.3.2.1' on client '127.0.0.1' supplied non existing session id: K9IZvH52ZEkYQamKi35DOM$
[5] [Apr 26 10:04:32] Authorization request from adminuser@127.0.0.1 (application: opsi config editor 4.0.3.2.1) (workers.py|188)
[5] [Apr 26 10:04:32] Modules file signature verified (customer: Jeroen ********) (MySQL.py|422)
[5] [Apr 26 10:04:33] -----> Executing: licensePool_getObjects([u'id', u'description']) (JsonRpc.py|123)
[5] [Apr 26 10:04:33] -----> Executing: getLicensePools_listOfHashes() (JsonRpc.py|123)
[5] [Apr 26 10:04:33] -----> Executing: auditSoftware_getObjects([u'name', u'version', u'subVersion', u'language', u'architecture', u'windowsSo$
[5] [Apr 26 10:04:33] -----> Executing: getSoftwareLicenses_listOfHashes() (JsonRpc.py|123)
[5] [Apr 26 10:04:33] -----> Executing: getLicenseContracts_listOfHashes() (JsonRpc.py|123)
[5] [Apr 26 10:04:34] -----> Executing: getSoftwareLicenses_listOfHashes() (JsonRpc.py|123)
[5] [Apr 26 10:04:34] -----> Executing: getSoftwareLicenseUsages_listOfHashes() (JsonRpc.py|123)
[5] [Apr 26 10:04:34] -----> Executing: getConfigOptions_hash() (JsonRpc.py|123)
[5] [Apr 26 10:04:34] -----> Executing: host_getObjects([u'id'], {'type': u'OpsiClient'}) (JsonRpc.py|123)
[5] [Apr 26 10:04:34] -----> Executing: auditSoftwareToLicensePool_getObjects([u'name', u'version', u'subVersion', u'language', u'architecture'$
[5] [Apr 26 10:04:34] -----> Executing: getAuditSoftwareUsage() (JsonRpc.py|123)
[5] [Apr 26 10:04:34] -----> Executing: getLicenseStatistics_hash() (JsonRpc.py|123)
[5] [Apr 26 10:04:56] -----> Executing: createLicensePool(u'test', u'') (JsonRpc.py|123)
[3] [Apr 26 10:04:56] Execution error: Failed to create license pool (JsonRpc.py|136)

Any one knows how to fix this?

Thanks on advance,

Jeroen
Zuletzt geändert von tjoene am 26 Apr 2013, 12:45, insgesamt 1-mal geändert.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

Re: Creating License Pool fails

Beitrag von wolfbardo »

Hello,

the lines in your dispatch.conf seems to be are in wrong order.

Please change to

Code: Alles auswählen

backend_.*         : file, mysql, opsipxeconfd
host_.*            : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.*     : file, opsipxeconfd
license.*          : mysql
softwareLicense.*  : mysql
audit.*            : mysql
.*                 : file
and

Code: Alles auswählen

opsi-setup --init-current-config
and restart the opsi services

regards,
Bardo Wolf


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


tjoene
Beiträge: 4
Registriert: 19 Mär 2013, 10:23

Re: Creating License Pool fails

Beitrag von tjoene »

Hello,

That solution worked!

Thanks!!

Jeroen
Antworten