[ovirt-users] Re: VM backup issue on oVirt 4.4.7

2023-01-23 Thread Don Dupuis
Ok, thanks for the clarification. I will make the proper adjustments.

Don

On Sun, Jan 22, 2023 at 4:10 AM Arik Hadas  wrote:

>
>
> On Fri, Jan 20, 2023 at 6:44 PM Don Dupuis  wrote:
>
>> "coldBackupEnabled": false,
>>
>
> Thanks
> It means that libvirt that is installed there doesn't support incremental
> backup, this wouldn't happen with VDSM >= 4.4.9
>
>
>>
>> Don
>>
>> On Fri, Jan 20, 2023 at 9:40 AM Arik Hadas  wrote:
>>
>>>
>>>
>>> On Fri, Jan 20, 2023 at 5:04 PM Don Dupuis  wrote:
>>>
>>>> Any updates on the backup error message?
>>>>
>>>
>>> Can you please check the output of "vdsm-client Host getCapabilities |
>>> grep coldBackupEnabled" on host 'vsh001'?
>>>
>>>
>>>>
>>>> Don
>>>>
>>>> On Wed, Jan 18, 2023 at 8:28 AM Don Dupuis  wrote:
>>>>
>>>>> Sandro
>>>>> I didn't open a ticket yet as Nvidia doesn't support anything above
>>>>> RHV 4.4 and since RHV moved to maintenance mode, I didn't see a likely
>>>>> chance it would be looked at. If I call Nvidia support they will tell me
>>>>> what I am doing isn't supported, so I have to go through our partnership 
>>>>> so
>>>>> they will talk to me. I will talk to them shortly, but I have a customer
>>>>> delivery to get done and oVirt 4.4.7 does everything I need to do,
>>>>> except now I have this backup issue that worked in 4.5. I can provide
>>>>> further info if you need on this issue. Windows guest is 21H2. I will hope
>>>>> to solve vgpu problem as I will need Windows 11 and Windows 2022 guest
>>>>> working. Thanks for your support
>>>>>
>>>>> Don
>>>>>
>>>>> On Wed, Jan 18, 2023 at 1:41 AM Sandro Bonazzola 
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> Il giorno mar 17 gen 2023 alle ore 23:10 Don Dupuis <
>>>>>> donds...@gmail.com> ha scritto:
>>>>>>
>>>>>>> Hello,
>>>>>>> I am having an issue backing up vms using the backup_vm.py example
>>>>>>> script. The error I get is below:
>>>>>>>
>>>>>>> [   0.0 ] Starting full backup for VM
>>>>>>> 'c656db00-065c-4fd0-b8b9-74a86dc864fc'
>>>>>>> Traceback (most recent call last):
>>>>>>>   File "/opt/riva-config/backup_vm.py", line 547, in 
>>>>>>> main()
>>>>>>>   File "/opt/riva-config/backup_vm.py", line 146, in main
>>>>>>> args.command(args)
>>>>>>>   File "/opt/riva-config/backup_vm.py", line 160, in cmd_full
>>>>>>> backup = start_backup(connection, args)
>>>>>>>   File "/opt/riva-config/backup_vm.py", line 348, in start_backup
>>>>>>> description=args.description
>>>>>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/services.py",
>>>>>>> line 34151, in add
>>>>>>> return self._internal_add(backup, headers, query, wait)
>>>>>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py",
>>>>>>> line 232, in _internal_add
>>>>>>> return future.wait() if wait else future
>>>>>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py",
>>>>>>> line 55, in wait
>>>>>>> return self._code(response)
>>>>>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py",
>>>>>>> line 229, in callback
>>>>>>> self._check_fault(response)
>>>>>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py",
>>>>>>> line 132, in _check_fault
>>>>>>> self._raise_error(response, body)
>>>>>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py",
>>>>>>> line 118, in _raise_error
>>>>>>> raise error
>>>>>>> ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is
>>>>>>> "[Cannot backup VM. Host (vsh001) is running on a version lower than 
>>>>>>> 4

[ovirt-users] Re: VM backup issue on oVirt 4.4.7

2023-01-20 Thread Don Dupuis
"coldBackupEnabled": false,

Don

On Fri, Jan 20, 2023 at 9:40 AM Arik Hadas  wrote:

>
>
> On Fri, Jan 20, 2023 at 5:04 PM Don Dupuis  wrote:
>
>> Any updates on the backup error message?
>>
>
> Can you please check the output of "vdsm-client Host getCapabilities |
> grep coldBackupEnabled" on host 'vsh001'?
>
>
>>
>> Don
>>
>> On Wed, Jan 18, 2023 at 8:28 AM Don Dupuis  wrote:
>>
>>> Sandro
>>> I didn't open a ticket yet as Nvidia doesn't support anything above RHV
>>> 4.4 and since RHV moved to maintenance mode, I didn't see a likely chance
>>> it would be looked at. If I call Nvidia support they will tell me what I am
>>> doing isn't supported, so I have to go through our partnership so they will
>>> talk to me. I will talk to them shortly, but I have a customer delivery to
>>> get done and oVirt 4.4.7 does everything I need to do, except now I have
>>> this backup issue that worked in 4.5. I can provide further info if you
>>> need on this issue. Windows guest is 21H2. I will hope to solve vgpu
>>> problem as I will need Windows 11 and Windows 2022 guest working. Thanks
>>> for your support
>>>
>>> Don
>>>
>>> On Wed, Jan 18, 2023 at 1:41 AM Sandro Bonazzola 
>>> wrote:
>>>
>>>>
>>>>
>>>> Il giorno mar 17 gen 2023 alle ore 23:10 Don Dupuis 
>>>> ha scritto:
>>>>
>>>>> Hello,
>>>>> I am having an issue backing up vms using the backup_vm.py example
>>>>> script. The error I get is below:
>>>>>
>>>>> [   0.0 ] Starting full backup for VM
>>>>> 'c656db00-065c-4fd0-b8b9-74a86dc864fc'
>>>>> Traceback (most recent call last):
>>>>>   File "/opt/riva-config/backup_vm.py", line 547, in 
>>>>> main()
>>>>>   File "/opt/riva-config/backup_vm.py", line 146, in main
>>>>> args.command(args)
>>>>>   File "/opt/riva-config/backup_vm.py", line 160, in cmd_full
>>>>> backup = start_backup(connection, args)
>>>>>   File "/opt/riva-config/backup_vm.py", line 348, in start_backup
>>>>> description=args.description
>>>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/services.py",
>>>>> line 34151, in add
>>>>> return self._internal_add(backup, headers, query, wait)
>>>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>>>>> 232, in _internal_add
>>>>> return future.wait() if wait else future
>>>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>>>>> 55, in wait
>>>>> return self._code(response)
>>>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>>>>> 229, in callback
>>>>> self._check_fault(response)
>>>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>>>>> 132, in _check_fault
>>>>> self._raise_error(response, body)
>>>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>>>>> 118, in _raise_error
>>>>> raise error
>>>>> ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is
>>>>> "[Cannot backup VM. Host (vsh001) is running on a version lower than 
>>>>> 4.4.5.
>>>>> Please upgrade the host in order to use incremental backup.]". HTTP
>>>>> response code is 409.
>>>>>
>>>>> The strange this is that I am running oVirt 4.4.7. What component is
>>>>> it complaining about that is not  up to version needed? Any help on this
>>>>> would be appreciated. oVirt rpm is ovirt-host-4.4.7-1.el8.x86_64. I plan 
>>>>> on
>>>>> upgrading to version 4.4.10 but want to get this fixed first. I also can't
>>>>> got to 4.5.x because I have problems with Windows 10 vms and vGPUs.
>>>>>
>>>>
>>>> @Albert Esteve  can you help here?
>>>> Don, is the GPU problem on Windows 10 VMs tracked somewhere? Is there a
>>>> ticket open?
>>>>
>>>>
>>>>
>>>>>
>>>>> Thanks
>>>>> Don
>>>>> ___
>&g

[ovirt-users] Re: VM backup issue on oVirt 4.4.7

2023-01-20 Thread Don Dupuis
Any updates on the backup error message?

Don

On Wed, Jan 18, 2023 at 8:28 AM Don Dupuis  wrote:

> Sandro
> I didn't open a ticket yet as Nvidia doesn't support anything above RHV
> 4.4 and since RHV moved to maintenance mode, I didn't see a likely chance
> it would be looked at. If I call Nvidia support they will tell me what I am
> doing isn't supported, so I have to go through our partnership so they will
> talk to me. I will talk to them shortly, but I have a customer delivery to
> get done and oVirt 4.4.7 does everything I need to do, except now I have
> this backup issue that worked in 4.5. I can provide further info if you
> need on this issue. Windows guest is 21H2. I will hope to solve vgpu
> problem as I will need Windows 11 and Windows 2022 guest working. Thanks
> for your support
>
> Don
>
> On Wed, Jan 18, 2023 at 1:41 AM Sandro Bonazzola 
> wrote:
>
>>
>>
>> Il giorno mar 17 gen 2023 alle ore 23:10 Don Dupuis 
>> ha scritto:
>>
>>> Hello,
>>> I am having an issue backing up vms using the backup_vm.py example
>>> script. The error I get is below:
>>>
>>> [   0.0 ] Starting full backup for VM
>>> 'c656db00-065c-4fd0-b8b9-74a86dc864fc'
>>> Traceback (most recent call last):
>>>   File "/opt/riva-config/backup_vm.py", line 547, in 
>>> main()
>>>   File "/opt/riva-config/backup_vm.py", line 146, in main
>>> args.command(args)
>>>   File "/opt/riva-config/backup_vm.py", line 160, in cmd_full
>>> backup = start_backup(connection, args)
>>>   File "/opt/riva-config/backup_vm.py", line 348, in start_backup
>>> description=args.description
>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/services.py", line
>>> 34151, in add
>>> return self._internal_add(backup, headers, query, wait)
>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>>> 232, in _internal_add
>>> return future.wait() if wait else future
>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>>> 55, in wait
>>> return self._code(response)
>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>>> 229, in callback
>>> self._check_fault(response)
>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>>> 132, in _check_fault
>>> self._raise_error(response, body)
>>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>>> 118, in _raise_error
>>> raise error
>>> ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is
>>> "[Cannot backup VM. Host (vsh001) is running on a version lower than 4.4.5.
>>> Please upgrade the host in order to use incremental backup.]". HTTP
>>> response code is 409.
>>>
>>> The strange this is that I am running oVirt 4.4.7. What component is it
>>> complaining about that is not  up to version needed? Any help on this would
>>> be appreciated. oVirt rpm is ovirt-host-4.4.7-1.el8.x86_64. I plan on
>>> upgrading to version 4.4.10 but want to get this fixed first. I also can't
>>> got to 4.5.x because I have problems with Windows 10 vms and vGPUs.
>>>
>>
>> @Albert Esteve  can you help here?
>> Don, is the GPU problem on Windows 10 VMs tracked somewhere? Is there a
>> ticket open?
>>
>>
>>
>>>
>>> Thanks
>>> Don
>>> ___
>>> 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/ZAGKUOIQLT6CKRQ7F4OWRFUXHSAXTR62/
>>>
>>
>>
>> --
>>
>> Sandro Bonazzola
>>
>> MANAGER, SOFTWARE ENGINEERING - Red Hat In-Vehicle Operating System
>>
>> Red Hat EMEA <https://www.redhat.com/>
>>
>> sbona...@redhat.com
>> <https://www.redhat.com/>
>>
>> *Red Hat respects your work life balance. Therefore there is no need to
>> answer this email out of your office hours.*
>>
>>
>>
___
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/VQ7SDI54Q4M2RSJHUC65RCJJA64IK3LX/


[ovirt-users] Re: VM backup issue on oVirt 4.4.7

2023-01-18 Thread Don Dupuis
Sandro
I didn't open a ticket yet as Nvidia doesn't support anything above RHV 4.4
and since RHV moved to maintenance mode, I didn't see a likely chance it
would be looked at. If I call Nvidia support they will tell me what I am
doing isn't supported, so I have to go through our partnership so they will
talk to me. I will talk to them shortly, but I have a customer delivery to
get done and oVirt 4.4.7 does everything I need to do, except now I have
this backup issue that worked in 4.5. I can provide further info if you
need on this issue. Windows guest is 21H2. I will hope to solve vgpu
problem as I will need Windows 11 and Windows 2022 guest working. Thanks
for your support

Don

On Wed, Jan 18, 2023 at 1:41 AM Sandro Bonazzola 
wrote:

>
>
> Il giorno mar 17 gen 2023 alle ore 23:10 Don Dupuis 
> ha scritto:
>
>> Hello,
>> I am having an issue backing up vms using the backup_vm.py example
>> script. The error I get is below:
>>
>> [   0.0 ] Starting full backup for VM
>> 'c656db00-065c-4fd0-b8b9-74a86dc864fc'
>> Traceback (most recent call last):
>>   File "/opt/riva-config/backup_vm.py", line 547, in 
>> main()
>>   File "/opt/riva-config/backup_vm.py", line 146, in main
>> args.command(args)
>>   File "/opt/riva-config/backup_vm.py", line 160, in cmd_full
>> backup = start_backup(connection, args)
>>   File "/opt/riva-config/backup_vm.py", line 348, in start_backup
>> description=args.description
>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/services.py", line
>> 34151, in add
>> return self._internal_add(backup, headers, query, wait)
>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>> 232, in _internal_add
>> return future.wait() if wait else future
>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>> 55, in wait
>> return self._code(response)
>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>> 229, in callback
>> self._check_fault(response)
>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>> 132, in _check_fault
>> self._raise_error(response, body)
>>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line
>> 118, in _raise_error
>> raise error
>> ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is
>> "[Cannot backup VM. Host (vsh001) is running on a version lower than 4.4.5.
>> Please upgrade the host in order to use incremental backup.]". HTTP
>> response code is 409.
>>
>> The strange this is that I am running oVirt 4.4.7. What component is it
>> complaining about that is not  up to version needed? Any help on this would
>> be appreciated. oVirt rpm is ovirt-host-4.4.7-1.el8.x86_64. I plan on
>> upgrading to version 4.4.10 but want to get this fixed first. I also can't
>> got to 4.5.x because I have problems with Windows 10 vms and vGPUs.
>>
>
> @Albert Esteve  can you help here?
> Don, is the GPU problem on Windows 10 VMs tracked somewhere? Is there a
> ticket open?
>
>
>
>>
>> Thanks
>> Don
>> ___
>> 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/ZAGKUOIQLT6CKRQ7F4OWRFUXHSAXTR62/
>>
>
>
> --
>
> Sandro Bonazzola
>
> MANAGER, SOFTWARE ENGINEERING - Red Hat In-Vehicle Operating System
>
> Red Hat EMEA <https://www.redhat.com/>
>
> sbona...@redhat.com
> <https://www.redhat.com/>
>
> *Red Hat respects your work life balance. Therefore there is no need to
> answer this email out of your office hours.*
>
>
>
___
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/MOUOBAPVXABIAFEKSRI46NAB2MGYZ64B/


[ovirt-users] VM backup issue on oVirt 4.4.7

2023-01-17 Thread Don Dupuis
Hello,
I am having an issue backing up vms using the backup_vm.py example script.
The error I get is below:

[   0.0 ] Starting full backup for VM 'c656db00-065c-4fd0-b8b9-74a86dc864fc'
Traceback (most recent call last):
  File "/opt/riva-config/backup_vm.py", line 547, in 
main()
  File "/opt/riva-config/backup_vm.py", line 146, in main
args.command(args)
  File "/opt/riva-config/backup_vm.py", line 160, in cmd_full
backup = start_backup(connection, args)
  File "/opt/riva-config/backup_vm.py", line 348, in start_backup
description=args.description
  File "/usr/lib64/python3.6/site-packages/ovirtsdk4/services.py", line
34151, in add
return self._internal_add(backup, headers, query, wait)
  File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 232,
in _internal_add
return future.wait() if wait else future
  File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 55,
in wait
return self._code(response)
  File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 229,
in callback
self._check_fault(response)
  File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 132,
in _check_fault
self._raise_error(response, body)
  File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 118,
in _raise_error
raise error
ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is
"[Cannot backup VM. Host (vsh001) is running on a version lower than 4.4.5.
Please upgrade the host in order to use incremental backup.]". HTTP
response code is 409.

The strange this is that I am running oVirt 4.4.7. What component is it
complaining about that is not  up to version needed? Any help on this would
be appreciated. oVirt rpm is ovirt-host-4.4.7-1.el8.x86_64. I plan on
upgrading to version 4.4.10 but want to get this fixed first. I also can't
got to 4.5.x because I have problems with Windows 10 vms and vGPUs.

Thanks
Don
___
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/ZAGKUOIQLT6CKRQ7F4OWRFUXHSAXTR62/


[ovirt-users] Nvidia A10 vGPU support on oVirt 4.5.2

2022-12-05 Thread Don Dupuis
Hello
I can run an Nvidia GRID T4 on oVirt 4.5.2 with no issue but I have a new
GRID A10 that doesn't seem to work in oVirt 4.5.2. This new card seems to
use SRIOV instead of mediated devices or it seems that I only get the
mdev_supported_types directory structure when I run the
/usr/lib/nvidia/sriov-manager command. Has anyone got this card working on
oVirt or has developers working on oVirt/RHV know about this?

Thanks
Don
___
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/FZ5J6WXBNPTX25GBWVHPZK3X3S4NXEXA/


[ovirt-users] Re: SSL error on oVirt 4.2.4

2022-10-11 Thread Don Dupuis
Has anyone seen or had this issue? I am not having luck or if someone could
explain the working logic of engine talking to vdsm with certs.

Don

On Mon, Oct 10, 2022 at 9:45 PM Don Dupuis  wrote:

> Hello
> I have oVirt cluster with 25 hypervisors that has been running fine for a
> couple of years and today all of a sudden engine was getting ssl errors
> talking to the hypervisors. Error  in engine.log is:
>
> 2022-10-10 16:20:23,562-05 ERROR
> [org.ovirt.engine.core.vdsbroker.monitoring.HostMonitoring]
> (EE-ManagedThreadFactory-engineScheduled-Thread-47) [] Unable to
> RefreshCapabilities: VDSNetworkException: VDSGenericException:
> VDSNetworkException: Received fatal alert: unknown_ca
>
> Certificates don't seem expired and I ran the command:
>
> openssl x509 -noout -in /etc/pki/ovirt-engine/ca.pem -fingerprint
>
> openssl x509 -noout -in /etc/pki/vdsm/certs/cacert.pem -fingerprint
> # openssl x509 -noout -in /etc/pki/vdsm/libvirt-spice/ca-cert.pem -fingerprint
> # openssl x509 -noout -in /etc/pki/vdsm/libvirt-vnc/ca-cert.pem -fingerprint
> # openssl x509 -noout -in /etc/pki/CA/cacert.pem -fingerprint
>
> Those commands show that the fingerprints are the same.
>
> openssl verify -CAfile /etc/pki/ovirt-engine/ca.pem 
> /etc/pki/ovirt-engine/certs/engine.cer
> # openssl verify -CAfile /etc/pki/ovirt-engine/ca.pem 
> /etc/pki/ovirt-engine/certs/apache.cer
> # openssl verify -CAfile /etc/pki/ovirt-engine/ca.pem 
> /etc/pki/ovirt-engine/certs/websocket-proxy.cer
> # openssl verify -CAfile /etc/pki/ovirt-engine/ca.pem 
> /etc/pki/ovirt-engine/certs/jboss.cer
> # openssl verify -CAfile /etc/pki/ovirt-engine/ca.pem 
> /etc/pki/ovirt-engine/certs/imageio-proxy.cer
> # openssl verify -CAfile /etc/pki/ovirt-engine/ca.pem 
> /etc/pki/ovirt-engine/certs/ovirt-provider-ovn.cer
>
> These verification commands come back as OK. I am having trouble finding my 
> problem. Does anyone have any suggestions? I am not finding any hits on 
> google and unknown_ca.
>
> Also the vdsm log on hypervisors has this:
>
> 2022-10-10 15:54:42,843-0500 ERROR (Reactor thread) 
> [ProtocolDetector.SSLHandshakeDispatcher] ssl handshake: SSLError, address: 
> :::192.168.50.26 (sslutils:263)
>
> Thanks
>
> Don
>
>
___
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/HCJZ34SQQGN5EUVP77RMRJTJCGLOA6YT/


