Seite 1 von 1

MYSQL Backend einbinden

Verfasst: 22 Mär 2010, 12:08
von mario156
Hallo,
wir haben OPSI auf der CEBIT kennengerlenrt und testen gerade mit dem VMWARE-DEMO Image.

Erste tests haben soweit geklappt, jetzt will ich aber das ganze in die MYSQL Datenbank schreiben und nicht in die Files auf dem FS.

Bin dafür wie in der Anleitung vorgegangen und die Datei 30_vars.conf sieht jetzt wie folgt aus:

Code: Alles auswählen

global SYSTEM_ADMIN_GROUP
SYSTEM_ADMIN_GROUP = 'opsiadmin'

self._pamService = 'passwd'
self._sshRSAPublicKeyFile = '/etc/ssh/ssh_host_rsa_key.pub'

self.defaultBackend        = BACKEND_MYSQL
#self.clientManagingBackend = [ BACKEND_DHCPD, BACKEND_FILE31 ]
self.clientManagingBackend = BACKEND_FILE31
self.pxebootconfBackend    = BACKEND_OPSIPXECONFD
self.passwordBackend       = BACKEND_FILE31
self.pckeyBackend          = BACKEND_FILE31
self.swinventBackend       = BACKEND_MYSQL
self.hwinventBackend       = BACKEND_MYSQL
self.licenseBackend        = BACKEND_MYSQL
self.loggingBackend        = BACKEND_FILE31

Habe anschließend /usr/share/opsi/init-opsi-mysql-db.py ausgeführt (lief auch Fehlerfrei durch) und MYSQL etc. läuft auch alles wunderbar. Trotzdem startet jetzt der OPSI-Dienst nicht.

Folgendes spuckt die Log-Datei aus:

Code: Alles auswählen

==================================================================
             OPSI configuration-service starting
==================================================================
 (opsiconfd|1418)
[2] [Mar 22 12:08:36] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: '/etc/opsi/modules' (BackendManager.py|1211)
[4] [Mar 22 12:08:36] Added static content '/' which points to directory '/usr/share/opsiconfd/static' (opsiconfd|1216)
[2] [Mar 22 12:08:36] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: '/etc/opsi/modules' (BackendManager.py|1211)
[4] [Mar 22 12:08:36] Added webdav content 'opsi-depot' which points to directory '/opt/pcbin/install' (opsiconfd|1243)
[4] [Mar 22 12:08:36] Added static content 'configed' which points to directory '/usr/lib/configed' (opsiconfd|1238)
[2] [Mar 22 12:08:36] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: '/etc/opsi/modules' (BackendManager.py|1211)
[1] [Mar 22 12:08:36] Traceback: (Logger.py|648)
[1] [Mar 22 12:08:36]      line 1500 in '<module>' in file '/usr/sbin/opsiconfd' (Logger.py|648)
[1] [Mar 22 12:08:36]      line 1445 in 'main' in file '/usr/sbin/opsiconfd' (Logger.py|648)
[1] [Mar 22 12:08:36]      line 1247 in 'createRoot' in file '/usr/sbin/opsiconfd' (Logger.py|648)
[1] [Mar 22 12:08:36]      line 662 in 'getDepotIds_list' in file '/etc/opsi/backendManager.d/50_interface.conf' (Logger.py|648)
[1] [Mar 22 12:08:36]      line 501 in '_execMethod' in file '/var/lib/python-support/python2.5/OPSI/Backend/BackendManager.py' (Logger.py|648)
[1] [Mar 22 12:08:36]      line 1 in '<module>' in file '<string>' (Logger.py|648)
[1] [Mar 22 12:08:36]      ==>>> MySQLBackend instance has no attribute 'getDepotIds_list' (opsiconfd|1516)
[2] [Mar 22 12:08:36] ERROR: (opsiconfd|1517)
[2] [Mar 22 12:08:36]   (opsiconfd|1517)
[2] [Mar 22 12:08:36] MySQLBackend instance has no attribute 'getDepotIds_list' (opsiconfd|1517)
[2] [Mar 22 12:08:36]
 (opsiconfd|1517)



Finde hier im Forum leider nichts zu MySQLBackend instance has no attribute 'getDepotIds_list' .
Jemand eine Idee / Lösung :) ?

Danke und Gruß
Mario

Re: MYSQL Backend einbinden

Verfasst: 22 Mär 2010, 14:59
von wolfbardo
die zeile
mario156 hat geschrieben:

Code: Alles auswählen

self.defaultBackend        = BACKEND_MYSQL

geht so nicht. (das geht erst mit opsi3.5 so man sich an der Cofinanzierung beteiligt)

Gruss
Bardo Wolf