[ovirt-users] Re: Problem with following host link for vm list using Java SDK.

2018-07-12 Thread Ondra Machacek

On 07/12/2018 11:25 PM, dchamb...@bugfixer.net wrote:

When trying to do VM list using the 4.2.4 Java SDK against a 4.2.4 engine, I am 
getting an error while trying to follow the host link to get host info. Any 
suggestions on fixing this?

List vms = vmsService.list()
 .follow("host")
 .send().vms();


Check the following example:


https://github.com/oVirt/ovirt-engine-sdk-java/blob/master/sdk/src/test/java/org/ovirt/engine/sdk4/examples/FollowVmLinks.java#L62

If you need host you just need to do:

 Host host = connection.followLink(vm.host());



Exception in thread "main" org.ovirt.engine.sdk4.Error: Failed to send request
 at 
org.ovirt.engine.sdk4.internal.HttpConnection.send(HttpConnection.java:255)
 at 
org.ovirt.engine.sdk4.internal.HttpConnection.send(HttpConnection.java:229)
 at 
org.ovirt.engine.sdk4.internal.services.VmsServiceImpl$ListRequestImpl.send(VmsServiceImpl.java:563)
 at 
org.ovirt.engine.sdk4.internal.services.VmsServiceImpl$ListRequestImpl.send(VmsServiceImpl.java:477)
 at com.foo.ovirt.test.VMList.main(VMList.java:59)
Caused by: org.ovirt.engine.sdk4.Error: The response content type 
'text/html;charset=UTF-8' isn't the expected XML
 at 
org.ovirt.engine.sdk4.internal.HttpConnection.checkContentType(HttpConnection.java:287)
 at 
org.ovirt.engine.sdk4.internal.HttpConnection.send(HttpConnection.java:251)
 ... 4 more
___
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/IGLEJESNPJRX3P7ED6AUEFG7LD2PC6ZL/


___
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/H4NJ72HVVYII3EAZ265Y5L75AIYQBT4H/


[ovirt-users] Problem with following host link for vm list using Java SDK.

2018-07-12 Thread dchambers
When trying to do VM list using the 4.2.4 Java SDK against a 4.2.4 engine, I am 
getting an error while trying to follow the host link to get host info. Any 
suggestions on fixing this?

List vms = vmsService.list()
.follow("host")
.send().vms();

Exception in thread "main" org.ovirt.engine.sdk4.Error: Failed to send request
at 
org.ovirt.engine.sdk4.internal.HttpConnection.send(HttpConnection.java:255)
at 
org.ovirt.engine.sdk4.internal.HttpConnection.send(HttpConnection.java:229)
at 
org.ovirt.engine.sdk4.internal.services.VmsServiceImpl$ListRequestImpl.send(VmsServiceImpl.java:563)
at 
org.ovirt.engine.sdk4.internal.services.VmsServiceImpl$ListRequestImpl.send(VmsServiceImpl.java:477)
at com.foo.ovirt.test.VMList.main(VMList.java:59)
Caused by: org.ovirt.engine.sdk4.Error: The response content type 
'text/html;charset=UTF-8' isn't the expected XML
at 
org.ovirt.engine.sdk4.internal.HttpConnection.checkContentType(HttpConnection.java:287)
at 
org.ovirt.engine.sdk4.internal.HttpConnection.send(HttpConnection.java:251)
... 4 more
___
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/IGLEJESNPJRX3P7ED6AUEFG7LD2PC6ZL/


[ovirt-users] Re: ovirt 4.2.4 installation failures

2018-07-12 Thread Vineet Khandpur
Sorry, more clarification:

2018-07-12 08:45:24,810-0600 DEBUG otopi.context context._executeMethod:128
Stage misc METHOD
otopi.plugins.ovirt_engine_setup.ovirt_engine.network.ovirtproviderovn.Plugin._misc_configure_pro

