A tiny little "up" because is driving me crazy

Francesco

Il 19/11/2020 10:57, francesco--- via Users ha scritto:
Hi all,

I'm using oVirt SDK python for retrieving info about storage domain, in several 
hosts (centos7/ovirt4.3 and centos8/ovirt4.4), but the script exits with the 
following error in some of them:

Traceback (most recent call last):
   File "get_uuid.py", line 70, in <module>
     storage_domain = sds_service.list(search='name=data-foo')[0]
   File "/root/.local/lib/python2.7/site-packages/ovirtsdk4/services.py", line 
26296, in list
     return self._internal_get(headers, query, wait)
   File "/root/.local/lib/python2.7/site-packages/ovirtsdk4/service.py", line 
211, in _internal_get
     return future.wait() if wait else future
   File "/root/.local/lib/python2.7/site-packages/ovirtsdk4/service.py", line 
55, in wait
     return self._code(response)
   File "/root/.local/lib/python2.7/site-packages/ovirtsdk4/service.py", line 
208, in callback
     self._check_fault(response)
   File "/root/.local/lib/python2.7/site-packages/ovirtsdk4/service.py", line 
132, in _check_fault
     self._raise_error(response, body)
   File "/root/.local/lib/python2.7/site-packages/ovirtsdk4/service.py", line 
118, in _raise_error
     raise error
ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is "Can't find 
storage server connection for id '92444a95-0be7-4589-ac46-1ed6dfe7ed4c'.". HTTP response code 
is 500.

The portion of the script that search for the storage domain is the following:

sds_service = connection.system_service().storage_domains_service()
storage_domain = 
sds_service.list(search='name={}'.format(storage_domain_name))[0]

Now: I have no real clue on which ID "92444a95-0be7-4589-ac46-1ed6dfe7ed4c'" 
but digging in the engine logs it refers to StorageServerConnections ID:

[root@ovirt-engine ovirt-engine]# zgrep 92444a95-0be7-4589-ac46-1ed6dfe7ed4c 
*.gz
engine.log-20201108.gz:2020-11-07 06:05:54,352+01 INFO  
[org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] 
(EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-79) 
[3ffb810c] START, ConnectStorageServerVDSCommand(HostName = 
another-server.foo.com, 
StorageServerConnectionManagementVDSParameters:{hostId='7d202bc7-002b-4426-8446-99b6b346874e',
 storagePoolId='82d0b3de-0334-451c-8321-c3533de9a894', storageType='LOCALFS', 
connectionList='[StorageServerConnections:{id='92444a95-0be7-4589-ac46-1ed6dfe7ed4c',
 connection='/data', iqn='null', vfsType='null', mountOptions='null', 
nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='null', 
netIfaceName='null'}]', sendNetworkEventOnFailure='true'}), log id: 1509fe17


As I said, I tried to execute the script from several hosts: some of them with 
oVirt 4.3 and other with oVirt 4.4 but it can run, or not, on both of versions.

When I try to manage the storage domain via ovirt-engine GUI on the hosts that 
the script exit with the mentioned error, I recieve the following error:

Uncaught exception occurred. Please try reloading the page. Details: 
(TypeError) : Cannot read property 'a' of null
Please have your administrator check the UI logs


Any slightest idea on what is going on?

Thank you for your time and help,
Francesco
_______________________________________________
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/EYKKYPXYUZALYBJ3YBRANW5RBVVFWRBJ/

--
--              
Shellrent - Il primo hosting italiano Security First    
        
*Francesco Lorenzini*
/System Administrator & DevOps Engineer/
Shellrent Srl
Via dell'Edilizia, 19 - 36100 Vicenza
Tel. 0444321155 <tel:+390444321155> | Fax 04441492177

_______________________________________________
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/DZC5SDQOOPYSI46EPSFPLH6MBJQTGAVP/

Reply via email to