Bug 18737 - Default libvirt storage pool anlegen
Default libvirt storage pool anlegen
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Virtualization - UVMM
UCS 2.3
Other Linux
: P5 normal (vote)
: UCS 2.4
Assigned To: Andreas Büsching
Stefan Gohmann
:
Depends on:
Blocks: 18611
  Show dependency treegraph
 
Reported: 2010-06-22 14:44 CEST by Philipp Hahn
Modified: 2010-08-31 13:22 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2010-06-22 14:44:00 CEST
Zum Anlegen von "Storage Volumes" wird von libvirt ein sog. "Storage Pool" benötigt. Davon gibt es verschiedene Typen: Verzeichnis, NFS-Share, iSCSI, LVM <http://libvirt.org/storage.html>
UVMM sollte standardmäßig analog zu "virt-manager" <file:/usr/share/virt-manager/virtManager/util.py> einen Default-Pool vom Typ "directory" unter "/var/lib/libvirt/images/" anlegen.
Comment 1 Andreas Büsching univentionstaff 2010-06-25 13:43:14 CEST
Ich brauche das für die Wizards
Comment 2 Andreas Büsching univentionstaff 2010-06-30 08:55:07 CEST
Der UVMM-Daemon legt jetzt auf jedem Node mit dem er sich verbindet einen Default-Pool. Das Verzeichnis für diesen Pool kann über die UCR-Variable uvmm/pool/default/path verändert werden.
Comment 3 Stefan Gohmann univentionstaff 2010-08-15 20:43:03 CEST
Irgendwie funktioniert das nicht:

root@kvm:~# ucr set uvmm/pool/default/path=/tmp
Setting uvmm/pool/default/path
root@kvm:~# virsh pool-destroy default
Pool default destroyed

root@kvm:~# invoke-rc.d univention-virtual-machine-manager-daemon restart
 * Restarting Univention Virtual Machine Manager uvmmd
                                                                                                                                                                                             [ ok ]
root@kvm:~# invoke-rc.d univention-virtual-machine-manager-node-common restart
 * Restarting univention-libvirt daemon:
ok: run: univention-libvirt: (pid 5250) 1s, normally down
   ...done.
root@kvm:~#

Anschließend werden die Images immer noch unter /var/lib/libvirt/images angelegt.
Comment 4 Andreas Büsching univentionstaff 2010-08-16 09:18:13 CEST
(In reply to comment #3)
> Irgendwie funktioniert das nicht:
> 
> root@kvm:~# ucr set uvmm/pool/default/path=/tmp
> Setting uvmm/pool/default/path
> root@kvm:~# virsh pool-destroy default
> Pool default destroyed

Destroy reicht hier nicht. Damit wird der Pool nur als inaktiv gesetzt. Mit

virsh pool-undefine default

wird er wirklich entfernt. Anschließend legt UVMMd nach einem Neustart den Pool auch mit dem gesetzten Verzeichnis an.
Comment 5 Stefan Gohmann univentionstaff 2010-08-17 22:35:40 CEST
funktioniert
Comment 6 Stefan Gohmann univentionstaff 2010-08-31 13:22:41 CEST
UCS 2.4 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer
neueren Version von UCS erneut auftreten, so sollte der Bug dupliziert werden:
"Clone This Bug".