Re: [ovirt-users] Live migration of VM(0 downtime) while Hypervisor goes down in ovirt

2018-02-09 Thread Ranjith P
Hi,
>>Who's shutting down the hypervisor? (Or perhaps it is shutdown externally, 
>>due to overheating or otherwise?)
We need a continuous availability of VM's in our production setup. If the 
hypervisor goes down due to any hardware failure or work load then VM's above 
hypervisor will reboot and started on available hypervisors. This is normally 
happening but it disrupting VM's. Can you suggest a solution in this case? Can 
we achieve this challenge using glusterfs?
Thanks & RegardsRanjith

Sent from Yahoo Mail on Android 
 
  On Sat, Feb 10, 2018 at 2:07 AM, Yaniv Kaul wrote:   

On Fri, Feb 9, 2018 at 9:25 PM, ranjithsp...@yahoo.com  
wrote:

Hi,Anyone can suggest how to setup VM Live migration (without restart vm) while 
Hypervisor goes down in ovirt?

I think there are two parts to achieving this:1. Have a script that migrates 
VMs off a specific host. This should be easy to write using the 
Python/Ruby/Java SDK, Ansible or using REST directly.2. Having this script run 
as a service when a host shuts down, in the right order - well before libvirt 
and VDSM shut down, and would be fast enough not to be terminated by 
systemd.This is a bit more challenging.
Who's shutting down the hypervisor? (Or perhaps it is shutdown externally, due 
to overheating or otherwise?)Y. 
Using glusterfs is it possible? Then how?
Thanks & RegardsRanjith

Sent from Yahoo Mail on Android
__ _
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


Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-09 Thread reznikov_aa

Simone Tiraboschi писал 2018-02-09 15:17:


It shouldn't happen.
I suspect that something went wrong creating the configuration volume
on the shared storage at the end of the deployment.

Alexei, can both of you attach you hosted-engine-setup logs?
Can you please check what happens on
  hosted-engine --get-shared-config gateway

Thanks



Simone, my ovirt cluster upgrade from 3.4... and i have too old logs.

I'm confused by the execution of the hosted-engine --get-shared-config 
gateway ...
I get the output "gateway: 10.245.183.1, type: he_conf", but my current 
hosted-engine.conf is overwritten by the other hosted-engine.conf.


old file:

fqdn = eng.lan
vm_disk_id = e9d7a377-e109-4b28-9a43-7a8c8b603749
vmid = ccdd675a-a58b-495a-9502-3e6a4b7e5228
storage = ssd.lan:/ovirt
service_start_time = 0
host_id = 3
console = vnc
domainType = nfs3
sdUUID = 8905c9ac-d892-478d-8346-63b8fa1c5763
connectionUUID = ce84071b-86a2-4e82-b4d9-06abf23dfbc4
ca_cert =/etc/pki/vdsm/libvirt-spice/ca-cert.pem
ca_subject = "C = EN, L = Test, O = Test, CN = Test"
vdsm_use_ssl = true
gateway = 10.245.183.1
bridge = ovirtmgmt
metadata_volume_UUID =
metadata_image_UUID =
lockspace_volume_UUID =
lockspace_image_UUID =

The following are used only for iSCSI storage
iqn =
portal =
user =
password =
port =

conf_volume_UUID = a20d9700-1b9a-41d8-bb4b-f2b7c168104f
conf_image_UUID = b5f353f5-9357-4aad-b1a3-751d411e6278
conf = /var/run/ovirt-hosted-engine-ha/vm.conf
vm_disk_vol_id = cd12a59e-7d84-4b4e-98c7-4c68e83ecd7b
spUUID = ----

new rewrite file

fqdn = eng.lan
vm_disk_id = e9d7a377-e109-4b28-9a43-7a8c8b603749
vmid = ccdd675a-a58b-495a-9502-3e6a4b7e5228
storage = ssd.lan:/ovirt
conf = /etc/ovirt-hosted-engine/vm.conf
service_start_time = 0
host_id = 3
console = vnc
domainType = nfs3
spUUID = 036f83d7-39f7-48fd-a73a-3c9ffb3dbe6a
sdUUID = 8905c9ac-d892-478d-8346-63b8fa1c5763
connectionUUID = ce84071b-86a2-4e82-b4d9-06abf23dfbc4
ca_cert =/etc/pki/vdsm/libvirt-spice/ca-cert.pem
ca_subject = "C = EN, L = Test, O = Test, CN = Test"
vdsm_use_ssl = true
gateway = 10.245.183.1
bridge = ovirtmgmt
metadata_volume_UUID =
metadata_image_UUID =
lockspace_volume_UUID =
lockspace_image_UUID =

The following are used only for iSCSI storage
iqn =
portal =
user =
password =
port =

And this in all hosts in cluster!
It seems to me that these are some remnants of versions 3.4, 3.5 ...
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Importing Libvirt Kvm Vms to oVirt Status: Released in oVirt 4.2 using ssh - Failed to communicate with the external provider

2018-02-09 Thread maoz zadok
Renout, Thank you! now it works :-) it makes sense.

On Fri, Feb 9, 2018 at 12:03 PM, Renout Gerrits  wrote:

> Hi Maoz,
>
> You should not be using the engine and not the root user for the ssh keys.
> The actions are delegated to a host and the vdsm user. So you should set-up
> ssh keys for the vdsm user on one or all of the hosts (remember to select
> this host as proxy host in the gui). Probably the documentation should be
> updated to make this more clear.
>
> 1. Make the keygen for vdsm user:
>
># sudo -u vdsm ssh-keygen
>
> 2.Do the first login to confirm the fingerprints using "yes":
>
># sudo -u vdsm ssh r...@xxx.xxx.xxx.xxx
>
> 3. Then copy the key to the KVm host running the vm:
>
># sudo -u vdsm ssh-copy-id r...@xxx.xxx.xxx.xxx
>
> 4. Now verify is vdsm can login without password or not:
>
># sudo -u vdsm ssh r...@xxx.xxx.xxx.xxx
>
>
> On Thu, Feb 8, 2018 at 3:12 PM, Petr Kotas  wrote:
>
>> You can generate one :). There are different guides for different
>> platforms.
>>
>> The link I sent is the good start on where to put the keys and how to set
>> it up.
>>
>> Petr
>>
>> On Thu, Feb 8, 2018 at 3:09 PM, maoz zadok  wrote:
>>
>>> Using the command line on the engine machine (as root) works fine. I
>>> don't use ssh key from the agent GUI but the authentication section (with
>>> root user and password),
>>> I think that it's a bug, I manage to migrate with TCP but I just want to
>>> let you know.
>>>
>>> is it possible to use ssh-key from the agent GUI? how can I get the key?
>>>
>>> On Thu, Feb 8, 2018 at 2:51 PM, Petr Kotas  wrote:
>>>
 Hi Maoz,

 it looks like cannot connect due to wrong setup of ssh keys. Which
 linux are you using?
 The guide for setting the ssh connection to  libvirt is here:
 https://wiki.libvirt.org/page/SSHSetup

 May it helps?

 Petr

 On Wed, Feb 7, 2018 at 10:53 PM, maoz zadok  wrote:

