koan 2.2.3 will happily destroy the storage of a currently running or defined vm. Has this been fixed in later versions?

# koan -v --virt-type=kvm --system=drupal --static-interface=eth0
- looking for Cobbler at http://cobbler.cora.nwra.com:80/cobbler_api
- reading URL: http://cobbler.cora.nwra.com/cblr/svc/op/ks/system/drupal
install_tree: http://sl.cora.nwra.com/6/x86_64/os
libvirtd (pid  1997) is running...
vgs -o vg_name
File descriptor 3 (/var/log/koan/koan.log) leaked on vgs invocation. Parent PID 24903: /usr/bin/python
  VG
  vg_root

LANG=C vgs --noheadings -o vg_free --units g vg_root
File descriptor 3 (/var/log/koan/koan.log) leaked on vgs invocation. Parent PID 24903: /usr/bin/python
(75.53)
lvs -o lv_name vg_root
File descriptor 3 (/var/log/koan/koan.log) leaked on lvs invocation. Parent PID 24903: /usr/bin/python
  LV
  drupal-disk0
  hawkvm-disk0
  mercury-disk0
  root
  swap
  var

/usr/bin/chcon -t virt_image_t /dev/mapper/vg_root-drupal--disk0
/usr/sbin/semanage fcontext -a -t virt_image_t /dev/mapper/vg_root-drupal--disk0
- adding disk: /dev/mapper/vg_root-drupal--disk0 of size 10 (driver type=raw)
- ['virt-install', '--connect', 'qemu:///system', '--name', 'drupal', '--ram', '512', '--vcpus', '1', '--autostart', '--vnc', '--virt-type', 'kvm', '--extra-args=ksdevice=eth0 ip=4.28.99.167 nohz=off ks=http://cobbler.cora.nwra.com/cblr/svc/op/ks/system/drupal netmask=255.255.255.224 dns=10.10.10.1,10.10.10.2 text kssendmac gateway=4.28.99.161 ', '--location', 'http://sl.cora.nwra.com/6/x86_64/os/', '--arch', 'x86_64', '--os-variant', 'rhel6', '--disk', 'path=/dev/mapper/vg_root-drupal--disk0,size=10,driver_type=raw', '--network', 'bridge=br0,mac=00:16:3e:1f:ac:6f', '--network', 'bridge=br1,mac=00:16:3e:5b:89:a2', '--wait', '0', '--noautoconsole']
ERROR    Guest name 'drupal' is already in use.
command failed (1)

------

At this point the vm is dead because the storage was deleted out from under it.

--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder Office                  FAX: 303-415-9702
3380 Mitchell Lane                       [email protected]
Boulder, CO 80301                   http://www.nwra.com
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to