[ovirt-users] SSL error on oVirt 4.2.4

2022-10-10 Thread Don Dupuis
Hello
I have oVirt cluster with 25 hypervisors that has been running fine for a
couple of years and today all of a sudden engine was getting ssl errors
talking to the hypervisors. Error  in engine.log is:

2022-10-10 16:20:23,562-05 ERROR
[org.ovirt.engine.core.vdsbroker.monitoring.HostMonitoring]
(EE-ManagedThreadFactory-engineScheduled-Thread-47) [] Unable to
RefreshCapabilities: VDSNetworkException: VDSGenericException:
VDSNetworkException: Received fatal alert: unknown_ca

Certificates don't seem expired and I ran the command:

openssl x509 -noout -in /etc/pki/ovirt-engine/ca.pem -fingerprint

openssl x509 -noout -in /etc/pki/vdsm/certs/cacert.pem -fingerprint
# openssl x509 -noout -in /etc/pki/vdsm/libvirt-spice/ca-cert.pem -fingerprint
# openssl x509 -noout -in /etc/pki/vdsm/libvirt-vnc/ca-cert.pem -fingerprint
# openssl x509 -noout -in /etc/pki/CA/cacert.pem -fingerprint

Those commands show that the fingerprints are the same.

openssl verify -CAfile /etc/pki/ovirt-engine/ca.pem
/etc/pki/ovirt-engine/certs/engine.cer
# openssl verify -CAfile /etc/pki/ovirt-engine/ca.pem
/etc/pki/ovirt-engine/certs/apache.cer
# openssl verify -CAfile /etc/pki/ovirt-engine/ca.pem
/etc/pki/ovirt-engine/certs/websocket-proxy.cer
# openssl verify -CAfile /etc/pki/ovirt-engine/ca.pem
/etc/pki/ovirt-engine/certs/jboss.cer
# openssl verify -CAfile /etc/pki/ovirt-engine/ca.pem
/etc/pki/ovirt-engine/certs/imageio-proxy.cer
# openssl verify -CAfile /etc/pki/ovirt-engine/ca.pem
/etc/pki/ovirt-engine/certs/ovirt-provider-ovn.cer

These verification commands come back as OK. I am having trouble
finding my problem. Does anyone have any suggestions? I am not finding
any hits on google and unknown_ca.

Also the vdsm log on hypervisors has this:

2022-10-10 15:54:42,843-0500 ERROR (Reactor thread)
[ProtocolDetector.SSLHandshakeDispatcher] ssl handshake: SSLError,
address: :::192.168.50.26 (sslutils:263)

Thanks

Don
___
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/OQMJ6FOO3YZW4XIOIDYO235KKGKLCH67/


[ovirt-users] Re: How to restore full vmbackups that was created with backup_vm.py

2022-09-13 Thread Don Dupuis
Albert
Thanks for the response and I will try this out. Keep up the great oVirt
work!!!

Don

On Tue, Sep 13, 2022 at 2:02 AM Albert Esteve  wrote:

> Hi Don,
>
> We basically provide backup creation and disk management.
> So you can use the latter to restore your backup, using: "ovirt-img
> upload-disk -c engine.conf ", and then you can create a new VM
> with it.
>
> "ovirt-img" comes with the latest ovirt-imageio release.
>
> Albert Esteve
>
> Senior Software Engineer
>
> Red Hat <https://www.redhat.com/>
>
> aest...@redhat.com
> <https://www.redhat.com/>
>
>
> On Fri, Sep 9, 2022 at 6:20 PM Don Dupuis  wrote:
>
>> Hello
>> I have used the backup_vm.py script in 4.5.2.4 to make full backups of my
>> vms to a nfs share. What is the process to restore the backups if needed?
>>
>> Thanks
>> Don
>> ___
>> 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/LQSXJDAIZWCEBIYLDOOMRUJ7OUUIZX3D/
>>
>
___
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/YC4HSK6UAUIFLK2B3PS7QUZM5HQJFZPG/


[ovirt-users] How to restore full vmbackups that was created with backup_vm.py

2022-09-09 Thread Don Dupuis
Hello
I have used the backup_vm.py script in 4.5.2.4 to make full backups of my
vms to a nfs share. What is the process to restore the backups if needed?

Thanks
Don
___
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/LQSXJDAIZWCEBIYLDOOMRUJ7OUUIZX3D/


[ovirt-users] oVirt 4.5.2.4 api access with keycloak

2022-09-01 Thread Don Dupuis
Hello
I have installed ovirt 4.5.2.4 and keycloak authentication is now standard.
On previous installs it could be accessed via a web browser as
https://engine_FQDN/ovirt-engine/api. What is the proper url syntax to work
with the new keycloak way and I know the username is now admin@ovirt
@internalsso?

Thanks
Don
___
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/IIGTPG5XKAG6HW242P4UBNEHAF2AONC5/


[ovirt-users] Re: oVirt 4.2 host cert expired

2022-07-26 Thread Don Dupuis
I solved the problem, The problem seemed to be with the certs on the engine
in /etc/pki/ovirt-engine/certs. I ended up signing the .cer files using
pki-enroll-pkcs12.sh. I followed the directions in this link
https://ovirt.massopen.cloud/ovirt-engine/docs/Upgrade_Guide/Replacing_SHA-1_Certificates_with_SHA-256_Certificates_4-0_remote_db.html.
My certs were already in sha256 format, but now at least I can get all
green on my hosts and do what I need to do from the engine.

Don

On Tue, Jul 26, 2022 at 6:50 PM Don Dupuis  wrote:

> Hello
> I have an environment with quite a lot of hosts using local storage
> domains. The engine and hosts cert expired. I ran engine-setup on the
> ovirt-engine so that the engine cert would get updated and then followed
> this https://access.redhat.com/solutions/3532921 to manually update the
> hosts certs so that hopefully the engine can talk to vdsm and then carry
> out the cert enrollment process, but no luck. I am getting is error in
> vdsm.log:
> 2022-07-26 18:32:12,743-0500 INFO  (Reactor thread)
> [ProtocolDetector.AcceptorImpl] Accepted connection from :::
> 192.168.50.26:58194 (protocoldetector:61)
> 2022-07-26 18:32:12,760-0500 ERROR (Reactor thread)
> [ProtocolDetector.SSLHandshakeDispatcher] ssl handshake: SSLError, address:
> :::192.168.50.26 (sslutils:263)
>
> and the engine.log:
> 2022-07-26 03:30:13,242-05 INFO
>  [org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor)
> [] Connecting to host01/192.168.50.72
> 2022-07-26 03:30:13,257-05 ERROR
> [org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
> Unable to process messages General SSLEngine problem
> 2022-07-26 03:30:13,260-05 ERROR
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (EE-ManagedThreadFactory-engineScheduled-Thread-12) [] EVENT_ID:
> VDS_BROKER_COMMAND_FAILURE(10,802), VDSM host01 command Get Host
> Capabilities failed: General SSLEngine problem
> I substituted host01 for the real FQDN for this post.
> I can't get the hosts in a mode so that I can put it in maintenance mode
> and I also want to be carefull about reinstalling because the vms are
> stored on local storage domain on host. Fingerprints match on the certs and
> when I sign the vdsmcert on the engine and then copy back to the proper
> localtions, libvirtd and vdsmd restart fine, just the SSL ERROR.
>
> Anyone have any ideas on how to solve this cert issue?
>
> Thanks
> Don
>
___
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/XCC6NIIT5UABOCNDHBUJSGNBTOR3BPKE/


[ovirt-users] oVirt 4.2 host cert expired

2022-07-26 Thread Don Dupuis
Hello
I have an environment with quite a lot of hosts using local storage
domains. The engine and hosts cert expired. I ran engine-setup on the
ovirt-engine so that the engine cert would get updated and then followed
this https://access.redhat.com/solutions/3532921 to manually update the
hosts certs so that hopefully the engine can talk to vdsm and then carry
out the cert enrollment process, but no luck. I am getting is error in
vdsm.log:
2022-07-26 18:32:12,743-0500 INFO  (Reactor thread)
[ProtocolDetector.AcceptorImpl] Accepted connection from :::
192.168.50.26:58194 (protocoldetector:61)
2022-07-26 18:32:12,760-0500 ERROR (Reactor thread)
[ProtocolDetector.SSLHandshakeDispatcher] ssl handshake: SSLError, address:
:::192.168.50.26 (sslutils:263)

and the engine.log:
2022-07-26 03:30:13,242-05 INFO
 [org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor)
[] Connecting to host01/192.168.50.72
2022-07-26 03:30:13,257-05 ERROR
[org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
Unable to process messages General SSLEngine problem
2022-07-26 03:30:13,260-05 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(EE-ManagedThreadFactory-engineScheduled-Thread-12) [] EVENT_ID:
VDS_BROKER_COMMAND_FAILURE(10,802), VDSM host01 command Get Host
Capabilities failed: General SSLEngine problem
I substituted host01 for the real FQDN for this post.
I can't get the hosts in a mode so that I can put it in maintenance mode
and I also want to be carefull about reinstalling because the vms are
stored on local storage domain on host. Fingerprints match on the certs and
when I sign the vdsmcert on the engine and then copy back to the proper
localtions, libvirtd and vdsmd restart fine, just the SSL ERROR.

Anyone have any ideas on how to solve this cert issue?

Thanks
Don
___
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/WNXTL53KBBZVCYLWMAXU5NRCFKDSQTOT/


[ovirt-users] Re: oVirt 4.4.x step-by-step procedure to renew expired oVirt certificates

2022-06-16 Thread Don Dupuis
I have solved my issue, I had to manually add the updated ca.pem and
certs/engine.cer to /etc/pki/java/cacerts using keytool. Now I will work on
getting the new certs to the hypervisors and then follow the enroll
certificate process.

Thanks
Don

On Thu, Jun 16, 2022 at 9:27 AM Nathanaël Blanchet  wrote:

> Hello Don,
>
> I'm sorry  not to be able to help you... I was just happy that a simple
> 4.4 procedure was available when I needed it last month...
>
> There is no more support from community since a long time on 4.2 branch,
> that's why the best upgrade strategy is to regulary upgrade on upstream
> product.
>
> Neitherless, I'm sure the embbeded procedure to renew engine certs into
> "engine-setup --offline" should be nearly the same as the one to renew a
> 4.2 engine.
>
> May a RedHat guy help you on the way to follow...
>
> Good luck.
> Le 16/06/2022 à 15:25, Don Dupuis a écrit :
>
> Nathanaël
> Do you have a procedure that works on Ovirt 4.2.x as the engine-setup
> --offline doesn't seem to work for me as Admin Portal has a failure of
> "unable to find valid certification path" message. I have posted about this
> twice this week with no response from anyone. My engine and 32 hypervisors
> have expired certificates.
>
> Thanks
> Don
>
> On Thu, Jun 16, 2022 at 7:51 AM Nathanaël Blanchet 
> wrote:
>
>> Hello,
>>
>> If you refer to:
>>
>>1. engine apache certificate expiration ("PKIX path building failed:
>>sun.security.provider.certpath.SunCertPathBuilderException:) to access to
>>ovirt console.
>>=> engine-setup --offline
>>2. hosts certificate expiration?
>>=>  https://access.redhat.com/solutions/3532921
>>I also wrote a playbook to do so there:
>>https://galaxy.ansible.com/natman/ovirt_renew_certs
>>In this case, don't forget to renew certificate with UI (into
>>maintenance) when host is reponding, otherwise you may enconter issues 
>> with
>>console or live migration or other SSL related stuff.
>>
>> tested and approved.
>> Le 16/06/2022 à 12:34, Marko Vrgotic a écrit :
>>
>> Dear oVirt,
>>
>>
>>
>> The oVirt SSL certificated were changed to one-year renewal and we have a
>> problem now.
>>
>> We are running 4.4.x version with SHE on local storage cluster and we
>> have four more local storage clusters.
>>
>>
>>
>> One the cluster running SHE, the engine and host certificates have
>> expired. We found the procedure for renewal prior to expiration, but we do
>> not have a mnual one, required once certificates have expired.
>>
>>
>>
>> Would you be so kind to share the manual or steps needed to fix our oVirt
>> setup.
>>
>>
>>
>> Thank you in advance.
>>
>>
>>
>>
>>
>> -
>>
>> kind regards/met vriendelijke groeten
>>
>>
>>
>> Marko Vrgotic
>> Sr. System Engineer @ System Administration
>>
>>
>> ActiveVideo
>>
>> *o: *+31 (35) 6774131
>>
>> *m: +*31 (65) 5734174
>>
>> *e:* m.vrgo...@activevideo.com
>> *w: *www.activevideo.com
>>
>>
>>
>> ActiveVideo Networks BV. Mediacentrum 3745 Joop van den Endeplein 1.1217
>> WJ Hilversum, The Netherlands. The information contained in this message
>> may be legally privileged and confidential. It is intended to be read only
>> by the individual or entity to whom it is addressed or by their designee.
>> If the reader of this message is not the intended recipient, you are on
>> notice that any distribution of this message, in any form, is strictly
>> prohibited.  If you have received this message in error, please immediately
>> notify the sender and/or ActiveVideo Networks, LLC by telephone at +1
>> 408.931.9200 and delete or destroy any copy of this message.
>>
>>
>>
>>
>>
>> ___
>> 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/5LOTLSGBZQAZQD7L76ZMGFALTHODKYKO/
>>
>> --
>> Nathanaël Blanchet
>>
>> Supervision réseau
>> SIRE
>> 227 avenue Professeur-Jean-Louis-Viala
>> 34193 MONTPELLIER CEDEX 5
>> Tél. 33 (0)4 67 54 84 55
>> Fax  33 (0)4 67 54 84 14blanc...@abes.f

[ovirt-users] Re: oVirt 4.4.x step-by-step procedure to renew expired oVirt certificates

2022-06-16 Thread Don Dupuis
Nathanaël
Do you have a procedure that works on Ovirt 4.2.x as the engine-setup
--offline doesn't seem to work for me as Admin Portal has a failure of
"unable to find valid certification path" message. I have posted about this
twice this week with no response from anyone. My engine and 32 hypervisors
have expired certificates.

Thanks
Don

On Thu, Jun 16, 2022 at 7:51 AM Nathanaël Blanchet  wrote:

> Hello,
>
> If you refer to:
>
>1. engine apache certificate expiration ("PKIX path building failed:
>sun.security.provider.certpath.SunCertPathBuilderException:) to access to
>ovirt console.
>=> engine-setup --offline
>2. hosts certificate expiration?
>=>  https://access.redhat.com/solutions/3532921
>I also wrote a playbook to do so there:
>https://galaxy.ansible.com/natman/ovirt_renew_certs
>In this case, don't forget to renew certificate with UI (into
>maintenance) when host is reponding, otherwise you may enconter issues with
>console or live migration or other SSL related stuff.
>
> tested and approved.
> Le 16/06/2022 à 12:34, Marko Vrgotic a écrit :
>
> Dear oVirt,
>
>
>
> The oVirt SSL certificated were changed to one-year renewal and we have a
> problem now.
>
> We are running 4.4.x version with SHE on local storage cluster and we have
> four more local storage clusters.
>
>
>
> One the cluster running SHE, the engine and host certificates have
> expired. We found the procedure for renewal prior to expiration, but we do
> not have a mnual one, required once certificates have expired.
>
>
>
> Would you be so kind to share the manual or steps needed to fix our oVirt
> setup.
>
>
>
> Thank you in advance.
>
>
>
>
>
> -
>
> kind regards/met vriendelijke groeten
>
>
>
> Marko Vrgotic
> Sr. System Engineer @ System Administration
>
>
> ActiveVideo
>
> *o: *+31 (35) 6774131
>
> *m: +*31 (65) 5734174
>
> *e:* m.vrgo...@activevideo.com
> *w: *www.activevideo.com
>
>
>
> ActiveVideo Networks BV. Mediacentrum 3745 Joop van den Endeplein 1.1217
> WJ Hilversum, The Netherlands. The information contained in this message
> may be legally privileged and confidential. It is intended to be read only
> by the individual or entity to whom it is addressed or by their designee.
> If the reader of this message is not the intended recipient, you are on
> notice that any distribution of this message, in any form, is strictly
> prohibited.  If you have received this message in error, please immediately
> notify the sender and/or ActiveVideo Networks, LLC by telephone at +1
> 408.931.9200 and delete or destroy any copy of this message.
>
>
>
>
>
> ___
> 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/5LOTLSGBZQAZQD7L76ZMGFALTHODKYKO/
>
> --
> Nathanaël Blanchet
>
> Supervision réseau
> SIRE
> 227 avenue Professeur-Jean-Louis-Viala
> 34193 MONTPELLIER CEDEX 5 
> Tél. 33 (0)4 67 54 84 55
> Fax  33 (0)4 67 54 84 14blanc...@abes.fr
>
> ___
> 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/3S3XZX6RVXJCU5F2E6466UPG36QAIYGL/
>
___
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/OVBDKKTM2V3PO25RAG7R33WDUKKJJUJS/


[ovirt-users] Re: Ovirt manager engine certificate expired

2022-06-15 Thread Don Dupuis
Hello
After another try with engine-setup, I seem to have new certificates that
was created today, but now I get this error when I try to log into Admin
Portal and also in engine.log "PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target". I also  have General
SSLEngine problem messages, but I know that is related to the fact that all
of my 32 hypervisor certificates are expired also. I wanted to get the
engine back going again, and then tackle the hypervisors. What am I missing?

Thanks
Don

On Tue, Jun 14, 2022 at 11:29 AM Don Dupuis  wrote:

> This is on a standalone engine and it didn't prompt me to upgrade
> certificate.
>
> Don
>
> On Tue, Jun 14, 2022 at 11:09 AM Don Dupuis  wrote:
>
>> Hello
>> I have an older installation that was running just great and the
>> certificate expired, it is version 4.2.8.2. I ran the engine-setup as per
>> this "access.redhat.com/solutions/4780411". It didn't update the
>> certificate or the dates and stil have the same issue. Any ideas to fix
>> this issue?
>>
>> Thanks
>> Don
>>
>
___
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/RYAHHSV7WLVYTGRGL7M3WNTTRTLNUYFK/


[ovirt-users] Re: oVirt 4.5 linux guest vm with host device added to it fails to start

2022-06-14 Thread Don Dupuis
Hello
Anyone have any ideas?

Don

On Fri, Jun 10, 2022 at 11:45 AM Don Dupuis  wrote:

