[ovirt-users] Re: Disk move fails - Invalid parameter: 'initial size=
It is VirtIO-SCSI on a ISCSI storage domain. Thin provisioned. There are a number of snapshots for the disk as well. On Wed, 10 Oct 2018 at 11:19, Eyal Shenitzky wrote: > What is the disk configuration (block/file based, preallocated/thin etc..)? > > On Wed, Oct 10, 2018 at 1:10 PM Simon Vincent wrote: > >> To avoid duplication I have already attached them to the bug report here: >> https://bugzilla.redhat.com/show_bug.cgi?id=1625240. >> I have successfully moved all my other VMs disks, it is just this one VM >> that has a disk that always fails to move. >> >> >> >> On Wed, 10 Oct 2018 at 10:38, Eyal Shenitzky wrote: >> >>> Can you please attach VDSM and engine log with the error >>> (/var/log/vdsm/vdsm.log and var/log/ovirt-engine/engine.log)? >>> >>> Also, can you reproduce this issue consistently? is so, what are the >>> steps? >>> >>> >>> On Wed, Oct 10, 2018 at 10:55 AM Simon Vincent >>> wrote: >>> >>>> VDSM version: vdsm-4.20.39.1-1.el7 >>>> Engine: 4.2.6.4-1.el7 >>>> >>>> On Wed, 10 Oct 2018 at 05:12, Eyal Shenitzky >>>> wrote: >>>> >>>>> Can you please share the VDSM and the Engine version? >>>>> >>>>> On Tue, Oct 9, 2018 at 5:34 PM Simon Vincent >>>>> wrote: >>>>> >>>>>> I am trying to move a disk to another data domain but it always fails >>>>>> with the following error. >>>>>> >>>>>> ERROR >>>>>> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] >>>>>> (EE-ManagedThreadFactory-engineScheduled-Thread-77) [] EVENT_ID: >>>>>> VDS_BROKER_COMMAND_FAILURE(10,802), VDSM blade15.crt.lan command >>>>>> HSMGetAllTasksStatusesVDS failed: Error creating a new volume: (u"Volume >>>>>> creation e6171aae-2c5b-4c91-84fc-506c0e835928 failed: Invalid parameter: >>>>>> 'initial size=122016117'",) >>>>>> >>>>>> It sounds a bit like this bug >>>>>> https://bugzilla.redhat.com/show_bug.cgi?id=1625240 >>>>>> >>>>>> Does anyone know how to work around this problem? >>>>>> >>>>>> Thanks >>>>>> ___ >>>>>> Users mailing list -- users@ovirt.org >>>>>> To unsubscribe send an email to users-le...@ovirt.org >>>>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ >>>>>> oVirt Code of Conduct: >>>>>> https://www.ovirt.org/community/about/community-guidelines/ >>>>>> List Archives: >>>>>> https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZQY7JRIAU6IKH6IOIQFCMCIGKPGBTP3L/ >>>>>> >>>>> >>>>> >>>>> -- >>>>> Regards, >>>>> Eyal Shenitzky >>>>> >>>> >>> >>> -- >>> Regards, >>> Eyal Shenitzky >>> >> > > -- > Regards, > Eyal Shenitzky > ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/44CZT737XUK7IIBVYYFUEKWHATQBZP5R/
[ovirt-users] Re: Disk move fails - Invalid parameter: 'initial size=
To avoid duplication I have already attached them to the bug report here: https://bugzilla.redhat.com/show_bug.cgi?id=1625240. I have successfully moved all my other VMs disks, it is just this one VM that has a disk that always fails to move. On Wed, 10 Oct 2018 at 10:38, Eyal Shenitzky wrote: > Can you please attach VDSM and engine log with the error > (/var/log/vdsm/vdsm.log and var/log/ovirt-engine/engine.log)? > > Also, can you reproduce this issue consistently? is so, what are the steps? > > > On Wed, Oct 10, 2018 at 10:55 AM Simon Vincent wrote: > >> VDSM version: vdsm-4.20.39.1-1.el7 >> Engine: 4.2.6.4-1.el7 >> >> On Wed, 10 Oct 2018 at 05:12, Eyal Shenitzky wrote: >> >>> Can you please share the VDSM and the Engine version? >>> >>> On Tue, Oct 9, 2018 at 5:34 PM Simon Vincent wrote: >>> >>>> I am trying to move a disk to another data domain but it always fails >>>> with the following error. >>>> >>>> ERROR >>>> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] >>>> (EE-ManagedThreadFactory-engineScheduled-Thread-77) [] EVENT_ID: >>>> VDS_BROKER_COMMAND_FAILURE(10,802), VDSM blade15.crt.lan command >>>> HSMGetAllTasksStatusesVDS failed: Error creating a new volume: (u"Volume >>>> creation e6171aae-2c5b-4c91-84fc-506c0e835928 failed: Invalid parameter: >>>> 'initial size=122016117'",) >>>> >>>> It sounds a bit like this bug >>>> https://bugzilla.redhat.com/show_bug.cgi?id=1625240 >>>> >>>> Does anyone know how to work around this problem? >>>> >>>> Thanks >>>> ___ >>>> Users mailing list -- users@ovirt.org >>>> To unsubscribe send an email to users-le...@ovirt.org >>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ >>>> oVirt Code of Conduct: >>>> https://www.ovirt.org/community/about/community-guidelines/ >>>> List Archives: >>>> https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZQY7JRIAU6IKH6IOIQFCMCIGKPGBTP3L/ >>>> >>> >>> >>> -- >>> Regards, >>> Eyal Shenitzky >>> >> > > -- > Regards, > Eyal Shenitzky > ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/RYVZFDMPZGKBLNC3GUMVZTG6KWHK4MT4/
[ovirt-users] Re: Disk move fails - Invalid parameter: 'initial size=
VDSM version: vdsm-4.20.39.1-1.el7 Engine: 4.2.6.4-1.el7 On Wed, 10 Oct 2018 at 05:12, Eyal Shenitzky wrote: > Can you please share the VDSM and the Engine version? > > On Tue, Oct 9, 2018 at 5:34 PM Simon Vincent wrote: > >> I am trying to move a disk to another data domain but it always fails >> with the following error. >> >> ERROR >> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] >> (EE-ManagedThreadFactory-engineScheduled-Thread-77) [] EVENT_ID: >> VDS_BROKER_COMMAND_FAILURE(10,802), VDSM blade15.crt.lan command >> HSMGetAllTasksStatusesVDS failed: Error creating a new volume: (u"Volume >> creation e6171aae-2c5b-4c91-84fc-506c0e835928 failed: Invalid parameter: >> 'initial size=122016117'",) >> >> It sounds a bit like this bug >> https://bugzilla.redhat.com/show_bug.cgi?id=1625240 >> >> Does anyone know how to work around this problem? >> >> Thanks >> ___ >> Users mailing list -- users@ovirt.org >> To unsubscribe send an email to users-le...@ovirt.org >> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ >> oVirt Code of Conduct: >> https://www.ovirt.org/community/about/community-guidelines/ >> List Archives: >> https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZQY7JRIAU6IKH6IOIQFCMCIGKPGBTP3L/ >> > > > -- > Regards, > Eyal Shenitzky > ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/XNC5TOTTP5XHJNMSPVHVM3L74Q54U7PJ/
[ovirt-users] Disk move fails - Invalid parameter: 'initial size=
I am trying to move a disk to another data domain but it always fails with the following error. ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engineScheduled-Thread-77) [] EVENT_ID: VDS_BROKER_COMMAND_FAILURE(10,802), VDSM blade15.crt.lan command HSMGetAllTasksStatusesVDS failed: Error creating a new volume: (u"Volume creation e6171aae-2c5b-4c91-84fc-506c0e835928 failed: Invalid parameter: 'initial size=122016117'",) It sounds a bit like this bug https://bugzilla.redhat.com/show_bug.cgi?id=1625240 Does anyone know how to work around this problem? Thanks ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZQY7JRIAU6IKH6IOIQFCMCIGKPGBTP3L/
[ovirt-users] Failed to lock byte 100 - when booting VM with attached CD
I have found recently I can't boot any VMs which have a CD attached to it. I get the following error. VM Test is down with error. Exit message: internal error: qemu unexpectedly closed the monitor: 2018-10-04T11:53:07.031875Z qemu-kvm: -device ide-cd,bus=ide.1,unit=0,drive=drive-ua-5ccd6310-a1e5-4019-b989-795529c70794,id=ua-5ccd6310-a1e5-4019-b989-795529c70794,bootindex=2: Failed to lock byte 100 2018-10-04T11:53:07.032264Z qemu-kvm: -device ide-cd,bus=ide.1,unit=0,drive=drive-ua-5ccd6310-a1e5-4019-b989-795529c70794,id=ua-5ccd6310-a1e5-4019-b989-795529c70794,bootindex=2: Failed to lock byte 100 2018-10-04T11:53:07.032285Z qemu-kvm: -device ide-cd,bus=ide.1,unit=0,drive=drive-ua-5ccd6310-a1e5-4019-b989-795529c70794,id=ua-5ccd6310-a1e5-4019-b989-795529c70794,bootindex=2: Failed to lock byte 100 Unexpected error in raw_apply_lock_bytes() at block/file-posix.c:642: 2018-10-04T11:53:07.032665Z qemu-kvm: -device ide-cd,bus=ide.1,unit=0,drive=drive-ua-5ccd6310-a1e5-4019-b989-795529c70794,id=ua-5ccd6310-a1e5-4019-b989-795529c70794,bootindex=2: Failed to lock byte 100. I have tried relaxing the permissions on the iSO NFS share and even removed the iSO domain and added a new one, but I still get the problem. Regards Simon ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/T3BGVIPZ2IW23DBOXIYWJMVNYX6GWNVA/
[ovirt-users] Moving all disks to new storage domain
I need to decommission an old SAN so I have connected a new one into ovirt as a new storage domain. I would like to use a python script to move all disks/snapshots/everything over to the new storage domain but I am having some problems. I am trying to search for all VMs using a particular storage domain but this is not working how I would like. The code I am using is: vms = vms_service.list(search='Storage=team-data') However this is returning VMs which are using storage domains 'team-data' and 'team-data2'. Is this a bug or is there another way to return vms from just 'team-data'? My script so far is: connection = sdk.Connection( url=ovaddress, username=username, password=password, insecure=True ) system_service = connection.system_service() vms_service = system_service.vms_service() disks_service = connection.system_service().disks_service() vms = vms_service.list(search='Storage=team-data') sds_service = connection.system_service().storage_domains_service() dest_sd = sds_service.list(search='name=team-data2') if len(dest_sd)!=1: exit() dest_sd=dest_sd[0] for vm in vms: print (vm.name) vm_service = vms_service.vm_service(vm.id) disk_attachments = vm_service.disk_attachments_service().list() for disk_attachment in disk_attachments: disk = connection.follow_link(disk_attachment.disk) print (" disk: " + disk.name) disk_service = disks_service.disk_service(disk.id) disk_service.move(storage_domain=dest_sd) while True: print("Waiting for movement to complete ...") time.sleep(10) disk = disk_service.get() if disk.status == types.DiskStatus.OK: break connection.close() ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/VWYJDNPP2IL5HZUVWJDA7HPXTIPIBUGH/
Re: [ovirt-users] Emergency shutdown script
I have created a python script using the oVirt SDK but I can't find an API to shutdown the hosted engine and hosts. I am guessing this isn't possible using the API as if you shutdown the hosted engine the API will stop working. I guess the only way to stop the hosted engine and shutdown hosts is via SSH or some kind of agent? #!/usr/bin/env python > > >> import ovirtsdk4 as sdk > > from ovirtsdk4 import types > > >> import time > > >> MINUTES_TO_WAIT=5 > > # must be run from infrastructure vlan > > >> ovaddress = "removed" > > username="removed" > > password="removed" > > >> connection = sdk.Connection( > > url=ovaddress, > > username=username, > > password=password, > > insecure=True > > ) > > >> system_service = connection.system_service() > > vms_service = system_service.vms_service() > > >> # Shutdown VMs and put into global maintenance > > vms = vms_service.list(search='status=up') > > for vm in vms: > > vm_service = vms_service.vm_service(vm.id) > > if "HostedEngine" in vm.name: > > vm_service.maintenance(maintenance_enabled=True) > > print "Global maintenance enabled" > > else: > > vm_service.shutdown() > > print ("%s shutdown" % (vm.name)) > > >> # Wait for VMs to shutdown > > for x in range(0, MINUTES_TO_WAIT): > > time.sleep(60) > > vms = vms_service.list(search='status=up') > > if len(vms) == 1: > > # Just the Hosted Engine left > > break > > for vm in vms: > > vm_service = vms_service.vm_service(vm.id) > > print ("waiting for %s to shutdown" % (vm.name)) > > >> # Put hosts in local maintenance > > hosts_service = connection.system_service().hosts_service() > > hosts = hosts_service.list(search='status=up') > > for host in hosts: > > host_service = hosts_service.host_service(host.id) > > if host.status != types.HostStatus.MAINTENANCE: > > host_service.deactivate() > > print ("%s put into maintenance mode" %(host.name)) > > >> # Shutdown Hosted Engine? > > # Shutdown hosts? > > >> connection.close() > > > On 24 April 2018 at 02:06, Doug Ingham wrote: > I've plugged this into our monitoring. > > When the UPS' are at 50%, it puts the general cluster into global > maintenance & then triggers a shutdown action on all of the VMs in the > cluster's service group via the monitoring agent (you could use an SNMP > trap if you use agentless monitoring). Once all of the VMs are down, it > then continues with the hosts. > > At 20%, it does the same with our "core" cluster. > > This method means that the HE can be shutdown, and it works whether the HE > is up or not. > > For emergencies when the monitoring is offline, I've also hacked up a bash > script which parses the output of vdsClient & uses a loop to send a > shutdown signal to all of the VMs on each host. > > Doug > > On Mon, 23 Apr 2018, 14:14 Simon Vincent, wrote: > >> Does anyone have a way of shutting down oVirt automatically in the case >> of a power outage? >> >> Ideally I would like a script that can be automatically run when the UPS >> reaches a certain level. I had a look at the python SDK but I could only >> find functions for shutting down VMs and not hosts. Also I suspect this >> wont let me shutdown the hosted engine VM. >> >> Any ideas? >> >> Regards >> ___ >> Users mailing list >> Users@ovirt.org >> http://lists.ovirt.org/mailman/listinfo/users >> > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Emergency shutdown script
Does anyone have a way of shutting down oVirt automatically in the case of a power outage? Ideally I would like a script that can be automatically run when the UPS reaches a certain level. I had a look at the python SDK but I could only find functions for shutting down VMs and not hosts. Also I suspect this wont let me shutdown the hosted engine VM. Any ideas? Regards ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Upgrading libguestfs to import debian VM
I find that running oVirt 4.1.1 I can not import any debian based VMs as virt-v2v/libguestfs is too old. This bug report https://bugzilla.redhat.com/show_bug.cgi?id=1362497 indicates that newer versions of libguestfs support importing debian and Ubuntu VMs. Are there any plans to include a newer version of libguestfs in oVirt soon? If I built a newer version of libguestfs on my ovirt-node would it break everything? Regards Simon ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Passing VLAN trunk to VM
I was wondering if open vswitch will get round this problem. Has anyone tried it? On 9 Mar 2017 7:41 pm, "Rogério Ceni Coelho" wrote: > Hi, > > Ovirt user interface does not allow to input 4095 as a tag vlan number ... > Only values between 0 and 4094. > > This is useful to me too. Maybe any other way ? > > Em qui, 9 de mar de 2017 às 16:15, FERNANDO FREDIANI < > fernando.fredi...@upx.com> escreveu: > >> Have you tried use Vlan 4095 ? On VMware it used to be the way to pass >> all Vlans from a vSwitch to a Vlan in a single port. And yes I have used it >> also for pfSense. >> >> Fernando >> >> On 09/03/2017 16:09, Simon Vincent wrote: >> >> Is it possible to pass multiple VLANs to a VM (pfSense) using a single >> virtual NIC? All my existing oVirt networks are setup as a single tagged >> VLAN. I know this didn't used to be supported but wondered if this has >> changed. My other option is to pass each VLAN as a separate NIC to the VM >> however if I needed to add a new VLAN I would have to add a new interface >> and reboot the VM as hot-add of NICs is not supported by pfSense. >> >> >> >> >> ___ >> Users mailing >> listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users >> >> >> ___ >> Users mailing list >> Users@ovirt.org >> http://lists.ovirt.org/mailman/listinfo/users >> > > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Passing VLAN trunk to VM
Is it possible to pass multiple VLANs to a VM (pfSense) using a single virtual NIC? All my existing oVirt networks are setup as a single tagged VLAN. I know this didn't used to be supported but wondered if this has changed. My other option is to pass each VLAN as a separate NIC to the VM however if I needed to add a new VLAN I would have to add a new interface and reboot the VM as hot-add of NICs is not supported by pfSense. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Problems adding iSCSI storage domain
I have setup a small cluster running a hosted engine using iSCSI. I tried to add a new iSCSI storage domain but this failed as not all hosts could access the storage server. I fixed this problem but it now does not let me add the new storage domain as it shows "lun is already part of storage domain". The engine does not show any storage domains but if I look in the database it shows up there. How do I remove this broken storage domain and then re-add it? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users