> Hello there,
>
> I'm following https://www.ovirt.org/develop/
> release-management/features/virt/KvmToOvirt/ guide in order to import
> VMS from Libvirt to oVirt using ssh.
>  URL:  "qemu+ssh://host1.example.org/system"
>
> and get the following error:
> Failed to communicate with the external provider, see log for
> additional details.
>
>
> *oVirt agent log:*
>
> *- Failed to retrieve VMs information from external server
> qemu+ssh://XXX.XXX.XXX.XXX/system*
> *- VDSM XXX command GetVmsNamesFromExternalProviderVDS failed: Cannot
> recv data: Host key verification failed.: Connection reset by peer*
>
>
>
> *remote host sshd DEBUG log:*
> *Feb  7 16:38:29 XXX sshd[110005]: Connection from XXX.XXX.XXX.147
> port 48148 on XXX.XXX.XXX.123 port 22*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: Client protocol version
> 2.0; client software version OpenSSH_7.4*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: match: OpenSSH_7.4 pat
> OpenSSH* compat 0x0400*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: Local version string
> SSH-2.0-OpenSSH_7.4*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: Enabling compatibility mode
> for protocol 2.0*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: SELinux support disabled
> [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: permanently_set_uid: 74/74
> [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: list_hostkey_types:
> ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 
> [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: SSH2_MSG_KEXINIT sent
> [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: SSH2_MSG_KEXINIT received
> [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: kex: algorithm:
> curve25519-sha256 [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: kex: host key algorithm:
> ecdsa-sha2-nistp256 [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: kex: client->server cipher:
> chacha20-poly1...@openssh.com  MAC:
>  compression: none [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: kex: server->client cipher:
> chacha20-poly1...@openssh.com  MAC:
>  compression: none [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: kex: curve25519-sha256
> need=64 dh_need=64 [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: kex: curve25519-sha256
> need=64 dh_need=64 [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: expecting
> SSH2_MSG_KEX_ECDH_INIT [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: rekey after 134217728
> blocks [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: SSH2_MSG_NEWKEYS sent
> [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: expecting SSH2_MSG_NEWKEYS
> [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: Connection closed by
> XXX.XXX.XXX.147 port 48148 [preauth]*
> *Feb  7 16:38:29 XXX sshd[110005]: debug1: do_clea

Re: [ovirt-users] Live migration of VM(0 downtime) while Hypervisor goes down in ovirt

2018-02-09 Thread Christopher Cox

On 02/09/2018 01:25 PM, ranjithsp...@yahoo.com wrote:

Hi,
Anyone can suggest how to setup VM Live migration (without restart vm) 
while Hypervisor goes down in ovirt?

Using glusterfs is it possible? Then how?


Can't speak for glusterfs specifically, but this is how things work.

All nodes know about the storage domains... this is so a different node 
can "take over" in a live migration.  Not necessarily designed for a 
node to go down hard (but let's say the node has problems communicating, 
it might get fenced and live migration begins, and of course, the usual 
maintenance mode would force a live migration) for hard down 
scenarios you might want to look a HA for the VMs.


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


Re: [ovirt-users] Live migration of VM(0 downtime) while Hypervisor goes down in ovirt

2018-02-09 Thread Yaniv Kaul
On Fri, Feb 9, 2018 at 9:25 PM, ranjithsp...@yahoo.com <
ranjithsp...@yahoo.com> wrote:

> Hi,
> Anyone can suggest how to setup VM Live migration (without restart vm)
> while Hypervisor goes down in ovirt?
>

I think there are two parts to achieving this:
1. Have a script that migrates VMs off a specific host. This should be easy
to write using the Python/Ruby/Java SDK, Ansible or using REST directly.
2. Having this script run as a service when a host shuts down, in the right
order - well before libvirt and VDSM shut down, and would be fast enough
not to be terminated by systemd.
This is a bit more challenging.

Who's shutting down the hypervisor? (Or perhaps it is shutdown externally,
due to overheating or otherwise?)
Y.


> Using glusterfs is it possible? Then how?
>
> Thanks & Regards
> Ranjith
>
> Sent from Yahoo Mail on Android
> 
>
> ___
> 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] Live migration of VM(0 downtime) while Hypervisor goes down in ovirt

2018-02-09 Thread ranjithsp...@yahoo.com
Hi,Anyone can suggest how to setup VM Live migration (without restart vm) while 
Hypervisor goes down in ovirt?Using glusterfs is it possible? Then how?
Thanks & RegardsRanjith

Sent from Yahoo Mail on Android___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] 4.2 aaa LDAP setup issue

2018-02-09 Thread Jamie Lawrence
Hello,

I'm bringing up a new 4.2 cluster and would like to use LDAP auth. Our LDAP 
servers are fine and function normally for a number of other services, but I 
can't get this working.

Our LDAP setup requires startTLS and a login. That last bit seems to be where 
the trouble is. After ovirt-engine-extension-aaa-ldap-setup asks for the cert 
and I pass it the path to the same cert used via nslcd/PAM for logging in to 
the host, it replies:

[ INFO  ] Connecting to LDAP using 'ldap://x.squaretrade.com:389'
[ INFO  ] Executing startTLS
[WARNING] Cannot connect using 'ldap://x.squaretrade.com:389': {'info': 
'authentication required', 'desc': 'Server is unwilling to perform'}
[ ERROR ] Cannot connect using any of available options

"Unwilling to perform" makes me think -aaa-ldap-setup is trying something the 
backend doesn't support, but I'm having trouble guessing what that could be 
since the tool hasn't gathered sufficient information to connect yet - it asks 
for a DN/pass later in the script. And the log isn't much more forthcoming.

I double-checked the cert with openssl; it is a valid, PEM-encoded cert.

Before I head in to the code, has anyone seen this? 

Thanks,

-j

- - - - snip - - - - 

Relevant log details:

2018-02-08 15:15:08,625-0800 DEBUG 
otopi.plugins.ovirt_engine_extension_aaa_ldap.ldap.common common._getURLs:281 
URLs: ['ldap://x.squaretrade.com:389']
2018-02-08 15:15:08,626-0800 INFO 
otopi.plugins.ovirt_engine_extension_aaa_ldap.ldap.common 
common._connectLDAP:391 Connecting to LDAP using 'ldap://x.squaretrade.com:389'
2018-02-08 15:15:08,627-0800 INFO 
otopi.plugins.ovirt_engine_extension_aaa_ldap.ldap.common 
common._connectLDAP:442 Executing startTLS
2018-02-08 15:15:08,640-0800 DEBUG 
otopi.plugins.ovirt_engine_extension_aaa_ldap.ldap.common 
common._connectLDAP:445 Perform search
2018-02-08 15:15:08,641-0800 DEBUG 
otopi.plugins.ovirt_engine_extension_aaa_ldap.ldap.common 
common._connectLDAP:459 Exception
Traceback (most recent call last):
  File 
"/usr/share/ovirt-engine-extension-aaa-ldap/setup/bin/../plugins/ovirt-engine-extension-aaa-ldap/ldap/common.py",
 line 451, in _connectLDAP
timeout=60,
  File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 555, in 
search_st
return 
self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout)
  File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 546, in 
search_ext_s
return self.result(msgid,all=1,timeout=timeout)[1]
  File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 458, in 
result
resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)
  File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 462, in 
result2
resp_type, resp_data, resp_msgid, resp_ctrls = 
self.result3(msgid,all,timeout)
  File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 469, in 
result3
resp_ctrl_classes=resp_ctrl_classes
  File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 476, in 
result4
ldap_result = 
self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 99, in 
_ldap_call
result = func(*args,**kwargs)
UNWILLING_TO_PERFORM: {'info': 'authentication required', 'desc': 'Server is 
unwilling to perform'}
2018-02-08 15:15:08,642-0800 WARNING 
otopi.plugins.ovirt_engine_extension_aaa_ldap.ldap.common 
common._connectLDAP:463 Cannot connect using 'ldap://x.squaretrade.com:389': 
{'info': 'authentication required', 'desc': 'Server is unwilling to perform'}
2018-02-08 15:15:08,643-0800 ERROR 
otopi.plugins.ovirt_engine_extension_aaa_ldap.ldap.common 
common._customization_late:787 Cannot connect using any of available options
2018-02-08 15:15:08,644-0800 DEBUG 
otopi.plugins.ovirt_engine_extension_aaa_ldap.ldap.common 
common._customization_late:788 Exception
Traceback (most recent call last):
  File 
"/usr/share/ovirt-engine-extension-aaa-ldap/setup/bin/../plugins/ovirt-engine-extension-aaa-ldap/ldap/common.py",
 line 782, in _customization_late
insecure=insecure,
  File 
"/usr/share/ovirt-engine-extension-aaa-ldap/setup/bin/../plugins/ovirt-engine-extension-aaa-ldap/ldap/common.py",
 line 468, in _connectLDAP
_('Cannot connect using any of available options')
SoftRuntimeError: Cannot connect using any of available options
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Virt-viewer not working over VPN

2018-02-09 Thread Frank Thommen



On 02/09/2018 07:55 PM, Vincent Royer wrote:
Hi, I asked this on the virt-viewer list, but it appears to be dead, so 
my apologies if this isn't the right place for this question.


When I access my vm's locally using virt-viewer on windows clients, 
everything works fine, spice or vnc.


When I access the same vm's remotely over a site-to-site VPN (setup 
between the two firewalls), it fails with an error: unable to connect to 
libvirt with uri: [none].  Similarly I cannot connect in a browser-based 
vnc session (cannot connect to host).


I can resolve the DNS of the server from my remote client (domain 
override in the firewall pointing to the DNS server locally) and 
everything else I do seems completely unaware of the vpn link (SSH, RDP, 
etc).  For example connecting to https://ovirt-enginr.mydomain.com works 
as expected.   The only function not working remotely is virt-viewer.


Any clues would be appreciated!


Probably not all ports have been made accessible for VPN users in your 
internal network. E.g. our VPN setup blocks most ports with the 
exception of the usual SSH and http/s ports.  Hence virt-viewer doesn't 
work.


If you have the possibility, connect to a virtual desktop within your 
organization and run your session there.


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


[ovirt-users] Virt-viewer not working over VPN

2018-02-09 Thread Vincent Royer
Hi, I asked this on the virt-viewer list, but it appears to be dead, so my
apologies if this isn't the right place for this question.

When I access my vm's locally using virt-viewer on windows clients,
everything works fine, spice or vnc.

When I access the same vm's remotely over a site-to-site VPN (setup between
the two firewalls), it fails with an error: unable to connect to libvirt
with uri: [none].  Similarly I cannot connect in a browser-based vnc
session (cannot connect to host).

I can resolve the DNS of the server from my remote client (domain override
in the firewall pointing to the DNS server locally) and everything else I
do seems completely unaware of the vpn link (SSH, RDP, etc).  For example
connecting to https://ovirt-enginr.mydomain.com works as expected.   The
only function not working remotely is virt-viewer.

Any clues would be appreciated!
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-09 Thread Alex K
Hi,

did you select "Deploy" when adding the new host?

See attached.

[image: Inline image 2]

Thanx,
Alex

On Fri, Feb 9, 2018 at 9:53 AM, Reznikov Alexei 
wrote:

> Hi all!
>
> After upgrade from ovirt 4.0 to 4.1, a have trouble add to next
> HostedEngine host to my cluster via webui... host add succesfully and
> become up, but HE not active in this host.
>
> log's from trouble host
> # cat agent.log
> > KeyError: 'Configuration value not found: 
> > file=/etc/ovirt-hosted-engine/hosted-engine.conf,
> key=gateway'
>
> # cat /etc/ovirt-hosted-engine/hosted-engine.conf
> ca_cert=/etc/pki/vdsm/libvirt-spice/ca-cert.pem
> host_id=2
>
> log deploy from engine in attach.
>
> trouble host:
> ovirt-hosted-engine-setup-2.1.4-1.el7.centos.noarch
> ovirt-host-deploy-1.6.7-1.el7.centos.noarch
> vdsm-4.19.45-1.el7.centos.x86_64
> CentOS Linux release 7.4.1708 (Core)
>
> engine host:
> ovirt-release41-4.1.9-1.el7.centos.noarch
> ovirt-engine-4.1.9.1-1.el7.centos.noarch
> CentOS Linux release 7.4.1708 (Core)
>
> Please help me fix it.
>
> Thanx, Alex.
>
>
> ___
> 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


Re: [ovirt-users] Ovirt backups lead to unresponsive VM

2018-02-09 Thread Alex K
Hi all,

In case you need any further logs let me know.
Thanx for the time.

Alex

On Thu, Feb 8, 2018 at 9:41 AM, Alex K  wrote:

> Hi Shani,
>
> Didn't notice that.
> I am attaching later vdsm logs.
>
> Thanx,
> Alex
>
> On Wed, Feb 7, 2018 at 5:31 PM, Shani Leviim  wrote:
>
>> Hi Alex,
>> Sorry for the mail's delay.
>>
>> From a brief look at your logs, I've noticed that the error you've got at
>> the engine's log was logged at 2018-02-03 00:22:56,
>> while your vdsm's log ends at 2018-02-03 00:01:01.
>> Is there a way you can reproduce a fuller vdsm log?
>>
>>
>> *Regards,*
>>
>> *Shani Leviim*
>>
>> On Sat, Feb 3, 2018 at 5:41 PM, Alex K  wrote:
>>
>>> Attaching vdm log from host that trigerred the error, where the Vm that
>>> was being cloned was running at that time.
>>>
>>> thanx,
>>> Alex
>>>
>>> On Sat, Feb 3, 2018 at 5:20 PM, Yaniv Kaul  wrote:
>>>


 On Feb 3, 2018 3:24 PM, "Alex K"  wrote:

 Hi All,

 I have reproduced the backups failure. The VM that failed is named
 Win-FileServer and is a Windows 2016 server 64bit with 300GB of disk.
 During the cloning step the VM went unresponsive and I had to
 stop/start it.
 I am attaching the logs.I have another VM with same OS (named DC-Server
 within the logs) but with smaller disk (60GB) which does not give any error
 when it is cloned.
 I see a line:

 EVENT_ID: VDS_BROKER_COMMAND_FAILURE(10,802), Correlation ID: null,
 Call Stack: null, Custom ID: null, Custom Event ID: -1, Message: VDSM
 v2.sitedomain command SnapshotVDS failed: Message timeout which can be
 caused by communication issues


 I suggest adding relevant vdsm.log as well.
 Y.


 I appreciate any advise why I am facing such issue with the backups.

 thanx,
 Alex

 On Tue, Jan 30, 2018 at 12:49 AM, Alex K 
 wrote:

> Ok. I will reproduce and collect logs.
>
> Thanx,
> Alex
>
> On Jan 29, 2018 20:21, "Mahdi Adnan"  wrote:
>
> I have Windows VMs, both client and server.
> if you provide the engine.log file we might have a look at it.
>
>
> --
>
> Respectfully
> *Mahdi A. Mahdi*
>
> --
> *From:* Alex K 
> *Sent:* Monday, January 29, 2018 5:40 PM
> *To:* Mahdi Adnan
> *Cc:* users
> *Subject:* Re: [ovirt-users] Ovirt backups lead to unresponsive VM
>
> Hi,
>
> I have observed this logged at host when the issue occurs:
>
> VDSM command GetStoragePoolInfoVDS failed: Connection reset by peer
>
> or
>
> VDSM host.domain command GetStatsVDS failed: Connection reset by peer
>
> At engine logs have not been able to correlate.
>
> Are you hosting Windows 2016 server and Windows 10 VMs?
> The weird is that I have same setup on other clusters with no issues.
>
> Thanx,
> Alex
>
> On Sun, Jan 28, 2018 at 9:21 PM, Mahdi Adnan 
> wrote:
>
> Hi,
>
> We have a cluster of 17 nodes, backed by GlusterFS storage, and using
> this same script for backup.
> we have no issues with it so far.
> have you checked engine log file ?
>
>
> --
>
> Respectfully
> *Mahdi A. Mahdi*
>
> --
> *From:* users-boun...@ovirt.org  on behalf
> of Alex K 
> *Sent:* Wednesday, January 24, 2018 4:18 PM
> *To:* users
> *Subject:* [ovirt-users] Ovirt backups lead to unresponsive VM
>
> Hi all,
>
> I have a cluster with 3 nodes, using ovirt 4.1 in a self hosted setup
> on top glusterfs.
> On some VMs (especially one Windows server 2016 64bit with 500 GB of
> disk). Guest agents are installed at VMs. i almost always observe that
> during the backup of the VM the VM is rendered unresponsive (dashboard
> shows a question mark at the VM status and VM does not respond to ping or
> to anything).
>
> For scheduled backups I use:
>
> https://github.com/wefixit-AT/oVirtBackup
>
> The script does the following:
>
> 1. snapshot VM (this is done ok without any failure)
>
> 2. Clone snapshot (this steps renders the VM unresponsive)
>
> 3. Export Clone
>
> 4. Delete clone
>
> 5. Delete snapshot
>
>
> Do you have any similar experience? Any suggestions to address this?
>
> I have never seen such issue with hosted Linux VMs.
>
> The cluster has enough storage to accommodate the clone.
>
>
> Thanx,
>
> Alex
>
>
>
>
>
>

 ___
 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
>>>
>>>
>>
>
_

Re: [ovirt-users] Info about windows guest performance

2018-02-09 Thread Gianluca Cecchi
On Fri, Feb 9, 2018 at 4:25 PM, Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
> Analyzing my command line I see the "-no-hpet" but I dont see the "hv_time"
>
> See below full comand.
>
> Any hints?
>
>
> What OS type do you have set for that VM? Make sure it matches the Windows
> version. That enables the hyperv enlightenments settings
>
> Thanks,
> michal
>

If I edit the VM, in general settings I see "Other OS" as operating system.
In General subtab after selecting the VM  in "Virtual Machines" tab I again
see "Other OS" in "Operating System" and the field "Origin" filled with the
value "VMware"

During virt-v2v it seems it was recognized as Windows 2008 though...

libguestfs: trace: v2v: hivex_value_utf8 = "Windows Server 2008 R2
Enterprise"
libguestfs: trace: v2v: hivex_value_key 11809408

I can send all the log if it can help.
Thanks,
Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Info about windows guest performance

2018-02-09 Thread Michal Skrivanek


> On 9 Feb 2018, at 14:04, Gianluca Cecchi  wrote:
> 
> Hello,
> while in my activities to accomplish migration of a Windows 2008 R2 VM (with 
> an Oracle RDBMS inside) from vSphere to oVirt, I'm going to check performance 
> related things.
> 
> Up to now I only ran Windows guests inside my laptops and not inside an oVirt 
> infrastructure.
> 
> Now I successfully migrated this kind of VM to oVirt 4.1.9.
> The guest had an LSI logic sas controller. Inside the oVirt host that I used 
> as proxy (for VMware virt-v2v) I initially didn't have the virtio-win rpm.
> I presume that has been for this reason that the oVirt guest has been 
> configured with IDE disks…

yes
you won’t get any decent performance unless you use virtio drivers. Either 
virtio-block or virtio-scsi

> Can you confirm?
> 
> For this test I started with ide, then added a virtio-scsi disk and then 
> changed also the boot disk to virtio-scsi and all now goes well, with also 
> ovirt-guest-tools-iso-4.1-3 provided iso used to install qxl and so on...
> 
> So far so good.
> I found this bugzilla:
> https://bugzilla.redhat.com/show_bug.cgi?id=1277353 
> 
> 
> where it seems that 
> 
> "
> For optimum I/O performance it's critical to make sure that Windows guests 
> use the Hyper-V reference counter feature. QEMU command line should include
> 
> -cpu ...,hv_time
> 
> and
> 
> -no-hpet
> "
> Analyzing my command line I see the "-no-hpet" but I dont see the "hv_time"
> See below full comand.
> Any hints?

What OS type do you have set for that VM? Make sure it matches the Windows 
version. That enables the hyperv enlightenments settings

Thanks,
michal
> Thanks,
> Gianluca
> 
> /usr/libexec/qemu-kvm
> -name guest=testmig,debug-threads=on
> -S
> -object 
> secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-12-testmig/master-key.aes
> -machine pc-i440fx-rhel7.3.0,accel=kvm,usb=off,dump-guest-core=off
> -cpu Westmere,vmx=on
> -m size=4194304k,slots=16,maxmem=16777216k
> -realtime mlock=off
> -smp 2,maxcpus=16,sockets=16,cores=1,threads=1
> -numa node,nodeid=0,cpus=0-1,mem=4096
> -uuid x-y-z-x-y
> -smbios type=1,manufacturer=oVirt,product=oVirt
> Node,version=7-4.1708.el7.centos,serial=xx,uuid=yy
> -no-user-config
> -nodefaults
> -chardev 
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-12-testmig/monitor.sock,server,nowait
> -mon chardev=charmonitor,id=monitor,mode=control
> -rtc base=2018-02-09T12:41:41,driftfix=slew
> -global kvm-pit.lost_tick_policy=delay
> -no-hpet
> -no-shutdown
> -boot strict=on
> -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
> -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x5
> -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x4
> -drive if=none,id=drive-ide0-1-0,readonly=on
> -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0
> -drive 
> file=/rhev/data-center/ef17cad6-7724-4cd8-96e3-9af6e529db51/fa33df49-b09d-4f86-9719-ede649542c21/images/2de93ee3-7d6e-4a10-88c4-abc7a11fb687/a9f4e35b-4aa0-45e8-b775-1a046d1851aa,format=qcow2,if=none,id=drive-scsi0-0-0-1,serial=2de93ee3-7d6e-4a10-88c4-abc7a11fb687,cache=none,werror=stop,rerror=stop,aio=native
> -device 
> scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=1,drive=drive-scsi0-0-0-1,id=scsi0-0-0-1,bootindex=1
> -drive 
> file=/rhev/data-center/ef17cad6-7724-4cd8-96e3-9af6e529db51/fa33df49-b09d-4f86-9719-ede649542c21/images/f821da0a-cec7-457c-88a4-f83f33404e65/0d0c4244-f184-4eaa-b5bf-8dc65c7069bb,format=raw,if=none,id=drive-scsi0-0-0-0,serial=f821da0a-cec7-457c-88a4-f83f33404e65,cache=none,werror=stop,rerror=stop,aio=native
> -device 
> scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0
> -netdev tap,fd=30,id=hostnet0
> -device e1000,netdev=hostnet0,id=net0,mac=00:50:56:9d:c9:29,bus=pci.0,addr=0x3
> -chardev 
> socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/421d6f1b-58e3-54a4-802f-fb52f7831369.com.redhat.rhevm.vdsm,server,nowait
> -device 
> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm
> -chardev 
> socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/421d6f1b-58e3-54a4-802f-fb52f7831369.org.qemu.guest_agent.0,server,nowait
> -device 
> virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0
> -chardev spicevmc,id=charchannel2,name=vdagent
> -device 
> virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0
> -spice 
> tls-port=5900,addr=10.4.192.32,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=default,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel=smartcard,tls-channel=usbredir,seamless-migration=on
> -device 
> qxl-vga,id=video0,ram_size=67108864,vram_size=8388608,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2
> -msg timestamp=on
> 
> _

Re: [ovirt-users] Ovirt 3.6 to 4.2 upgrade

2018-02-09 Thread Luca 'remix_tj' Lorenzetto
Hello Gary,

as far as i know upgrade path isn't direct and you have to migrate
first to 4.0, then 4.1 and finally 4.2.

You can migrate vms from 3.6 to 4.0 IIRC. But don't know if mixing 4.2
and 3.6 it's possible.

Luca

On Fri, Feb 9, 2018 at 3:06 PM, Gary Lloyd  wrote:
> Hi
>
> Is it possible/supported to upgrade from Ovirt 3.6 straight to Ovirt 4.2 ?
> Does live migration still function between the older vdsm nodes and vdsm
> nodes with software built against Ovirt 4.2 ?
>
> We changed a couple of the vdsm python files to enable iscsi multipath on
> direct luns.
> (It's a fairly simple change to a couple of the python files).
>
> We've been running it this way since 2012 (Ovirt 3.2).
>
> Many Thanks
>
> Gary Lloyd
> 
> I.T. Systems:Keele University
> Finance & IT Directorate
> Keele:Staffs:IC1 Building:ST5 5NB:UK
> +44 1782 733063
> 
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>



-- 
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Ovirt 3.6 to 4.2 upgrade

2018-02-09 Thread Gary Lloyd
Hi

Is it possible/supported to upgrade from Ovirt 3.6 straight to Ovirt 4.2 ?
Does live migration still function between the older vdsm nodes and vdsm
nodes with software built against Ovirt 4.2 ?

We changed a couple of the vdsm python files to enable iscsi multipath on
direct luns.
(It's a fairly simple change to a couple of the python files).

We've been running it this way since 2012 (Ovirt 3.2).

Many Thanks

*Gary Lloyd*

I.T. Systems:Keele University
Finance & IT Directorate
Keele:Staffs:IC1 Building:ST5 5NB:UK
+44 1782 733063 <%2B44%201782%20733073>

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


Re: [ovirt-users] Multiple 'scsi' controllers with index '0'.

2018-02-09 Thread Gianluca Cecchi
Il 09 Feb 2018 13:50,  ha scritto:

I have just done it.

Is it possible to tweak this XML file (where ?) in order to get a working
VM ?

Regards



Le 09-Feb-2018 12:44:08 +0100, from...@redhat.com a écrit:

Hi,



could you please file a bug? Please attach the failing XML, you should find
it pretty easily in the Vdsm logs.



Thanks,

On 02/09/2018 12:08 PM, spfma.t...@e.mail.fr wrote:


Hi,

I just wanted to increase the number of CPUs for a VM and after validating,
I got the following error when I try to start it:

VM vm-test is down with error. Exit message: XML error: Multiple 'scsi'
controllers with index '0'.

I am sure it is a bug, but for now, what can I do in order to remove or
edit conflicting devices definitions ? I need to be able to start this
machine.

4.2.0.2-1.el7.centos (as I still don't manage to update the hosted engine
to something newer)

Regards


--
FreeMail powered by mail.fr

___
Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users


-- 
Francesco Romani
Senior SW Eng., Virtualization R&D
Red Hat
IRC: fromani github: @fromanirh


--
FreeMail powered by mail.fr

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



I seem to remember a similar problem and that deactivating disks of the VM
and the then activating them again corrected the problem.
Or in case that doesn't work, try to remove disks and Then readd from the
floating disk pane...
Hih,
gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Info about windows guest performance

2018-02-09 Thread Gianluca Cecchi
Hello,
while in my activities to accomplish migration of a Windows 2008 R2 VM
(with an Oracle RDBMS inside) from vSphere to oVirt, I'm going to check
performance related things.

Up to now I only ran Windows guests inside my laptops and not inside an
oVirt infrastructure.

Now I successfully migrated this kind of VM to oVirt 4.1.9.
The guest had an LSI logic sas controller. Inside the oVirt host that I
used as proxy (for VMware virt-v2v) I initially didn't have the virtio-win
rpm.
I presume that has been for this reason that the oVirt guest has been
configured with IDE disks...
Can you confirm?

For this test I started with ide, then added a virtio-scsi disk and then
changed also the boot disk to virtio-scsi and all now goes well, with also
ovirt-guest-tools-iso-4.1-3 provided iso used to install qxl and so on...

So far so good.
I found this bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1277353

where it seems that

"

For optimum I/O performance it's critical to make sure that Windows
guests use the Hyper-V reference counter feature. QEMU command line
should include

-cpu ...,hv_time

and

-no-hpet

"

Analyzing my command line I see the "-no-hpet" but I dont see the "hv_time"

See below full comand.

Any hints?

Thanks,

Gianluca


/usr/libexec/qemu-kvm
-name guest=testmig,debug-threads=on
-S
-object 
secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-12-testmig/master-key.aes
-machine pc-i440fx-rhel7.3.0,accel=kvm,usb=off,dump-guest-core=off
-cpu Westmere,vmx=on
-m size=4194304k,slots=16,maxmem=16777216k
-realtime mlock=off
-smp 2,maxcpus=16,sockets=16,cores=1,threads=1
-numa node,nodeid=0,cpus=0-1,mem=4096
-uuid x-y-z-x-y
-smbios type=1,manufacturer=oVirt,product=oVirt
Node,version=7-4.1708.el7.centos,serial=xx,uuid=yy
-no-user-config
-nodefaults
-chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-12-testmig/monitor.sock,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control
-rtc base=2018-02-09T12:41:41,driftfix=slew
-global kvm-pit.lost_tick_policy=delay
-no-hpet
-no-shutdown
-boot strict=on
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
-device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x5
-device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x4
-drive if=none,id=drive-ide0-1-0,readonly=on
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0
-drive 
file=/rhev/data-center/ef17cad6-7724-4cd8-96e3-9af6e529db51/fa33df49-b09d-4f86-9719-ede649542c21/images/2de93ee3-7d6e-4a10-88c4-abc7a11fb687/a9f4e35b-4aa0-45e8-b775-1a046d1851aa,format=qcow2,if=none,id=drive-scsi0-0-0-1,serial=2de93ee3-7d6e-4a10-88c4-abc7a11fb687,cache=none,werror=stop,rerror=stop,aio=native
-device 
scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=1,drive=drive-scsi0-0-0-1,id=scsi0-0-0-1,bootindex=1
-drive 
file=/rhev/data-center/ef17cad6-7724-4cd8-96e3-9af6e529db51/fa33df49-b09d-4f86-9719-ede649542c21/images/f821da0a-cec7-457c-88a4-f83f33404e65/0d0c4244-f184-4eaa-b5bf-8dc65c7069bb,format=raw,if=none,id=drive-scsi0-0-0-0,serial=f821da0a-cec7-457c-88a4-f83f33404e65,cache=none,werror=stop,rerror=stop,aio=native
-device 
scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0
-netdev tap,fd=30,id=hostnet0
-device e1000,netdev=hostnet0,id=net0,mac=00:50:56:9d:c9:29,bus=pci.0,addr=0x3
-chardev 
socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/421d6f1b-58e3-54a4-802f-fb52f7831369.com.redhat.rhevm.vdsm,server,nowait
-device 
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm
-chardev 
socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/421d6f1b-58e3-54a4-802f-fb52f7831369.org.qemu.guest_agent.0,server,nowait
-device 
virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0
-chardev spicevmc,id=charchannel2,name=vdagent
-device 
virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0
-spice 
tls-port=5900,addr=10.4.192.32,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=default,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel=smartcard,tls-channel=usbredir,seamless-migration=on
-device 
qxl-vga,id=video0,ram_size=67108864,vram_size=8388608,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2
-msg timestamp=on
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Cannot Remove Disk

2018-02-09 Thread Andrej Krejcir
The last workaround I can think of, is to set the quota mode to Audit,
create a new quota and use this new quota for the new disk

Please, can you open a bug and include steps how to get to this state?

Thanks

On 9 February 2018 at 13:28, Donny Davis  wrote:

> Error while executing action: Cannot edit Quota. Quota is not valid.
>
> On Fri, Feb 9, 2018 at 5:33 AM, Andrej Krejcir 
> wrote:
>
>> The error can mean that a quota does not exist for the DC, or was saved
>> in an invalid state.
>>
>> Try these steps in the UI:
>> - Set the quota mode to Audit on the DC
>> - Check the DC details page, quota tab, if there is a quota defined
>>   - If not, create one
>>   - If it is, try editing it and save it. The UI will save a valid quota.
>>
>> - Set the quota mode back to Disabled.
>>
>> On 9 February 2018 at 00:00, Donny Davis  wrote:
>>
>>> So now when I create a new disk on the same domain with quota disabled,
>>> I get
>>>
>>>- Cannot edit Virtual Disk. Quota is not valid.
>>>
>>>
>>> This is a new machine, created after the above issue was solved
>>>
>>> On Thu, Feb 8, 2018 at 11:56 AM, Donny Davis 
>>> wrote:
>>>
 Disabling the quota for that DC did the trick. The funny part is it was
 never enabled. I put it in audit mode, tried a delete, got the error... and
 then disabled it.

 Worked, I am a happy camper... Thanks guys.

 On Thu, Feb 8, 2018 at 11:51 AM, Andrej Krejcir 
 wrote:

> Or, it should be enough to disable the quota in the data center, then
> change it for the disk and reenable it again.
>
> On 8 February 2018 at 17:42, Andrej Krejcir 
> wrote:
>
>> Do the operations work in the UI?
>> If not, then the DB has to be changed manually:
>>
>> $ psql engine
>>
>> UPDATE image_storage_domain_map sd_map
>> SET quota_id = NULL
>> FROM images
>> WHERE sd_map.image_id = images.image_guid
>>   AND images.image_group_id = 'ID_OF_THE_DISK';
>>
>>
>> On 8 February 2018 at 17:06, Donny Davis 
>> wrote:
>>
>>> Any operation on the disk throws this error, to include changing the
>>> quota.
>>>
>>> On Thu, Feb 8, 2018 at 11:03 AM, Andrej Krejcir >> > wrote:
>>>
 The error message means that the data center (storage pool) where
 the quota is defined is different from the data center where the disk 
 is.

 It seems like a bug, as it should not be possible to assign a quota
 to a disk from a different data center.

 To fix it, try setting the quota of the disk to any quota from the
 same data center.

 ​Regards,
 Andrej​


 On 8 February 2018 at 16:37, Martin Sivak 
 wrote:

> Andrej, this might be related to the recent fixes of yours in that
> area. Can you take a look please?
>
> Best regards
>
> Martin Sivak
>
> On Thu, Feb 8, 2018 at 4:18 PM, Donny Davis 
> wrote:
> > Ovirt 4.2 has been humming away quite nicely for me in the last
> few months,
> > and now I am hitting an issue when try to touch any api call
> that has to do
> > with a specific disk. This disk resides on a hyperconverged DC,
> and none of
> > the other disks seem to be affected. Here is the error thrown.
> >
> > 2018-02-08 10:13:20,005-05 ERROR
> > [org.ovirt.engine.core.bll.storage.disk.RemoveDiskCommand]
> (default task-22)
> > [7b48d1ec-53a7-497a-af8e-938f30a321cf] Error during
> ValidateFailure.:
> > org.ovirt.engine.core.bll.quota.InvalidQuotaParametersException:
> Quota
> > 6156b8dd-50c9-4e8f-b1f3-4a6449b02c7b does not match storage pool
> > 5a497956-0380-021e-0025-035e
> >
> >
> >
> > Any ideas what can be done to fix this?
> >
> > ___
> > 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


Re: [ovirt-users] Multiple 'scsi' controllers with index '0'.

2018-02-09 Thread spfma . tech
I have just done it.
   Is it possible to tweak this XML file (where ?) in order to get a working VM 
?   Regards 

 Le 09-Feb-2018 12:44:08 +0100, from...@redhat.com a crit: 

Hi, 

could you please file a bug? Please attach the failing XML, you should find it 
pretty easily in the Vdsm logs. 

Thanks, 
 On 02/09/2018 12:08 PM, spfma.t...@e.mail.fr wrote: 
   Hi,   I just wanted to increase the number of CPUs for a VM and after 
validating, I got the following error when I try to start it:   VM vm-test is 
down with error. Exit message: XML error: Multiple 'scsi' controllers with 
index '0'.   I am sure it is a bug, but for now, what can I do in order to 
remove or edit conflicting devices definitions ? I need to be able to start 
this machine.   4.2.0.2-1.el7.centos (as I still don't manage to update the 
hosted engine to something newer)   Regards   

-
FreeMail powered by mail.fr 

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

-- Francesco Romani Senior SW Eng., Virtualization R&D Red Hat IRC: fromani 
github: @fromanirh  

-
FreeMail powered by mail.fr
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Cannot Remove Disk

2018-02-09 Thread Donny Davis
Error while executing action: Cannot edit Quota. Quota is not valid.

On Fri, Feb 9, 2018 at 5:33 AM, Andrej Krejcir  wrote:

> The error can mean that a quota does not exist for the DC, or was saved in
> an invalid state.
>
> Try these steps in the UI:
> - Set the quota mode to Audit on the DC
> - Check the DC details page, quota tab, if there is a quota defined
>   - If not, create one
>   - If it is, try editing it and save it. The UI will save a valid quota.
>
> - Set the quota mode back to Disabled.
>
> On 9 February 2018 at 00:00, Donny Davis  wrote:
>
>> So now when I create a new disk on the same domain with quota disabled, I
>> get
>>
>>- Cannot edit Virtual Disk. Quota is not valid.
>>
>>
>> This is a new machine, created after the above issue was solved
>>
>> On Thu, Feb 8, 2018 at 11:56 AM, Donny Davis 
>> wrote:
>>
>>> Disabling the quota for that DC did the trick. The funny part is it was
>>> never enabled. I put it in audit mode, tried a delete, got the error... and
>>> then disabled it.
>>>
>>> Worked, I am a happy camper... Thanks guys.
>>>
>>> On Thu, Feb 8, 2018 at 11:51 AM, Andrej Krejcir 
>>> wrote:
>>>
 Or, it should be enough to disable the quota in the data center, then
 change it for the disk and reenable it again.

 On 8 February 2018 at 17:42, Andrej Krejcir 
 wrote:

> Do the operations work in the UI?
> If not, then the DB has to be changed manually:
>
> $ psql engine
>
> UPDATE image_storage_domain_map sd_map
> SET quota_id = NULL
> FROM images
> WHERE sd_map.image_id = images.image_guid
>   AND images.image_group_id = 'ID_OF_THE_DISK';
>
>
> On 8 February 2018 at 17:06, Donny Davis  wrote:
>
>> Any operation on the disk throws this error, to include changing the
>> quota.
>>
>> On Thu, Feb 8, 2018 at 11:03 AM, Andrej Krejcir 
>> wrote:
>>
>>> The error message means that the data center (storage pool) where
>>> the quota is defined is different from the data center where the disk 
>>> is.
>>>
>>> It seems like a bug, as it should not be possible to assign a quota
>>> to a disk from a different data center.
>>>
>>> To fix it, try setting the quota of the disk to any quota from the
>>> same data center.
>>>
>>> ​Regards,
>>> Andrej​
>>>
>>>
>>> On 8 February 2018 at 16:37, Martin Sivak  wrote:
>>>
 Andrej, this might be related to the recent fixes of yours in that
 area. Can you take a look please?

 Best regards

 Martin Sivak

 On Thu, Feb 8, 2018 at 4:18 PM, Donny Davis 
 wrote:
 > Ovirt 4.2 has been humming away quite nicely for me in the last
 few months,
 > and now I am hitting an issue when try to touch any api call that
 has to do
 > with a specific disk. This disk resides on a hyperconverged DC,
 and none of
 > the other disks seem to be affected. Here is the error thrown.
 >
 > 2018-02-08 10:13:20,005-05 ERROR
 > [org.ovirt.engine.core.bll.storage.disk.RemoveDiskCommand]
 (default task-22)
 > [7b48d1ec-53a7-497a-af8e-938f30a321cf] Error during
 ValidateFailure.:
 > org.ovirt.engine.core.bll.quota.InvalidQuotaParametersException:
 Quota
 > 6156b8dd-50c9-4e8f-b1f3-4a6449b02c7b does not match storage pool
 > 5a497956-0380-021e-0025-035e
 >
 >
 >
 > Any ideas what can be done to fix this?
 >
 > ___
 > 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


Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-09 Thread Simone Tiraboschi
On Fri, Feb 9, 2018 at 9:06 AM, Sandro Bonazzola 
wrote:

>
>
> 2018-02-09 8:53 GMT+01:00 Reznikov Alexei :
>
>> Hi all!
>>
>> After upgrade from ovirt 4.0 to 4.1, a have trouble add to next
>> HostedEngine host to my cluster via webui... host add succesfully and
>> become up, but HE not active in this host.
>>
>> log's from trouble host
>> # cat agent.log
>> > KeyError: 'Configuration value not found: 
>> > file=/etc/ovirt-hosted-engine/hosted-engine.conf,
>> key=gateway'
>>
>
> Adding Simone
>

It shouldn't happen.
I suspect that something went wrong creating the configuration volume on
the shared storage at the end of the deployment.

Alexei, can both of you attach you hosted-engine-setup logs?
Can you please check what happens on
  hosted-engine --get-shared-config gateway

Thanks


>
>
>
>>
>> # cat /etc/ovirt-hosted-engine/hosted-engine.conf
>> ca_cert=/etc/pki/vdsm/libvirt-spice/ca-cert.pem
>> host_id=2
>>
>> log deploy from engine in attach.
>>
>> trouble host:
>> ovirt-hosted-engine-setup-2.1.4-1.el7.centos.noarch
>> ovirt-host-deploy-1.6.7-1.el7.centos.noarch
>> vdsm-4.19.45-1.el7.centos.x86_64
>> CentOS Linux release 7.4.1708 (Core)
>>
>> engine host:
>> ovirt-release41-4.1.9-1.el7.centos.noarch
>> ovirt-engine-4.1.9.1-1.el7.centos.noarch
>> CentOS Linux release 7.4.1708 (Core)
>
>
>> Please help me fix it.
>>
>> Thanx, Alex.
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>
>
> --
>
> SANDRO BONAZZOLA
>
> ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R&D
>
> Red Hat EMEA 
> 
> TRIED. TESTED. TRUSTED. 
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Use the "hosted_engine" data domain as data domain for others VM

2018-02-09 Thread Martin Sivak
Hi,

it should work in general, but there are couple of corner cases to be aware of.

Hosted engine VM should have its disks only on the HE storage domain.
The HE should be installed using the new Node 0 approach (default in
4.2.1+) or it must not use any custom mount options
(https://bugzilla.redhat.com/show_bug.cgi?id=1373930)

For all those reasons we do not recommend using it in production, but
we are not aware about anything that would really block you from doing
it. It just hasn't been tested and polished enough yet.

Best regards

Martin Sivak

On Fri, Feb 9, 2018 at 1:02 PM, Simone Tiraboschi  wrote:
>
>
> On Fri, Feb 9, 2018 at 10:20 AM, yayo (j)  wrote:
>>
>> Hi,
>>
>> Is there any problem to use the "hosted_engine" data domain to put disk of
>> others VM?
>
>
> Hi,
> it will be the default in 4.3.
>
> It's tracked here:
> https://bugzilla.redhat.com/show_bug.cgi?id=1451653
>
> I'm not aware of any specific block on 4.2 so it should work on technical
> side although it's not the recommended architecture on production systems.
> For sure you can actually face some perforce degradation of block device
> storage domains (iSCSI and FC) if you have a lot of inactive VMs on the
> hosted-engine storage domain due to
> https://bugzilla.redhat.com/show_bug.cgi?id=1443819
>
>
>>
>> I have created a "too big" "hosted_engine" data domain so I want to use
>> that space...
>>
>> Thank you
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Use the "hosted_engine" data domain as data domain for others VM

2018-02-09 Thread Simone Tiraboschi
On Fri, Feb 9, 2018 at 10:20 AM, yayo (j)  wrote:

> Hi,
>
> Is there any problem to use the "hosted_engine" data domain to put disk of
> others VM?
>

Hi,
it will be the default in 4.3.

It's tracked here:
https://bugzilla.redhat.com/show_bug.cgi?id=1451653

I'm not aware of any specific block on 4.2 so it should work on technical
side although it's not the recommended architecture on production systems.
For sure you can actually face some perforce degradation of block device
storage domains (iSCSI and FC) if you have a lot of inactive VMs on the
hosted-engine storage domain due to
https://bugzilla.redhat.com/show_bug.cgi?id=1443819



> I have created a "too big" "hosted_engine" data domain so I want to use
> that space...
>
> Thank you
>
> ___
> 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


Re: [ovirt-users] Multiple 'scsi' controllers with index '0'.

2018-02-09 Thread Francesco Romani
Hi,


could you please file a bug? Please attach the failing XML, you should
find it pretty easily in the Vdsm logs.


Thanks,


On 02/09/2018 12:08 PM, spfma.t...@e.mail.fr wrote:
>  
> Hi,
>  
> I just wanted to increase the number of CPUs for a VM and after
> validating, I got the following error when I try to start it:
>  
> VM vm-test is down with error. Exit message: XML error: Multiple
> 'scsi' controllers with index '0'.
>  
> I am sure it is a bug, but for now, what can I do in order to remove
> or edit conflicting devices definitions ? I need to be able to start
> this machine.
>  
> 4.2.0.2-1.el7.centos (as I still don't manage to update the hosted
> engine to something newer)
>  
> Regards
>  
>
> 
> FreeMail powered by mail.fr 
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

-- 
Francesco Romani
Senior SW Eng., Virtualization R&D
Red Hat
IRC: fromani github: @fromanirh

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


Re: [ovirt-users] Network configuration validation error

2018-02-09 Thread spfma . tech
Hi, Could someone explain me at least what "Cluster PROD is at version 4.2 
which is not supported by this upgrade flow. Please fix it before upgrading." 
means ? As far as I know 4.2 is the most recent branch available, isn't it ? 
Regards 

 Le 08-Feb-2018 09:59:32 +0100, mbur...@redhat.com a crit: 
   Not sure i understand from which version you trying to upgrade and what is 
the exact upgrade flow, if i got it correctly, it is seems that you upgraded 
the hosts to 4.2, but engine still 4.1?  What exactly the upgrade steps, please 
explain the flow., what have you done after upgrading the hosts? to what 
version?

 Cheers) 
 On Wed, Feb 7, 2018 at 3:00 PM,  wrote:

 Hi, Thanks a lot for your answer.I applied some updates at node level, but 
I forgot to upgrade the engine !   When I try to do so I get a strange error : 
"Cluster PROD is at version 4.2 which is not supported by this upgrade flow. 
Please fix it before upgrading."   Here are the installed packets on my nodes : 
python-ovirt-engine-sdk4-4.2.2-2.el7.centos.x86_64
ovirt-imageio-common-1.2.0-1.el7.centos.noarch
ovirt-hosted-engine-setup-2.2.3-1.el7.centos.noarch
ovirt-engine-sdk-python-3.6.9.1-1.el7.noarch
ovirt-setup-lib-1.1.4-1.el7.centos.noarch
ovirt-release42-4.2.0-1.el7.centos.noarch
ovirt-imageio-daemon-1.2.0-1.el7.centos.noarch
ovirt-host-dependencies-4.2.0-1.el7.centos.x86_64
ovirt-host-4.2.0-1.el7.centos.x86_64
ovirt-host-deploy-1.7.0-1.el7.centos.noarch
ovirt-hosted-engine-ha-2.2.2-1.el7.centos.noarch
ovirt-provider-ovn-driver-1.2.2-1.el7.centos.noarch
ovirt-engine-appliance-4.2-20171219.1.el7.centos.noarch
ovirt-vmconsole-host-1.0.4-1.el7.noarch
cockpit-ovirt-dashboard-0.11.3-0.1.el7.centos.noarch
ovirt-vmconsole-1.0.4-1.el7.noarch   What I am supposed to do ? I see no newer 
packages available.   Regards   

 Le 07-Feb-2018 13:23:43 +0100, mbur...@redhat.com a crit: 
Hi

 This is a bug and it was already fixed in 4.2.1.1-0.1.el7 - 
https://bugzilla.redhat.com/show_bug.cgi?id=1528906

 The no default route bug was fixed in - 
https://bugzilla.redhat.com/show_bug.cgi?id=1477589

 Thanks, 
 On Wed, Feb 7, 2018 at 1:15 PM,  wrote:

   Hi, I am experiencing a new problem : when I try to modify something in the 
network setup on the second node (added to the cluster after installing the 
engine on the other one) using the Engine GUI, I get the following error when 
validating :must match 
"^\b((25[0-5]|2[0-4]\d|[01]\d\d|\d?\d)\_){3}(25[0-5]|2[0-4]\d|[01]\d\d|\d?\d)"
 Attribut : ipConfiguration.iPv4Addresses[0].gateway   Moreover, on the general 
status of ther server, I have a "Host has no default route" alert.   The 
ovirtmgmt network has a defined gateway of course, and the storage network has 
none because it is not required. Both server have the same setup, with 
different addresses of course :-)   I have not been able to find anything 
useful in the logs.   Is this a bug or am I doing something wrong ?   Regards 

-
FreeMail powered by mail.fr 
___
 Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

-- 

Michael Burman 

Senior Quality engineer - rhv network - redhat israel 

Red Hat 

 mbur...@redhat.com  M: 0545355725 IM: mburman 

-
FreeMail powered by mail.fr  
___
 Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

-- 

Michael Burman 

Senior Quality engineer - rhv network - redhat israel 

Red Hat 

 mbur...@redhat.com  M: 0545355725 IM: mburman 

-
FreeMail powered by mail.fr
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Multiple 'scsi' controllers with index '0'.

2018-02-09 Thread spfma . tech
Hi,   I just wanted to increase the number of CPUs for a VM and after 
validating, I got the following error when I try to start it:   VM vm-test is 
down with error. Exit message: XML error: Multiple 'scsi' controllers with 
index '0'.   I am sure it is a bug, but for now, what can I do in order to 
remove or edit conflicting devices definitions ? I need to be able to start 
this machine.   4.2.0.2-1.el7.centos (as I still don't manage to update the 
hosted engine to something newer)   Regards   

-
FreeMail powered by mail.fr
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Info about exporting from vSphere

2018-02-09 Thread Luca 'remix_tj' Lorenzetto
On Fri, Feb 9, 2018 at 11:46 AM, Gianluca Cecchi
 wrote:
>>
>> When using that function you'll point to a specific host connected to
>> the given vcenter, in the given datacenter, inside a given cluster.
>> Import function will contact vcenter and ask for all vms in shutdown
>> status on that host, then allows you to continue with the wizard.
>
>
> Which "function" are you referring to?

VMware import source.


On Fri, Feb 9, 2018 at 11:51 AM, Gianluca Cecchi
 wrote:
[cut]
>
> Sorry again for the rumor
>


No problem.

If you need i can provide you some python-sdk code. I've build an
entire migration tool that interacts with VMware and oVirt to
orchestrate the migration of vms.

Once completed the migration and some cleanup, we'll release it. At
the moment is just a bunch home made libraries connected each other
through a main function that's called through python-rq.

Luca

-- 
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Info about exporting from vSphere

2018-02-09 Thread Gianluca Cecchi
On Fri, Feb 9, 2018 at 11:46 AM, Gianluca Cecchi 
wrote:

> On Thu, Feb 8, 2018 at 4:38 PM, Luca 'remix_tj' Lorenzetto <
> lorenzetto.l...@gmail.com> wrote:
>
>> On Thu, Feb 8, 2018 at 4:34 PM, Gianluca Cecchi
>>  wrote:
>> >
>> > Thanks Luca.
>> > I asked because I see this inside the gui.
>> > https://drive.google.com/file/d/12vI9RUq9t4J--jlkqSxvG2jqylG
>> fD2sP/view?usp=sharing
>> >
>> > Probably you do it via api and you don't need to provide ESXi
>> credentials?
>> > Did you try also from web admin gui leaving empty the fields related to
>> > ESXi?
>> >
>>
>> If you're not used to libvirt connection to vmware, all that fields
>> could scare. Anyway you need to fill out all the values, because are
>> needed to locate the vm you want to migrate.
>>
>
> So you are confirming that using "VMware" import option all fields are
> needed, ESXi hostname and credentials comprised.
> In fact if I don't fill and click "Load", in the ESXi fileds I get the
> popup notice that "this filed can't be empty"...
>


Oooops, sorry!

I misread the window ;-(
The "password" field is under ESXi field, but it is related to vSphere
credentials, not ESXi
In fact inside the window there is only one "password" field.

I just tried and it works. in the sense that with "Load" I see the VMs
inside the DC/Cluster

Sorry again for the rumor
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Info about exporting from vSphere

2018-02-09 Thread Gianluca Cecchi
On Thu, Feb 8, 2018 at 4:38 PM, Luca 'remix_tj' Lorenzetto <
lorenzetto.l...@gmail.com> wrote:

> On Thu, Feb 8, 2018 at 4:34 PM, Gianluca Cecchi
>  wrote:
> >
> > Thanks Luca.
> > I asked because I see this inside the gui.
> > https://drive.google.com/file/d/12vI9RUq9t4J--
> jlkqSxvG2jqylGfD2sP/view?usp=sharing
> >
> > Probably you do it via api and you don't need to provide ESXi
> credentials?
> > Did you try also from web admin gui leaving empty the fields related to
> > ESXi?
> >
>
> If you're not used to libvirt connection to vmware, all that fields
> could scare. Anyway you need to fill out all the values, because are
> needed to locate the vm you want to migrate.
>

So you are confirming that using "VMware" import option all fields are
needed, ESXi hostname and credentials comprised.
In fact if I don't fill and click "Load", in the ESXi fileds I get the
popup notice that "this filed can't be empty"...



> When using that function you'll point to a specific host connected to
> the given vcenter, in the given datacenter, inside a given cluster.
> Import function will contact vcenter and ask for all vms in shutdown
> status on that host, then allows you to continue with the wizard.
>

Which "function" are you referring to?

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


Re: [ovirt-users] when creating VMs, I don't want hosted_storage to be an option

2018-02-09 Thread Martin Sivak
Hi,

we got much closer to officially remove the specialty status of both
the domain and the VM in 4.2 with features like Node 0 deployment
(default since 4.2.1) and direct libvirtxml support in engine and HE
(4.2.2 iirc).

There are couple of outstanding issues:

- HE needs to know how to connect all storage domains necessary for HE
VM disks (not 100% related, but close)
- (live) storage migration is not supported yet - HE nodes need to
learn about the new connection details
- changes to gluster topology are not supported yet - same reason as above
- we have a bug with regards to block devices - will be fixed by
https://gerrit.ovirt.org/#/c/87325/
- fencing and SPM role need to be tested a bit more to make sure we
have no surprises there
- old deployments might not have some data in the engine DB
(https://bugzilla.redhat.com/show_bug.cgi?id=1373930)

We will not be adding any additional limits as all seems to work in
the usual cases and we work on removing the remaining restrictions. I
am not 100% certain when it will be finished exactly, but you can use
it now if you are careful (basically do not use custom mount options
and do not add disks to the HE VM that would come from a different
SD!!).

We have two tracking bugs for the related work:
https://bugzilla.redhat.com/show_bug.cgi?id=1455169 and
https://bugzilla.redhat.com/show_bug.cgi?id=1393902 - most of what was
needed was fixed already.

Best regards

Martin Sivak

On Fri, Feb 9, 2018 at 11:06 AM, Gianluca Cecchi
 wrote:
> On Thu, Jun 22, 2017 at 11:37 AM, Martin Sivak  wrote:
>>
>> Hi,
>>
>> Chris is right. We want to remove the specialty status from that
>> storage domain. It is one of the highest priority items for hosted
>> engine right now.
>>
>> There is currently no way to hide it I am afraid.
>>
>> Best regards
>>
>> --
>> Martin Sivak
>> SLA / oVirt
>>
>
> Hello Martin (and list),
> any update on this item to remove specialty of hosted_engine storage?
> Any bugzilla RFE or pointer? I think it didn't catch 4.2, correct?
>
> Thanks,
> Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Cannot Remove Disk

2018-02-09 Thread Andrej Krejcir
The error can mean that a quota does not exist for the DC, or was saved in
an invalid state.

Try these steps in the UI:
- Set the quota mode to Audit on the DC
- Check the DC details page, quota tab, if there is a quota defined
  - If not, create one
  - If it is, try editing it and save it. The UI will save a valid quota.

- Set the quota mode back to Disabled.

On 9 February 2018 at 00:00, Donny Davis  wrote:

> So now when I create a new disk on the same domain with quota disabled, I
> get
>
>- Cannot edit Virtual Disk. Quota is not valid.
>
>
> This is a new machine, created after the above issue was solved
>
> On Thu, Feb 8, 2018 at 11:56 AM, Donny Davis  wrote:
>
>> Disabling the quota for that DC did the trick. The funny part is it was
>> never enabled. I put it in audit mode, tried a delete, got the error... and
>> then disabled it.
>>
>> Worked, I am a happy camper... Thanks guys.
>>
>> On Thu, Feb 8, 2018 at 11:51 AM, Andrej Krejcir 
>> wrote:
>>
>>> Or, it should be enough to disable the quota in the data center, then
>>> change it for the disk and reenable it again.
>>>
>>> On 8 February 2018 at 17:42, Andrej Krejcir  wrote:
>>>
 Do the operations work in the UI?
 If not, then the DB has to be changed manually:

 $ psql engine

 UPDATE image_storage_domain_map sd_map
 SET quota_id = NULL
 FROM images
 WHERE sd_map.image_id = images.image_guid
   AND images.image_group_id = 'ID_OF_THE_DISK';


 On 8 February 2018 at 17:06, Donny Davis  wrote:

> Any operation on the disk throws this error, to include changing the
> quota.
>
> On Thu, Feb 8, 2018 at 11:03 AM, Andrej Krejcir 
> wrote:
>
>> The error message means that the data center (storage pool) where the
>> quota is defined is different from the data center where the disk is.
>>
>> It seems like a bug, as it should not be possible to assign a quota
>> to a disk from a different data center.
>>
>> To fix it, try setting the quota of the disk to any quota from the
>> same data center.
>>
>> ​Regards,
>> Andrej​
>>
>>
>> On 8 February 2018 at 16:37, Martin Sivak  wrote:
>>
>>> Andrej, this might be related to the recent fixes of yours in that
>>> area. Can you take a look please?
>>>
>>> Best regards
>>>
>>> Martin Sivak
>>>
>>> On Thu, Feb 8, 2018 at 4:18 PM, Donny Davis 
>>> wrote:
>>> > Ovirt 4.2 has been humming away quite nicely for me in the last
>>> few months,
>>> > and now I am hitting an issue when try to touch any api call that
>>> has to do
>>> > with a specific disk. This disk resides on a hyperconverged DC,
>>> and none of
>>> > the other disks seem to be affected. Here is the error thrown.
>>> >
>>> > 2018-02-08 10:13:20,005-05 ERROR
>>> > [org.ovirt.engine.core.bll.storage.disk.RemoveDiskCommand]
>>> (default task-22)
>>> > [7b48d1ec-53a7-497a-af8e-938f30a321cf] Error during
>>> ValidateFailure.:
>>> > org.ovirt.engine.core.bll.quota.InvalidQuotaParametersException:
>>> Quota
>>> > 6156b8dd-50c9-4e8f-b1f3-4a6449b02c7b does not match storage pool
>>> > 5a497956-0380-021e-0025-035e
>>> >
>>> >
>>> >
>>> > Any ideas what can be done to fix this?
>>> >
>>> > ___
>>> > 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


Re: [ovirt-users] when creating VMs, I don't want hosted_storage to be an option

2018-02-09 Thread Gianluca Cecchi
On Thu, Jun 22, 2017 at 11:37 AM, Martin Sivak  wrote:

> Hi,
>
> Chris is right. We want to remove the specialty status from that
> storage domain. It is one of the highest priority items for hosted
> engine right now.
>
> There is currently no way to hide it I am afraid.
>
> Best regards
>
> --
> Martin Sivak
> SLA / oVirt
>
>
Hello Martin (and list),
any update on this item to remove specialty of hosted_engine storage?
Any bugzilla RFE or pointer? I think it didn't catch 4.2, correct?

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


Re: [ovirt-users] Importing Libvirt Kvm Vms to oVirt Status: Released in oVirt 4.2 using ssh - Failed to communicate with the external provider

2018-02-09 Thread Renout Gerrits
Hi Maoz,

You should not be using the engine and not the root user for the ssh keys.
The actions are delegated to a host and the vdsm user. So you should set-up
ssh keys for the vdsm user on one or all of the hosts (remember to select
this host as proxy host in the gui). Probably the documentation should be
updated to make this more clear.

1. Make the keygen for vdsm user:

   # sudo -u vdsm ssh-keygen

2.Do the first login to confirm the fingerprints using "yes":

   # sudo -u vdsm ssh r...@xxx.xxx.xxx.xxx

3. Then copy the key to the KVm host running the vm:

   # sudo -u vdsm ssh-copy-id r...@xxx.xxx.xxx.xxx

4. Now verify is vdsm can login without password or not:

   # sudo -u vdsm ssh r...@xxx.xxx.xxx.xxx


On Thu, Feb 8, 2018 at 3:12 PM, Petr Kotas  wrote:

> You can generate one :). There are different guides for different
> platforms.
>
> The link I sent is the good start on where to put the keys and how to set
> it up.
>
> Petr
>
> On Thu, Feb 8, 2018 at 3:09 PM, maoz zadok  wrote:
>
>> Using the command line on the engine machine (as root) works fine. I
>> don't use ssh key from the agent GUI but the authentication section (with
>> root user and password),
>> I think that it's a bug, I manage to migrate with TCP but I just want to
>> let you know.
>>
>> is it possible to use ssh-key from the agent GUI? how can I get the key?
>>
>> On Thu, Feb 8, 2018 at 2:51 PM, Petr Kotas  wrote:
>>
>>> Hi Maoz,
>>>
>>> it looks like cannot connect due to wrong setup of ssh keys. Which linux
>>> are you using?
>>> The guide for setting the ssh connection to  libvirt is here:
>>> https://wiki.libvirt.org/page/SSHSetup
>>>
>>> May it helps?
>>>
>>> Petr
>>>
>>> On Wed, Feb 7, 2018 at 10:53 PM, maoz zadok  wrote:
>>>
 Hello there,

 I'm following https://www.ovirt.org/develop/
 release-management/features/virt/KvmToOvirt/ guide in order to import
 VMS from Libvirt to oVirt using ssh.
  URL:  "qemu+ssh://host1.example.org/system"

 and get the following error:
 Failed to communicate with the external provider, see log for
 additional details.


 *oVirt agent log:*

 *- Failed to retrieve VMs information from external server
 qemu+ssh://XXX.XXX.XXX.XXX/system*
 *- VDSM XXX command GetVmsNamesFromExternalProviderVDS failed: Cannot
 recv data: Host key verification failed.: Connection reset by peer*



 *remote host sshd DEBUG log:*
 *Feb  7 16:38:29 XXX sshd[110005]: Connection from XXX.XXX.XXX.147 port
 48148 on XXX.XXX.XXX.123 port 22*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: Client protocol version 2.0;
 client software version OpenSSH_7.4*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: match: OpenSSH_7.4 pat
 OpenSSH* compat 0x0400*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: Local version string
 SSH-2.0-OpenSSH_7.4*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: Enabling compatibility mode
 for protocol 2.0*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: SELinux support disabled
 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: permanently_set_uid: 74/74
 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: list_hostkey_types:
 ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 
 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: SSH2_MSG_KEXINIT sent
 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: SSH2_MSG_KEXINIT received
 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: kex: algorithm:
 curve25519-sha256 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: kex: host key algorithm:
 ecdsa-sha2-nistp256 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: kex: client->server cipher:
 chacha20-poly1...@openssh.com  MAC:
  compression: none [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: kex: server->client cipher:
 chacha20-poly1...@openssh.com  MAC:
  compression: none [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: kex: curve25519-sha256
 need=64 dh_need=64 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: kex: curve25519-sha256
 need=64 dh_need=64 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: expecting
 SSH2_MSG_KEX_ECDH_INIT [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: rekey after 134217728 blocks
 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: SSH2_MSG_NEWKEYS sent
 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: expecting SSH2_MSG_NEWKEYS
 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: Connection closed by XXX.XXX.XXX.147
 port 48148 [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: do_cleanup [preauth]*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: do_cleanup*
 *Feb  7 16:38:29 XXX sshd[110005]: debug1: Killing privsep child 110006*
 *Feb  7 16:38:29 XXX sshd[109922]: debug1: Forked child 110007.*
 *Feb  7 16:38:29 XXX sshd

Re: [ovirt-users] Maximum time node can be offline.

2018-02-09 Thread Martin Sivak
Hi,

the hosts are almost stateless and we set up most of what is needed
during activation. Hosted engine has some configuration stored
locally, but that is just the path to the storage domain.

I think you should be fine unless you change the network topology
significantly. I would also install security updates once in while.

We can even shut down the hosts for you when you configure two cluster
scheduling properties: EnableAutomaticPM and HostsInReserve.
HostsInReserve should be at least 1 though. It behaves like this, as
long as the reserve host is empty, we shut down all the other empty
hosts. And we boot another host once a VM does not fit on other used
hosts and is places on the running reserve host. That would save you
the power of just one host, but it would still be highly available (if
hosted engine and storage allows that too).

Bear in mind that single host cluster is not highly available at all.

Best regards

Martin Sivak

On Fri, Feb 9, 2018 at 8:25 AM, Gianluca Cecchi
 wrote:
> On Fri, Feb 9, 2018 at 2:30 AM, Thomas Letherby  wrote:
>>
>> Thanks, that answers my follow up question! :)
>>
>> My concern is that I could have a host off-line for a month say, is that
>> going to cause any issues?
>>
>> Thanks,
>>
>> Thomas
>>
>
> I think that if in the mean time you don't make any configuration changes
> and you don't update anything, there is no reason to have problems.
> In case of changes done, it could depend on what they are: are you thinking
> about any particular scenario?
>
>
> ___
> 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] Use the "hosted_engine" data domain as data domain for others VM

2018-02-09 Thread yayo (j)
Hi,

Is there any problem to use the "hosted_engine" data domain to put disk of
others VM? I have created a "too big" "hosted_engine" data domain so I want
to use that space...

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


Re: [ovirt-users] oVirt CLI Question

2018-02-09 Thread Fabrice Bacchella


> Le 8 févr. 2018 à 09:44, Ondra Machacek  a écrit :
>> Is this project part of oVirt distro? It looks like in state of active
>> development with last updates 2 months ago.
>> https://github.com/fbacchella/ovirtcmd
> 
> No, it isn't part of oVirt distribution.
> 

It's my projet. Do you have any question about it ?

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


Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-09 Thread Sandro Bonazzola
2018-02-09 8:53 GMT+01:00 Reznikov Alexei :

> Hi all!
>
> After upgrade from ovirt 4.0 to 4.1, a have trouble add to next
> HostedEngine host to my cluster via webui... host add succesfully and
> become up, but HE not active in this host.
>
> log's from trouble host
> # cat agent.log
> > KeyError: 'Configuration value not found: 
> > file=/etc/ovirt-hosted-engine/hosted-engine.conf,
> key=gateway'
>

Adding Simone




>
> # cat /etc/ovirt-hosted-engine/hosted-engine.conf
> ca_cert=/etc/pki/vdsm/libvirt-spice/ca-cert.pem
> host_id=2
>
> log deploy from engine in attach.
>
> trouble host:
> ovirt-hosted-engine-setup-2.1.4-1.el7.centos.noarch
> ovirt-host-deploy-1.6.7-1.el7.centos.noarch
> vdsm-4.19.45-1.el7.centos.x86_64
> CentOS Linux release 7.4.1708 (Core)
>
> engine host:
> ovirt-release41-4.1.9-1.el7.centos.noarch
> ovirt-engine-4.1.9.1-1.el7.centos.noarch
> CentOS Linux release 7.4.1708 (Core)


> Please help me fix it.
>
> Thanx, Alex.
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>


-- 

SANDRO BONAZZOLA

ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R&D

Red Hat EMEA 

TRIED. TESTED. TRUSTED. 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-09 Thread Николаев Алексей
Hi, community.I have some issue on ovirt node 4.2.Resolve it with manually copying vm.conf from first host.09.02.2018, 10:56, "Reznikov Alexei" :Hi all!After upgrade from ovirt 4.0 to 4.1, a have trouble add to next HostedEngine host to my cluster via webui... host add succesfully and become up, but HE not active in this host.log's from trouble host# cat agent.log > KeyError: 'Configuration value not found: file=/etc/ovirt-hosted-engine/hosted-engine.conf, key=gateway'# cat /etc/ovirt-hosted-engine/hosted-engine.confca_cert=/etc/pki/vdsm/libvirt-spice/ca-cert.pemhost_id=2log deploy from engine in attach.trouble host:ovirt-hosted-engine-setup-2.1.4-1.el7.centos.noarchovirt-host-deploy-1.6.7-1.el7.centos.noarchvdsm-4.19.45-1.el7.centos.x86_64CentOS Linux release 7.4.1708 (Core)engine host:ovirt-release41-4.1.9-1.el7.centos.noarchovirt-engine-4.1.9.1-1.el7.centos.noarchCentOS Linux release 7.4.1708 (Core)Please help me fix it.Thanx, Alex.___Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users