> THis is for version oVirt 4.5.0.8-1. Sorry left out the exact release.
>
> Don
>
> On Fri, Jun 10, 2022 at 11:41 AM Don Dupuis  wrote:
>
>> Hello
>> I have a RHEL 8.6 based hypervisor with a Mellanox ConnectX-5 IB card
>> installed with SRIOV enabled. The host device I am assigning is
>> pci__af_00_2. The card is working as I can talk to other infiniband
>> interfaces on other servers. Below is the output of lspci.
>> 3b:00.0 Ethernet controller: Mellanox Technologies MT27800 Family
>> [ConnectX-5]
>> 3b:00.1 Ethernet controller: Mellanox Technologies MT27800 Family
>> [ConnectX-5]
>> af:00.0 Infiniband controller: Mellanox Technologies MT27800 Family
>> [ConnectX-5]
>> af:00.1 Infiniband controller: Mellanox Technologies MT27800 Family
>> [ConnectX-5 Virtual Function]
>> af:00.2 Infiniband controller: Mellanox Technologies MT27800 Family
>> [ConnectX-5 Virtual Function]
>> af:00.3 Infiniband controller: Mellanox Technologies MT27800 Family
>> [ConnectX-5 Virtual Function]
>> af:00.4 Infiniband controller: Mellanox Technologies MT27800 Family
>> [ConnectX-5 Virtual Function]
>>
>> The linux vm is configured as Q35 Chipset with UEFI, 16 cpus, numa
>> enabled, and cpu pinning enabled. OS is RHEL 7.9. As soon as I start the
>> vm, I get an immediate error message stating "Cannot run VM. There is no
>> host that satisfies current scheduling constraints. See below for details:,
>> The host rvsh002 did not satisfy internal filter HostDevice because some of
>> the required host devices are unavailable." If I remove the host device
>> from the vm config, then it starts and runs fine. This setup was working
>> just fine on RHEL8.4 and oVirt 4.4.7 using the proper driver for RHEL 8.4.
>>
>> Here is the engine.log after I press the run button.
>> 2022-06-10 11:22:10,506-05 INFO  [org.ovirt.engine.core.bll.RunVmCommand]
>> (default task-1) [81144b66-e5f9-474e-a922-e2ce49cdc8ca] Lock Acquired to
>> object
>> 'EngineLock:{exclusiveLocks='[de54b903-7204-4966-95a3-05f64ed17f68=VM]',
>> sharedLocks=''}'
>> 2022-06-10 11:22:10,520-05 INFO
>>  [org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] (default
>> task-1) [81144b66-e5f9-474e-a922-e2ce49cdc8ca] START,
>> IsVmDuringInitiatingVDSCommand(
>> IsVmDuringInitiatingVDSCommandParameters:{vmId='de54b903-7204-4966-95a3-05f64ed17f68'}),
>> log id: 6faf22a5
>> 2022-06-10 11:22:10,520-05 INFO
>>  [org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] (default
>> task-1) [81144b66-e5f9-474e-a922-e2ce49cdc8ca] FINISH,
>> IsVmDuringInitiatingVDSCommand, return: false, log id: 6faf22a5
>> 2022-06-10 11:22:10,560-05 INFO
>>  [org.ovirt.engine.core.bll.scheduling.SchedulingManager] (default task-1)
>> [] Candidate host 'rvsh002' ('f68352c2-6ddc-44ae-a19b-9262e92327f8') was
>> filtered out by 'VAR__FILTERTYPE__INTERNAL' filter 'HostDevice'
>> (correlation id: null)
>> 2022-06-10 11:22:10,569-05 ERROR
>> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
>> (default task-1) [] EVENT_ID: USER_FAILED_RUN_VM(54), Failed to run VM
>> ws006 due to a failed validation: [Cannot run VM. There is no host that
>> satisfies current scheduling constraints. See below for details:, The host
>> rvsh002 did not satisfy internal filter HostDevice because some of the
>> required host devices are unavailable.] (User: admin@internal-authz).
>> 2022-06-10 11:22:10,569-05 WARN  [org.ovirt.engine.core.bll.RunVmCommand]
>> (default task-1) [] Validation of action 'RunVm' failed for user
>> admin@internal-authz. Reasons:
>> VAR__ACTION__RUN,VAR__TYPE__VM,SCHEDULING_ALL_HOSTS_FILTERED_OUT,VAR__FILTERTYPE__INTERNAL,$hostName
>> rvsh002,$filterName
>> HostDevice,VAR__DETAIL__HOST_DEVICE_UNAVAILABLE,SCHEDULING_HOST_FILTERED_REASON_WITH_DETAIL
>> 2022-06-10 11:22:10,570-0
>>
>> There was nothing in the vdsm.log on the hypervisor related to this issue
>> that I could see after hitting the run button.
>>
>> Thanks
>> Don
>>
>
___
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/GZV47I6D6C4EVGH2MT7BRXEELBPPV562/


[ovirt-users] Re: Ovirt manager engine certificate expired

2022-06-14 Thread Don Dupuis
This is on a standalone engine and it didn't prompt me to upgrade
certificate.

Don

On Tue, Jun 14, 2022 at 11:09 AM Don Dupuis  wrote:

> Hello
> I have an older installation that was running just great and the
> certificate expired, it is version 4.2.8.2. I ran the engine-setup as per
> this "access.redhat.com/solutions/4780411". It didn't update the
> certificate or the dates and stil have the same issue. Any ideas to fix
> this issue?
>
> Thanks
> Don
>
___
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/EJVQMTEDVEGA2RH7AXKTWHVZFRMY5M3O/


[ovirt-users] Ovirt manager engine certificate expired

2022-06-14 Thread Don Dupuis
Hello
I have an older installation that was running just great and the
certificate expired, it is version 4.2.8.2. I ran the engine-setup as per
this "access.redhat.com/solutions/4780411". It didn't update the
certificate or the dates and stil have the same issue. Any ideas to fix
this issue?

Thanks
Don
___
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/KYC3OHN2M4BJH6JHNVZXR2VWEVNLOWVL/


[ovirt-users] Re: oVirt 4.5 linux guest vm with host device added to it fails to start

2022-06-10 Thread Don Dupuis
THis is for version oVirt 4.5.0.8-1. Sorry left out the exact release.

Don

On Fri, Jun 10, 2022 at 11:41 AM Don Dupuis  wrote:

> Hello
> I have a RHEL 8.6 based hypervisor with a Mellanox ConnectX-5 IB card
> installed with SRIOV enabled. The host device I am assigning is
> pci__af_00_2. The card is working as I can talk to other infiniband
> interfaces on other servers. Below is the output of lspci.
> 3b:00.0 Ethernet controller: Mellanox Technologies MT27800 Family
> [ConnectX-5]
> 3b:00.1 Ethernet controller: Mellanox Technologies MT27800 Family
> [ConnectX-5]
> af:00.0 Infiniband controller: Mellanox Technologies MT27800 Family
> [ConnectX-5]
> af:00.1 Infiniband controller: Mellanox Technologies MT27800 Family
> [ConnectX-5 Virtual Function]
> af:00.2 Infiniband controller: Mellanox Technologies MT27800 Family
> [ConnectX-5 Virtual Function]
> af:00.3 Infiniband controller: Mellanox Technologies MT27800 Family
> [ConnectX-5 Virtual Function]
> af:00.4 Infiniband controller: Mellanox Technologies MT27800 Family
> [ConnectX-5 Virtual Function]
>
> The linux vm is configured as Q35 Chipset with UEFI, 16 cpus, numa
> enabled, and cpu pinning enabled. OS is RHEL 7.9. As soon as I start the
> vm, I get an immediate error message stating "Cannot run VM. There is no
> host that satisfies current scheduling constraints. See below for details:,
> The host rvsh002 did not satisfy internal filter HostDevice because some of
> the required host devices are unavailable." If I remove the host device
> from the vm config, then it starts and runs fine. This setup was working
> just fine on RHEL8.4 and oVirt 4.4.7 using the proper driver for RHEL 8.4.
>
> Here is the engine.log after I press the run button.
> 2022-06-10 11:22:10,506-05 INFO  [org.ovirt.engine.core.bll.RunVmCommand]
> (default task-1) [81144b66-e5f9-474e-a922-e2ce49cdc8ca] Lock Acquired to
> object
> 'EngineLock:{exclusiveLocks='[de54b903-7204-4966-95a3-05f64ed17f68=VM]',
> sharedLocks=''}'
> 2022-06-10 11:22:10,520-05 INFO
>  [org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] (default
> task-1) [81144b66-e5f9-474e-a922-e2ce49cdc8ca] START,
> IsVmDuringInitiatingVDSCommand(
> IsVmDuringInitiatingVDSCommandParameters:{vmId='de54b903-7204-4966-95a3-05f64ed17f68'}),
> log id: 6faf22a5
> 2022-06-10 11:22:10,520-05 INFO
>  [org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] (default
> task-1) [81144b66-e5f9-474e-a922-e2ce49cdc8ca] FINISH,
> IsVmDuringInitiatingVDSCommand, return: false, log id: 6faf22a5
> 2022-06-10 11:22:10,560-05 INFO
>  [org.ovirt.engine.core.bll.scheduling.SchedulingManager] (default task-1)
> [] Candidate host 'rvsh002' ('f68352c2-6ddc-44ae-a19b-9262e92327f8') was
> filtered out by 'VAR__FILTERTYPE__INTERNAL' filter 'HostDevice'
> (correlation id: null)
> 2022-06-10 11:22:10,569-05 ERROR
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (default task-1) [] EVENT_ID: USER_FAILED_RUN_VM(54), Failed to run VM
> ws006 due to a failed validation: [Cannot run VM. There is no host that
> satisfies current scheduling constraints. See below for details:, The host
> rvsh002 did not satisfy internal filter HostDevice because some of the
> required host devices are unavailable.] (User: admin@internal-authz).
> 2022-06-10 11:22:10,569-05 WARN  [org.ovirt.engine.core.bll.RunVmCommand]
> (default task-1) [] Validation of action 'RunVm' failed for user
> admin@internal-authz. Reasons:
> VAR__ACTION__RUN,VAR__TYPE__VM,SCHEDULING_ALL_HOSTS_FILTERED_OUT,VAR__FILTERTYPE__INTERNAL,$hostName
> rvsh002,$filterName
> HostDevice,VAR__DETAIL__HOST_DEVICE_UNAVAILABLE,SCHEDULING_HOST_FILTERED_REASON_WITH_DETAIL
> 2022-06-10 11:22:10,570-0
>
> There was nothing in the vdsm.log on the hypervisor related to this issue
> that I could see after hitting the run button.
>
> Thanks
> Don
>
___
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/FL5K625W4NY4CINMENCC4GJ5SJF5A437/


[ovirt-users] oVirt 4.5 linux guest vm with host device added to it fails to start

2022-06-10 Thread Don Dupuis
Hello
I have a RHEL 8.6 based hypervisor with a Mellanox ConnectX-5 IB card
installed with SRIOV enabled. The host device I am assigning is
pci__af_00_2. The card is working as I can talk to other infiniband
interfaces on other servers. Below is the output of lspci.
3b:00.0 Ethernet controller: Mellanox Technologies MT27800 Family
[ConnectX-5]
3b:00.1 Ethernet controller: Mellanox Technologies MT27800 Family
[ConnectX-5]
af:00.0 Infiniband controller: Mellanox Technologies MT27800 Family
[ConnectX-5]
af:00.1 Infiniband controller: Mellanox Technologies MT27800 Family
[ConnectX-5 Virtual Function]
af:00.2 Infiniband controller: Mellanox Technologies MT27800 Family
[ConnectX-5 Virtual Function]
af:00.3 Infiniband controller: Mellanox Technologies MT27800 Family
[ConnectX-5 Virtual Function]
af:00.4 Infiniband controller: Mellanox Technologies MT27800 Family
[ConnectX-5 Virtual Function]

The linux vm is configured as Q35 Chipset with UEFI, 16 cpus, numa enabled,
and cpu pinning enabled. OS is RHEL 7.9. As soon as I start the vm, I get
an immediate error message stating "Cannot run VM. There is no host that
satisfies current scheduling constraints. See below for details:, The host
rvsh002 did not satisfy internal filter HostDevice because some of the
required host devices are unavailable." If I remove the host device from
the vm config, then it starts and runs fine. This setup was working just
fine on RHEL8.4 and oVirt 4.4.7 using the proper driver for RHEL 8.4.

Here is the engine.log after I press the run button.
2022-06-10 11:22:10,506-05 INFO  [org.ovirt.engine.core.bll.RunVmCommand]
(default task-1) [81144b66-e5f9-474e-a922-e2ce49cdc8ca] Lock Acquired to
object
'EngineLock:{exclusiveLocks='[de54b903-7204-4966-95a3-05f64ed17f68=VM]',
sharedLocks=''}'
2022-06-10 11:22:10,520-05 INFO
 [org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] (default
task-1) [81144b66-e5f9-474e-a922-e2ce49cdc8ca] START,
IsVmDuringInitiatingVDSCommand(
IsVmDuringInitiatingVDSCommandParameters:{vmId='de54b903-7204-4966-95a3-05f64ed17f68'}),
log id: 6faf22a5
2022-06-10 11:22:10,520-05 INFO
 [org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] (default
task-1) [81144b66-e5f9-474e-a922-e2ce49cdc8ca] FINISH,
IsVmDuringInitiatingVDSCommand, return: false, log id: 6faf22a5
2022-06-10 11:22:10,560-05 INFO
 [org.ovirt.engine.core.bll.scheduling.SchedulingManager] (default task-1)
[] Candidate host 'rvsh002' ('f68352c2-6ddc-44ae-a19b-9262e92327f8') was
filtered out by 'VAR__FILTERTYPE__INTERNAL' filter 'HostDevice'
(correlation id: null)
2022-06-10 11:22:10,569-05 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(default task-1) [] EVENT_ID: USER_FAILED_RUN_VM(54), Failed to run VM
ws006 due to a failed validation: [Cannot run VM. There is no host that
satisfies current scheduling constraints. See below for details:, The host
rvsh002 did not satisfy internal filter HostDevice because some of the
required host devices are unavailable.] (User: admin@internal-authz).
2022-06-10 11:22:10,569-05 WARN  [org.ovirt.engine.core.bll.RunVmCommand]
(default task-1) [] Validation of action 'RunVm' failed for user
admin@internal-authz. Reasons:
VAR__ACTION__RUN,VAR__TYPE__VM,SCHEDULING_ALL_HOSTS_FILTERED_OUT,VAR__FILTERTYPE__INTERNAL,$hostName
rvsh002,$filterName
HostDevice,VAR__DETAIL__HOST_DEVICE_UNAVAILABLE,SCHEDULING_HOST_FILTERED_REASON_WITH_DETAIL
2022-06-10 11:22:10,570-0

There was nothing in the vdsm.log on the hypervisor related to this issue
that I could see after hitting the run button.

Thanks
Don
___
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/UJZ5U3PKSBFKJK5NJVHCITDSMSIK5QA7/


[ovirt-users] Re: VmMediatedDevices help for vGPU in overt 4.5

2022-06-09 Thread Don Dupuis
Milan
This is exactly what I needed and it worked the first time. I appreciate
your quick response to my question. Have a great day.

Thanks
Don

On Thu, Jun 9, 2022 at 5:09 AM Milan Zamazal  wrote:

> Don Dupuis  writes:
>
> > I am looking for an example on how to use the new VmMediatedDevices
> service
> > to add an Nvidia vGPU in ovirt to guest vms. I had it working just fine
> in
> > oVirt 4.4 when using the custom_properties method. Just need to
> understand
> > the new method/way of doing it correctly using the
> python3-ovirt-engine-sdk.
>
> You can retrieve the vGPU properties like:
>
>   service =
> connection.system_service().vms_service().vm_service('123').mediated_devices_service()
>   vgpu_devices = service.list()
>   first_vgpu = vgpu_devices[0]
>   # id of the device
>   first_vgpu.id
>   # properties of the device
>   [(p.name, p.value) for p in first_vgpu]
>
> Example of adding and removing a vGPU device:
>
>   service =
> connection.system_service().vms_service().vm_service('123').mediated_devices_service()
>   spec_params = [ovirtsdk4.types.Property(name=name, value=value)
>  for name, value in (('mdevType', 'nvidia-22'),
>  ('nodisplay', 'true'),
>  ('driverParams', 'enable_uvm=1'))]
>   service.add(ovirtsdk4.types.VmMediatedDevice(spec_params=spec_params))
>   service.device_service('456').remove()
>
> HTH,
> Milan
>
>
___
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/NYMXW5W3Z3GSFWJHPAYD52AMKK3KAWS7/


[ovirt-users] VmMediatedDevices help for vGPU in overt 4.5

2022-06-08 Thread Don Dupuis
Hello
I am looking for an example on how to use the new VmMediatedDevices service
to add an Nvidia vGPU in ovirt to guest vms. I had it working just fine in
oVirt 4.4 when using the custom_properties method. Just need to understand
the new method/way of doing it correctly using the python3-ovirt-engine-sdk.

Thanks
Don
___
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/6EILRF4V6PMQHKWUAJWGD7MWLFCXV7HN/


[ovirt-users] Re: Ovirt 4.4.6.8-1 upload ova as template to multiple hosts

2021-05-27 Thread Don Dupuis
It is the same script, I just renamed it. Now what I did works but it isn't
the proper way to do it. I want to improve it before contributing it as I
write the ovf data back out to a file and use pythons sed like
functionality to modify the file and then read in the updated one to give
to the engine. I just wanted to get something to work to get my project
done.

Don

On Thu, May 27, 2021 at 9:35 AM Arik Hadas  wrote:

>
>
> On Thu, May 27, 2021 at 4:24 PM Don Dupuis  wrote:
>
>> Arik
>> Just to say thank you again for the pointers on what was needed to be
>> done. I was able to modify that script to do what was needed and now it
>> works like a champ.
>>
>
> Awesome, glad to hear that.
> Looking again at what you wrote below, you've mentioned the script is
> named upload_ova_as_template.py. We've made some changes to that script and
> renamed it to upload_ova_as_vm_or_template.py [1]. It would be great if you
> could contribute your changes to it
>
> [1]
> https://gerrit.ovirt.org/gitweb?p=ovirt-engine-sdk.git;a=blob;f=sdk/examples/upload_ova_as_vm_or_template.py;h=d6f40548b912577dc18a24d564f37d117a084d28;hb=HEAD
>
>
>>
>> Thanks
>> Don
>>
>> On Mon, May 24, 2021 at 3:56 PM Don Dupuis  wrote:
>>
>>> Arik
>>> Thanks for the info. My simple setup is just a base for bigger clusters
>>> that I have to do and there will be multiple templates that I need to
>>> install. I have python programming skills but just needed some simple
>>> pointing in the right direction on where to make the addition changes to
>>> the code. It takes a little bit of time to get the services and types
>>> correct for what you want to accomplish and how it is implemented.
>>>
>>> Don
>>>
>>> On Mon, May 24, 2021 at 2:51 PM Arik Hadas  wrote:
>>>
>>>>
>>>>
>>>> On Mon, May 24, 2021 at 6:49 PM Don Dupuis  wrote:
>>>>
>>>>> Nudging to see if anyone has experience with this?
>>>>>
>>>>> Don
>>>>>
>>>>> On Wed, May 19, 2021 at 11:18 PM Don Dupuis 
>>>>> wrote:
>>>>>
>>>>>> I have a single ovirt manager and 2 ovirt hosts, each has a local
>>>>>> storage domain. I am using the upload_ova_as_template.py and my template
>>>>>> upload works on a single host but not both. If I use the gui method, 
>>>>>> there
>>>>>> is the option of "clone" and putting in a new name for the template. This
>>>>>> seems to work most of the time, but it has failed a couple of times 
>>>>>> also. I
>>>>>> would like to add the same "clone" and "name" option to the
>>>>>> upload_ova_as_temple.py. What is the best way to do this since I need to
>>>>>> have unique UUIDs for the template disks? This is a unique setup in the
>>>>>> fact that I can't use shared storage and this should be doable as I was
>>>>>> able to do it in the ovirt gui.
>>>>>>
>>>>>
>>>> If it's just a one-time operation, I'd rather try to create a VM out of
>>>> the template that was imported successfully (with disk-provisioning =
>>>> clone), create a second template out of it, remove the original template
>>>> and then upload the template from the OVA to the other storage domain.
>>>>
>>>> Changing the script to obtain import as clone is also possible but it
>>>> requires some programming skills - you'd need to either generate or provide
>>>> the script with different name for the template and UUIDs for the disks and
>>>> then (1) use the new UUIDs when uploading the disks and (2) change the OVF
>>>> that is loaded from the OVA to have the new name and UUIDs before providing
>>>> the OVF to the engine.
>>>>
>>>>
>>>>>
>>>>>> Thanks
>>>>>> Don
>>>>>>
>>>>> ___
>>>>> 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/U6Q5P7YKDBJARPPNFJOXAMP2AMKEJDNK/
>>>>>
>>>>
___
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/BZMJRKEQOH4UECDGUFPMDHGV45POGJEO/


