[ovirt-users] Re: AutoStart VMs (was Re: Re: oVirt 4.4.0 Release is now generally available)
On Thu, May 28, 2020 at 5:01 AM Derek Atkins wrote: > > Hi, > > On Wed, May 27, 2020 5:38 pm, Gianluca Cecchi wrote: > [snip] > > But you hated Python, didn't you? ;-) > > I do. Can't stand it. Doesn't mean I can't read it and/or write it, but > I have to hold my nose doing it. Syntactic white space? Eww. But Python > is already installed and used and, apparently, supported.. And when I > looked at the examples I found that 90% of what I needed to do was already > implemented, so it turned out to be much easier than expected. Actually there are SDKs for other languages: https://gerrit.ovirt.org/#/admin/projects/?filter=sdk https://github.com/oVirt?q=sdk&type=&language= JS is empty, but the others are more-or-less alive. Python is indeed the most "invested", at least in terms of number of example scripts, but IIUC all of them are generated, so should be complete. Didn't try to use any of them myself, though, other than python. > > > I downloaded your files, even if I'm far from knowing python > > It's pretty much a direct translation of my bash script around > ovirt-shell. It does have one feature that the old code didn't, which is > the ability to wait for ovirt to declare that a vm is actually "up". > > > try the ansible playbook that gives you more flexibility in my opinion > > I've never even installed ansible, let alone tried to use it. I don't > need flexibility, I need the job to get done. But I'll take a look when I > get the chance. Thanks! > > > Gianluca > > -derek > > PS: you (meaning whomever is "in charge" is welcome to add my script(s) to > the examples repo if you feel other people would benefit from seeing it > there. You are most welcome to push it yourself: https://www.ovirt.org/develop/dev-process/working-with-gerrit.html Thanks! Best regards, -- Didi ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/EBTH4LAX47IKJ3YCCASOU6P267STVYTU/
[ovirt-users] Re: Q: Which types of tests and tools are used?
You can look into ovirt vdsm pytest readme [1], it is slightly outdated as invocation for 4.4 branch is now using "tox -e storage" (with no "-pyXX" suffix as all tests are python3 compatible there) All up2date options are listed on tox.ini [2]. If you need to set up your vdsm dev/test env you can follow [3]. For engine tests example, you can look at maven tests readme for DB models [4] [1] https://github.com/oVirt/vdsm/blob/master/tests/README [2] https://github.com/oVirt/vdsm/blob/master/tox.ini [3] https://github.com/oVirt/vdsm/blob/master/README.md [4] https://github.com/oVirt/ovirt-engine/blob/ede62008318d924556bc9dfc5710d90e9519670d/backend/manager/modules/dal/README On Sun, May 31, 2020 at 10:46 PM Juergen Novak wrote: > Hi, > > can anybody help me to find some information about test types used in > the project and tools used? > > Particularly interesting would be tools and tests used for the Python > coding, but also any information about Java would be appreciated. > > > I already scanned the documentation, but I mainly found only information > about Mocking tools. > > Thank you! > > /juergen > ___ > Users mailing list -- users@ovirt.org > To unsubscribe send an email to users-le...@ovirt.org > Privacy Statement: https://www.ovirt.org/privacy-policy.html > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/users@ovirt.org/message/OVHS6QUEGSNLZRKXIKDQFR6PKYKL4CBE/ > ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/HUBVO5J6Q3SJUP53CCIZM45SP6TYBZZH/
[ovirt-users] Q: Which types of tests and tools are used?
Hi, can anybody help me to find some information about test types used in the project and tools used? Particularly interesting would be tools and tests used for the Python coding, but also any information about Java would be appreciated. I already scanned the documentation, but I mainly found only information about Mocking tools. Thank you! /juergen ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/OVHS6QUEGSNLZRKXIKDQFR6PKYKL4CBE/
[ovirt-users] Re: Problem with Ovirt Machines
На 31 май 2020 г. 15:52:14 GMT+03:00, aigin...@gmail.com написа: >Hi, > >Our company uses Ovirt to host some of its virtual machines. The >version used is 4.2.6.4-1.el7. There are about 36 virtual hosts in it. >The specifications used for the host machine is 30G RAM and 6 CPUs. >Some of the VMs in the ovirt host run with 4 CPUs. Some with 2 CPUs. > >The problem I face now is that recently there was a need for high CPU >and memory specs to setup a VM for DR. I created a VM with 16G RAM and >6 CPUs, without checking the CPUs available in the host first. After >DR, the VM was brought down already. Then later another person in the >team brought the VM back up for a different DR use, for a much larger >DB restoration purpose. > >This caused the VM to pause due to storage error. And then worse things >happened, whereby 2 other VMs inadvertently went down. Although I >assumed that this was caused by storage errors/problems, the senior >admins in the team concluded that the problem was due to fencing >because of the max allotted CPU for the host being used for the VM. Check the libvirt logs on the host where the VM was running. In the engine, you can check the logs for any fencing, but I have never seen such thing as "excessive CPU allocation" to cause fencing. Either the VM passes the checks (overcommit rules, scheduling,etc) and gets up and running or the engine will refuse to power it up. Also check via journalctl for any messages at that time for the 'sanlock.service' . Any issues (storage unavailable or high lattency detected) will be reported via the sanlock service on the affected node. If you use multipath - check if it also reported any paths failing. >Now what I need to know is how to properly allocate CPU resources to a >host to run multiple virtual machines in it like the situation above. The best way is to start with less CPUs as possible. Here is a short (or maybe not) example: Hoypervisor has 8 CPUs/8 Threads. First VM has 1 CPU. Second has 6 CPUs allocated and a third VM has 8 CPUs allocated. For the hypervisor to allocate CPU time for the third (beefy) VM, it needs to have all 8 CPUs available. As the host itself has 8 cores and usually some OS stuff is going on - the third VM will receive far less CPU time than first/second VM. >I even tried to look for errors in vdsm.log, but this log was not >available in the host machine nor in the affected VM. My colleague >asked me to check "Events" section of the ovirt management interface to >see past the past events. However, I don't find much details about the >fencing activity or how the fencing occurred or what caused the >fencing. > >And how did they conclude that the CPU count caused the fencing and not >the storage? Interesting question... I think they just assumed. In worst case scenario (CPU starvation), the vdsmd service might not respond to the engine, but then a 'soft' reboot will happen where the engine will restart this service over ssh. >___ >Users mailing list -- users@ovirt.org >To unsubscribe send an email to users-le...@ovirt.org >Privacy Statement: https://www.ovirt.org/privacy-policy.html >oVirt Code of Conduct: >https://www.ovirt.org/community/about/community-guidelines/ >List Archives: >https://lists.ovirt.org/archives/list/users@ovirt.org/message/QX7NAZQ67VBA3KLPYIOXYSTPNU46XOBO/ Best Regards, Strahil Nikolov ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/SRD5TUJNKF32H2L6C47HEV4SQDILKLRV/
[ovirt-users] Re: oVirt 4.4 install fails
Hi, Regarding issue #2 (login dialog): Can you please try reloading and refreshing the browser cache by pressing Ctrl+F5 and see if it helps? If not then please attach browser console log and a screenshot of the login dialog. Thanks, Sharon On Fri, May 29, 2020 at 3:44 AM Me wrote: > Thanks Michael. > > I am further on, the engine is running an now at stage 4 Storage. > I have a new FC lun with 2 paths on the install node, recently attached > with no partitions, when I select Storage Type Fiber Channel and press > Discover, I see two disks. > > ID: 3600c0ff00019eb74f1efa95e0100 > Size (GiB): 93.00 > Description: XX SAN > Status: used > Number of Paths: 2 > > ID: SAMSUNG_MZ7KM960HAHP-0E005_XXX > Size (GiB): 751.00 > Description: ATA SAMSUNG MZ7KM960 > Status: used > Number of Paths: 1 > > Both have a warning icon next to them and neither can be selected, > obviously I want to select LUN on the SAN, but can't. > > On the install node in storage, I see the following. > > Drive > Model > XX SAN > Firmware Version > xxx > Serial Number > 00c0ff19eb74f1efa95e0100 > World Wide Name > 0x600c0ff00019eb74f1efa95e0100 > Capacity > 93.1 GiB, 100 GB, 6401664 bytes > Device File > /dev/mapper/3600c0ff00019eb74f1efa95e0100 > Multipathed Devices > /dev/sdc /dev/sdd > > How do I proceed? > > M > > On Thu, 2020-05-28 at 15:12 -0500, Michael Thomas wrote: > > On 5/28/20 2:48 PM, Me wrote: > > > Hi All > > > > > > Not sure where to start, but here goes. > > > > > [...] > > > Issue 2, I use FF 72.0.2 on Linux x64 to connect by > > > https://hostname:9090 to the web interface, but I can't enter login > > > details as the boxes (everything) are disabled There is no warning > > > like "we don't like your choice of browser", but the screen is a not > > > very accessible dark grey on darker grey (a poor choice in what I > > > thought were more enlightened times) so this maybe the case. I have > > > disabled all security add-ons in FF, makes no difference. > > > > I ran into this one today as well. I found that the mouse would not > > work on any of the text boxes or buttons using FF, but I could use > > to navigate through the screen and enter the username/password. > > > > --Mike > > ___ > > Users mailing list -- users@ovirt.org > > To unsubscribe send an email to users-le...@ovirt.org > > Privacy Statement: https://www.ovirt.org/privacy-policy.html > > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > > List Archives: > https://lists.ovirt.org/archives/list/users@ovirt.org/message/HLM3C4HJAJ66F4CGT7PKKPYFLBEWYGLF/ > > > ___ > Users mailing list -- users@ovirt.org > To unsubscribe send an email to users-le...@ovirt.org > Privacy Statement: https://www.ovirt.org/privacy-policy.html > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/users@ovirt.org/message/JUBRKZOVPXPBCMNRPTAYQRLABTBU4U3L/ > ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/ETXWUJ6JSO3CNS47FV5Q763KJIP4VYTI/
[ovirt-users] Problem with Ovirt Machines
Hi, Our company uses Ovirt to host some of its virtual machines. The version used is 4.2.6.4-1.el7. There are about 36 virtual hosts in it. The specifications used for the host machine is 30G RAM and 6 CPUs. Some of the VMs in the ovirt host run with 4 CPUs. Some with 2 CPUs. The problem I face now is that recently there was a need for high CPU and memory specs to setup a VM for DR. I created a VM with 16G RAM and 6 CPUs, without checking the CPUs available in the host first. After DR, the VM was brought down already. Then later another person in the team brought the VM back up for a different DR use, for a much larger DB restoration purpose. This caused the VM to pause due to storage error. And then worse things happened, whereby 2 other VMs inadvertently went down. Although I assumed that this was caused by storage errors/problems, the senior admins in the team concluded that the problem was due to fencing because of the max allotted CPU for the host being used for the VM. Now what I need to know is how to properly allocate CPU resources to a host to run multiple virtual machines in it like the situation above. I even tried to look for errors in vdsm.log, but this log was not available in the host machine nor in the affected VM. My colleague asked me to check "Events" section of the ovirt management interface to see past the past events. However, I don't find much details about the fencing activity or how the fencing occurred or what caused the fencing. And how did they conclude that the CPU count caused the fencing and not the storage? ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/QX7NAZQ67VBA3KLPYIOXYSTPNU46XOBO/
[ovirt-users] Re: Q: Fixing SELinux Permissions on oVirt node
When running from the terminal you are unconfined, hence it runs without error. Probably your only option is to create custom policy to allow this. Although I would question why the log file you are reading is cron_log_t and not var_log_t. On Fri, 29 May 2020 09:25:41 +0100 Andrei Verovski wrote Hi ! I’m struggling with SELinux blocking SNMP script from reading log file (oVirt node manually installed on CentOS 7). Log file is readable by all (chmod ugo+r). Scripts working fine when executed from terminal. I did not dig deep into CentOS internals, I’m mostly use Debian and SuSE. As far as I know, SELinux can’t be turned off on oVirt node. Thanks in advance for any suggestion(s). ** option in snmpd.conf extend .1.3.6.1.4.1.2021.7890.5 checkraid /opt/4anvcheckraid_hp.sh ** script 4anvcheckraid_hp.sh #!/bin/bash LOGFILE='/var/log/anvraidcheck.log' if [ ! -f $LOGFILE ]; then exit 0 fi # Variant 1 with sed sed '/^[ \t]*$/d' $LOGFILE | while read line; do echo "$line" exit 1 done # Variant 2 without sed while read line do if [[ "$line" =~ [^[:space:]] ]]; then echo "$line" exit 1 fi done < $LOGFILE ** SELinux audit log: type=AVC msg=audit(1590673970.198:469304): avc: denied { read } for pid=12142 comm="sed" name="anvraidcheck.log" dev="dm-8" ino=138 scontext=system_u:system_r:snmpd_t:s0 tcontext=system_u:object_r:cron_log_t:s0 tclass=file permissive=0 type=AVC msg=audit(1590673970.197:469303): avc: denied { read } for pid=12141 comm="4anvcheckraid_h" name="anvraidcheck.log" dev="dm-8" ino=138 scontext=system_u:system_r:snmpd_t:s0 tcontext=system_u:object_r:cron_log_t:s0 tclass=file permissive=0 ___ Users mailing list -- mailto:users@ovirt.org To unsubscribe send an email to mailto:users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/MYWS2S57UP5GISJ7APXVJO6NVCVEFM22/___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/56F7E3LMR7I3RIH44TFUWHF33ZK5H3T2/
[ovirt-users] Re: ovirt imageio problem...
On Sun, May 31, 2020 at 8:09 AM Strahil Nikolov via Users wrote: > And what about https://bugzilla.redhat.com/show_bug.cgi?id=1787906 > Do we have any validation of the checksum via the python script ? > No integrated checksum. > > > Best Regards, > Strahil Nikolov > > На 31 май 2020 г. 0:18:43 GMT+03:00, Carlos C > написа: > >Hi, > > > >You can try upload using the python as described here > > > https://lists.ovirt.org/archives/list/users@ovirt.org/message/GWYRK6LUNHU6FELP7QYSDIPF5SR6YPCK/ > > > > > >Carlos > >___ > >Users mailing list -- users@ovirt.org > >To unsubscribe send an email to users-le...@ovirt.org > >Privacy Statement: https://www.ovirt.org/privacy-policy.html > >oVirt Code of Conduct: > >https://www.ovirt.org/community/about/community-guidelines/ > >List Archives: > > > https://lists.ovirt.org/archives/list/users@ovirt.org/message/A2JW27WDLI5X2KWWZ47T7TNZCUOJMD32/ > ___ > Users mailing list -- users@ovirt.org > To unsubscribe send an email to users-le...@ovirt.org > Privacy Statement: https://www.ovirt.org/privacy-policy.html > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/users@ovirt.org/message/DN3QCX3LOCSUWXPL7X64OHUC6UAQADI4/ > ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/KOA5KOQMEFVWHO6DZTKKI6NHMPFPSL5X/
[ovirt-users] Re: Failed to add storage domain
Had you solved the problem? I have a similar one and I need more ideas. ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/OX327C2H3BKKAQBTAUHXBNOEV44O4B4E/