Seite 1 von 1

[Solved] Creating License Pool fails

Verfasst: 26 Apr 2013, 10:35
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

Re: Creating License Pool fails

Verfasst: 26 Apr 2013, 10:47
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

Re: Creating License Pool fails

Verfasst: 26 Apr 2013, 10:50
von tjoene
Hello,

That solution worked!

Thanks!!

Jeroen