[ovirt-users] Re: Ovirt 4.4.6.8-1 upload ova as template to multiple hosts

2021-05-27 Thread Don Dupuis
Arik
Just to say thank you again for the pointers on what was needed to be done.
I was able to modify that script to do what was needed and now it works
like a champ.

Thanks
Don

On Mon, May 24, 2021 at 3:56 PM Don Dupuis  wrote:

> Arik
> Thanks for the info. My simple setup is just a base for bigger clusters
> that I have to do and there will be multiple templates that I need to
> install. I have python programming skills but just needed some simple
> pointing in the right direction on where to make the addition changes to
> the code. It takes a little bit of time to get the services and types
> correct for what you want to accomplish and how it is implemented.
>
> Don
>
> On Mon, May 24, 2021 at 2:51 PM Arik Hadas  wrote:
>
>>
>>
>> On Mon, May 24, 2021 at 6:49 PM Don Dupuis  wrote:
>>
>>> Nudging to see if anyone has experience with this?
>>>
>>> Don
>>>
>>> On Wed, May 19, 2021 at 11:18 PM Don Dupuis  wrote:
>>>
>>>> I have a single ovirt manager and 2 ovirt hosts, each has a local
>>>> storage domain. I am using the upload_ova_as_template.py and my template
>>>> upload works on a single host but not both. If I use the gui method, there
>>>> is the option of "clone" and putting in a new name for the template. This
>>>> seems to work most of the time, but it has failed a couple of times also. I
>>>> would like to add the same "clone" and "name" option to the
>>>> upload_ova_as_temple.py. What is the best way to do this since I need to
>>>> have unique UUIDs for the template disks? This is a unique setup in the
>>>> fact that I can't use shared storage and this should be doable as I was
>>>> able to do it in the ovirt gui.
>>>>
>>>
>> If it's just a one-time operation, I'd rather try to create a VM out of
>> the template that was imported successfully (with disk-provisioning =
>> clone), create a second template out of it, remove the original template
>> and then upload the template from the OVA to the other storage domain.
>>
>> Changing the script to obtain import as clone is also possible but it
>> requires some programming skills - you'd need to either generate or provide
>> the script with different name for the template and UUIDs for the disks and
>> then (1) use the new UUIDs when uploading the disks and (2) change the OVF
>> that is loaded from the OVA to have the new name and UUIDs before providing
>> the OVF to the engine.
>>
>>
>>>
>>>> Thanks
>>>> Don
>>>>
>>> ___
>>> 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/U6Q5P7YKDBJARPPNFJOXAMP2AMKEJDNK/
>>>
>>
___
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/FQGGOO5VLIJW5SEM4ETR2Q3XCDKP2OMP/


[ovirt-users] Re: Ovirt 4.4.6.8 High Performance VM quirkiness

2021-05-25 Thread Don Dupuis
I didn't change vm type. I would set the vm, let it run, do a shutdown, and
then when I went to edit to look at configuration is when it changed. I
will test using desktop VM type and if I do the same things and it stays
with what I expected, I will use desktop vm type and not mess with HP vm
type. One thing I did forget to mention is that the vm was created from a
template that was of HP vm type.

On Tue, May 25, 2021 at 9:58 AM Liran Rotenberg  wrote:

>
>
> On Tue, May 25, 2021 at 4:50 PM Don Dupuis  wrote:
> >
> > I created a high performance vm and everything is fine. I stop the
> virtual machine and make edits to it and again runs correctly. I shutdown
> the vm and click the edit tab to look at what I changed and it is now back
> to the defaults and my edits are gone. Is this now the intended result. I
> was using the same settings in 4.3 and never exhibited this behavior. What
> I have observed so for is that I disabled Headless, disabled cpu pinning,
> and changed numa config. When I shutdown the vm, they revert to default of
> Headless enabled, cpu pinning is set and the numa config changed. This is
> not what I expect to happen. Has anyone else noticed this behavior?
> >
> Hi,
> I tried to reproduce it (without update):
> 1. Create a VM with HP type.
> 2. Set it with console.
> 3. Edit the VM again, click OK.
> 4. Edit the VM to see the configuration.
>
> Everything sticks to the first configuration.
> Note that if you change the VM type to server/desktop and move it again to
> High Performance, some configurations will change.
> In 4.4.5 we added the auto pinning feature, to high performance VMs we
> automatically set it to existing - which overrides the cpu pinning and numa
> configuration of the VM.
> This behavior executed each time you edited the VM in the UI, it wouldn't
> change the headless, only the CPU pinning and NUMA.
> However, in 4.4.6.6, we fixed a bug[1] to prevent this behavior to some
> extent. If you change the type, it will change the policy, but if the VM is
> already configured as High Performance and you didn't change it, it will
> leave it as is.
>
> The question would be if you change the VM type? If so, it is expected.
> Liran.
>
> [1] - https://bugzilla.redhat.com/show_bug.cgi?id=1954401
> > Thanks
> > Don
> > ___
> > 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/OJU6C44PTLZ3P3DMNFQBVNWV73HPBWAI/
>
___
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/XI42Q3LDD2NKNYXTDIFS3YK55RUHKTFR/


[ovirt-users] Ovirt 4.4.6.8 High Performance VM quirkiness

2021-05-25 Thread Don Dupuis
I created a high performance vm and everything is fine. I stop the virtual
machine and make edits to it and again runs correctly. I shutdown the vm
and click the edit tab to look at what I changed and it is now back to the
defaults and my edits are gone. Is this now the intended result. I was
using the same settings in 4.3 and never exhibited this behavior. What I
have observed so for is that I disabled Headless, disabled cpu pinning, and
changed numa config. When I shutdown the vm, they revert to default of
Headless enabled, cpu pinning is set and the numa config changed. This is
not what I expect to happen. Has anyone else noticed this behavior?

Thanks
Don
___
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/OJU6C44PTLZ3P3DMNFQBVNWV73HPBWAI/


[ovirt-users] Re: Ovirt 4.4.6.8-1 upload ova as template to multiple hosts

2021-05-24 Thread Don Dupuis
Arik
Thanks for the info. My simple setup is just a base for bigger clusters
that I have to do and there will be multiple templates that I need to
install. I have python programming skills but just needed some simple
pointing in the right direction on where to make the addition changes to
the code. It takes a little bit of time to get the services and types
correct for what you want to accomplish and how it is implemented.

Don

On Mon, May 24, 2021 at 2:51 PM Arik Hadas  wrote:

>
>
> On Mon, May 24, 2021 at 6:49 PM Don Dupuis  wrote:
>
>> Nudging to see if anyone has experience with this?
>>
>> Don
>>
>> On Wed, May 19, 2021 at 11:18 PM Don Dupuis  wrote:
>>
>>> I have a single ovirt manager and 2 ovirt hosts, each has a local
>>> storage domain. I am using the upload_ova_as_template.py and my template
>>> upload works on a single host but not both. If I use the gui method, there
>>> is the option of "clone" and putting in a new name for the template. This
>>> seems to work most of the time, but it has failed a couple of times also. I
>>> would like to add the same "clone" and "name" option to the
>>> upload_ova_as_temple.py. What is the best way to do this since I need to
>>> have unique UUIDs for the template disks? This is a unique setup in the
>>> fact that I can't use shared storage and this should be doable as I was
>>> able to do it in the ovirt gui.
>>>
>>
> If it's just a one-time operation, I'd rather try to create a VM out of
> the template that was imported successfully (with disk-provisioning =
> clone), create a second template out of it, remove the original template
> and then upload the template from the OVA to the other storage domain.
>
> Changing the script to obtain import as clone is also possible but it
> requires some programming skills - you'd need to either generate or provide
> the script with different name for the template and UUIDs for the disks and
> then (1) use the new UUIDs when uploading the disks and (2) change the OVF
> that is loaded from the OVA to have the new name and UUIDs before providing
> the OVF to the engine.
>
>
>>
>>> Thanks
>>> Don
>>>
>> ___
>> 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/U6Q5P7YKDBJARPPNFJOXAMP2AMKEJDNK/
>>
>
___
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/HPEET3VX7WPCJI5GSRYTJIT3QTUFOWIX/


[ovirt-users] Re: Ovirt 4.4.6.8-1 upload ova as template to multiple hosts

2021-05-24 Thread Don Dupuis
Nudging to see if anyone has experience with this?

Don

On Wed, May 19, 2021 at 11:18 PM Don Dupuis  wrote:

> I have a single ovirt manager and 2 ovirt hosts, each has a local storage
> domain. I am using the upload_ova_as_template.py and my template upload
> works on a single host but not both. If I use the gui method, there is the
> option of "clone" and putting in a new name for the template. This seems to
> work most of the time, but it has failed a couple of times also. I would
> like to add the same "clone" and "name" option to the
> upload_ova_as_temple.py. What is the best way to do this since I need to
> have unique UUIDs for the template disks? This is a unique setup in the
> fact that I can't use shared storage and this should be doable as I was
> able to do it in the ovirt gui.
>
> Thanks
> Don
>
___
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/U6Q5P7YKDBJARPPNFJOXAMP2AMKEJDNK/


[ovirt-users] Ovirt 4.4.6.8-1 upload ova as template to multiple hosts

2021-05-19 Thread Don Dupuis
I have a single ovirt manager and 2 ovirt hosts, each has a local storage
domain. I am using the upload_ova_as_template.py and my template upload
works on a single host but not both. If I use the gui method, there is the
option of "clone" and putting in a new name for the template. This seems to
work most of the time, but it has failed a couple of times also. I would
like to add the same "clone" and "name" option to the
upload_ova_as_temple.py. What is the best way to do this since I need to
have unique UUIDs for the template disks? This is a unique setup in the
fact that I can't use shared storage and this should be doable as I was
able to do it in the ovirt gui.

Thanks
Don
___
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/US3ZBPTHF4JORCEXOS5FJAHGCZ5WXXKV/


[ovirt-users] Re: Ovirt 4.4.6 - Automate disable of default reboot of host add

2021-05-05 Thread Don Dupuis
Martin

That was my problem. While the engine and my host had the correct version
of sdk4, the server that I run my automation scripts from had a too old
version.

Thanks
Don

On Wed, May 5, 2021 at 4:20 AM Martin Perina  wrote:

> Hi,
>
> unfortunately we have an issue around generating Python SDK documentation,
> so reboot parameter is not mentioned there yet:
>
>
> http://ovirt.github.io/ovirt-engine-sdk/4.4/services.m.html#ovirtsdk4.services.HostsService.add
>
> Below code snippet looks good, but please make sure that you are using
> python-ovirt-engine-sdk4 >= 4.4.10, which added support for reboot
> parameter.
>
> Regards,
> Martin
>
>
> On Wed, May 5, 2021 at 4:17 AM Don Dupuis  wrote:
>
>> Below is my Add_host routine with reboot=False and my host will still
>> reboot on install. What am I doing wrong? It is not giving me errors.
>>
>> def Add_host():
>> hosts_service = connection.system_service().hosts_service()
>>
>> # Add the host:
>> host = hosts_service.add(
>> types.Host(
>> name='%s' % HOSTNAME,
>> description='%s A Hypervisor' % HOSTNAME,
>> address='%s.%s' % (HOSTNAME, DOMAINNAME),
>> root_password='password',
>> cluster=types.Cluster(
>> name='%s-Locall' % HOSTNAME,
>> ),
>> ),
>> reboot=False,
>> )
>>
>
>
>> host_service = hosts_service.host_service(host.id)
>> while True:
>> time.sleep(5)
>> host = host_service.get()
>> if host.status == types.HostStatus.UP:
>> break
>>
>>
>>
>> On Tue, May 4, 2021 at 12:15 AM Yedidyah Bar David 
>> wrote:
>>
>>> On Mon, May 3, 2021 at 6:52 PM Don Dupuis  wrote:
>>> >
>>> > Can you tell me where the default of reboot on install is set as this
>>> wasn't this way in 4.3? I don't see an option in engine-config for this and
>>> I have looked through the ansible files on my engine vm.
>>>
>>> Not sure it's possible to change the default. Adding Dana.
>>>
>>> See also:
>>>
>>> https://bugzilla.redhat.com/show_bug.cgi?id=1853906
>>>
>>> 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/QUBDPSF2UNVCLMY5E6DKJYFCI5VBI6KY/
>>
>
>
> --
> Martin Perina
> Manager, Software Engineering
> Red Hat Czech s.r.o.
>
___
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/SROFYE455N5MIMBY22OHOP6CTRY4BPUH/


[ovirt-users] Re: Ovirt 4.4.6 - Automate disable of default reboot of host add

2021-05-04 Thread Don Dupuis
Below is my Add_host routine with reboot=False and my host will still
reboot on install. What am I doing wrong? It is not giving me errors.

def Add_host():
hosts_service = connection.system_service().hosts_service()

# Add the host:
host = hosts_service.add(
types.Host(
name='%s' % HOSTNAME,
description='%s A Hypervisor' % HOSTNAME,
address='%s.%s' % (HOSTNAME, DOMAINNAME),
root_password='password',
cluster=types.Cluster(
name='%s-Locall' % HOSTNAME,
),
),
reboot=False,
)

host_service = hosts_service.host_service(host.id)
while True:
time.sleep(5)
host = host_service.get()
if host.status == types.HostStatus.UP:
break



On Tue, May 4, 2021 at 12:15 AM Yedidyah Bar David  wrote:

> On Mon, May 3, 2021 at 6:52 PM Don Dupuis  wrote:
> >
> > Can you tell me where the default of reboot on install is set as this
> wasn't this way in 4.3? I don't see an option in engine-config for this and
> I have looked through the ansible files on my engine vm.
>
> Not sure it's possible to change the default. Adding Dana.
>
> See also:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1853906
>
> 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/QUBDPSF2UNVCLMY5E6DKJYFCI5VBI6KY/


[ovirt-users] Re: Ovirt 4.4.6 - Automate disable of default reboot of host add

2021-05-03 Thread Don Dupuis
Can you tell me where the default of reboot on install is set as this
wasn't this way in 4.3? I don't see an option in engine-config for this and
I have looked through the ansible files on my engine vm.

Don

On Mon, May 3, 2021 at 12:45 AM Yedidyah Bar David  wrote:

> On Mon, May 3, 2021 at 5:07 AM Don Dupuis  wrote:
> >
> > Hi
> > I install alot of hosts via python sdk. My scripts were working
> perfectly in 4.3. Now in 4.4 the hosts reboot by default on installation
> and I don't want this. I have tried in python and in ansible, but now luck.
> Can someone guide me on the best way to achieve this?
>
> For ansible, you can use 'reboot_after_installation':
>
>
> https://docs.ansible.com/ansible/latest/collections/ovirt/ovirt/ovirt_host_module.html#parameter-reboot_after_installation
>
> 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/2MMQKIGCKMKUFO5FBTAZKTBPKFDU6XUU/


[ovirt-users] Ovirt 4.4.6 - Automate disable of default reboot of host add

2021-05-02 Thread Don Dupuis
Hi
I install alot of hosts via python sdk. My scripts were working perfectly
in 4.3. Now in 4.4 the hosts reboot by default on installation and I don't
want this. I have tried in python and in ansible, but now luck. Can someone
guide me on the best way to achieve this?

Thanks
Don
___
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/G5RSQ3WOT4TH4COVUZYIPM4P3JDMEOBJ/


[ovirt-users] Cluster level 4.5

2021-04-28 Thread Don Dupuis
What version of libvirt is required for a host to be put in this cluster
level? I am using CentOS 8.3 and cpu is Cascade Lake Server. It says that
my host is only compatible with cluster version 4.2,4.3 and 4.4. I am doing
a new install of Ovirt 4.4.5. I have tried to update libvirt version but
have run into issues. Currently installed libvirt
is libvirt-6.0.0-28.module_el8.3.0+555+a55c8938.x86_64.

Don
___
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/CWAUC4NC45Z54QF3MN3ESGGYFIG6WZL7/


[ovirt-users] Re: Ovirt 4.4.6.5-1 engine-setup failed

2021-04-26 Thread Don Dupuis
Nir
Thanks for the info and explanation.

Don

On Mon, Apr 26, 2021 at 4:27 PM Nir Soffer  wrote:

> On Mon, Apr 26, 2021 at 11:56 PM Don Dupuis  wrote:
> >
> > Nir
> > After looking at the debug output of daemon.log, it looks like the code
> is expecting ipv6 to be enabled and I have explicitly disable ipv6. When I
> enable it and reboot, it now WORKS!!.
>
> Yes, we assume that ipv6 is enabled on the engine and hypervisors.
> You will have the same issue with the hypervisors, since vdsm is also
> listening on the same address ("::").
>
> > Where I work we don't use ipv6, is there another option to set so that
> this works on ipv4 only setups?
>
> We use the special "::" address so we listen to both ipv4 and ipv6.
> This works for
> people who use ipv4 or ipv6.
>
> If you must disable ipv6 on the engine host, you can try to listen to
> an ipv4 address:
>
> # cat /etc/ovirt-imageio/conf.d/99-local.conf
> [remote]
> host = 0.0.0.0
>
> Similar change is needed for vdsm:
>
> # cat /etc/vdsm/vdsm.conf.d/99-local.conf
> [addresses]
> management_ip = 0.0.0.0
>
> I'm not sure that disabling ipv6 is tested, you may find other issues
> on setup with
> ipv6 disabled.
>
> Ales may have more insight on disabling ipv6.
>
> Nir
>
> >
> > Thanks
> > Don
> >
> > On Mon, Apr 26, 2021 at 3:32 PM Don Dupuis  wrote:
> >>
> >> 2021-04-26 15:29:50,728 INFO(MainThread) [server] Starting
> (hostname=rvsmanager2 pid=13203, version=2.1.1)
> >> 2021-04-26 15:29:50,729 DEBUG   (MainThread) [services] Creating
> remote.service on port 54323
> >> 2021-04-26 15:29:50,730 DEBUG   (MainThread) [http] Prefer IPv4: False
> >> 2021-04-26 15:29:50,730 DEBUG   (MainThread) [http] Available network
> interfaces: [(, , 6,
> '', ('::', 54323, 0, 0))]
> >> 2021-04-26 15:29:50,730 DEBUG   (MainThread) [http] Creating server
> socket with family=AddressFamily.AF_INET6 and type=SocketKind.SOCK_STREAM
> >> 2021-04-26 15:29:50,732 ERROR   (MainThread) [server] Server failed
> >> Traceback (most recent call last):
> >>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
> line 46, in main
> >> server = Server(cfg)
> >>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
> line 110, in __init__
> >> self.remote_service = services.RemoteService(self.config, self.auth)
> >>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/services.py",
> line 73, in __init__
> >> self._server = http.Server((config.remote.host, port),
> http.Connection)
> >>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
> 91, in __init__
> >> self.create_socket(prefer_ipv4)
> >>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
> 123, in create_socket
> >> self.socket = socket.socket(self.address_family, self.socket_type)
> >>   File "/usr/lib64/python3.6/socket.py", line 144, in __init__
> >> _socket.socket.__init__(self, family, type, proto, fileno)
> >> OSError: [Errno 97] Address family not supported by protocol
> >> 2021-04-26 15:29:50,919 INFO(MainThread) [server] Starting
> (hostname=rvsmanager2 pid=13208, version=2.1.1)
> >> 2021-04-26 15:29:50,919 DEBUG   (MainThread) [services] Creating
> remote.service on port 54323
> >> 2021-04-26 15:29:50,920 DEBUG   (MainThread) [http] Prefer IPv4: False
> >> 2021-04-26 15:29:50,920 DEBUG   (MainThread) [http] Available network
> interfaces: [(, , 6,
> '', ('::', 54323, 0, 0))]
> >> 2021-04-26 15:29:50,920 DEBUG   (MainThread) [http] Creating server
> socket with family=AddressFamily.AF_INET6 and type=SocketKind.SOCK_STREAM
> >> 2021-04-26 15:29:50,922 ERROR   (MainThread) [server] Server failed
> >> Traceback (most recent call last):
> >>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
> line 46, in main
> >> server = Server(cfg)
> >>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
> line 110, in __init__
> >> self.remote_service = services.RemoteService(self.config, self.auth)
> >>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/services.py",
> line 73, in __init__
> >> self._server = http.Server((config.remote.host, port),
> http.Connection)
> >>   File
> "/usr/lib64/python3.6/site-packag