vider
2018-07-12 08:45:24,810-0600 DEBUG otopi.transaction
transaction._prepare:61 preparing 'File transaction for
'/etc/ovirt-engine/ovirt-provider-ovn-conf.example''
2018-07-12 08:45:24,810-0600 DEBUG otopi.filetransaction
filetransaction.prepare:183 file
'/etc/ovirt-engine/ovirt-provider-ovn-conf.example' missing
2018-07-12 08:45:24,823-0600 DEBUG otopi.transaction
transaction._prepare:61 preparing 'File transaction for
'/etc/ovirt-provider-ovn/conf.d/10-setup-ovirt-provider-ovn.conf''
2018-07-12 08:45:24,823-0600 DEBUG otopi.filetransaction
filetransaction.prepare:183 file
'/etc/ovirt-provider-ovn/conf.d/10-setup-ovirt-provider-ovn.conf' missing
2018-07-12 08:45:24,830-0600 DEBUG
otopi.plugins.ovirt_engine_setup.ovirt_engine.network.ovirtproviderovn
plugin.executeRaw:813 execute: ('keytool', '-import', '-alias',
'ovirt-provider-ovn',
 '-keystore', '/var/lib/ovirt-engine/external_truststore', '-file',
'/etc/pki/ovirt-engine/ca.pem', '-noprompt', '-storepass:env', 'pass'),
executable='None', cwd='None', env={'pass': '**FILT
ERED**'}
2018-07-12 08:45:24,842-0600 DEBUG
otopi.plugins.ovirt_engine_setup.ovirt_engine.network.ovirtproviderovn
plugin.executeRaw:869 execute-result: ('keytool', '-import', '-alias',
'ovirt-provide
r-ovn', '-keystore', '/var/lib/ovirt-engine/external_truststore', '-file',
'/etc/pki/ovirt-engine/ca.pem', '-noprompt', '-storepass:env', 'pass'),
exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 856, in
executeRaw
preexec_fn=preexec_fn,
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
2018-07-12 08:45:24,844-0600 DEBUG otopi.context context._executeMethod:143
method exception
Traceback (most recent call last):

--
Also:

[root@ovirtdev conf.d]# pwd
/etc/ovirt-provider-ovn/conf.d
[root@ovirtdev conf.d]# ls -al
total 4
drwxr-xr-x. 2 root root  20 Jul 12 08:45 .
drwxr-xr-x. 3 root root  70 Jul 12 08:34 ..
-rw-r--r--. 1 root root 194 Jun  4 08:22 README
[root@ovirtdev conf.d]#



vk

Vineet Khandpur
UNIX System Administrator
Information Technology Services
University of Alberta Libraries
+1-780-492-4718

On 12 July 2018 at 09:17, Vineet Khandpur  wrote:

> cat /var/log/ovirt-engine/setup/ovirt-engine-setup-20180712081855-efeaj4.log
> | grep -v DEBUG
>
> ...
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 856, in
> executeRaw
> preexec_fn=preexec_fn,
>   File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
> errread, errwrite)
>   File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/otopi/context.py", line 133, in
> _executeMethod
> method['method']()
>   File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-
> engine-setup/ovirt-engine/network/ovirtproviderovn.py", line 877, in
> _misc_configure_provider
> self._upate_external_providers_keystore()
>   File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-
> engine-setup/ovirt-engine/network/ovirtproviderovn.py", line 747, in
> _upate_external_providers_keystore
> 'pass': truststore_password,
>   File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-
> engine-setup/ovirt-engine/network/ovirtproviderovn.py", line 507, in
> _execute_command
> env=env,
>   File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 912, in
> execute
> **kwargs
>   File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 856, in
> executeRaw
> preexec_fn=preexec_fn,
>   File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
> errread, errwrite)
>   File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
> 2018-07-12 08:45:24,846-0600 ERROR otopi.context
> context._executeMethod:152 Failed to execute stage 'Misc configuration':
> [Errno 2] No such file or directory
> 2018-07-12 08:45:24,846-0600 INFO otopi.plugins.otopi.packagers.yumpackager
> yumpackager.info:80 Yum Performing yum transaction rollback
>  
>
>
>
>
>
> vk
> 
> Vineet Khandpur
> UNIX System Administrator
> Information Technology Services
> University of Alberta Libraries
> +1-780-492-4718
>
> On 12 July 2018 at 08:46, Vineet Khandpur  wrote:
>
>> Building a snadbox ovirt environment on CentOS 7.5.1804
>> Install fails at Creating CA stage:
>>
>> [ INFO

[ovirt-users] Re: ovirt 4.2.4 installation failures

2018-07-12 Thread Vineet Khandpur
cat /var/log/ovirt-engine/setup/ovirt-engine-setup-20180712081855-efeaj4.log
| grep -v DEBUG

...
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 856, in
executeRaw
preexec_fn=preexec_fn,
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 133, in
_executeMethod
method['method']()
  File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py",
line 877, in _misc_configure_provider
self._upate_external_providers_keystore()
  File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py",
line 747, in _upate_external_providers_keystore
'pass': truststore_password,
  File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py",
line 507, in _execute_command
env=env,
  File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 912, in
execute
**kwargs
  File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 856, in
executeRaw
preexec_fn=preexec_fn,
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
2018-07-12 08:45:24,846-0600 ERROR otopi.context context._executeMethod:152
Failed to execute stage 'Misc configuration': [Errno 2] No such file or
directory
2018-07-12 08:45:24,846-0600 INFO otopi.plugins.otopi.packagers.yumpackager
yumpackager.info:80 Yum Performing yum transaction rollback
 





vk

Vineet Khandpur
UNIX System Administrator
Information Technology Services
University of Alberta Libraries
+1-780-492-4718

On 12 July 2018 at 08:46, Vineet Khandpur  wrote:

> Building a snadbox ovirt environment on CentOS 7.5.1804
> Install fails at Creating CA stage:
>
> [ INFO  ] Configuring PostgreSQL
> [ INFO  ] Creating CA
> [ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such
> file or directory
> [ INFO  ] Yum Performing yum transaction rollback
> [ INFO  ] Stage: Clean up
>   Log file is located at /var/log/ovirt-engine/setup/
> ovirt-engine-setup-20180712081855-efeaj4.log
> [ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/
> answers/20180712082036-setup.conf'
> [ INFO  ] Stage: Pre-termination
> [ INFO  ] Stage: Termination
> [ ERROR ] Execution of setup failed
>
> /etc/pki/ovirt-engine missing several files after install (compared to our
> prod and test systems)
>
> Did something change with the installation re. cert creation? Or am I
> missing something obvious?
> [note: default answers to installation questions]
>
> Thanks.
> vk
> 
> Vineet Khandpur
> UNIX System Administrator
> Information Technology Services
> University of Alberta Libraries
> +1-780-492-4718
>
___
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/HPEM7STXUKFEKRVQ6SPSBRGFE3EQZ5YM/


[ovirt-users] Re: NFS Mount on EMC VNXe3200 / User - Group 36:36 / Permission issue

2018-07-12 Thread jeanbaptiste.coupiac
Hello,

 

Luca gave me an answer in direct for the NFS mount :

_

you can simply mount the empty volume manually on a path, saying 
/tmp/nfsvolume, and then change owner with chown 36:36 /tmp/nfsvolume.

Then you can mount without issues.

_

 

It worked perfectly, NFS share is ok now 😊

 

Thanks for help

 

De : Karli Sjöberg [mailto:ka...@inparadise.se] 
Envoyé : mercredi 11 juillet 2018 17:50
À : jeanbaptiste coupiac 
Cc : users@ovirt.org
Objet : Re: [ovirt-users]NFS Mount on EMC VNXe3200 / User - Group 36:36 / 
Permission issue

 

 

 

On Jul 11, 2018 17:36, jeanbaptiste coupiac mailto:jeanbaptiste.coup...@nfrance.com> > wrote:

Hello,

 

I try to mount an NFS Data share from a EMC VNXe3200 export. Unfortunately, NFS 
share cannot be mount, there is permission error. 

(Indeed, after the same issue on another NFS ISO repo, I’ve change exported 
directory user/group to 36:36, and O-Virt NFS mount was great).

 

So, I think issue with my VNXe3200 is regarding UID / GID owner on VNXe3200 
side. After webex with EMC support, change owner / permission on VNXe side 
seems not possible / supported.

 

Are you able to mount the export manually in any server and do 'chown' to 36:36 
there?

 

/K

 

Can I mount the NFS share with some options to avoid vdsm:kvm mounting issue ? 
Can I force mount with root ?

 

Regards,

 

Jean-Baptiste COUPIAC

 



 

 



___
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/NKQ3MBUHWMCRH23NOXQNWOD7VIYYSUOT/

 

___
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/CGNWD4L4LBYDZCQO45M5TL6TEMV2W7G4/


[ovirt-users] Installing ovirt 3.6 on centOS 6.9 error

2018-07-12 Thread dinushawww
Hi,

After install ovirt 3.5 on centOS 6.9, the ovirt engine has stopped. while
trying to start ovirt-engine it will say /usr/share/jboss-as not found. i
manually download jboss 7.1.1 final and installed in /usr/share and again
start the oviert-engine, this time it will start and then run the command
service ovirt-engine status, ovirt-engine stopped, pid file exist. please
help me to solve. i need to crate a lab using ovirt 3.5.
Thank You
Dinusha
___
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/JKDBSAEWLVLX32IQ7GKYEZ3YI5OOR7QU/


[ovirt-users] ovirt 4.2.4 installation failures

2018-07-12 Thread Vineet Khandpur
Building a snadbox ovirt environment on CentOS 7.5.1804
Install fails at Creating CA stage:

[ INFO  ] Configuring PostgreSQL
[ INFO  ] Creating CA
[ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such
file or directory
[ INFO  ] Yum Performing yum transaction rollback
[ INFO  ] Stage: Clean up
  Log file is located at
/var/log/ovirt-engine/setup/ovirt-engine-setup-20180712081855-efeaj4.log
[ INFO  ] Generating answer file
'/var/lib/ovirt-engine/setup/answers/20180712082036-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed

/etc/pki/ovirt-engine missing several files after install (compared to our
prod and test systems)

Did something change with the installation re. cert creation? Or am I
missing something obvious?
[note: default answers to installation questions]

Thanks.
vk

Vineet Khandpur
UNIX System Administrator
Information Technology Services
University of Alberta Libraries
+1-780-492-4718
___
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/TLTTRPBBTIOUJ2VC7E5NTQI3RMDMQ6A7/


[ovirt-users] Re: Hosted engine unaviable after storage rebuild

2018-07-12 Thread Simone Tiraboschi
On Wed, Jul 11, 2018 at 7:55 AM  wrote:

> Hello all,
> My hosted engine does not start up anymore, because the node can't reach
> the storage.
>
> The hosted engine configuration has not been retrieved from shared
> storage. Please ensure that ovirt-ha-agent is running and the storage
> server is reachable.
>
> What happend is that my NAS crashed and I had to rebuild it from the
> backup. I'm quit sure that I called all the NFS shares the same way as
> they  bevore the issue.
>
> How can I figure out whats the issue with the storage?
> The logs wheren't realy helpful for me (but may it's me and not the logs
> to blame)
>

You have to check /var/log/ovirt-hosted-engine-ha/broker.log and
/var/log/vdsm/vdsm.log for errors about mounting your NFS share.
Did you tried manually mounting it?


>
> Regards and thanks
> Sebi
> ___
> 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/2TWEIRH45T6C3DOK7IEDLY7ZIWS6XX5C/
>
___
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/KZH3JITVQHDSQ7KKU4KRYARPXANSD242/


[ovirt-users] Issue when updating node to 4.2.4

2018-07-12 Thread Callum Smith
Error in the scripts as part of doing a yum update on the host:


/var/log/messages
Jul 12 12:07:00 virtA003 imgbased: 2018-07-12 12:07:00,170 [INFO] (MainThread) 
Extracting image 
'/usr/share/ovirt-node-ng/image//ovirt-node-ng-4.2.0-0.20180626.0.el7.squashfs.img'
Jul 12 12:07:00 virtA003 kernel: EXT4-fs (loop3): mounted filesystem with 
ordered data mode. Opts: (null)
Jul 12 12:07:00 virtA003 imgbased: 2018-07-12 12:07:00,295 [INFO] (MainThread) 
Starting base creation
Jul 12 12:07:00 virtA003 imgbased: 2018-07-12 12:07:00,295 [INFO] (MainThread) 
New base will be: ovirt-node-ng-4.2.4-0.20180626.0
Jul 12 12:07:00 virtA003 python: detected unhandled Python exception in 
'/tmp/tmp.awWEfeJStR/usr/lib/python2.7/site-packages/imgbased/__main__.py'
Jul 12 12:07:00 virtA003 abrt-server: Executable 
'/tmp/tmp.awWEfeJStR/usr/lib/python2.7/site-packages/imgbased/__main__.py' 
doesn't belong to any package and ProcessUnpackaged is set to 'no'
Jul 12 12:07:00 virtA003 abrt-server: 'post-create' on 
'/var/tmp/abrt/Python-2018-07-12-12:07:00-4688' exited with 1
Jul 12 12:07:00 virtA003 abrt-server: Deleting problem directory 
'/var/tmp/abrt/Python-2018-07-12-12:07:00-4688'
Jul 12 12:07:00 virtA003 yum[4558]: Updated: 
ovirt-node-ng-image-update-4.2.4-1.el7.noarch

/tmp/imgbased.log

2018-07-12 12:07:00,166 [DEBUG] (MainThread) Version: imgbased-1.0.20
2018-07-12 12:07:00,170 [DEBUG] (MainThread) Arguments: 
Namespace(FILENAME='/usr/share/ovirt-node-ng/image//ovirt-node-ng-4.2.0-0.20180626.0.el7.squashfs.img',
 command='update', debug=True, experimental=False, format='liveimg', 
stream='Image')
2018-07-12 12:07:00,170 [INFO] (MainThread) Extracting image 
'/usr/share/ovirt-node-ng/image//ovirt-node-ng-4.2.0-0.20180626.0.el7.squashfs.img'
2018-07-12 12:07:00,170 [DEBUG] (MainThread) Calling binary: (['mktemp', '-d', 
'--tmpdir', 'mnt.X'],) {}
2018-07-12 12:07:00,170 [DEBUG] (MainThread) Calling: (['mktemp', '-d', 
'--tmpdir', 'mnt.X'],) {'close_fds': True, 'stderr': -2}
2018-07-12 12:07:00,173 [DEBUG] (MainThread) Returned: /tmp/mnt.qTRik
2018-07-12 12:07:00,173 [DEBUG] (MainThread) Calling binary: (['mount', 
'/usr/share/ovirt-node-ng/image//ovirt-node-ng-4.2.0-0.20180626.0.el7.squashfs.img',
 u'/tmp/mnt.qTRik'],) {}
2018-07-12 12:07:00,174 [DEBUG] (MainThread) Calling: (['mount', 
'/usr/share/ovirt-node-ng/image//ovirt-node-ng-4.2.0-0.20180626.0.el7.squashfs.img',
 u'/tmp/mnt.qTRik'],) {'close_fds': True, 'stderr': -2}
2018-07-12 12:07:00,180 [DEBUG] (MainThread) Returned:
2018-07-12 12:07:00,180 [DEBUG] (MainThread) Mounted squashfs
2018-07-12 12:07:00,180 [DEBUG] (MainThread) Found fsimage at 
'/tmp/mnt.qTRik/LiveOS/rootfs.img'
2018-07-12 12:07:00,180 [DEBUG] (MainThread) Calling binary: (['mktemp', '-d', 
'--tmpdir', 'mnt.X'],) {}
2018-07-12 12:07:00,181 [DEBUG] (MainThread) Calling: (['mktemp', '-d', 
'--tmpdir', 'mnt.X'],) {'close_fds': True, 'stderr': -2}
2018-07-12 12:07:00,184 [DEBUG] (MainThread) Returned: /tmp/mnt.SIk9q
2018-07-12 12:07:00,184 [DEBUG] (MainThread) Calling binary: (['mount', 
u'/tmp/mnt.qTRik/LiveOS/rootfs.img', u'/tmp/mnt.SIk9q'],) {}
2018-07-12 12:07:00,184 [DEBUG] (MainThread) Calling: (['mount', 
u'/tmp/mnt.qTRik/LiveOS/rootfs.img', u'/tmp/mnt.SIk9q'],) {'close_fds': True, 
'stderr': -2}
2018-07-12 12:07:00,199 [DEBUG] (MainThread) Returned:
2018-07-12 12:07:00,212 [DEBUG] (MainThread) Using nvr: 
ovirt-node-ng-4.2.4-0.20180626.0
2018-07-12 12:07:00,212 [DEBUG] (MainThread) Fetching image for '/'
2018-07-12 12:07:00,212 [DEBUG] (MainThread) Calling binary: (['findmnt', 
'--noheadings', '-o', 'SOURCE', '/'],) {}
2018-07-12 12:07:00,212 [DEBUG] (MainThread) Calling: (['findmnt', 
'--noheadings', '-o', 'SOURCE', '/'],) {'close_fds': True, 'stderr': -2}
2018-07-12 12:07:00,217 [DEBUG] (MainThread) Returned: 
/dev/mapper/onn_virta003-ovirt--node--ng--4.2.3.1--0.20180530.0+1
2018-07-12 12:07:00,218 [DEBUG] (MainThread) Found 
'/dev/mapper/onn_virta003-ovirt--node--ng--4.2.3.1--0.20180530.0+1'
2018-07-12 12:07:00,218 [DEBUG] (MainThread) Calling binary: (['lvs', 
'--noheadings', '--ignoreskippedcluster', '-ovg_name,lv_name', 
u'/dev/mapper/onn_virta003-ovirt--node--ng--4.2.3.1--0.20180530.0+1'],) 
{'stderr': }
2018-07-12 12:07:00,218 [DEBUG] (MainThread) Calling: (['lvs', '--noheadings', 
'--ignoreskippedcluster', '-ovg_name,lv_name', 
u'/dev/mapper/onn_virta003-ovirt--node--ng--4.2.3.1--0.20180530.0+1'],) 
{'close_fds': True, 'stderr': }
2018-07-12 12:07:00,248 [DEBUG] (MainThread) Returned: onn_virta003 
ovirt-node-ng-4.2.3.1-0.20180530.0+1
2018-07-12 12:07:00,248 [DEBUG] (MainThread) Found LV for path 
/dev/mapper/onn_virta003-ovirt--node--ng--4.2.3.1--0.20180530.0+1: onn_virta003 
ovirt-node-ng-4.2.3.1-0.20180530.0+1
2018-07-12 12:07:00,248 [DEBUG] (MainThread) Found LV 
'ovirt-node-ng-4.2.3.1-0.20180530.0+1' for path 
'/dev/mapper/onn_virta003-ovirt--node--ng--4.2.3.1--0.20180530.0+1'
2018-07-12 12:07:00,249 [DEBUG] (MainThread) Calling binary: (['vgs', 
'--noheadings', '--i

[ovirt-users] Using the web-ui VM portal through a proxy failing

2018-07-12 Thread Callum Smith
Dear oVirt Gurus,

Using the oVirt user VM portal seems to not work through the squid proxy setup 
(configured as per the guide). The page loads and login works fine through the 
proxy, but the asynchronous requests just hang. I've attached a screenshot, but 
you can see the "api" endpoint just hanging in a web inspector:
"https://proxyfqdn/ovirt-engine/api/";

[cid:CA42E493-3AD9-45F8-B4C3-C914F059390C@well.ox.ac.uk]

This works fine when not going through the proxy.

Is there a way to force noVNC HTML as the console mode through the web-ui, or 
at least have it as an option if not default?

The console seems not to work when logged in with a base 'user role'.

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
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/VZIGGZZ2IIHBZ65QCX5PLB65DEMRQD4X/


[ovirt-users] ovirt 3.5 fail to start on centOS 6.9

2018-07-12 Thread dinushawww
Hi,
After installing ovirt 3.5 on centOS6.9 the ovirt-engine has stopped. while 
restarting the engine the error comes "/usr/share/jboss-as" not found. I 
installed jboss-as7.7.7final and again restart ovirt-engine. now it says 
ovirt-engine started, but when i checj the status, it shows ovirt-engine 
stopped, but PID file exist. Please help me to solve this. because i want to 
crate a lab using 3.5 for my exam.
Thank You
Dinusha
___
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/NFF5W7M4IGGMTQNCJ5H247X2W7JSSYFQ/


[ovirt-users] Re: Python-SDK4: Check snapshot deletion result?

2018-07-12 Thread Benny Zlotnik
Perhaps you can query the status of job using the correlation id (taking
the examples from ovirt-system-tests):
  dead_snap1_params = types.Snapshot(
description=SNAPSHOT_DESC_1,
persist_memorystate=False,
disk_attachments=[
types.DiskAttachment(
disk=types.Disk(
id=disk.id
)
)
]
)
correlation_id = uuid.uuid4()

vm1_snapshots_service.add(dead_snap1_params,
  query={'correlation_id': correlation_id})

testlib.assert_true_within_long(
lambda:
test_utils.all_jobs_finished(engine, correlation_id)
)

All jobs finished checks that jobs with correlation_id have finished, it is
implemented like this[2]:
def all_jobs_finished(engine, correlation_id):
try:
jobs = engine.jobs_service().list(
search='correlation_id=%s' % correlation_id
)
except:
jobs = engine.jobs_service().list()
return all(job.status != types.JobStatus.STARTED for job in jobs)


You can instead do something like this:
 jobs = engine.jobs_service().list(
search='correlation_id=%s' % correlation_id
)

return any(job.status == types.JobStatus.FAILED for job in jobs)





[1] -
https://github.com/oVirt/ovirt-system-tests/blob/master/basic-suite-master/test-scenarios/004_basic_sanity.py#L353
[2] -
https://github.com/oVirt/ovirt-system-tests/blob/master/basic-suite-master/test_utils/__init__.py#L209

On Thu, Jul 12, 2018 at 10:28 AM  wrote:

> Hi Ondra,
>
> El 2018-07-12 08:02, Ondra Machacek escribió:
> > On 07/11/2018 10:10 AM, nico...@devels.es wrote:
> >> Hi,
> >>
> >> We're using ovirt-engine-sdk-python 4.1.6 on oVirt 4.1.9, currently
> >> we're trying to delete some snapshots via a script like this:
> >>
> >>  sys_serv = conn.system_service()
> >>  vms_service = sys_serv.vms_service()
> >>  vm_service = vms_service.vm_service(vmid)
> >>  snaps_service = vm_service.snapshots_service()
> >>  snaps_service.service('SNAPSHOT-ID').remove()
> >
> > In case of failure this line should raise Error, so you should know it
> > failed.
> >
>
> It doesn't, actually. This call is asynchronous, and the snapshot
> deletion seems to fail after about 10 seconds, so initially it seems to
> be correct but fails afterwards, that's why I need a way to check if the
> task ended correctly or not.
>
> >>
> >> This works, mostly... however, sometimes the deletion fails:
> >>
> >>  Failed to delete snapshot 'snapshot name' for VM 'vm'.
> >>
> >> Is it currently possible to know via Python-SDK that the deletion
> >> actually failed? I know I can check the state of a snapshot, but I'd
> >> like to check the result of the task. Is that possible somehow?
> >>
> >> Thanks.
> >> ___
> >> Users mailing list -- users@ovirt.org
> >> To unsubscribe send an email to users-le...@ovirt.org
> >> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> >> oVirt Code of Conduct:
> >> https://www.ovirt.org/community/about/community-guidelines/
> >> List Archives:
> >>
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/AFGSUUJ3RNWX6H66RRGDPFLM6YEL577F/
> ___
> 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/XFPROJO4XHL36SJIQIYAAXUTPI6N4IIS/
>
___
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/W66ZNEDVIFCC3K56QHVHGEOP5ZGXAU4Z/


[ovirt-users] Re: Unable to start VM - Image is not a legal chain

2018-07-12 Thread Alex K
Thank you Nicolas.
I will keep this for future reference in case I encounter this again. Now I
don't have the corrupted VM to experiment.

Thanx,
Alex

On Wed, Jul 11, 2018 at 11:28 AM,  wrote:

> Hi Alex,
>
> We had a bigger problem recently which involved the error you mention. I
> sent it to the mail list and you can find the final solution we chose at
> [1]. Not the cleanest solution of course, but we managed to recover all
> VMs... I think in your case the relevant part is the one that mention the
> "vdsClient setVolumeLegality" command, although I don't know the root
> reason why you're getting the error (might be a corrupt snapshot, as in our
> case)...
>
> Hope this helps.
>
>   [1]: https://www.mail-archive.com/users@ovirt.org/msg49300.html
>
>
> El 2018-07-11 09:16, Alex K escribió:
>
>> Due to urgency of the case, I fetched the backup copy from weekend and
>> proceeded to push missing data to VM (the VM is a git repo). I lost
>> few notes, though not much damage was done...
>> I'm starting to feel uncomfortable with this solution though and might
>> switch (at least the production VMs) to plain KVM where I had never
>> experienced such issues.
>>
>> Alex
>>
>> On Wed, Jul 11, 2018 at 7:27 AM, Yedidyah Bar David 
>> wrote:
>>
>> (Changing subject, adding Freddy)
>>>
>>> On Tue, Jul 10, 2018 at 8:06 PM, Alex K 
>>> wrote:
>>>
>>> Hi all,

 I did a routine maintenance today (updating the hosts) to ovirt
 cluster (4.2) and I have one VM that was complaining about an
 invalid snapshot. After shutdown of VM the VM is not able to start
 again, giving the error:

 VM Gitlab is down with error. Exit message: Bad volume
 specification {'serial': 'b6af2856-a164-484a-afe5-9836bbdd14e8',
 'index': 0, 'iface': 'virtio', 'apparentsize': '51838976',
 'specParams': {}, 'cache': 'none', 'imageID':
 'b6af2856-a164-484a-afe5-9836bbdd14e8', 'truesize': '52011008',
 'type': 'disk', 'domainID':
 '142bbde6-ef9d-4a52-b9da-2de533c1f1bd', 'reqsize': '0', 'format':
 'cow', 'poolID': '0001-0001-0001-0001-0311', 'device':
 'disk', 'path':


>>> '/rhev/data-center/0001-0001-0001-0001-0311/142b
>> bde6-ef9d-4a52-b9da-2de533c1f1bd/images/b6af2856-a164-484a-
>> afe5-9836bbdd14e8/f3125f62-c909-472f-919c-844e0b8c156d',
>>
>>> 'propagateErrors': 'off', 'name': 'vda', 'bootOrder': '1',
 'volumeID': 'f3125f62-c909-472f-919c-844e0b8c156d', 'diskType':
 'file', 'alias': 'ua-b6af2856-a164-484a-afe5-9836bbdd14e8',
 'discard': False}.

 I see also the following error:

 VDSM command CopyImageVDS failed: Image is not a legal chain:
 (u'b6af2856-a164-484a-afe5-9836bbdd14e8',)

>>>
>>> This error appears a few more times in the list's archive, all of
>>> which seem to be related to rather-old bugs (3.5/3.6 times) or
>>> storage problems. I assume you use 4.2. Are you sure the corruption
>>> happened only now? Did working with snapshots worked well before the
>>> upgrade?
>>>
>>>
>>>
>>> Seems as a corrupt VM disk?

>>>
>>> Seems so to me, but I am not a storage expert.
>>>
>>>
>>>
>>> The VM had 3 snapshots. I was able to delete one from GUI then am
 not able to delete the other two as the task fails. Generally I am
 not allowed to clone, export or do sth to the VM.


>>>
>>> Have you encountered sth similar. Any advice?

>>>
>>> The lastest post, from 2016, included a workaround, you might (very
>>> carefully!) try that.
>>>
>>> I suggest to also open a bug and attach all relevant logs (engine,
>>> vdsm from all relevant hosts, including SPMs at time of snapshot
>>> operations and any other host that ran the VM), and try to give
>>> accurate reproduction steps.
>>>
>>> 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/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/messag
>> e/VYR4KMOZVEQOJ5CBTFJMRYY7XAF5YAPP/
>>
> ___
> 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/communit
> y/about/community-guidelines/
> List Archives: https://lists.ovirt.org/archiv
> es/list/users@ovirt.org/message/Q4TUEIMBIHO6BX5JQQQSVC2RFD6IRAQG/
>
___
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/mes

[ovirt-users] Re: Python-SDK4: Check snapshot deletion result?

2018-07-12 Thread nicolas

Hi Ondra,

El 2018-07-12 08:02, Ondra Machacek escribió:

On 07/11/2018 10:10 AM, nico...@devels.es wrote:

Hi,

We're using ovirt-engine-sdk-python 4.1.6 on oVirt 4.1.9, currently 
we're trying to delete some snapshots via a script like this:


     sys_serv = conn.system_service()
     vms_service = sys_serv.vms_service()
     vm_service = vms_service.vm_service(vmid)
     snaps_service = vm_service.snapshots_service()
     snaps_service.service('SNAPSHOT-ID').remove()


In case of failure this line should raise Error, so you should know it
failed.



It doesn't, actually. This call is asynchronous, and the snapshot 
deletion seems to fail after about 10 seconds, so initially it seems to 
be correct but fails afterwards, that's why I need a way to check if the 
task ended correctly or not.




This works, mostly... however, sometimes the deletion fails:

     Failed to delete snapshot 'snapshot name' for VM 'vm'.

Is it currently possible to know via Python-SDK that the deletion 
actually failed? I know I can check the state of a snapshot, but I'd 
like to check the result of the task. Is that possible somehow?


Thanks.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/AFGSUUJ3RNWX6H66RRGDPFLM6YEL577F/

___
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/XFPROJO4XHL36SJIQIYAAXUTPI6N4IIS/


[ovirt-users] Re: Python-SDK4: Check snapshot deletion result?

2018-07-12 Thread Ondra Machacek

On 07/11/2018 10:10 AM, nico...@devels.es wrote:

Hi,

We're using ovirt-engine-sdk-python 4.1.6 on oVirt 4.1.9, currently 
we're trying to delete some snapshots via a script like this:


     sys_serv = conn.system_service()
     vms_service = sys_serv.vms_service()
     vm_service = vms_service.vm_service(vmid)
     snaps_service = vm_service.snapshots_service()
     snaps_service.service('SNAPSHOT-ID').remove()


In case of failure this line should raise Error, so you should know it
failed.



This works, mostly... however, sometimes the deletion fails:

     Failed to delete snapshot 'snapshot name' for VM 'vm'.

Is it currently possible to know via Python-SDK that the deletion 
actually failed? I know I can check the state of a snapshot, but I'd 
like to check the result of the task. Is that possible somehow?


Thanks.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/AFGSUUJ3RNWX6H66RRGDPFLM6YEL577F/ 


___
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/LM7C5WTUC63WIDYX37OKCG7FCBPFNTA6/