[ovirt-users] Re: Ovirt 4.4.6.5-1 engine-setup failed

2021-04-26 Thread Don Dupuis
Nir
After looking at the debug output of daemon.log, it looks like the code is
expecting ipv6 to be enabled and I have explicitly disable ipv6. When I
enable it and reboot, it now WORKS!!. Where I work we don't use ipv6, is
there another option to set so that this works on ipv4 only setups?

Thanks
Don

On Mon, Apr 26, 2021 at 3:32 PM Don Dupuis  wrote:

> 2021-04-26 15:29:50,728 INFO(MainThread) [server] Starting
> (hostname=rvsmanager2 pid=13203, version=2.1.1)
> 2021-04-26 15:29:50,729 DEBUG   (MainThread) [services] Creating
> remote.service on port 54323
> 2021-04-26 15:29:50,730 DEBUG   (MainThread) [http] Prefer IPv4: False
> 2021-04-26 15:29:50,730 DEBUG   (MainThread) [http] Available network
> interfaces: [(, , 6,
> '', ('::', 54323, 0, 0))]
> 2021-04-26 15:29:50,730 DEBUG   (MainThread) [http] Creating server socket
> with family=AddressFamily.AF_INET6 and type=SocketKind.SOCK_STREAM
> 2021-04-26 15:29:50,732 ERROR   (MainThread) [server] Server failed
> Traceback (most recent call last):
>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
> line 46, in main
> server = Server(cfg)
>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
> line 110, in __init__
> self.remote_service = services.RemoteService(self.config, self.auth)
>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/services.py",
> line 73, in __init__
> self._server = http.Server((config.remote.host, port), http.Connection)
>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
> 91, in __init__
> self.create_socket(prefer_ipv4)
>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
> 123, in create_socket
> self.socket = socket.socket(self.address_family, self.socket_type)
>   File "/usr/lib64/python3.6/socket.py", line 144, in __init__
> _socket.socket.__init__(self, family, type, proto, fileno)
> OSError: [Errno 97] Address family not supported by protocol
> 2021-04-26 15:29:50,919 INFO(MainThread) [server] Starting
> (hostname=rvsmanager2 pid=13208, version=2.1.1)
> 2021-04-26 15:29:50,919 DEBUG   (MainThread) [services] Creating
> remote.service on port 54323
> 2021-04-26 15:29:50,920 DEBUG   (MainThread) [http] Prefer IPv4: False
> 2021-04-26 15:29:50,920 DEBUG   (MainThread) [http] Available network
> interfaces: [(, , 6,
> '', ('::', 54323, 0, 0))]
> 2021-04-26 15:29:50,920 DEBUG   (MainThread) [http] Creating server socket
> with family=AddressFamily.AF_INET6 and type=SocketKind.SOCK_STREAM
> 2021-04-26 15:29:50,922 ERROR   (MainThread) [server] Server failed
> Traceback (most recent call last):
>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
> line 46, in main
> server = Server(cfg)
>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
> line 110, in __init__
> self.remote_service = services.RemoteService(self.config, self.auth)
>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/services.py",
> line 73, in __init__
> self._server = http.Server((config.remote.host, port), http.Connection)
>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
> 91, in __init__
> self.create_socket(prefer_ipv4)
>   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
> 123, in create_socket
> self.socket = socket.socket(self.address_family, self.socket_type)
>   File "/usr/lib64/python3.6/socket.py", line 144, in __init__
> _socket.socket.__init__(self, family, type, proto, fileno)
> OSError: [Errno 97] Address family not supported by protocol
>
> # ovirt-imageio --show-config
> {
> "backend_file": {
> "buffer_size": 8388608
> },
> "backend_http": {
> "buffer_size": 8388608,
> "ca_file": "/etc/pki/ovirt-engine/ca.pem"
> },
> "backend_nbd": {
> "buffer_size": 8388608
> },
> "control": {
> "port": 54324,
> "prefer_ipv4": true,
> "remove_timeout": 60,
> "socket": "/run/ovirt-imageio/sock",
> "transport": "tcp"
> },
> "daemon": {
> "drop_privileges": true,
> "group_name": "ovirtimg",
> "max_connections": 8,
> "poll_interval": 1.0,
> "run_dir

[ovirt-users] Re: Ovirt 4.4.6.5-1 engine-setup failed

2021-04-26 Thread Don Dupuis
ass": "logging.StreamHandler",
"level": "DEBUG"
},
"handlers": {
"keys": "logfile"
},
"local": {
"enable": false,
        "socket": "\u/org/ovirt/imageio"
},
"logger_root": {
"handlers": "logfile",
"level": "DEBUG",
"propagate": 0
},
"loggers": {
"keys": "root"
},
"profile": {
"filename": "/run/ovirt-imageio/profile"
},
"remote": {
"host": "::",
"port": 54323
},
"tls": {
"ca_file": "/etc/pki/ovirt-engine/apache-ca.pem",
"cert_file": "/etc/pki/ovirt-engine/certs/apache.cer",
"enable": true,
"enable_tls1_1": false,
"key_file": "/etc/pki/ovirt-engine/keys/apache.key.nopass"
}
}


On Mon, Apr 26, 2021 at 3:22 PM Nir Soffer  wrote:

> On Mon, Apr 26, 2021 at 10:58 PM Don Dupuis  wrote:
> >
> > Nir
> > It just repeats. Here you go
>
> Thanks, it seems that we need more work on logging.
>
> Can you try to change the log level to DEBUG and start the
> ovirt-imageio service?
>
> Add this file:
>
> $ cat /etc/ovirt-imageio/conf.d/99-local.conf
> [logger_root]
> level = DEBUG
>
> And start the service:
>
> $ systemctl start ovirt-imageio
>
> I hope we will have more info in the log explaining this issue.
>
> And to make sure we have correct configuration, please share output of:
>
> $ ovirt-imageio --show-config
>
> > 2021-04-26 13:50:49,600 INFO(MainThread) [server] Starting
> (hostname=manager2 pid=60513, version=2.1.1)
> > 2021-04-26 13:50:49,609 ERROR   (MainThread) [server] Server failed
> > Traceback (most recent call last):
> >   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
> line 46, in main
> > server = Server(cfg)
> >   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
> line 110, in __init__
> > self.remote_service = services.RemoteService(self.config, self.auth)
> >   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/services.py",
> line 73, in __init__
> > self._server = http.Server((config.remote.host, port),
> http.Connection)
> >   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
> 91, in __init__
> > self.create_socket(prefer_ipv4)
> >   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
> 123, in create_socket
> > self.socket = socket.socket(self.address_family, self.socket_type)
> >   File "/usr/lib64/python3.6/socket.py", line 144, in __init__
> > _socket.socket.__init__(self, family, type, proto, fileno)
> > OSError: [Errno 97] Address family not supported by protocol
> > 2021-04-26 13:50:49,954 INFO(MainThread) [server] Starting
> (hostname=manager2 pid=60530, version=2.1.1)
> > 2021-04-26 13:50:49,967 ERROR   (MainThread) [server] Server failed
> > Traceback (most recent call last):
> >   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
> line 46, in main
> > server = Server(cfg)
> >   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
> line 110, in __init__
> > self.remote_service = services.RemoteService(self.config, self.auth)
> >   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/services.py",
> line 73, in __init__
> > self._server = http.Server((config.remote.host, port),
> http.Connection)
> >   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
> 91, in __init__
> > self.create_socket(prefer_ipv4)
> >   File
> "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
> 123, in create_socket
> > self.socket = socket.socket(self.address_family, self.socket_type)
> >   File "/usr/lib64/python3.6/socket.py", line 144, in __init__
> > _socket.socket.__init__(self, family, type, proto, fileno)
> > OSError: [Errno 97] Address family not supported by protocol
> > 2021-04-26 13:50:50,199 INFO(MainThread) [server] Starting
> (hostname=manager2 pid=60567, version=2.1.1)
> > 2021-04-26 13:50:50,203 ERROR   (MainThread) [server] Server failed
> > Traceback (most re

[ovirt-users] Re: Ovirt 4.4.6.5-1 engine-setup failed

2021-04-26 Thread Don Dupuis
Nir
It just repeats. Here you go

2021-04-26 13:50:49,600 INFO(MainThread) [server] Starting
(hostname=manager2 pid=60513, version=2.1.1)
2021-04-26 13:50:49,609 ERROR   (MainThread) [server] Server failed
Traceback (most recent call last):
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
line 46, in main
server = Server(cfg)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
line 110, in __init__
self.remote_service = services.RemoteService(self.config, self.auth)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/services.py",
line 73, in __init__
self._server = http.Server((config.remote.host, port), http.Connection)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
91, in __init__
self.create_socket(prefer_ipv4)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
123, in create_socket
self.socket = socket.socket(self.address_family, self.socket_type)
  File "/usr/lib64/python3.6/socket.py", line 144, in __init__
_socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 97] Address family not supported by protocol
2021-04-26 13:50:49,954 INFO(MainThread) [server] Starting
(hostname=manager2 pid=60530, version=2.1.1)
2021-04-26 13:50:49,967 ERROR   (MainThread) [server] Server failed
Traceback (most recent call last):
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
line 46, in main
server = Server(cfg)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
line 110, in __init__
self.remote_service = services.RemoteService(self.config, self.auth)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/services.py",
line 73, in __init__
self._server = http.Server((config.remote.host, port), http.Connection)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
91, in __init__
self.create_socket(prefer_ipv4)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
123, in create_socket
self.socket = socket.socket(self.address_family, self.socket_type)
  File "/usr/lib64/python3.6/socket.py", line 144, in __init__
_socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 97] Address family not supported by protocol
2021-04-26 13:50:50,199 INFO(MainThread) [server] Starting
(hostname=manager2 pid=60567, version=2.1.1)
2021-04-26 13:50:50,203 ERROR   (MainThread) [server] Server failed
Traceback (most recent call last):
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
line 46, in main
server = Server(cfg)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
line 110, in __init__
self.remote_service = services.RemoteService(self.config, self.auth)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/services.py",
line 73, in __init__
self._server = http.Server((config.remote.host, port), http.Connection)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
91, in __init__
self.create_socket(prefer_ipv4)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
123, in create_socket
self.socket = socket.socket(self.address_family, self.socket_type)
  File "/usr/lib64/python3.6/socket.py", line 144, in __init__
_socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 97] Address family not supported by protocol

Don

On Mon, Apr 26, 2021 at 2:34 PM Nir Soffer  wrote:

> On Mon, Apr 26, 2021 at 7:46 PM Don Dupuis  wrote:
> >
> > I am installing Ovirt 4.4.6.5-1 engine on CentOS Stream 8 on a dedicated
> vm. Towards the end of the engine-setup session I have a failure:
> >
> > [ INFO  ] Stage: Transaction setup
> > [ INFO  ] Stopping engine service
> > [ INFO  ] Stopping ovirt-fence-kdump-listener service
> > [ INFO  ] Stopping dwh service
> > [ INFO  ] Stopping vmconsole-proxy service
> > [ INFO  ] Stopping websocket-proxy service
> > [ INFO  ] Stage: Misc configuration (early)
> > [ INFO  ] Stage: Package installation
> > [ INFO  ] Stage: Misc configuration
> > [ INFO  ] Upgrading CA
> > [ INFO  ] Initializing PostgreSQL
> > [ INFO  ] Creating PostgreSQL 'engine' database
> > [ INFO  ] Configuring PostgreSQL
> > [ INFO  ] Creating PostgreSQL 'ovirt_engine_history' database
> > [ INFO  ] Configuring PostgreSQL
> > [ INFO  ] Creating CA: /etc/pki/ovirt-engine/ca.pem
> > [ INFO  ] Creating CA: /etc/pki/ovirt-engine/qemu-ca.pem
> > [ INFO  ] Updating OVN SSL configuration
> > [ INFO  ] Updatin

[ovirt-users] Ovirt 4.4.6.5-1 engine-setup failed

2021-04-26 Thread Don Dupuis
I am installing Ovirt 4.4.6.5-1 engine on CentOS Stream 8 on a dedicated
vm. Towards the end of the engine-setup session I have a failure:

[ INFO  ] Stage: Transaction setup
[ INFO  ] Stopping engine service
[ INFO  ] Stopping ovirt-fence-kdump-listener service
[ INFO  ] Stopping dwh service
[ INFO  ] Stopping vmconsole-proxy service
[ INFO  ] Stopping websocket-proxy service
[ INFO  ] Stage: Misc configuration (early)
[ INFO  ] Stage: Package installation
[ INFO  ] Stage: Misc configuration
[ INFO  ] Upgrading CA
[ INFO  ] Initializing PostgreSQL
[ INFO  ] Creating PostgreSQL 'engine' database
[ INFO  ] Configuring PostgreSQL
[ INFO  ] Creating PostgreSQL 'ovirt_engine_history' database
[ INFO  ] Configuring PostgreSQL
[ INFO  ] Creating CA: /etc/pki/ovirt-engine/ca.pem
[ INFO  ] Creating CA: /etc/pki/ovirt-engine/qemu-ca.pem
[ INFO  ] Updating OVN SSL configuration
[ INFO  ] Updating OVN timeout configuration
[ INFO  ] Creating/refreshing DWH database schema
[ INFO  ] Setting up ovirt-vmconsole proxy helper PKI artifacts
[ INFO  ] Setting up ovirt-vmconsole SSH PKI artifacts
[ INFO  ] Configuring WebSocket Proxy
[ INFO  ] Creating/refreshing Engine database schema
[ INFO  ] Creating a user for Grafana
[ INFO  ] Creating/refreshing Engine 'internal' domain database schema
[ INFO  ] Creating default mac pool range
[ INFO  ] Adding default OVN provider to database
[ INFO  ] Adding OVN provider secret to database
[ INFO  ] Setting a password for internal user admin
[ INFO  ] Install selinux module
/usr/share/ovirt-engine/selinux/ansible-runner-service.cil
[ INFO  ] Generating post install configuration file
'/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf'
[ INFO  ] Stage: Transaction commit
[ INFO  ] Stage: Closing up
[ INFO  ] Starting engine service
[ INFO  ] Starting dwh service
[ INFO  ] Starting Grafana service
[ ERROR ] Failed to execute stage 'Closing up': Failed to start service
'ovirt-imageio'
[ INFO  ] Stage: Clean up
  Log file is located at
/var/log/ovirt-engine/setup/ovirt-engine-setup-20210426111225-g31wa5.log
[ INFO  ] Generating answer file
'/var/lib/ovirt-engine/setup/answers/20210426111501-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed

Below is output of /var/log/ovirt-imageio/daemon.log:

2021-04-26 11:15:01,481 ERROR   (MainThread) [server] Server failed
Traceback (most recent call last):
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
line 46, in main
server = Server(cfg)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/server.py",
line 110, in __init__
self.remote_service = services.RemoteService(self.config, self.auth)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/services.py",
line 73, in __init__
self._server = http.Server((config.remote.host, port), http.Connection)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
91, in __init__
self.create_socket(prefer_ipv4)
  File
"/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line
123, in create_socket
self.socket = socket.socket(self.address_family, self.socket_type)
  File "/usr/lib64/python3.6/socket.py", line 144, in __init__
_socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 97] Address family not supported by protocol

I am not seeing errors in /var/log/ovirt-engine/setup/setup.log. What other
information do you need that is revelant to this issue?

Thanks
Don
___
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/QSHDOT6P2M2KACVFXH7ZZWPIHTKXAKKI/


[ovirt-users] Re: Ovirt 4.3.6 USB passthrough not working with iommu_intel=on iommu=pt

2019-11-24 Thread Don Dupuis
 I will double check that as I believe all the usb ports on this sever is
USB 3.0. Support on 3.0 still should be tested and fixed if it is broken.
Again it will work as long as the iommu is now enabled!!!.

Don

On Fri, Nov 22, 2019 at 3:43 PM Green, Jacob Allen /C <
jacob.a.gr...@exxonmobil.com> wrote:

> Have you tried making sure it is plugged into a USB 2.0 port or hub? I
> have had no luck passing through USB3.0 in the past.
>
>
>
> *Jacob Green*
>
> Container Platform Engineer
>
> EMIT | APPS | Modern Apps & Platforms
>
> ExxonMobil Information Technology
>
> 1735 Hughes Landing Blvd, The Woodlands, TX 77381 | TEL:+1-832-624-4348
>
>
>
> *From:* Don Dupuis [mailto:donds...@gmail.com]
> *Sent:* Friday, November 22, 2019 3:05 PM
> *To:* Strahil Nikolov 
> *Cc:* users 
> *Subject:* [ovirt-users] Re: Ovirt 4.3.6 USB passthrough not working with
> iommu_intel=on iommu=pt
>
>
>
> Actually this is broken on an earlier version of ovirt at another customer
> of mine. They are running ovirt 4.2.3. I tried to make sure I could get it
> working on the latest release in order to troubleshoot that issue. I have
> provided the latest information and created the bugzilla case.
>
>
>
> Don
>
>
>
> On Fri, Nov 22, 2019 at 2:51 PM Strahil Nikolov 
> wrote:
>
> Have you checked if the issue is specific to this host ?
>
> Also , check on another VM.
>
>
>
> Best Regards,
>
> Strahil Nikolov
>
>
>
> В четвъртък, 21 ноември 2019 г., 17:31:33 ч. Гринуич+2, Don Dupuis <
> donds...@gmail.com> написа:
>
>
>
>
>
> Anyone else have this problem? I haven't been able to find a solution.
>
>
>
> Don
>
>
>
> On Tue, Nov 19, 2019 at 10:03 AM Don Dupuis  wrote:
>
> with that approach, still get same error.
>
>
>
> Don
>
>
>
> On Mon, Nov 18, 2019 at 10:49 PM Strahil Nikolov 
> wrote:
>
> I would recommend you to "unpresent" that USB, then replug (if that's
> possible) the USB and then to refresh the hosts's Capabilities (management
> dropdown). Only then try to assign the USB.
>
>
>
> Best Regards,
>
> Strahil Nikolov
>
>
>
> В вторник, 19 ноември 2019 г., 05:30:00 ч. Гринуич+2, Don Dupuis <
> donds...@gmail.com> написа:
>
>
>
>
>
> I am trying to pass through a USB Dongle to a Windows virtual machine in
> ovirt 4.3.6. This will work if these options aren't used. Below is the
> output of lsusb with no iommu enable:
>
>
>
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
>
> Bus 001 Device 005: ID 1604:10c0 Tascam
>
> Bus 001 Device 004: ID 1604:10c0 Tascam
>
> Bus 001 Device 003: ID 1604:10c0 Tascam
>
> Bus 001 Device 002: ID 07f2:0001 Microcomputer Applications, Inc. KEYLOK II
>
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
>
>
> The device I am passing through is Bus 001 Device 002.
>
>
>
> This is the error I get in vdsmd.log:
>
>
>
> Traceback (most recent call last):
>
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 867, in
> _startUnderlyingVm
>
> self._run()
>
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2890, in
> _run
>
> self._domDependentInit()
>
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2466, in
> _domDependentInit
>
> self._vmDependentInit()
>
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2480, in
> _vmDependentInit
>
> self._getUnderlyingVmDevicesInfo()
>
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2448, in
> _getUnderlyingVmDevicesInfo
>
> vmdevices.common.update_device_info(self, self._devices)
>
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/common.py",
> line 94, in update_device_info
>
> hostdevice.HostDevice.update_device_info(vm, devices[hwclass.HOSTDEV])
>
>   File
> "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line
> 426, in update_device_info
>
> vm, device_conf, device_xml)
>
>   File
> "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line
> 223, in update_from_xml
>
> if host_address == dev.hostAddress:
>
> AttributeError: 'MdevDevice' object has no attribute 'hostAddress'
>
> 2019-11-18 18:20:06,173-0600 INFO  (vm/9944089c) [virt.vm]
> (vmId='9944089c-2109-4352-a0c6-7d0d9e04bb3f') Changed state to Down:
> 'MdevDevice' object has no attribute 'hostAddress' (code=1) (vm:1690)
>
>
>
> I am using ker

[ovirt-users] Re: Ovirt 4.3.6 USB passthrough not working with iommu_intel=on iommu=pt

2019-11-22 Thread Don Dupuis
Actually this is broken on an earlier version of ovirt at another customer
of mine. They are running ovirt 4.2.3. I tried to make sure I could get it
working on the latest release in order to troubleshoot that issue. I have
provided the latest information and created the bugzilla case.

Don

On Fri, Nov 22, 2019 at 2:51 PM Strahil Nikolov 
wrote:

> Have you checked if the issue is specific to this host ?
> Also , check on another VM.
>
> Best Regards,
> Strahil Nikolov
>
> В четвъртък, 21 ноември 2019 г., 17:31:33 ч. Гринуич+2, Don Dupuis <
> donds...@gmail.com> написа:
>
>
> Anyone else have this problem? I haven't been able to find a solution.
>
> Don
>
> On Tue, Nov 19, 2019 at 10:03 AM Don Dupuis  wrote:
>
> with that approach, still get same error.
>
> Don
>
> On Mon, Nov 18, 2019 at 10:49 PM Strahil Nikolov 
> wrote:
>
> I would recommend you to "unpresent" that USB, then replug (if that's
> possible) the USB and then to refresh the hosts's Capabilities (management
> dropdown). Only then try to assign the USB.
>
> Best Regards,
> Strahil Nikolov
>
> В вторник, 19 ноември 2019 г., 05:30:00 ч. Гринуич+2, Don Dupuis <
> donds...@gmail.com> написа:
>
>
> I am trying to pass through a USB Dongle to a Windows virtual machine in
> ovirt 4.3.6. This will work if these options aren't used. Below is the
> output of lsusb with no iommu enable:
>
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 005: ID 1604:10c0 Tascam
> Bus 001 Device 004: ID 1604:10c0 Tascam
> Bus 001 Device 003: ID 1604:10c0 Tascam
> Bus 001 Device 002: ID 07f2:0001 Microcomputer Applications, Inc. KEYLOK II
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> The device I am passing through is Bus 001 Device 002.
>
> This is the error I get in vdsmd.log:
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 867, in
> _startUnderlyingVm
> self._run()
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2890, in
> _run
> self._domDependentInit()
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2466, in
> _domDependentInit
> self._vmDependentInit()
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2480, in
> _vmDependentInit
> self._getUnderlyingVmDevicesInfo()
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2448, in
> _getUnderlyingVmDevicesInfo
> vmdevices.common.update_device_info(self, self._devices)
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/common.py",
> line 94, in update_device_info
> hostdevice.HostDevice.update_device_info(vm, devices[hwclass.HOSTDEV])
>   File
> "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line
> 426, in update_device_info
> vm, device_conf, device_xml)
>   File
> "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line
> 223, in update_from_xml
> if host_address == dev.hostAddress:
> AttributeError: 'MdevDevice' object has no attribute 'hostAddress'
> 2019-11-18 18:20:06,173-0600 INFO  (vm/9944089c) [virt.vm]
> (vmId='9944089c-2109-4352-a0c6-7d0d9e04bb3f') Changed state to Down:
> 'MdevDevice' object has no attribute 'hostAddress' (code=1) (vm:1690)
>
> I am using kernel 3.10.0-957.12.1.el7.x86_64
>
> vdsm is vdsm-4.30.33-1.el7.x86_64
> libvirt is libvirt-5.0.0-1.el7.x86_64
> qemu is qemu-img-ev-2.12.0-33.1.el7.x86_64
>
> Any help with this issue would be appreciated.
>
> Thanks
> Don
> ___
> 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/3JWP5GNYJWH7HDLBDRU3UGGHUENINW4I/
>
>
___
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/VUUV22KYHETFU3IM27HQLRP4MGZIF3H7/


[ovirt-users] Re: Ovirt 4.3.6 USB passthrough not working with iommu_intel=on iommu=pt

2019-11-21 Thread Don Dupuis
I have created a bug and the number is 1775306.

Thanks
Don

On Thu, Nov 21, 2019 at 9:46 AM Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
>
> On 21 Nov 2019, at 16:31, Don Dupuis  wrote:
>
> Anyone else have this problem? I haven't been able to find a solution.
>
> Don
>
> On Tue, Nov 19, 2019 at 10:03 AM Don Dupuis  wrote:
>
>> with that approach, still get same error.
>>
>> Don
>>
>> On Mon, Nov 18, 2019 at 10:49 PM Strahil Nikolov 
>> wrote:
>>
>>> I would recommend you to "unpresent" that USB, then replug (if that's
>>> possible) the USB and then to refresh the hosts's Capabilities (management
>>> dropdown). Only then try to assign the USB.
>>>
>>> Best Regards,
>>> Strahil Nikolov
>>>
>>> В вторник, 19 ноември 2019 г., 05:30:00 ч. Гринуич+2, Don Dupuis <
>>> donds...@gmail.com> написа:
>>>
>>>
>>> I am trying to pass through a USB Dongle to a Windows virtual machine in
>>> ovirt 4.3.6. This will work if these options aren't used. Below is the
>>> output of lsusb with no iommu enable:
>>>
>>> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
>>> Bus 001 Device 005: ID 1604:10c0 Tascam
>>> Bus 001 Device 004: ID 1604:10c0 Tascam
>>> Bus 001 Device 003: ID 1604:10c0 Tascam
>>> Bus 001 Device 002: ID 07f2:0001 Microcomputer Applications, Inc. KEYLOK
>>> II
>>> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>>>
>>> The device I am passing through is Bus 001 Device 002.
>>>
>>> This is the error I get in vdsmd.log:
>>>
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 867, in
>>> _startUnderlyingVm
>>> self._run()
>>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2890, in
>>> _run
>>> self._domDependentInit()
>>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2466, in
>>> _domDependentInit
>>> self._vmDependentInit()
>>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2480, in
>>> _vmDependentInit
>>> self._getUnderlyingVmDevicesInfo()
>>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2448, in
>>> _getUnderlyingVmDevicesInfo
>>> vmdevices.common.update_device_info(self, self._devices)
>>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/common.py",
>>> line 94, in update_device_info
>>> hostdevice.HostDevice.update_device_info(vm,
>>> devices[hwclass.HOSTDEV])
>>>   File
>>> "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line
>>> 426, in update_device_info
>>> vm, device_conf, device_xml)
>>>   File
>>> "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line
>>> 223, in update_from_xml
>>> if host_address == dev.hostAddress:
>>> AttributeError: 'MdevDevice' object has no attribute 'hostAddress'
>>> 2019-11-18 18:20:06,173-0600 INFO  (vm/9944089c) [virt.vm]
>>> (vmId='9944089c-2109-4352-a0c6-7d0d9e04bb3f') Changed state to Down:
>>> 'MdevDevice' object has no attribute 'hostAddress' (code=1) (vm:1690)
>>>
>>
> Looks like a code bug. Would you please open it? On vdsm, oVirt team “virt”
>
> Thanks,
> michal
>
>
>
>>> I am using kernel 3.10.0-957.12.1.el7.x86_64
>>>
>>> vdsm is vdsm-4.30.33-1.el7.x86_64
>>> libvirt is libvirt-5.0.0-1.el7.x86_64
>>> qemu is qemu-img-ev-2.12.0-33.1.el7.x86_64
>>>
>>> Any help with this issue would be appreciated.
>>>
>>> Thanks
>>> Don
>>> ___
>>> 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/3JWP5GNYJWH7HDLBDRU3UGGHUENINW4I/
>>>
>> ___
> 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/BFES4PVZJ5LTNWPNOWZTZOB2DGUPDKCN/
>
>
>
___
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/U7ZDDT5U5JT4SLMZBSYQVNJBMEFGGFSD/


[ovirt-users] Re: Ovirt 4.3.6 USB passthrough not working with iommu_intel=on iommu=pt

2019-11-21 Thread Don Dupuis
Anyone else have this problem? I haven't been able to find a solution.

Don

On Tue, Nov 19, 2019 at 10:03 AM Don Dupuis  wrote:

> with that approach, still get same error.
>
> Don
>
> On Mon, Nov 18, 2019 at 10:49 PM Strahil Nikolov 
> wrote:
>
>> I would recommend you to "unpresent" that USB, then replug (if that's
>> possible) the USB and then to refresh the hosts's Capabilities (management
>> dropdown). Only then try to assign the USB.
>>
>> Best Regards,
>> Strahil Nikolov
>>
>> В вторник, 19 ноември 2019 г., 05:30:00 ч. Гринуич+2, Don Dupuis <
>> donds...@gmail.com> написа:
>>
>>
>> I am trying to pass through a USB Dongle to a Windows virtual machine in
>> ovirt 4.3.6. This will work if these options aren't used. Below is the
>> output of lsusb with no iommu enable:
>>
>> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
>> Bus 001 Device 005: ID 1604:10c0 Tascam
>> Bus 001 Device 004: ID 1604:10c0 Tascam
>> Bus 001 Device 003: ID 1604:10c0 Tascam
>> Bus 001 Device 002: ID 07f2:0001 Microcomputer Applications, Inc. KEYLOK
>> II
>> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>>
>> The device I am passing through is Bus 001 Device 002.
>>
>> This is the error I get in vdsmd.log:
>>
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 867, in
>> _startUnderlyingVm
>> self._run()
>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2890, in
>> _run
>> self._domDependentInit()
>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2466, in
>> _domDependentInit
>> self._vmDependentInit()
>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2480, in
>> _vmDependentInit
>> self._getUnderlyingVmDevicesInfo()
>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2448, in
>> _getUnderlyingVmDevicesInfo
>> vmdevices.common.update_device_info(self, self._devices)
>>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/common.py",
>> line 94, in update_device_info
>> hostdevice.HostDevice.update_device_info(vm, devices[hwclass.HOSTDEV])
>>   File
>> "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line
>> 426, in update_device_info
>> vm, device_conf, device_xml)
>>   File
>> "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line
>> 223, in update_from_xml
>> if host_address == dev.hostAddress:
>> AttributeError: 'MdevDevice' object has no attribute 'hostAddress'
>> 2019-11-18 18:20:06,173-0600 INFO  (vm/9944089c) [virt.vm]
>> (vmId='9944089c-2109-4352-a0c6-7d0d9e04bb3f') Changed state to Down:
>> 'MdevDevice' object has no attribute 'hostAddress' (code=1) (vm:1690)
>>
>> I am using kernel 3.10.0-957.12.1.el7.x86_64
>>
>> vdsm is vdsm-4.30.33-1.el7.x86_64
>> libvirt is libvirt-5.0.0-1.el7.x86_64
>> qemu is qemu-img-ev-2.12.0-33.1.el7.x86_64
>>
>> Any help with this issue would be appreciated.
>>
>> Thanks
>> Don
>> ___
>> 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/3JWP5GNYJWH7HDLBDRU3UGGHUENINW4I/
>>
>
___
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/BFES4PVZJ5LTNWPNOWZTZOB2DGUPDKCN/


[ovirt-users] Re: Ovirt 4.3.6 USB passthrough not working with iommu_intel=on iommu=pt

2019-11-19 Thread Don Dupuis
with that approach, still get same error.

Don

On Mon, Nov 18, 2019 at 10:49 PM Strahil Nikolov 
wrote:

> I would recommend you to "unpresent" that USB, then replug (if that's
> possible) the USB and then to refresh the hosts's Capabilities (management
> dropdown). Only then try to assign the USB.
>
> Best Regards,
> Strahil Nikolov
>
> В вторник, 19 ноември 2019 г., 05:30:00 ч. Гринуич+2, Don Dupuis <
> donds...@gmail.com> написа:
>
>
> I am trying to pass through a USB Dongle to a Windows virtual machine in
> ovirt 4.3.6. This will work if these options aren't used. Below is the
> output of lsusb with no iommu enable:
>
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 005: ID 1604:10c0 Tascam
> Bus 001 Device 004: ID 1604:10c0 Tascam
> Bus 001 Device 003: ID 1604:10c0 Tascam
> Bus 001 Device 002: ID 07f2:0001 Microcomputer Applications, Inc. KEYLOK II
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> The device I am passing through is Bus 001 Device 002.
>
> This is the error I get in vdsmd.log:
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 867, in
> _startUnderlyingVm
> self._run()
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2890, in
> _run
> self._domDependentInit()
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2466, in
> _domDependentInit
> self._vmDependentInit()
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2480, in
> _vmDependentInit
> self._getUnderlyingVmDevicesInfo()
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2448, in
> _getUnderlyingVmDevicesInfo
> vmdevices.common.update_device_info(self, self._devices)
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/common.py",
> line 94, in update_device_info
> hostdevice.HostDevice.update_device_info(vm, devices[hwclass.HOSTDEV])
>   File
> "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line
> 426, in update_device_info
> vm, device_conf, device_xml)
>   File
> "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line
> 223, in update_from_xml
> if host_address == dev.hostAddress:
> AttributeError: 'MdevDevice' object has no attribute 'hostAddress'
> 2019-11-18 18:20:06,173-0600 INFO  (vm/9944089c) [virt.vm]
> (vmId='9944089c-2109-4352-a0c6-7d0d9e04bb3f') Changed state to Down:
> 'MdevDevice' object has no attribute 'hostAddress' (code=1) (vm:1690)
>
> I am using kernel 3.10.0-957.12.1.el7.x86_64
>
> vdsm is vdsm-4.30.33-1.el7.x86_64
> libvirt is libvirt-5.0.0-1.el7.x86_64
> qemu is qemu-img-ev-2.12.0-33.1.el7.x86_64
>
> Any help with this issue would be appreciated.
>
> Thanks
> Don
> ___
> 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/3JWP5GNYJWH7HDLBDRU3UGGHUENINW4I/
>
___
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/PANWBLPOD5TG3O5TEYXSJKSHNNKS3SKU/


[ovirt-users] Ovirt 4.3.6 USB passthrough not working with iommu_intel=on iommu=pt

2019-11-18 Thread Don Dupuis
I am trying to pass through a USB Dongle to a Windows virtual machine in
ovirt 4.3.6. This will work if these options aren't used. Below is the
output of lsusb with no iommu enable:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 1604:10c0 Tascam
Bus 001 Device 004: ID 1604:10c0 Tascam
Bus 001 Device 003: ID 1604:10c0 Tascam
Bus 001 Device 002: ID 07f2:0001 Microcomputer Applications, Inc. KEYLOK II
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The device I am passing through is Bus 001 Device 002.

This is the error I get in vdsmd.log:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 867, in
_startUnderlyingVm
self._run()
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2890, in
_run
self._domDependentInit()
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2466, in
_domDependentInit
self._vmDependentInit()
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2480, in
_vmDependentInit
self._getUnderlyingVmDevicesInfo()
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2448, in
_getUnderlyingVmDevicesInfo
vmdevices.common.update_device_info(self, self._devices)
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/common.py",
line 94, in update_device_info
hostdevice.HostDevice.update_device_info(vm, devices[hwclass.HOSTDEV])
  File
"/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line
426, in update_device_info
vm, device_conf, device_xml)
  File
"/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line
223, in update_from_xml
if host_address == dev.hostAddress:
AttributeError: 'MdevDevice' object has no attribute 'hostAddress'
2019-11-18 18:20:06,173-0600 INFO  (vm/9944089c) [virt.vm]
(vmId='9944089c-2109-4352-a0c6-7d0d9e04bb3f') Changed state to Down:
'MdevDevice' object has no attribute 'hostAddress' (code=1) (vm:1690)

I am using kernel 3.10.0-957.12.1.el7.x86_64

vdsm is vdsm-4.30.33-1.el7.x86_64
libvirt is libvirt-5.0.0-1.el7.x86_64
qemu is qemu-img-ev-2.12.0-33.1.el7.x86_64

Any help with this issue would be appreciated.

Thanks
Don
___
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/3JWP5GNYJWH7HDLBDRU3UGGHUENINW4I/


[ovirt-users] Re: Issue adding Network to host with Python SDK

2019-07-03 Thread Don Dupuis
Joey
The setup_networks/modified_network_attachments methods took care of my
issue.

Thanks
Don

On Wed, Jul 3, 2019 at 8:15 AM Don Dupuis  wrote:

> Thanks, I will check it out.
>
> On Wed, Jul 3, 2019 at 12:06 AM Joey Ma  wrote:
>
>> Hi Don,
>>
>> One feasible way to manipulate host networks/nics is using
>> `host_service.setup_networks()` function. You could refer to [1] and [2]
>> for the official directive details. Hopefully it will be useful.
>>
>> Regards,
>> Joey
>>
>> [1]:
>> https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_bond.py
>> [2]:
>> http://ovirt.github.io/ovirt-engine-api-model/4.4/#services/host/methods/setup_networks
>>
>> On Wed, Jul 3, 2019 at 2:42 AM Don Dupuis  wrote:
>>
>>> I am having issue with adding network to host nic with python SDK. It
>>> works just fine using the portal GUI. I have the following:
>>>
>>> bond0 that is setup as mode 4
>>> bond0.120 that is attached to ovirtmgmt network
>>> bond0.96 that I am trying to attach a new installed network called
>>> External.
>>>
>>> Below is a code snippet of what I am trying to do:
>>>
>>> hosts_service = connection.system_service().hosts_service()
>>> host = hosts_service.list(search='name=%s' % HOSTNAME)[0]
>>> host_service = hosts_service.host_service(host.id)
>>> hostnics_service = hosts_service.host_service(host.id
>>> ).nics_service()
>>> n = None
>>> for n in hostnics_service.list():
>>> if n.name == 'bond0.96':
>>> n_id = n.id
>>> print("n is %s" % n_id)
>>> system_service = connection.system_service()
>>> networks_service = connection.system_service().networks_service()
>>> network = networks_service.list(
>>> search='name=External and datacenter=%s-local' % HOSTNAME) [0]
>>> print ("Network name is %s" % network.name)
>>> print ("Network id is %s" % network.id)
>>> net_attachments_service = host_service.network_attachments_service()
>>> net_attachment = net_attachments_service.add(
>>>types.NetworkAttachment(
>>>network=types.Network(id=network.id),
>>>host_nic=types.HostNic(name='bond0.96')
>>>),
>>>),
>>>
>>> I will end up with an error of
>>>
>>> File "./add_host_py", line 193, in Add_External_network
>>> host_nic=types.HostNic(name='bond0.96')
>>>   File "/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py", line
>>> 15441, in add
>>> self._check_fault(response)
>>>   File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line
>>> 98, in _check_fault
>>> Service._raise_error(response, fault)
>>>   File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line
>>> 71, in _raise_error
>>> raise Error(msg)
>>> ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is
>>> "[Cannot setup Networks. The attachment of network 'External' references
>>> vlan device 'bond0.96'. Network attachment cannot reference vlan device.]".
>>> HTTP response code is 400.
>>>
>>> Can someone guide me on what I am doing wrong or not understanding with
>>> the NetworkAttachment Service?
>>>
>>> Thanks
>>> Don
>>> ___
>>> 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/VJ4VY5XLXZJOY2FM5K7MZT2HXLHYAEZQ/
>>>
>>
___
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/QTD43OXOWIC5TCYUVO6IFLJKL65LSYO7/


[ovirt-users] Re: Issue adding Network to host with Python SDK

2019-07-03 Thread Don Dupuis
Thanks, I will check it out.

On Wed, Jul 3, 2019 at 12:06 AM Joey Ma  wrote:

> Hi Don,
>
> One feasible way to manipulate host networks/nics is using
> `host_service.setup_networks()` function. You could refer to [1] and [2]
> for the official directive details. Hopefully it will be useful.
>
> Regards,
> Joey
>
> [1]:
> https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_bond.py
> [2]:
> http://ovirt.github.io/ovirt-engine-api-model/4.4/#services/host/methods/setup_networks
>
> On Wed, Jul 3, 2019 at 2:42 AM Don Dupuis  wrote:
>
>> I am having issue with adding network to host nic with python SDK. It
>> works just fine using the portal GUI. I have the following:
>>
>> bond0 that is setup as mode 4
>> bond0.120 that is attached to ovirtmgmt network
>> bond0.96 that I am trying to attach a new installed network called
>> External.
>>
>> Below is a code snippet of what I am trying to do:
>>
>> hosts_service = connection.system_service().hosts_service()
>> host = hosts_service.list(search='name=%s' % HOSTNAME)[0]
>> host_service = hosts_service.host_service(host.id)
>> hostnics_service = hosts_service.host_service(host.id).nics_service()
>> n = None
>> for n in hostnics_service.list():
>> if n.name == 'bond0.96':
>> n_id = n.id
>> print("n is %s" % n_id)
>> system_service = connection.system_service()
>> networks_service = connection.system_service().networks_service()
>> network = networks_service.list(
>> search='name=External and datacenter=%s-local' % HOSTNAME) [0]
>> print ("Network name is %s" % network.name)
>> print ("Network id is %s" % network.id)
>> net_attachments_service = host_service.network_attachments_service()
>> net_attachment = net_attachments_service.add(
>>types.NetworkAttachment(
>>network=types.Network(id=network.id),
>>host_nic=types.HostNic(name='bond0.96')
>>),
>>),
>>
>> I will end up with an error of
>>
>> File "./add_host_py", line 193, in Add_External_network
>> host_nic=types.HostNic(name='bond0.96')
>>   File "/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py", line
>> 15441, in add
>> self._check_fault(response)
>>   File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line
>> 98, in _check_fault
>> Service._raise_error(response, fault)
>>   File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line
>> 71, in _raise_error
>> raise Error(msg)
>> ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is
>> "[Cannot setup Networks. The attachment of network 'External' references
>> vlan device 'bond0.96'. Network attachment cannot reference vlan device.]".
>> HTTP response code is 400.
>>
>> Can someone guide me on what I am doing wrong or not understanding with
>> the NetworkAttachment Service?
>>
>> Thanks
>> Don
>> ___
>> 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/VJ4VY5XLXZJOY2FM5K7MZT2HXLHYAEZQ/
>>
>
___
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/DGIR2DJVGMZEFLIOJZUIXCUG2ULBJYID/


[ovirt-users] Issue adding Network to host with Python SDK

2019-07-02 Thread Don Dupuis
I am having issue with adding network to host nic with python SDK. It works
just fine using the portal GUI. I have the following:

bond0 that is setup as mode 4
bond0.120 that is attached to ovirtmgmt network
bond0.96 that I am trying to attach a new installed network called External.

Below is a code snippet of what I am trying to do:

hosts_service = connection.system_service().hosts_service()
host = hosts_service.list(search='name=%s' % HOSTNAME)[0]
host_service = hosts_service.host_service(host.id)
hostnics_service = hosts_service.host_service(host.id).nics_service()
n = None
for n in hostnics_service.list():
if n.name == 'bond0.96':
n_id = n.id
print("n is %s" % n_id)
system_service = connection.system_service()
networks_service = connection.system_service().networks_service()
network = networks_service.list(
search='name=External and datacenter=%s-local' % HOSTNAME) [0]
print ("Network name is %s" % network.name)
print ("Network id is %s" % network.id)
net_attachments_service = host_service.network_attachments_service()
net_attachment = net_attachments_service.add(
   types.NetworkAttachment(
   network=types.Network(id=network.id),
   host_nic=types.HostNic(name='bond0.96')
   ),
   ),

I will end up with an error of

File "./add_host_py", line 193, in Add_External_network
host_nic=types.HostNic(name='bond0.96')
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py", line
15441, in add
self._check_fault(response)
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line 98,
in _check_fault
Service._raise_error(response, fault)
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line 71,
in _raise_error
raise Error(msg)
ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is
"[Cannot setup Networks. The attachment of network 'External' references
vlan device 'bond0.96'. Network attachment cannot reference vlan device.]".
HTTP response code is 400.

Can someone guide me on what I am doing wrong or not understanding with the
NetworkAttachment Service?

Thanks
Don
___
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/VJ4VY5XLXZJOY2FM5K7MZT2HXLHYAEZQ/


[ovirt-users] Re: Python-SDK4- Issue following links

2019-02-25 Thread Don Dupuis
Thanks again. I will check it out in more detail. I have looked at it,  but
some things wasn't that clear Most stuff in the SDK I have working, but I
get stumped sometimes.

Regards,
Don

On Mon, Feb 25, 2019 at 11:21 PM Joey Ma  wrote:

> Hi Don,
>
> So glad to see it worked. If you want to know more about how to use the
> Python SDK, the official documentation
> http://ovirt.github.io/ovirt-engine-sdk/ would introduce you the detailed
> guidance.
>
> If you have any other questions, please feel free to post here.
>
> Regards,
> Joey
>
> On Tue, Feb 26, 2019 at 12:50 PM Don Dupuis  wrote:
>
>> Joey
>>
>> That WORKED just great. I am still trying to understand the
>> services/service stuff. I was trying something similar earlier, but I was
>> using
>> connection.system_service().vnic_profiles_service().vnic_profile_service(),
>> I understand now from your code on what is going on and why was going down
>> the wrong road.
>>
>> Thanks again for your help
>>
>> Don
>>
>> On Mon, Feb 25, 2019 at 10:24 PM Joey Ma  wrote:
>>
>>>
>>> On Tue, Feb 26, 2019 at 1:00 AM Don Dupuis  wrote:
>>>
>>>> Joey
>>>> I am still not quite getting it. I am trying the below code and where
>>>> it is commented out, I have tried different things, but I am no table to
>>>> update the name of the object that I have found.
>>>>
>>>> networks_service = connection.system_service().networks_service()
>>>> network = networks_service.list(
>>>> search='name=ovirtmgmt and datacenter=%s-local' % HOSTNAME) [0]
>>>> print ("Network name is %s" % network.name)
>>>> print ("Network id is %s" % network.id)
>>>> vnics = connection.follow_link(network.vnic_profiles)
>>>> #vnicsprofile_service =
>>>> connection.system_service().vnic_profile_service()
>>>> #vnicprofile_service = vnic_profiles_service.vnic_profile_service(
>>>> vnics.id)
>>>>
>>>
>>> Hi Don,
>>>
>>> The var `vnics` is actually a List, so the statement `vnics.id` would
>>> produce errors.
>>>
>>> The following codes could successfully update the name of a vnicprofile,
>>> probably meets your needs.
>>>
>>> ```python
>>> vnics = connection.follow_link(network.vnic_profiles)
>>>
>>> # Iterate the var `vnics` would be better.
>>> vnic_service =
>>> connection.system_service().vnic_profiles_service().profile_service(vnics[0].id)
>>> vnic_service.update(
>>>  types.VnicProfile(
>>>  name='the-new-name',
>>>  )
>>> )
>>> vnic = vnic_service.get()
>>> print('new name', vnic.name)
>>> ```
>>>
>>> If the above codes could not work as expected, please let me know.
>>>
>>> Regards,
>>> Joey
>>>
>>> for dev in vnics:
>>>> print ("Dev name is %s" % dev.name)
>>>> #vnicprofile_service.update(types.VnicProfile(
>>>> #   name='%s' % HOSTNAME,
>>>> #   ),
>>>> #)
>>>> connection.close()
>>>>
>>>> ./update-vnic.py
>>>> Network name is ovirtmgmt
>>>> Network id is 740cae1f-c49f-4563-877a-5ce173e83be4
>>>> Dev name is ovirtmgmt
>>>>
>>>> Thanks
>>>> Don
>>>>
>>>> On Mon, Feb 25, 2019 at 12:06 AM Joey Ma  wrote:
>>>>
>>>>> Hi Don,
>>>>>
>>>>> Please using `network.vnic_profiles` instead of `network.vnicprofiles`
>>>>> as the parameter of  `connection.follow_link`.
>>>>>
>>>>> Regards,
>>>>> Joey
>>>>>
>>>>>
>>>>> On Mon, Feb 25, 2019 at 9:22 AM Don Dupuis  wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> I am trying to write some code to update the names of existing
>>>>>> vnicprofiles in ovirt-4.2. The problem I am having is trying to follow 
>>>>>> the
>>>>>> links to the vnicprofiles. Below is web info that I am trying to get:
>>>>>>
>>>>>> >>>>> href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4"
>>>>>> id="740cae1f-c49f-4563-877a-5ce173e83be4">ovirtmgmtLOOKING>>>>> href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e8

[ovirt-users] Re: Python-SDK4- Issue following links

2019-02-25 Thread Don Dupuis
Joey

That WORKED just great. I am still trying to understand the
services/service stuff. I was trying something similar earlier, but I was
using
connection.system_service().vnic_profiles_service().vnic_profile_service(),
I understand now from your code on what is going on and why was going down
the wrong road.

Thanks again for your help

Don

On Mon, Feb 25, 2019 at 10:24 PM Joey Ma  wrote:

>
> On Tue, Feb 26, 2019 at 1:00 AM Don Dupuis  wrote:
>
>> Joey
>> I am still not quite getting it. I am trying the below code and where it
>> is commented out, I have tried different things, but I am no table to
>> update the name of the object that I have found.
>>
>> networks_service = connection.system_service().networks_service()
>> network = networks_service.list(
>> search='name=ovirtmgmt and datacenter=%s-local' % HOSTNAME) [0]
>> print ("Network name is %s" % network.name)
>> print ("Network id is %s" % network.id)
>> vnics = connection.follow_link(network.vnic_profiles)
>> #vnicsprofile_service = connection.system_service().vnic_profile_service()
>> #vnicprofile_service = vnic_profiles_service.vnic_profile_service(
>> vnics.id)
>>
>
> Hi Don,
>
> The var `vnics` is actually a List, so the statement `vnics.id` would
> produce errors.
>
> The following codes could successfully update the name of a vnicprofile,
> probably meets your needs.
>
> ```python
> vnics = connection.follow_link(network.vnic_profiles)
>
> # Iterate the var `vnics` would be better.
> vnic_service =
> connection.system_service().vnic_profiles_service().profile_service(vnics[0].id)
> vnic_service.update(
>  types.VnicProfile(
>  name='the-new-name',
>  )
> )
> vnic = vnic_service.get()
> print('new name', vnic.name)
> ```
>
> If the above codes could not work as expected, please let me know.
>
> Regards,
> Joey
>
> for dev in vnics:
>> print ("Dev name is %s" % dev.name)
>> #vnicprofile_service.update(types.VnicProfile(
>> #   name='%s' % HOSTNAME,
>> #   ),
>> #)
>> connection.close()
>>
>> ./update-vnic.py
>> Network name is ovirtmgmt
>> Network id is 740cae1f-c49f-4563-877a-5ce173e83be4
>> Dev name is ovirtmgmt
>>
>> Thanks
>> Don
>>
>> On Mon, Feb 25, 2019 at 12:06 AM Joey Ma  wrote:
>>
>>> Hi Don,
>>>
>>> Please using `network.vnic_profiles` instead of `network.vnicprofiles`
>>> as the parameter of  `connection.follow_link`.
>>>
>>> Regards,
>>> Joey
>>>
>>>
>>> On Mon, Feb 25, 2019 at 9:22 AM Don Dupuis  wrote:
>>>
>>>> Hi
>>>>
>>>> I am trying to write some code to update the names of existing
>>>> vnicprofiles in ovirt-4.2. The problem I am having is trying to follow the
>>>> links to the vnicprofiles. Below is web info that I am trying to get:
>>>>
>>>> >>> href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4"
>>>> id="740cae1f-c49f-4563-877a-5ce173e83be4">ovirtmgmtLOOKING>>> href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4/permissions"
>>>> rel="permissions"/>>>> href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4/vnicprofiles"
>>>> rel="vnicprofiles"/>>>> href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4/networklabels"
>>>> rel="networklabels"/>0falsevm>>> id="4050"/>>>> href="/ovirt-engine/api/datacenters/1d00d32b-abdc-43cd-b990-257aaf01d514"
>>>> id="1d00d32b-abdc-43cd-b990-257aaf01d514"/>
>>>>
>>>> Below is the code that I am trying to do the same thing and I want to
>>>> follow the vnicprofiles link to get to the actual data that I want to
>>>> change:
>>>> #!/usr/bin/env python
>>>>
>>>> import logging
>>>> import time
>>>> import string
>>>> import sys
>>>> import os
>>>> import MySQLdb
>>>>
>>>> import ovirtsdk4 as sdk
>>>> import ovirtsdk4.types as types
>>>>
>>>> #logging.basicConfig(level=logging.DEBUG, filename='/tmp/addhost.log')
>>>>
>>>> ### Variables to be used ###
>>>> #NUMANODE = 3
>>>> #MEM = 20
>>>> GB = 1024 * 1024 * 1024
>>>> #MEMORY = MEM * GB
>>>> GB = 1024 * 1024 * 1024

[ovirt-users] Re: Python-SDK4- Issue following links

2019-02-25 Thread Don Dupuis
Joey
I am still not quite getting it. I am trying the below code and where it is
commented out, I have tried different things, but I am no table to update
the name of the object that I have found.

networks_service = connection.system_service().networks_service()
network = networks_service.list(
search='name=ovirtmgmt and datacenter=%s-local' % HOSTNAME) [0]
print ("Network name is %s" % network.name)
print ("Network id is %s" % network.id)
vnics = connection.follow_link(network.vnic_profiles)
#vnicsprofile_service = connection.system_service().vnic_profile_service()
#vnicprofile_service = vnic_profiles_service.vnic_profile_service(vnics.id)
for dev in vnics:
print ("Dev name is %s" % dev.name)
#vnicprofile_service.update(types.VnicProfile(
#   name='%s' % HOSTNAME,
#   ),
#)
connection.close()

./update-vnic.py
Network name is ovirtmgmt
Network id is 740cae1f-c49f-4563-877a-5ce173e83be4
Dev name is ovirtmgmt

Thanks
Don

On Mon, Feb 25, 2019 at 12:06 AM Joey Ma  wrote:

> Hi Don,
>
> Please using `network.vnic_profiles` instead of `network.vnicprofiles` as
> the parameter of  `connection.follow_link`.
>
> Regards,
> Joey
>
>
> On Mon, Feb 25, 2019 at 9:22 AM Don Dupuis  wrote:
>
>> Hi
>>
>> I am trying to write some code to update the names of existing
>> vnicprofiles in ovirt-4.2. The problem I am having is trying to follow the
>> links to the vnicprofiles. Below is web info that I am trying to get:
>>
>> > href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4"
>> id="740cae1f-c49f-4563-877a-5ce173e83be4">ovirtmgmtLOOKING> href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4/permissions"
>> rel="permissions"/>> href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4/vnicprofiles"
>> rel="vnicprofiles"/>> href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4/networklabels"
>> rel="networklabels"/>0falsevm> id="4050"/>> href="/ovirt-engine/api/datacenters/1d00d32b-abdc-43cd-b990-257aaf01d514"
>> id="1d00d32b-abdc-43cd-b990-257aaf01d514"/>
>>
>> Below is the code that I am trying to do the same thing and I want to
>> follow the vnicprofiles link to get to the actual data that I want to
>> change:
>> #!/usr/bin/env python
>>
>> import logging
>> import time
>> import string
>> import sys
>> import os
>> import MySQLdb
>>
>> import ovirtsdk4 as sdk
>> import ovirtsdk4.types as types
>>
>> #logging.basicConfig(level=logging.DEBUG, filename='/tmp/addhost.log')
>>
>> ### Variables to be used ###
>> #NUMANODE = 3
>> #MEM = 20
>> GB = 1024 * 1024 * 1024
>> #MEMORY = MEM * GB
>> GB = 1024 * 1024 * 1024
>> URL = 'https://host/ovirt-engine/api'
>> CAFILE = '/etc/pki/ovirt-engine/ca.pem'
>> USERNAME = 'admin@internal'
>> PASSWORD = 'password'
>> HOSTNAME = 'rvs06'
>>
>> connection = sdk.Connection(
>> url=URL,
>> username=USERNAME,
>> password=PASSWORD,
>> #ca_file='ca.pem',
>> debug='True',
>> insecure='True',
>> #log=logging.getLogger(),
>> )
>>
>> #dcs_service = connection.system_service().data_centers_service()
>> #dc = dcs_service.list(search='cluster=%s-local' % HOSTNAME)[0]
>> #network = dcs_service.service(dc.id).networks_service()
>> networks_service = connection.system_service().networks_service()
>> network = networks_service.list(
>> search='name=ovirtmgmt and datacenter=%s-local' % HOSTNAME) [0]
>> print ("Network name is %s" % network.name)
>> print ("Network id is %s" % network.id)
>> vnic = connection.follow_link(network.vnicprofiles)
>>
>> connection.close()
>>
>> Below is the output of my code:
>>
>> ./update-vnic.py
>> Network name is ovirtmgmt
>> Network id is 740cae1f-c49f-4563-877a-5ce173e83be4
>> Traceback (most recent call last):
>>   File "./update-vnic.py", line 46, in 
>> vnic = connection.follow_link(network.vnicprofiles)
>> AttributeError: 'Network' object has no attribute 'vnicprofiles'
>>
>> The network name and network id is correct. Any help would be appreciated
>> on what I am missing or what I am doing wrong. The actual updating of the
>> name with code isn't written yet as I can't get past this part.
>>
>> Thanks
>>
>> Don
>> ___
>> 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/PRV7MA2X3IS5WSXEEYAY54PPXFIMNRM4/
>>
>
___
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/365DOLGJQ2OR43QESXLQOQKESAL4YQSB/


[ovirt-users] Re: Python-SDK4- Issue following links

2019-02-25 Thread Don Dupuis
Thanks for the clarification Joey.

Don

On Mon, Feb 25, 2019 at 12:06 AM Joey Ma  wrote:

> Hi Don,
>
> Please using `network.vnic_profiles` instead of `network.vnicprofiles` as
> the parameter of  `connection.follow_link`.
>
> Regards,
> Joey
>
>
> On Mon, Feb 25, 2019 at 9:22 AM Don Dupuis  wrote:
>
>> Hi
>>
>> I am trying to write some code to update the names of existing
>> vnicprofiles in ovirt-4.2. The problem I am having is trying to follow the
>> links to the vnicprofiles. Below is web info that I am trying to get:
>>
>> > href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4"
>> id="740cae1f-c49f-4563-877a-5ce173e83be4">ovirtmgmtLOOKING> href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4/permissions"
>> rel="permissions"/>> href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4/vnicprofiles"
>> rel="vnicprofiles"/>> href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4/networklabels"
>> rel="networklabels"/>0falsevm> id="4050"/>> href="/ovirt-engine/api/datacenters/1d00d32b-abdc-43cd-b990-257aaf01d514"
>> id="1d00d32b-abdc-43cd-b990-257aaf01d514"/>
>>
>> Below is the code that I am trying to do the same thing and I want to
>> follow the vnicprofiles link to get to the actual data that I want to
>> change:
>> #!/usr/bin/env python
>>
>> import logging
>> import time
>> import string
>> import sys
>> import os
>> import MySQLdb
>>
>> import ovirtsdk4 as sdk
>> import ovirtsdk4.types as types
>>
>> #logging.basicConfig(level=logging.DEBUG, filename='/tmp/addhost.log')
>>
>> ### Variables to be used ###
>> #NUMANODE = 3
>> #MEM = 20
>> GB = 1024 * 1024 * 1024
>> #MEMORY = MEM * GB
>> GB = 1024 * 1024 * 1024
>> URL = 'https://host/ovirt-engine/api'
>> CAFILE = '/etc/pki/ovirt-engine/ca.pem'
>> USERNAME = 'admin@internal'
>> PASSWORD = 'password'
>> HOSTNAME = 'rvs06'
>>
>> connection = sdk.Connection(
>> url=URL,
>> username=USERNAME,
>> password=PASSWORD,
>> #ca_file='ca.pem',
>> debug='True',
>> insecure='True',
>> #log=logging.getLogger(),
>> )
>>
>> #dcs_service = connection.system_service().data_centers_service()
>> #dc = dcs_service.list(search='cluster=%s-local' % HOSTNAME)[0]
>> #network = dcs_service.service(dc.id).networks_service()
>> networks_service = connection.system_service().networks_service()
>> network = networks_service.list(
>> search='name=ovirtmgmt and datacenter=%s-local' % HOSTNAME) [0]
>> print ("Network name is %s" % network.name)
>> print ("Network id is %s" % network.id)
>> vnic = connection.follow_link(network.vnicprofiles)
>>
>> connection.close()
>>
>> Below is the output of my code:
>>
>> ./update-vnic.py
>> Network name is ovirtmgmt
>> Network id is 740cae1f-c49f-4563-877a-5ce173e83be4
>> Traceback (most recent call last):
>>   File "./update-vnic.py", line 46, in 
>> vnic = connection.follow_link(network.vnicprofiles)
>> AttributeError: 'Network' object has no attribute 'vnicprofiles'
>>
>> The network name and network id is correct. Any help would be appreciated
>> on what I am missing or what I am doing wrong. The actual updating of the
>> name with code isn't written yet as I can't get past this part.
>>
>> Thanks
>>
>> Don
>> ___
>> 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/PRV7MA2X3IS5WSXEEYAY54PPXFIMNRM4/
>>
>
___
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/R3TBXIX4VJ2Q6UGDHNXRFV3CTFRTCR32/


[ovirt-users] Python-SDK4- Issue following links

2019-02-24 Thread Don Dupuis
Hi

I am trying to write some code to update the names of existing vnicprofiles
in ovirt-4.2. The problem I am having is trying to follow the links to the
vnicprofiles. Below is web info that I am trying to get:

ovirtmgmtLOOKING0falsevm

Below is the code that I am trying to do the same thing and I want to
follow the vnicprofiles link to get to the actual data that I want to
change:
#!/usr/bin/env python

import logging
import time
import string
import sys
import os
import MySQLdb

import ovirtsdk4 as sdk
import ovirtsdk4.types as types

#logging.basicConfig(level=logging.DEBUG, filename='/tmp/addhost.log')

### Variables to be used ###
#NUMANODE = 3
#MEM = 20
GB = 1024 * 1024 * 1024
#MEMORY = MEM * GB
GB = 1024 * 1024 * 1024
URL = 'https://host/ovirt-engine/api'
CAFILE = '/etc/pki/ovirt-engine/ca.pem'
USERNAME = 'admin@internal'
PASSWORD = 'password'
HOSTNAME = 'rvs06'

connection = sdk.Connection(
url=URL,
username=USERNAME,
password=PASSWORD,
#ca_file='ca.pem',
debug='True',
insecure='True',
#log=logging.getLogger(),
)

#dcs_service = connection.system_service().data_centers_service()
#dc = dcs_service.list(search='cluster=%s-local' % HOSTNAME)[0]
#network = dcs_service.service(dc.id).networks_service()
networks_service = connection.system_service().networks_service()
network = networks_service.list(
search='name=ovirtmgmt and datacenter=%s-local' % HOSTNAME) [0]
print ("Network name is %s" % network.name)
print ("Network id is %s" % network.id)
vnic = connection.follow_link(network.vnicprofiles)

connection.close()

Below is the output of my code:

./update-vnic.py
Network name is ovirtmgmt
Network id is 740cae1f-c49f-4563-877a-5ce173e83be4
Traceback (most recent call last):
  File "./update-vnic.py", line 46, in 
vnic = connection.follow_link(network.vnicprofiles)
AttributeError: 'Network' object has no attribute 'vnicprofiles'

The network name and network id is correct. Any help would be appreciated
on what I am missing or what I am doing wrong. The actual updating of the
name with code isn't written yet as I can't get past this part.

Thanks

Don
___
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/PRV7MA2X3IS5WSXEEYAY54PPXFIMNRM4/


[ovirt-users] Re: vGPU setup guide

2018-05-15 Thread Don Dupuis
Nvidia released GRID version 6.1 this evening which supports RHEV and OVIRT
with vGPU

On Tue, May 15, 2018 at 12:12 PM, Callum Smith <cal...@well.ox.ac.uk> wrote:

> OK I guess it was literally just a breath away:
> https://blogs.nvidia.com/blog/2018/05/15/red-hat-
> virtualization-vgpu-support/
>
> So based on it now being actually supported, is this guide still relevant?
>
> Regards,
> Callum
>
> --
>
> Callum Smith
> Research Computing Core
> Wellcome Trust Centre for Human Genetics
> University of Oxford
> e. cal...@well.ox.ac.uk
>
> On 14 May 2018, at 21:48, Don Dupuis <donds...@gmail.com> wrote:
>
> No, if you look at support matrix, there is no rhev/ovirt. RHEL KVM only
> supports pass through, not vGPU!! That driver only support 1 to 1 pass
> through, no vGPU profiles. I hope it get released soon as when RHEV 4.2
> gets released.
>
> Don
>
> On Mon, May 14, 2018 at 3:33 PM, Callum Smith <cal...@well.ox.ac.uk>
> wrote:
>
>> That should be fine then, because they have done, right?
>>
>> https://docs.nvidia.com/grid/6.0/product-support-matrix/
>>
>> And inside my product manager for NVIDIA i can download "NVIDIA vGPU for
>> RHEL KVM" which comes with the hypervisor driver.
>>
>> Regards,
>> Callum
>>
>> --
>>
>> Callum Smith
>> Research Computing Core
>> Wellcome Trust Centre for Human Genetics
>> University of Oxford
>> e. cal...@well.ox.ac.uk
>>
>> > On 14 May 2018, at 21:19, Don Dupuis <donds...@gmail.com> wrote:
>> >
>> > Nvidia vGPU support won't work until Nvidia releases hypervisor drivers
>> for RHEV/oVirt.
>> >
>> > Don
>> >
>> > On Mon, May 14, 2018 at 3:08 PM, Callum Smith <cal...@well.ox.ac.uk>
>> wrote:
>> > Dear All,
>> >
>> > IS this the most current and useful example of implenting vGPUs in
>> oVirt? I had understood that 4.2 had NVIDIA GRID support as a flagship
>> feature, but this appears to be 4.1.4? It seems a very reasonable and
>> decent guide, just don't want to go down this route if there's alternatives
>> now available in 4.2.x.
>> >
>> > https://mpolednik.github.io/2017/09/13/vgpu-in-ovirt/
>> >
>> > Regards,
>> > Callum
>> >
>> > --
>> >
>> > Callum Smith
>> > Research Computing Core
>> > Wellcome Trust Centre for Human Genetics
>> > University of Oxford
>> > e. cal...@well.ox.ac.uk
>> >
>> >
>> > ___
>> > Users mailing list -- users@ovirt.org
>> > To unsubscribe send an email to users-le...@ovirt.org
>> >
>> >
>>
>>
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org


[ovirt-users] Re: vGPU setup guide

2018-05-14 Thread Don Dupuis
No, if you look at support matrix, there is no rhev/ovirt. RHEL KVM only
supports pass through, not vGPU!! That driver only support 1 to 1 pass
through, no vGPU profiles. I hope it get released soon as when RHEV 4.2
gets released.

Don

On Mon, May 14, 2018 at 3:33 PM, Callum Smith <cal...@well.ox.ac.uk> wrote:

> That should be fine then, because they have done, right?
>
> https://docs.nvidia.com/grid/6.0/product-support-matrix/
>
> And inside my product manager for NVIDIA i can download "NVIDIA vGPU for
> RHEL KVM" which comes with the hypervisor driver.
>
> Regards,
> Callum
>
> --
>
> Callum Smith
> Research Computing Core
> Wellcome Trust Centre for Human Genetics
> University of Oxford
> e. cal...@well.ox.ac.uk
>
> > On 14 May 2018, at 21:19, Don Dupuis <donds...@gmail.com> wrote:
> >
> > Nvidia vGPU support won't work until Nvidia releases hypervisor drivers
> for RHEV/oVirt.
> >
> > Don
> >
> > On Mon, May 14, 2018 at 3:08 PM, Callum Smith <cal...@well.ox.ac.uk>
> wrote:
> > Dear All,
> >
> > IS this the most current and useful example of implenting vGPUs in
> oVirt? I had understood that 4.2 had NVIDIA GRID support as a flagship
> feature, but this appears to be 4.1.4? It seems a very reasonable and
> decent guide, just don't want to go down this route if there's alternatives
> now available in 4.2.x.
> >
> > https://mpolednik.github.io/2017/09/13/vgpu-in-ovirt/
> >
> > Regards,
> > Callum
> >
> > --
> >
> > Callum Smith
> > Research Computing Core
> > Wellcome Trust Centre for Human Genetics
> > University of Oxford
> > e. cal...@well.ox.ac.uk
> >
> >
> > ___
> > Users mailing list -- users@ovirt.org
> > To unsubscribe send an email to users-le...@ovirt.org
> >
> >
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org


[ovirt-users] Re: vGPU setup guide

2018-05-14 Thread Don Dupuis
Nvidia vGPU support won't work until Nvidia releases hypervisor drivers for
RHEV/oVirt.

Don

On Mon, May 14, 2018 at 3:08 PM, Callum Smith  wrote:

> Dear All,
>
> IS this the most current and useful example of implenting vGPUs in oVirt?
> I had understood that 4.2 had NVIDIA GRID support as a flagship feature,
> but this appears to be 4.1.4? It seems a very reasonable and decent guide,
> just don't want to go down this route if there's alternatives now available
> in 4.2.x.
>
> https://mpolednik.github.io/2017/09/13/vgpu-in-ovirt/
>
> Regards,
> Callum
>
> --
>
> Callum Smith
> Research Computing Core
> Wellcome Trust Centre for Human Genetics
> University of Oxford
> e. cal...@well.ox.ac.uk
>
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org


Re: [ovirt-users] Ovirt 4.2 - Help adding VM to numa node via python SDK

2018-01-26 Thread Don Dupuis
HI Yaniv

I looked at your reference and it looks like I have almost the same thing,
but I was looking to take it a step further with virtual numa node. Is it
necessary to really do it for extra performance? Below is my code snippet,
it is not cleaned up yet, but works. I am also looking at programatically
added host devices such as a GPU. Do you have an example of doing that?

# Get the "vms" service
vms_service = connection.system_service().vms_service()

# Create vm
vms_service.add(
types.Vm(
name='test',
type=types.VmType('high_performance'),
memory=20 * 2**30,
memory_policy=types.MemoryPolicy(guaranteed=20 * 2**30,
ballooning=False, max=20 * 2**30),

os=types.OperatingSystem(boot=types.Boot(devices=[types.BootDevice.NETWORK,
types.BootDevice.HD]), type='LINUX'),
#time_zone=types.TimeZone('GMT-06:00'),
numa_tune_mode=types.NumaTuneMode('preferred'),
io=types.Io(threads=1),
cpu=types.Cpu(topology=types.CpuTopology(cores=1, sockets=4,
threads=1), mode=types.CpuMode('host_passthrough'),
 cpu_tune=types.CpuTune(vcpu_pins=[types.VcpuPin('24', 0),
types.VcpuPin('25', 1), types.VcpuPin('26', 2), types.VcpuPin('27', 3)])),


placement_policy=types.VmPlacementPolicy(affinity=types.VmAffinity('pinned'),
hosts=[types.Host(name='lab5')]),
custom_properties=[types.CustomProperty('hugepages', 'hugepages',
'1048576')],
cluster=types.Cluster(
name='lab5-Local',
),
template=types.Template(
name='Blank',
),
),
)

Thanks

Don

On Fri, Jan 26, 2018 at 11:04 AM, Yaniv Kaul <yk...@redhat.com> wrote:

>
>
> On Wed, Jan 24, 2018 at 11:18 PM, Don Dupuis <donds...@gmail.com> wrote:
>
>> I am able to create a vm using the sdk with nic and disks using the
>> python sdk, but having trouble understanding how to assign it to virtual
>> numanode onto the physical numanode via python sdk. Any help in this area
>> would be greatly appreciated
>>
>
> Please see line 165 @ [1], I think it's what you are looking for.
> Y.
>
> [1] https://gerrit.ovirt.org/#/c/86715/3/basic-suite-master/
> test-scenarios/004_basic_sanity.py
>
>
>>
>> Thanks
>>
>> Don
>>
>> ___
>> 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] Ovirt 4.2 - Help adding VM to numa node via python SDK

2018-01-26 Thread Don Dupuis
I am able to create a vm using the sdk with nic and disks using the python
sdk, but having trouble understanding how to assign it to virtual numanode
onto the physical numanode via python sdk. Any help in this area would be
greatly appreciated

Thanks

Don
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Ovirt 4.2 - Help adding VM to numa node via python SDK

2018-01-25 Thread Don Dupuis
Thanks Andrej. I will use this information and see how far I get.

Don

On Thu, Jan 25, 2018 at 10:39 AM, Andrej Krejcir <akrej...@redhat.com>
wrote:

> Hi,
>
> The VirtualNumaNode[1] object has 'numa_node_pins' member, that is a list
> of NumaNodePin[2].
> Most of the members of NumaNodePin object are deprecated and not used.
> The important one is 'index', which is the index of the host numa node to
> which the
> vm numa node is pinned. Here is the REST API documentation: [3].
>
> A simple python example can be:
>
>
> import ovirtsdk4 as sdk
>
> conn = sdk.Connection("URL", "admin@internal", "PASSWORD")
>
> host_node = conn.service("hosts/123/numanodes/456").get()
>
> vm_node_service = conn.service("vms/789/numanodes/123")
> vm_node = vm_node_service.get()
>
> vm_node.numa_node_pins = [ sdk.types.NumaNodePin(index=host_node.index,
> pinned=True) ]
>
> vm_node_service.put(vm_node)
>
>
> Andrej
>
> [1] - http://ovirt.github.io/ovirt-engine-sdk/master/types.m.
> html#ovirtsdk4.types.VirtualNumaNode
> [2] - http://ovirt.github.io/ovirt-engine-sdk/master/types.m.
> html#ovirtsdk4.types.NumaNodePin
>
> [3] - http://ovirt.github.io/ovirt-engine-api-model/4.2/#types/
> numa_node_pin
>
> On 25 January 2018 at 16:12, Don Dupuis <donds...@gmail.com> wrote:
>
>> I am able to create a vm using the sdk with nic and disks using the
>> python sdk, but having trouble understanding how to assign it to virtual
>> numanode onto the physical numanode via python sdk. Any help in this area
>> would be greatly appreciated
>>
>> Thanks
>>
>> Don
>>
>> ___
>> 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] Ovirt 4.2 - Help adding VM to numa node via python SDK

2018-01-25 Thread Don Dupuis
I am able to create a vm using the sdk with nic and disks using the python
sdk, but having trouble understanding how to assign it to virtual numanode
onto the physical numanode via python sdk. Any help in this area would be
greatly appreciated

Thanks

Don
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Ovirt 3.3 Guest Name Limit

2014-02-11 Thread Don Dupuis
In Ovirt 3.3, what is the guest name length limit?

Thanks
Don
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] How to change number of cpu cores in Ovirt 3.1 with the python sdk.

2012-09-27 Thread Don Dupuis
Thanks

I did find that information yesterday. Thanks for explaining the
detail. Also thanks for the quick response
on the mailing list.

Don

On Thu, Sep 27, 2012 at 5:23 AM, Michael Pasternak mpast...@redhat.com wrote:

 Well done Steve!,

 Don,

 Use method/s __doc__, you'll find there how to build parameters holder,
 vm.add() for instance, looks like this:

 ...
 [@param vm.os.boot: collection]
 {
   [@ivar boot.dev: string]
 }
 ...
 [@param vm.cpu.topology.cores: int]
 ...

 as you can see, vm.os.boot is collection of boot.dev, while vm.cpu.topology
 is a type.

 On 09/25/2012 05:32 PM, Steve Gordon wrote:
 - Original Message -
 From: Don Dupuis donds...@gmail.com
 To: Steve Gordon sgor...@redhat.com
 Cc: users@ovirt.org
 Sent: Tuesday, September 25, 2012 11:03:44 AM
 Subject: Re: [Users] How to change number of cpu cores in Ovirt 3.1 with 
 the python sdk.

 Steve

 THANKS!!!  That did the trick.

 I was originally trying it like this

 vm_cpu = params.CPU(topology=[params.CpuTopology(cores=4,
 sockets=1)])


 Don

 In the params.OperatingSystem(boot=[params.Boot(dev=hd)]) example the 
 reason you pass a list (denoted by the square brackets) is that the VM can 
 have a number of boot devices which will be tried in order. A VM can only 
 have one CPU topology though which is why the topology argument shouldn't be 
 a list. That is my understanding anyway ;).

 Steve
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users


 --

 Michael Pasternak
 RedHat, ENG-Virtualization RD
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] How to change number of cpu cores in Ovirt 3.1 with the python sdk.

2012-09-25 Thread Don Dupuis
Steve

Thanks for explaining it. I am still new to python.

Don

On Tue, Sep 25, 2012 at 10:32 AM, Steve Gordon sgor...@redhat.com wrote:
 - Original Message -
 From: Don Dupuis donds...@gmail.com
 To: Steve Gordon sgor...@redhat.com
 Cc: users@ovirt.org
 Sent: Tuesday, September 25, 2012 11:03:44 AM
 Subject: Re: [Users] How to change number of cpu cores in Ovirt 3.1 with the 
 python sdk.

 Steve

 THANKS!!!  That did the trick.

 I was originally trying it like this

 vm_cpu = params.CPU(topology=[params.CpuTopology(cores=4,
 sockets=1)])


 Don

 In the params.OperatingSystem(boot=[params.Boot(dev=hd)]) example the 
 reason you pass a list (denoted by the square brackets) is that the VM can 
 have a number of boot devices which will be tried in order. A VM can only 
 have one CPU topology though which is why the topology argument shouldn't be 
 a list. That is my understanding anyway ;).

 Steve
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] How to change number of cpu cores in Ovirt 3.1 with the python sdk.

2012-09-24 Thread Don Dupuis
I am using Ovirt 3.1 with the ovirt-engine-sdk. I have written a
python script using this sdk but I can't seem to get the
parameters right to change the cpu cores when creating the vm.  All
the other parameters I want to change works just fine. Does anyone
have an example on how to do this.

Thanks

Don
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users