Re: [ovirt-users] How to update ovirt ng nodes

2017-03-30 Thread Николаев Алексей
Hi, community!  08.02.2017, 10:51, "Yedidyah Bar David" :On Wed, Feb 8, 2017 at 12:51 AM, Massimo Mad  wrote: Hi, How is the right procedure for upgrade the host from 4.0 to 4.1. I don't find any document with the right procedure, if i use the iso of the version 4.1 and i boot with this iso there is'nt the option on boot for upgrade. The problem is that it should be updated .repo file with the 4.1 release, but is supported ? How do you update the hosts ?Generally, 'yum update' should be enough. See also:Using 'yum clean all' and then 'yum update' on ovirt node ng will update all pkgs from CentOS-Base.repo.Also will be updated kernel pkg. And if no new 'ovirt-node-ng-image-update' 'ovirt-node-ng-image' normal kernel will be booted, not ovirt node kernel. Is this OK that CentOS-Base.repo on ovirt node ng not use'includepkgs=ovirt-node-ng-image-update ovirt-node-ng-image ovirt-engine-appliance' ? http://www.ovirt.org/node/faq/Best,--Didi___Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Remote PostgreSQL 9.5 (was: Answer file key for "nonlocal postgres")

2017-03-30 Thread Jamie Lawrence

> On Mar 27, 2017, at 10:42 PM, Yedidyah Bar David  wrote:
>> I know what I was doing is unsupported. I was wondering down the wrong 
>> troubleshooting path for a bit there, but I think ultimately what I need is 
>> also unsupported.
>> 
>> It was because I was trying to push this into our extant DB infrastructure, 
>> which is PG 9.5. Which I found doesn’t work with a local-install, either. (I 
>> was thinking it would work due to past experience with things that demand an 
>> old Postgres; IME, PG generally has pretty solid forward-compatibility.)
> 
> In "local-install" you mean on the engine machine?
> 
> From RPMs?
> Instead of the OS-packaged PG (and not in parallel)?
> Were its binaries in /usr/bin (and not some private path)?

Should have provided clearer info. By local install, I mean the machine the 
engine is being installed on. The PG installs I tried were all from RPMs. 9.5 
was from the PGDG archive (the installer refuses to run against it); 9.2, I 
didn’t look, but assume that was either the Ovirt archive or from Centos 
upstream (the installer is happy with it). I just checked, and Postgres client 
binaries (pg_dump, psql, etc.) were installed in /bin; not sure why the package 
would do that.

> If answers for all of the above are 'Yes', then please
> share setup logs, perhaps preferably by opening a bugzilla
> RFE and attaching them there. It's rather likely that
> whatever problems you had are quite easy to solve.
> 
> Otherwise, please try that, or see the bug(s) below for
> a discussion about this.

Sorry, I no longer have that log. I’ve probably run 70-80 iterations of the 
installation, and cleaned up a few times.

Unfortunately, the speed with which I’ve had to do this hasn't matched well 
with asking for help. I’ve solved my DB problems (although I’m well off into an 
entirely manual configuration now), and am currently fighting with LDAP setup.  
(When it works, works fine, in that it authenticates, returns the right data, 
etc. It just times out on connect about 90% of the time, and is the only one of 
a diverse set of LDAP clients to do so.) 

>> So that leads me to my next question: if I install under the supported  
>> version and dump/load/reconfigure to PG9.5.3, is anyone aware of any actual 
>> problems (other than lack of official support)?
> 
> I personally didn't yet reach that point to be able to tell about,
> nor do I know about others that did, but see below.

FTR, as best I can tell so far, there’s no issue with 9.5.3, once you get it 
working. However, at least in my experience, you won’t get it working with the 
installer. I also tried the installer-facilitated migration from local to 
remote at one point; it blew up and died telling me to downgrade our cluster, 
change a bunch of vacuum-related config variables(!), and I think there was 
something else it was fussing about - really ticky operational details the 
installer has no business refusing to run over. (There is simply no way the 
installer has a better idea of what optimum vacuum settings are for our 
hardware, environment and load than our DBAs do.)

What I did, which is working:

- Let the installer do as it pleases with PG9.2 on the engine machine. 
- pg_dump […] | pg_restore […] to the 9.5 cluster for both DBs.
- Revise as needed:
  /etc/ovirt-engine/aaa/internal.properties
  /etc/ovirt-engine/engine.conf.d/10-database-setup.conf
  /etc/ovirt-engine/engine.conf.d/10-setup-dwh-database.conf
  /etc/ovirt-engine-dwh/ovirt-engine-dwhd.conf.d/10-setup-database.conf
- Shut down local PG, verify everything is using the right DB and working.
- Blow away the local DB, leave the ancient PG and related installed for Ovirt 
to do whatever with.
- (Not done yet) code and document this madness for our Puppet system.

One additional manual config requirement I ran in to is that in the places 
where DB URLs are used (.properties, DB-related .conf files), when enabling 
SSL, the URL needs to have ‘?ssl=true’ appended or it fails to attempt SSL on 
connect in our environment. I assume that’s some driver peculiarity but haven’t 
looked (Most of our DB hosts are Debian, a couple are Ubuntu

> Please see this bug, and the the ones it depends on:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1324882
> 
> Almost all of it is relevant for a "vanilla" 9.5.

Thank you; it was helpful in piecing together what needed to happen. 

I do fear upgrades now, especially anything touching the DB. But the installer 
as it works now simply doesn’t support our environment.  I had/am having issues 
with:

 - remote PG 9.5 cluster + required SSL, 
 - using our CA, 
 - OpenLDAP + required SSL,
 - Bonded NICs

I know this is being discussed on the dev list, and I’ve resisted jumping in, 
because I’m not going to be contributing code. But please consider this one 
emphatic vote for adding options to the installer to selectively disable/skip 
parts of the ‘non-core’ config: database, authentication, firewall, NICs, etc. 
etc.

Re: [ovirt-users] VDSM Hooks

2017-03-30 Thread Fred Rolland
John,

Here is the readme for the localdisk hook:
https://github.com/oVirt/vdsm/blob/master/vdsm_hooks/localdisk/README

In order to use it you need to install it on the host, configure the VM
User Property on the engine, and set the property on the VM that will use
the hook.

Note that a lot of operations are not supported when this hook is in use.

Please tell if the readme is missing some information.

Regards,

Fred


On Thu, Mar 30, 2017 at 7:55 PM, Liron Aravot  wrote:

>
>
> On Thu, Mar 30, 2017 at 7:30 PM, John  wrote:
>
>> Hi,
>>
>> I've be googling and also trawling the oVirt documentation trying to find
>> instructions on how to install and use VDSM hooks in general but
>> specifically the "vdsm-hook-localdisk" hook. I have a machine that has a
>> large amount of free space on SSD which I was hoping to use to store a
>> pinned VM which requires fast I/O throughput and doesn't require HA. In
>> essence, I'm trying to figure out how to use a hypervisor host as both a
>> member of my cluster but also to provision a VM using local storage. If
>> anybody could point me in the right direction I would be very grateful.
>>
>> Thanks
>
>
> Hi John,
> the method you specified should work.
>
> Have you checked the documentation here?
> http://www.ovirt.org/develop/developer-guide/vdsm/hooks/
>
>
>>
>> John
>> ___
>> 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] Recent Install Docs?

2017-03-30 Thread Alan Griffiths
I believe that is the required setup - dedicated storage domain for HE.
It's certainly the case on 4.0, I haven't played with 4.1 yet.

For docs you can always check the RHV set, they are generally applicable to
oVirt.

https://access.redhat.com/documentation/en-us/red_hat_
virtualization/4.1-beta/html/self-hosted_engine_guide/


On 30 March 2017 at 18:17, Charles Tassell  wrote:

> Hello,
>
>   Are there any more recent install docs than what's on the website?
> Those all seem to be back from the 3.x days and don't really deal with the
> modern setup of using a hosted engine.
>
>   More specifically, I've noticed that when deploying a hosted engine I
> can't import the storage domain that the engine is on. When I try I get
> errors like "Can't import the storage domain, connection already exists"
> Because I can't import my storage domain, I can't initialize the cluster,
> so I can't really get anywhere with the setup.  I had this same problem on
> 4.0 (using 4.1 now) and I "fixed" it by wiping the cluster and creating two
> sets of storage: a small 50G one that holds the hosted engine, and then
> another one that holds all my VMs.  I don't want to do that with my new
> cluster if I can at all avoid it.
>
>
> ___
> 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] Python-SDK4: How to list VM user sessions?

2017-03-30 Thread Juan Hernández
On 03/30/2017 01:01 PM, Giulio Casella wrote:
> Hi,
> I'm trying to obtain a list of users connected to a VM, using python SDK
> v4.
> Here's what I'm doing:
> 
> vm = vms_service.list(search="name=vmname")[0]
> vm_service = vms_service.vm_service(vm.id)
> sessions = vm_service.sessions_service().list()
> 
> But "sessions" is None.
> 
> Same result using:
> 
> s = connection.follow_link(vm.sessions)
> 
> "s" is None.
> 
> I tried also using curl, and if I connect to:
> 
> https://my.ovirt.host/ovirt-engine/api/v4/vms//sessions
> 
> I get a beautiful 404.
> 
> Also using v3 of python SDK I obtain the same behaviour.
> 
> So I suspect that retrieving user sessions via API is not implemented,
> is it? If not, what I'm doing wrong?
> 
> I'm using RHV 4.0.6.3-0.1.el7ev
> 
> Thanks in advance,
> Giulio
> 

Giulio, you should never get a 404 error from that URL, unless the
virtual doesn't exist or isn't visible for you. What user name are you
to create the SDK connection? An administrator or a regular user?

Also, please check the /var/log/ovirt-engine/server.log and
/var/log/ovirt-engine/engine.log when you send that request. Do you see
there something relevant?

Finally, please run your script with the 'debug=True' option in the
connection, and with a log file, like here:


https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/list_vms.py#L20-L37

Then share that log file so that we can check what the server is
returning exactly. Make sure to remove your password from that log file
before sharing it.




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


[ovirt-users] Questions regarding Mangement network and ISO Domain

2017-03-30 Thread Brenneman, Brad B.
To all,

  Fairly new to ovirt but ran into a couple issues which I am hoping someone 
can shed some light on.

Environment  (Ovirt 4.1)


*1 Engine with Bonded NICs on single subnet

*ISO domain created during install on engine

*VDSM Host A with Bonded NICs on single subnet (same as that being used 
with the engine)

*VDSM Host B with Bonded NICs on single subnet (same as that being used 
with the engine)

*Dell switch with AGM enabled for each set of bonded NICs - same ip 
subnet as host / engine

Situation prior to adding host(s) to engine

*Engine, Host A, Host B, and switch all communicate properly on ip 
segment (i.e. ping successful between all)

*3 data centers present

o   Default

o   Host A DC - due to use of local storage for Data domain

o   Host B DC - due to use of local storage for Data domain

Situation after trying to add host(s) to engine/DCs

Issue 1:   Engine creates ovirtmgmt net between Host A DC -> Host A but limits 
IP comms to only Host A, itself, and switch...no comms to Host B despite bonded 
NIC being in same subnet and functioning
Issue 2:  Because ovirmgmt limiting comms, can't add Host B to Host B DC 
without creating another ovirtmgmt net in a different subnet and use a 
different physical interface on engine
Issue 3:  Unable to add any ISO images to ISO domain using "uploader" 
commands.keeps saying the temp directory which is created on the ISO domain 
file system is read only yet perms are correct per documentation

Desire:  To have engine manage both Data Centers/hosts (each with local storage 
DATA domains) using the same ovirtmgmt network (IP subnet) across data centers.

Any assistance the readers can provide would be greatly appreciated.

Thanks in advance

Brad


William "Brad" Brenneman | Leidos
Senior Systems Engineer | Naval Strike and Intelligence Division
6909 Metro Park Drive   Alexandria, VA 22310
phone: 571.319.8221
"Temporary" mobile:   571 213 6890
william.b.brenne...@leidos.com  |  
leidos.com

[cid:image004.png@01CF4CE2.1EF07A30]



William "Brad" Brenneman | Leidos
Senior Systems Engineer | Naval Strike and Intelligence Division
6909 Metro Park Drive   Alexandria, VA 22310
phone: 571.319.8221
"Temporary" mobile:   571 213 6890
william.b.brenne...@leidos.com  |  
leidos.com

[cid:image004.png@01CF4CE2.1EF07A30]

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


[ovirt-users] Recent Install Docs?

2017-03-30 Thread Charles Tassell

Hello,

  Are there any more recent install docs than what's on the website?  
Those all seem to be back from the 3.x days and don't really deal with 
the modern setup of using a hosted engine.


  More specifically, I've noticed that when deploying a hosted engine I 
can't import the storage domain that the engine is on. When I try I get 
errors like "Can't import the storage domain, connection already 
exists"  Because I can't import my storage domain, I can't initialize 
the cluster, so I can't really get anywhere with the setup.  I had this 
same problem on 4.0 (using 4.1 now) and I "fixed" it by wiping the 
cluster and creating two sets of storage: a small 50G one that holds the 
hosted engine, and then another one that holds all my VMs.  I don't want 
to do that with my new cluster if I can at all avoid it.



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


Re: [ovirt-users] VDSM Hooks

2017-03-30 Thread Liron Aravot
On Thu, Mar 30, 2017 at 7:30 PM, John  wrote:

> Hi,
>
> I've be googling and also trawling the oVirt documentation trying to find
> instructions on how to install and use VDSM hooks in general but
> specifically the "vdsm-hook-localdisk" hook. I have a machine that has a
> large amount of free space on SSD which I was hoping to use to store a
> pinned VM which requires fast I/O throughput and doesn't require HA. In
> essence, I'm trying to figure out how to use a hypervisor host as both a
> member of my cluster but also to provision a VM using local storage. If
> anybody could point me in the right direction I would be very grateful.
>
> Thanks


Hi John,
the method you specified should work.

Have you checked the documentation here?
http://www.ovirt.org/develop/developer-guide/vdsm/hooks/


>
> John
> ___
> 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] VDSM Hooks

2017-03-30 Thread John

Hi,

I've be googling and also trawling the oVirt documentation trying to 
find instructions on how to install and use VDSM hooks in general but 
specifically the "vdsm-hook-localdisk" hook. I have a machine that has a 
large amount of free space on SSD which I was hoping to use to store a 
pinned VM which requires fast I/O throughput and doesn't require HA. In 
essence, I'm trying to figure out how to use a hypervisor host as both a 
member of my cluster but also to provision a VM using local storage. If 
anybody could point me in the right direction I would be very grateful.


Thanks

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


[ovirt-users] [ANN] oVirt 4.1.1 Async release candidate

2017-03-30 Thread Sandro Bonazzola
Hi,
following oVirt 4.1.1 GA the oVirt team identified some bugs worth to be
addressed out of the usual release cycle.
For this reason an async release including these fixes is under preparation.

An update to the following packages have been pushed to the pre-release
repository for testing.

- ovirt-engine-4.1.1.7
- vdsm-4.19.10.1
- ovirt-release41-4.1.1.1_rc1
- ovirt-web-ui-0.1.2-4
- cockpit-ovirt-0.10.7-0.0.16

In order to test it, you'll need pre-release repository enabled:
yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release41-pre.rpm

An update to release notes including bugs related to above packages and
updates applied in bugzilla documentation texts has been pushed to
https://github.com/oVirt/ovirt-site/pull/888 for review.

On behalf of the oVirt team,
-- 

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] Python-SDK4: How to list VM user sessions?

2017-03-30 Thread Ondra Machacek
On Thu, Mar 30, 2017 at 2:25 PM, Giulio Casella  wrote:

> On 30/03/2017 13:39, nico...@devels.es wrote:
>
>> Hi Giulio,
>>
>> I tried to reproduce your same steps and it returns an non-empty list
>> for me.
>>
>> In [1]: vms_serv = sys_serv.vms_service()
>>
>> In [2]: vm = vms_serv.list(search='name=bleh')[0]
>>
>> In [3]: vmsv = vms_serv.vm_service(vm.id)
>>
>> In [4]: vmsess = vmsv.sessions_service()
>>
>> In [5]: vmsess.list()
>> Out[5]:
>> [,
>>  ]
>>
>> Are you sure a session is initiated on vmname in the moment you run the
>> vms_service.list(...)[0] statement?
>>
>
> Yes, if I print vm I obtain:
>
> 
>
> while if I print vm_service:
>
> VmService:/vms/
>
> and it is a real service (e.g. I can call method start, shutdown, ...)
>
>
>
>
>
>> El 2017-03-30 12:01, Giulio Casella escribió:
>>
>>> Hi,
>>> I'm trying to obtain a list of users connected to a VM, using python
>>> SDK v4.
>>> Here's what I'm doing:
>>>
>>> vm = vms_service.list(search="name=vmname")[0]
>>> vm_service = vms_service.vm_service(vm.id)
>>> sessions = vm_service.sessions_service().list()
>>>
>>> But "sessions" is None.
>>>
>>> Same result using:
>>>
>>> s = connection.follow_link(vm.sessions)
>>>
>>> "s" is None.
>>>
>>> I tried also using curl, and if I connect to:
>>>
>>> https://my.ovirt.host/ovirt-engine/api/v4/vms//sessions
>>>
>>> I get a beautiful 404.
>>>
>>> Also using v3 of python SDK I obtain the same behaviour.
>>>
>>> So I suspect that retrieving user sessions via API is not implemented,
>>> is it? If not, what I'm doing wrong?
>>>
>>

Works OK for me:

In [12]: vm_service =
vms_service.vm_service('55095f91-e8e3-4634-9d05-47e0cc91e66b')

In [13]: vm_service.sessions_service().list()
Out[13]: []

In [14]: sdk.version.VERSION
Out[14]: '4.0.4'


What is the version of the SDK you are using?


>
>>> I'm using RHV 4.0.6.3-0.1.el7ev
>>>
>>> Thanks in advance,
>>> Giulio
>>>
>>> ___
>>> 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
>>
>
> --
> Giulio Casellagiulio at di.unimi.it
> System and network manager
> Computer Science Dept. - University of Milano
>
> ___
> 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-hosted-engine state transition messages

2017-03-30 Thread Simone Tiraboschi
Could you please check your /var/log/ovirt-hosted-engine-ha/agent.log ?

On Thu, Mar 30, 2017 at 3:10 AM, Jim Kusznir  wrote:

> Hello:
>
> I find that I often get random-seeming messages.  A lot of them mention
> "ReintializeFSM", but I also get engine down, engine start, etc.
>  messages.  All the time, nothing appears to be happening on the cluster,
> and I rarely can find anything wrong or any trigger/cause.  Is this
> normal?  What causes this (beyond obvious hardware issues / hosts
> rebooting)?  Most of the time when I get these, my cluster is going along
> smoothly, and nothing (not even administrative access) is interrupted.
>
> Could ISP issues cause these messages to be generated?
>
> Thanks!
> --Jim
>
> ___
> 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] Python-SDK4: How to list VM user sessions?

2017-03-30 Thread Giulio Casella

On 30/03/2017 13:39, nico...@devels.es wrote:

Hi Giulio,

I tried to reproduce your same steps and it returns an non-empty list
for me.

In [1]: vms_serv = sys_serv.vms_service()

In [2]: vm = vms_serv.list(search='name=bleh')[0]

In [3]: vmsv = vms_serv.vm_service(vm.id)

In [4]: vmsess = vmsv.sessions_service()

In [5]: vmsess.list()
Out[5]:
[,
 ]

Are you sure a session is initiated on vmname in the moment you run the
vms_service.list(...)[0] statement?


Yes, if I print vm I obtain:



while if I print vm_service:

VmService:/vms/

and it is a real service (e.g. I can call method start, shutdown, ...)





El 2017-03-30 12:01, Giulio Casella escribió:

Hi,
I'm trying to obtain a list of users connected to a VM, using python
SDK v4.
Here's what I'm doing:

vm = vms_service.list(search="name=vmname")[0]
vm_service = vms_service.vm_service(vm.id)
sessions = vm_service.sessions_service().list()

But "sessions" is None.

Same result using:

s = connection.follow_link(vm.sessions)

"s" is None.

I tried also using curl, and if I connect to:

https://my.ovirt.host/ovirt-engine/api/v4/vms//sessions

I get a beautiful 404.

Also using v3 of python SDK I obtain the same behaviour.

So I suspect that retrieving user sessions via API is not implemented,
is it? If not, what I'm doing wrong?

I'm using RHV 4.0.6.3-0.1.el7ev

Thanks in advance,
Giulio

___
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


--
Giulio Casellagiulio at di.unimi.it
System and network manager
Computer Science Dept. - University of Milano
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Gluster and oVirt 4.0 questions

2017-03-30 Thread Alexander Wels
On Thursday, March 30, 2017 3:53:47 AM EDT Liron Aravot wrote:
> Hi Jim, please see inline
> 
> On Thu, Mar 30, 2017 at 4:08 AM, Jim Kusznir  wrote:
> > hello:
> > 
> > I've been running my ovirt Version 4.0.5.5-1.el7.centos cluster for a
> > while now, and am now revisiting some aspects of it for ensuring that I
> > have good reliability.
> > 
> > My cluster is a 3 node cluster, with gluster nodes running on each node.
> > After running my cluster a bit, I'm realizing I didn't do a very optimal
> > job of allocating the space on my disk to the different gluster mount
> > points.  Fortunately, they were created with LVM, so I'm hoping that I can
> > resize them without much trouble.
> > 
> > I have a domain for iso, domain for export, and domain for storage, all
> > thin provisioned; then a domain for the engine, not thin provisioned.  I'd
> > like to expand the storage domain, and possibly shrink the engine domain
> > and make that space also available to the main storage domain.  Is it as
> > simple as expanding the LVM partition, or are there more steps involved?
> > Do I need to take the node offline?
> 
> I didn't understand completely that part - what is the difference between
> the domain for storage and the domain for engine you mentioned?
> 
> > second, I've noticed that the first two nodes seem to have a full copy of
> > the data (the disks are in use), but the 3rd node appears to not be using
> > any of its storage space...It is participating in the gluster cluster,
> > though.
> > 
> > Third, currently gluster shares the same network as the VM networks.  I'd
> > like to put it on its own network.  I'm not sure how to do this, as when I
> > tried to do it at install time, I never got the cluster to come online; I
> > had to make them share the same network to make that work.
> 
> I'm adding Sahina who may shed some light on the gluster question, I'd try
> on the gluster mailing list as well.
> 
> > Ovirt questions:
> > I've noticed that recently, I don't appear to be getting software updates
> > anymore.  I used to get update available notifications on my nodes every
> > few days; I haven't seen one for a couple weeks now.  is something wrong?
> > 
> > I have a windows 10 x64 VM.  I get a warning that my VM type does not
> > match the installed OS.  All works fine, but I've quadrouple-checked that
> > it does match.  Is this a known bug?

Do you have the ovirt-guest-agent installed and running on that windows VM? If 
not that is highly likely the cause for the warning.

> 
> Arik, any info on that?
> 
> > I have a UPS that all three nodes and the networking are on.  It is a USB
> > UPS.  How should I best integrate monitoring in?  I could put a raspberry
> > pi up and then run NUT or similar on it, but is there a "better" way with
> > oVirt?
> > 
> > Thanks!
> > --Jim
> > 
> > ___
> > 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] Default Quota could not be updated nor removed in ovirt hosted engine 4.1

2017-03-30 Thread Manuel Luis Aznar
Hello there,

It seams that there is a bug with the Default Quota, as I reported in the
subject of the email I am using oVirt Hosted Engine 4.1

When I tried to edit the Default Quota the system replies the following
with Data Center in Audit Mode:

Operation Canceled: Error while executing action: Cannot edit Quota. Quota
is not valid.

If I try to remove the Default Quota of the system, it replied:

Operation Canceled: Error while executing action: Cannot remove Quota.
Default quota cannot be changed.

In the other hand if I do the same with the Data Center in Disabled Mode
for Quota it says:

Trying to edit Default Quota I got:

Operation canceled: Error while executing action: Cannot edit Quota. Quota
is not valid.

Trying to remove Quota I got:

Operation canceled: Error while executing action: Cannot remove Quota.
Default quota cannot be changed.


Of course I can create other Quotas, edit them and remove them. The problem
is only with the Default Quota.


Any help would be appreciated, either in unblocking the system to
edit/remove Default quota...

Thanks for all in advance,
Manuel
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-03-30 Thread nicolas

Hi Giulio,

I tried to reproduce your same steps and it returns an non-empty list 
for me.


In [1]: vms_serv = sys_serv.vms_service()

In [2]: vm = vms_serv.list(search='name=bleh')[0]

In [3]: vmsv = vms_serv.vm_service(vm.id)

In [4]: vmsess = vmsv.sessions_service()

In [5]: vmsess.list()
Out[5]:
[,
 ]

Are you sure a session is initiated on vmname in the moment you run the 
vms_service.list(...)[0] statement?


El 2017-03-30 12:01, Giulio Casella escribió:

Hi,
I'm trying to obtain a list of users connected to a VM, using python 
SDK v4.

Here's what I'm doing:

vm = vms_service.list(search="name=vmname")[0]
vm_service = vms_service.vm_service(vm.id)
sessions = vm_service.sessions_service().list()

But "sessions" is None.

Same result using:

s = connection.follow_link(vm.sessions)

"s" is None.

I tried also using curl, and if I connect to:

https://my.ovirt.host/ovirt-engine/api/v4/vms//sessions

I get a beautiful 404.

Also using v3 of python SDK I obtain the same behaviour.

So I suspect that retrieving user sessions via API is not implemented,
is it? If not, what I'm doing wrong?

I'm using RHV 4.0.6.3-0.1.el7ev

Thanks in advance,
Giulio

___
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 3.6 on CentOS 6.7 based HyperConverged DC : Upgradable?

2017-03-30 Thread Sahina Bose
On Thu, Mar 30, 2017 at 4:39 PM, Sahina Bose  wrote:

>
>
> On Wed, Mar 29, 2017 at 10:36 PM, Liron Aravot  wrote:
>
>>
>>
>> On Wed, Mar 29, 2017 at 4:35 PM, Nicolas Ecarnot 
>> wrote:
>>
>>> [Please ignore the previous msg]
>>>
>>> Hello,
>>>
>>> One of our DC is a very small one, though quite critical.
>>> It's almost hyper converged : hosts are compute+storage, but the engine
>>> is standalone.
>>>
>>> It's made of :
>>>
>>> Hardware :
>>> - one physical engine : CentOS 6.7
>>> - 3 physical hosts : CentOS 7.2
>>>
>>> Software :
>>> - oVirt 3.6.5
>>> - glusterFS 3.7.16 in replica-3, sharded.
>>>
>>> The goal is to upgrade all this to oVirt 4.1.1, and also upgrade the
>>> OSes. (oV 4.x only available on cOS 7.x)
>>>
>>> At present, only 3 VMs here are critical, and I have backups for them.
>>> Though, I'm quite nervous with the path I have to follow and the
>>> hazards. Especially about the gluster parts.
>>>
>>> At first glance, I would go this way (feel free to comment) :
>>> - upgrade the OS of the engine : 6.7 -> 7.3
>>> - upgrade the OS of the hosts  : 7.2 -> 7.3
>>> - upgrade and manage the upgrade of gluster, check the volumes...
>>> - upgrade oVirt (engine then hosts)
>>>
>>
>> Hi Nicolas,
>> Regards the gluster update - have your tried to ask in the gluster ml?
>> I'm adding Sahina to share her opinion on that flow.
>> Export domain as Didi suggested is indeed the easy way from oVirt
>> perspective - but it'll take a long time to copy/restore, Gluster backup
>> should perform faster if there's a solution that fit your needs.
>>
>
> Gluster does work with rolling upgrades - so there's no need to bring your
> system offline.
> Which glusterfs version are you on? Are you planning to update to gluster
> 3.10
>

Sorry, missed that in your previous email. So you'll be upgrading from
3.7.6 to 3.8.x.
If you do have the option of an offline upgrade - that's the safest, though
rolling upgrade is also possible from 3.7



>
>
>>
>>> But when upgrading the OSes, I guess it will also upgrade the gluster
>>> layer.
>>>
>>> During this upgrade, I have no constraint to keep everything running,
>>> total shutdown is acceptable.
>>>
>>> Is the above procedure seems OK, or may am I missing some essential
>>> points?
>>>
>>> Thank you.
>>>
>>> --
>>> Nicolas ECARNOT
>>> ___
>>> 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


[ovirt-users] Python-SDK4: How to list VM user sessions?

2017-03-30 Thread Giulio Casella

Hi,
I'm trying to obtain a list of users connected to a VM, using python SDK v4.
Here's what I'm doing:

vm = vms_service.list(search="name=vmname")[0]
vm_service = vms_service.vm_service(vm.id)
sessions = vm_service.sessions_service().list()

But "sessions" is None.

Same result using:

s = connection.follow_link(vm.sessions)

"s" is None.

I tried also using curl, and if I connect to:

https://my.ovirt.host/ovirt-engine/api/v4/vms//sessions

I get a beautiful 404.

Also using v3 of python SDK I obtain the same behaviour.

So I suspect that retrieving user sessions via API is not implemented, 
is it? If not, what I'm doing wrong?


I'm using RHV 4.0.6.3-0.1.el7ev

Thanks in advance,
Giulio

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


Re: [ovirt-users] oVirt 3.6 on CentOS 6.7 based HyperConverged DC : Upgradable?

2017-03-30 Thread Sahina Bose
On Wed, Mar 29, 2017 at 10:36 PM, Liron Aravot  wrote:

>
>
> On Wed, Mar 29, 2017 at 4:35 PM, Nicolas Ecarnot 
> wrote:
>
>> [Please ignore the previous msg]
>>
>> Hello,
>>
>> One of our DC is a very small one, though quite critical.
>> It's almost hyper converged : hosts are compute+storage, but the engine
>> is standalone.
>>
>> It's made of :
>>
>> Hardware :
>> - one physical engine : CentOS 6.7
>> - 3 physical hosts : CentOS 7.2
>>
>> Software :
>> - oVirt 3.6.5
>> - glusterFS 3.7.16 in replica-3, sharded.
>>
>> The goal is to upgrade all this to oVirt 4.1.1, and also upgrade the
>> OSes. (oV 4.x only available on cOS 7.x)
>>
>> At present, only 3 VMs here are critical, and I have backups for them.
>> Though, I'm quite nervous with the path I have to follow and the hazards.
>> Especially about the gluster parts.
>>
>> At first glance, I would go this way (feel free to comment) :
>> - upgrade the OS of the engine : 6.7 -> 7.3
>> - upgrade the OS of the hosts  : 7.2 -> 7.3
>> - upgrade and manage the upgrade of gluster, check the volumes...
>> - upgrade oVirt (engine then hosts)
>>
>
> Hi Nicolas,
> Regards the gluster update - have your tried to ask in the gluster ml?
> I'm adding Sahina to share her opinion on that flow.
> Export domain as Didi suggested is indeed the easy way from oVirt
> perspective - but it'll take a long time to copy/restore, Gluster backup
> should perform faster if there's a solution that fit your needs.
>

Gluster does work with rolling upgrades - so there's no need to bring your
system offline.
Which glusterfs version are you on? Are you planning to update to gluster
3.10


>
>> But when upgrading the OSes, I guess it will also upgrade the gluster
>> layer.
>>
>> During this upgrade, I have no constraint to keep everything running,
>> total shutdown is acceptable.
>>
>> Is the above procedure seems OK, or may am I missing some essential
>> points?
>>
>> Thank you.
>>
>> --
>> Nicolas ECARNOT
>> ___
>> 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] When creating a gluster brick in oVirt, what is the reason for having to fill in the RAID-parameters?

2017-03-30 Thread Goorkate, B.J.
Hi,

Thanks for confirming this!

Is there a preferred stripe size for gluster bricks? The default for RAID-10 
seems to be 256KB, but the Dell RAID-controller defaults to 64KB.

Regards,

Bertjan

On Thu, Mar 30, 2017 at 04:30:31PM +0530, Sahina Bose wrote:
> 
> 
> On Wed, Mar 29, 2017 at 5:22 PM, Goorkate, B.J. 
> wrote:
> 
> Hi all,
> 
> When creating a gluster brick in oVirt, I have to fill in the parameters 
> of
> the
> RAID volume the brick is on (that's how I understand it anyway):
> RAID-type, number of disks and stripe size.
> 
> What is the reason for that? Is the gluster brick optimised for this
> parameters?
> tried to find information about this, but no luck yet..
> 
> 
> Yes, the LVM and filesystem are optimised as per best practice guidelines 
> based
> on the information provided.
> There's no way currently to determine the RAID parameters given a device, and
> hence we're asking the user to provide these inputs
>  
> 
> .
> 
> Thanks in advance!
> 
> Regards,
> 
> Bertjan Goorkate
> 
> 
> 
> 
> --
> 
> De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is
> uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht
> ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender
> direct
> te informeren door het bericht te retourneren. Het Universitair Medisch
> Centrum Utrecht is een publiekrechtelijke rechtspersoon in de zin van de
> W.H.W.
> (Wet Hoger Onderwijs en Wetenschappelijk Onderzoek) en staat geregistreerd
> bij
> de Kamer van Koophandel voor Midden-Nederland onder nr. 30244197.
> 
> Denk s.v.p aan het milieu voor u deze e-mail afdrukt.
> 
> 
> --
> 
> This message may contain confidential information and is intended
> exclusively
> for the addressee. If you receive this message unintentionally, please do
> not
> use the contents but notify the sender immediately by return e-mail.
> University
> Medical Center Utrecht is a legal person by public law and is registered 
> at
> the Chamber of Commerce for Midden-Nederland under no. 30244197.
> 
> Please consider the environment before printing this e-mail.
> ___
> 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 a gluster brick in oVirt, what is the reason for having to fill in the RAID-parameters?

2017-03-30 Thread Sahina Bose
On Wed, Mar 29, 2017 at 5:22 PM, Goorkate, B.J. 
wrote:

> Hi all,
>
> When creating a gluster brick in oVirt, I have to fill in the parameters
> of the
> RAID volume the brick is on (that's how I understand it anyway):
> RAID-type, number of disks and stripe size.
>
> What is the reason for that? Is the gluster brick optimised for this
> parameters?
> tried to find information about this, but no luck yet..


Yes, the LVM and filesystem are optimised as per best practice guidelines
based on the information provided.
There's no way currently to determine the RAID parameters given a device,
and hence we're asking the user to provide these inputs


> .
>
> Thanks in advance!
>
> Regards,
>
> Bertjan Goorkate
>
>
>
> 
> --
>
> De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is
> uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht
> ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender
> direct
> te informeren door het bericht te retourneren. Het Universitair Medisch
> Centrum Utrecht is een publiekrechtelijke rechtspersoon in de zin van de
> W.H.W.
> (Wet Hoger Onderwijs en Wetenschappelijk Onderzoek) en staat geregistreerd
> bij
> de Kamer van Koophandel voor Midden-Nederland onder nr. 30244197.
>
> Denk s.v.p aan het milieu voor u deze e-mail afdrukt.
>
> 
> --
>
> This message may contain confidential information and is intended
> exclusively
> for the addressee. If you receive this message unintentionally, please do
> not
> use the contents but notify the sender immediately by return e-mail.
> University
> Medical Center Utrecht is a legal person by public law and is registered at
> the Chamber of Commerce for Midden-Nederland under no. 30244197.
>
> Please consider the environment before printing this e-mail.
> ___
> 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] ovirtvm-console : Failed to execute login on behalf - for user

2017-03-30 Thread Nathanaël Blanchet



Le 29/03/2017 à 18:36, Ravi Nori a écrit :
Did you restart ovirt-engine after editing ovirt-engine.xml.in 
? the logs you send me don't contain debug entries

sorry, I forgot indeed, here is the debug log.
Thank you.


On Wed, Mar 29, 2017 at 12:21 PM, Nathanaël Blanchet > wrote:


thank you

[7a9694e5] Running command: LoginOnBehalfCommand internal: true.
2017-03-29 18:13:53,155+02 ERROR
[org.ovirt.engine.core.sso.utils.SsoUtils] (default task-53) []
OAuthException server_error: java.text.ParseException: Invalid
character ' ' encountered.
2017-03-29 18:13:53,156+02 ERROR
[org.ovirt.engine.core.bll.aaa.LoginOnBehalfCommand] (default
task-45) [7a9694e5] Unable to create engine session:
EngineException:  user sblanc...@levant.abes.fr
 in domain 'abes.fr-authz (Failed
with error PRINCIPAL_NOT_FOUND and code 5200)
2017-03-29 18:13:53,168+02 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(default task-45) [7a9694e5] EVENT_ID:
USER_LOGIN_ON_BEHALF_FAILED(1,402), Correlation ID: 7a9694e5, Call
Stack: null, Custom Event ID: -1, Message: Failed to execute login
on behalf - for user sblanc...@levant.abes.fr
.
2017-03-29 18:13:53,169+02 ERROR
[org.ovirt.engine.core.services.VMConsoleProxyServlet] (default
task-45) [7a9694e5] Error processing request: :
java.lang.RuntimeException: Unable to create session using
LoginOnBehalf

at

org.ovirt.engine.core.services.VMConsoleProxyServlet.availableConsoles(VMConsoleProxyServlet.java:102)
[services.jar:]
at

org.ovirt.engine.core.services.VMConsoleProxyServlet.produceContentFromParameters(VMConsoleProxyServlet.java:177)
[services.jar:]
at

org.ovirt.engine.core.services.VMConsoleProxyServlet.doPost(VMConsoleProxyServlet.java:213)
[services.jar:]
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
[jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
[jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
at

io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
[undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at

io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
[undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at org.ovirt.engine.core.utils.se

rvlet.LocaleFilter.doFilter(LocaleFilter.java:66)
[utils.jar:]
at
io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
[undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at

io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
[undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at

io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
[undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at

io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
[undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at

io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
[undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at

org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.server.handlers.Pr

edicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.4.0.Final.jar:1.4.0.Final]
at

io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
[undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at

io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
[undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.server.handlers.Pr

edicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.4.0.Final.jar:1.4.0.Final]
at

io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
[undertow-core-1.4.0.Final.jar:1.4.0.Final]
at

io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
[undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at

io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
[undertow-core-1.4.0.Final.jar:1.4.

Re: [ovirt-users] vms stucked after migrate from 4.1.0 to 4.1.1 host

2017-03-30 Thread Jiri Slezka
On 03/28/2017 05:04 PM, Jiří Sléžka wrote:
> On 03/28/2017 01:50 PM, Michal Skrivanek wrote:
>>
>>> On 28 Mar 2017, at 13:41, Jiří Sléžka  wrote:
>>>
>>> On 03/28/2017 12:34 AM, Jiří Sléžka wrote:
 Hi all,

 I have just upgraded ovirt manager from 4.1.0 to 4.1.1, then I have
 upgraded one host. After reboot and activation of this host some vms
 started to migrate here.

 Some time after migration CPU of this vms go to 100% and vms become
 unreachable.

 There is /var/log/libvirt/qemu/hypnos.log (hypnos is one of this vms)
 https://pastebin.com/U30xfBMJ

 Powering off and starting again solve this but I would like to have a
 glue what is happening.

 I suspect this line

 2017-03-27T22:09:23.746710Z qemu-kvm: warning: TSC frequency mismatch
 between VM (2600031 kHz) and host (2100024 kHz), and TSC scaling 
 unavailable

 Original host uses "AMD Opteron(TM) Processor 6238" with "cpu MHz:
 2600.113" and upgraded host uses "AMD Opteron(tm) Processor 6172" with
 "cpu MHz: 2100.097".
>>>
>>> It looks like it isn't problem with 4.1.1 at all.
>>>
>>> There is just missing tsc_scale cpu flag on our older AMD CPUs...
>>>
>>> http://unix.stackexchange.com/questions/296636/100-cpu-utilisation-and-hang-after-virsh-migrate
>>>
>>> This is probably unsolvable hw problem, right?
>>
>> And this is without host-model CPU type?
>> That 6172 should be Opteron G3…is that what you have set in your Cluster?
> 
> Yes, Cluster CPU type is set to AMD Opteron G3. 6172 should be G3 (we
> have 3 of 4 hosts in this cluster with 6172 CPU), 6238 is probably G4
> but forced (I hoped) to G3.
> 
> Problem occurs only when migrating from 6238 CPU to 6172.

maybe the question should be:

Should setting "Cluster CPU type" to "AMD Opteron G3" filter out
tsc_scale cpu flag on newer AMD CPUs?

I hope so. Is it correct?

Cheers, Jiri


> 
> Cheers,
> 
> Jiri
> 
>>
>> Thanks,
>> michal
>>
>>>
>>> Cheers,
>>>
>>> Jiri
>>>

 Cheers,

 Jiri



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

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


Re: [ovirt-users] Details about why a live migration failed

2017-03-30 Thread Davide Ferrari
It fails even when trying to migrate to a CentOS 7.2 host :/
I guess I'll have to shut it down then :(

2017-03-30 9:55 GMT+02:00 Davide Ferrari :

> Hello again
>
> Yep, it fails to migrate to any 7.3 host.
> I still have to try to migrate to one of the old 7.2 hosts, I'll let you
> know
>
> 2017-03-27 13:51 GMT+02:00 Francesco Romani :
>
>> On 03/24/2017 04:01 PM, Davide Ferrari wrote:
>> > Source: CentOS 7.2 - qemu-kvm-ev-2.3.0-31.el7.16.1
>> > Dest: CentOS 7.3 - qemu-kvm-ev-2.6.0-28.el7_3.3.1
>> >
>> > To be fair I'm trying to migrate away that VM so I can install updates
>> > on the source host.
>>
>> Another, hopefully less likely, case is a QEMu bug. If QEMU cannot
>> correctly restore the VM state from the migration
>> data stream, you'll get the same error.
>> Anyway, this definitely looks like libvirt/qemu issue; better be
>> prepared to file a libvirt bug.
>> does it happen migrating to *any* CentOS7.3 box?
>>
>> Bests,
>>
>> --
>> Francesco Romani
>> Senior SW Eng., Virtualization R&D
>> Red Hat
>> IRC: fromani github: @fromanirh
>>
>>
>
>
> --
> Davide Ferrari
> Senior Systems Engineer
>



-- 
Davide Ferrari
Senior Systems Engineer
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Gluster and oVirt 4.0 questions

2017-03-30 Thread Sahina Bose
On Thu, Mar 30, 2017 at 1:23 PM, Liron Aravot  wrote:

> Hi Jim, please see inline
>
> On Thu, Mar 30, 2017 at 4:08 AM, Jim Kusznir  wrote:
>
>> hello:
>>
>> I've been running my ovirt Version 4.0.5.5-1.el7.centos cluster for a
>> while now, and am now revisiting some aspects of it for ensuring that I
>> have good reliability.
>>
>> My cluster is a 3 node cluster, with gluster nodes running on each node.
>> After running my cluster a bit, I'm realizing I didn't do a very optimal
>> job of allocating the space on my disk to the different gluster mount
>> points.  Fortunately, they were created with LVM, so I'm hoping that I can
>> resize them without much trouble.
>>
>> I have a domain for iso, domain for export, and domain for storage, all
>> thin provisioned; then a domain for the engine, not thin provisioned.  I'd
>> like to expand the storage domain, and possibly shrink the engine domain
>> and make that space also available to the main storage domain.  Is it as
>> simple as expanding the LVM partition, or are there more steps involved?
>> Do I need to take the node offline?
>>
>
> I didn't understand completely that part - what is the difference between
> the domain for storage and the domain for engine you mentioned?
>

I think the domain for engine is the one storing Hosted Engine data.
You should be able to expand your underlying LVM partition without having
to take the node offline


>
>> second, I've noticed that the first two nodes seem to have a full copy of
>> the data (the disks are in use), but the 3rd node appears to not be using
>> any of its storage space...It is participating in the gluster cluster,
>> though.
>>
>
Is the volume created as replica 3? If so, fully copy of the data should be
present on all 3 nodes. Please provide the output of "gluster volume info"


>> Third, currently gluster shares the same network as the VM networks.  I'd
>> like to put it on its own network.  I'm not sure how to do this, as when I
>> tried to do it at install time, I never got the cluster to come online; I
>> had to make them share the same network to make that work.
>>
>
While creating the bricks the network intended for gluster should have been
used to identify the brick in hostname:brick-directory. Changing this at a
later point is a bit more involved. Please check online or on gluster-users
on changing IP address associated with brick.


>
> I'm adding Sahina who may shed some light on the gluster question, I'd try
> on the gluster mailing list as well.
>
>>
>>
>> Ovirt questions:
>> I've noticed that recently, I don't appear to be getting software updates
>> anymore.  I used to get update available notifications on my nodes every
>> few days; I haven't seen one for a couple weeks now.  is something wrong?
>>
>> I have a windows 10 x64 VM.  I get a warning that my VM type does not
>> match the installed OS.  All works fine, but I've quadrouple-checked that
>> it does match.  Is this a known bug?
>>
>
> Arik, any info on that?
>
>>
>> I have a UPS that all three nodes and the networking are on.  It is a USB
>> UPS.  How should I best integrate monitoring in?  I could put a raspberry
>> pi up and then run NUT or similar on it, but is there a "better" way with
>> oVirt?
>>
>> Thanks!
>> --Jim
>>
>> ___
>> 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] Details about why a live migration failed

2017-03-30 Thread Davide Ferrari
Hello again

Yep, it fails to migrate to any 7.3 host.
I still have to try to migrate to one of the old 7.2 hosts, I'll let you
know

2017-03-27 13:51 GMT+02:00 Francesco Romani :

> On 03/24/2017 04:01 PM, Davide Ferrari wrote:
> > Source: CentOS 7.2 - qemu-kvm-ev-2.3.0-31.el7.16.1
> > Dest: CentOS 7.3 - qemu-kvm-ev-2.6.0-28.el7_3.3.1
> >
> > To be fair I'm trying to migrate away that VM so I can install updates
> > on the source host.
>
> Another, hopefully less likely, case is a QEMu bug. If QEMU cannot
> correctly restore the VM state from the migration
> data stream, you'll get the same error.
> Anyway, this definitely looks like libvirt/qemu issue; better be
> prepared to file a libvirt bug.
> does it happen migrating to *any* CentOS7.3 box?
>
> Bests,
>
> --
> Francesco Romani
> Senior SW Eng., Virtualization R&D
> Red Hat
> IRC: fromani github: @fromanirh
>
>


-- 
Davide Ferrari
Senior Systems Engineer
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Gluster and oVirt 4.0 questions

2017-03-30 Thread Liron Aravot
Hi Jim, please see inline

On Thu, Mar 30, 2017 at 4:08 AM, Jim Kusznir  wrote:

> hello:
>
> I've been running my ovirt Version 4.0.5.5-1.el7.centos cluster for a
> while now, and am now revisiting some aspects of it for ensuring that I
> have good reliability.
>
> My cluster is a 3 node cluster, with gluster nodes running on each node.
> After running my cluster a bit, I'm realizing I didn't do a very optimal
> job of allocating the space on my disk to the different gluster mount
> points.  Fortunately, they were created with LVM, so I'm hoping that I can
> resize them without much trouble.
>
> I have a domain for iso, domain for export, and domain for storage, all
> thin provisioned; then a domain for the engine, not thin provisioned.  I'd
> like to expand the storage domain, and possibly shrink the engine domain
> and make that space also available to the main storage domain.  Is it as
> simple as expanding the LVM partition, or are there more steps involved?
> Do I need to take the node offline?
>

I didn't understand completely that part - what is the difference between
the domain for storage and the domain for engine you mentioned?

>
> second, I've noticed that the first two nodes seem to have a full copy of
> the data (the disks are in use), but the 3rd node appears to not be using
> any of its storage space...It is participating in the gluster cluster,
> though.
>
> Third, currently gluster shares the same network as the VM networks.  I'd
> like to put it on its own network.  I'm not sure how to do this, as when I
> tried to do it at install time, I never got the cluster to come online; I
> had to make them share the same network to make that work.
>

I'm adding Sahina who may shed some light on the gluster question, I'd try
on the gluster mailing list as well.

>
>
> Ovirt questions:
> I've noticed that recently, I don't appear to be getting software updates
> anymore.  I used to get update available notifications on my nodes every
> few days; I haven't seen one for a couple weeks now.  is something wrong?
>
> I have a windows 10 x64 VM.  I get a warning that my VM type does not
> match the installed OS.  All works fine, but I've quadrouple-checked that
> it does match.  Is this a known bug?
>

Arik, any info on that?

>
> I have a UPS that all three nodes and the networking are on.  It is a USB
> UPS.  How should I best integrate monitoring in?  I could put a raspberry
> pi up and then run NUT or similar on it, but is there a "better" way with
> oVirt?
>
> Thanks!
> --Jim
>
> ___
> 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] Import KVM/libvirt VMs to oVirt 4.1 with External Provider

2017-03-30 Thread Shahar Havivi
When we try to do:
vol = conn.storageVolLookupByPath(disk['alias'])
e.g:
vol = conn.storageVolLookupByPath('/opt/wiki-uat/mediawiki-uat.img')
Libvirt raise an error:
"libvirtError: Storage volume not found: no storage vol with matching path"

e.g.: '/opt/wiki-uat/mediawiki-uat.img' is not exists
Please look if the path exists (via the host that the Libvirt Domains
exists).

 Shahar.

On Thu, Mar 30, 2017 at 10:19 AM, Pradeep Antil 
wrote:

> Hi Shahar ,
>
> vdsm shows the following errors.
>
> Just giving the background how do we created VMs in KVM,  All the VMs are
> created on separate Luns of 100 GB and before creating VMs in KVM we
> usually format the LUN and then we create VMs on the formatted Lun.In this
> case we have mount the formatted Lun under "/opt/wiki-uat".
>
> I am just curious to know , will this type of VMs can be imported in Ovirt.
>
>
> 2017-03-30 12:30:17,999+0530 INFO  (jsonrpc/7) [jsonrpc.JsonRpcServer] RPC
> call Host.getStats succeeded in 0.02 seconds (__init__:515)
> 2017-03-30 12:30:19,366+0530 INFO  (jsonrpc/4) [throttled] Current
> getAllVmStats: {} (throttledlog:105)
> 2017-03-30 12:30:19,367+0530 INFO  (jsonrpc/4) [jsonrpc.JsonRpcServer] RPC
> call Host.getAllVmStats succeeded in 0.00 seconds (__init__:515)
> 2017-03-30 12:30:20,028+0530 ERROR (jsonrpc/6) [root] Error getting disk
> size (v2v:1084)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1073, in
> _get_disk_info
> vol = conn.storageVolLookupByPath(disk['alias'])
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4770, in
> storageVolLookupByPath
> if ret is None:raise libvirtError('virStorageVolLookupByPath()
> failed', conn=self)
> libvirtError: Storage volume not found: no storage vol with matching path
> 2017-03-30 12:30:20,029+0530 WARN  (jsonrpc/6) [root] Cannot add VM
> wiki-uat due to disk storage error (v2v:1015)
> 2017-03-30 12:30:20,034+0530 INFO  (jsonrpc/6) [jsonrpc.JsonRpcServer] RPC
> call Host.getExternalVMs succeeded in 0.48 seconds (__init__:515)
>
> Below are the contents of VM libvirt xml file
>
>
>  9e2f7338-9f13-32db-ea50-d6d9467e1345
>   2097152
>   2097152
>   2
>   
> hvm
> 
>   
>   
> 
> 
> 
>   
>   
>   destroy
>   restart
>   restart
>   
> /usr/libexec/qemu-kvm
> 
>   
>   
>   
>   
> 
> 
>function='0x2'/>
> 
> 
>function='0x1'/>
> 
> 
>   
>   
>   
>function='0x0'/>
> 
> 
>   
> 
> 
>   
> 
> 
> 
> 
>function='0x0'/>
> 
> 
>   
>function='0x0'/>
> 
> 
>function='0x0'/>
> 
>   
>
>
>
>
>
>
> On Thu, Mar 30, 2017 at 12:16 PM, Shahar Havivi 
> wrote:
>
>> Sorry for the miss leading message, its suppose to say that some of the
>> selected VMs cannot be imported.
>> This can be due to broken storage disk path or any other Libvirt parsing
>> error.
>> For more details you can look at the vdsm log (/var/log/vdsm/vdsm.log)
>> and see why we failed to parse Libvirt xml for each VM that is not in the
>> right list.
>>
>> On Thu, Mar 30, 2017 at 9:34 AM, Pradeep Antil 
>> wrote:
>>
>>> Hi Team,
>>>
>>> While importing VMs with external Provider KVM on my oVirt setup, i am
>>> getting the below error:
>>>
>>> "All chosen VMs couldn't be retrieved by the external system and
>>> therefore have been filtered. Please see log for details.
>>>
>>> As per Shahar suggestion yesterday i was able to view the virtual
>>> machine of my KVM hypervisior in oVirt Portal.I have also created the
>>> export domain in my DC as well.
>>>
>>> Any idea how to resolve this issue and so that i can start importing VMs
>>>
>>>
>>> [image: Inline image 1]
>>>
>>> Thanks in Advance
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Mar 29, 2017 at 6:17 PM, Pradeep Antil 
>>> wrote:
>>>
 Hi Shahar,

 Thanks for the quick response. Issue is resolved now with your
 suggested steps.

 Thank you very much 



 On Wed, Mar 29, 2017 at 5:38 PM, Shahar Havivi 
 wrote:

> when you run virsh you where logged in as root user,
> the user that oVirt is running is vdsm
>
> you need to run:
> $ sudo -u vdsm ssh-keygen
> $ sudo -u vdsm ssh-copy-id user@kvmhost
>
> you can look at wiki we have for Xen to generate the ssh keys but its
> the same for kvm.
> https://www.ovirt.org/develop/release-management/features/vi
> rt/XenToOvirt/
>
>  Shahar.
>
> On Wed, Mar 29, 2017 at 12:34 PM, Pradeep Antil <
> pradeepan...@gmail.com> wrote:
>
>>
>> Hello Folks,
>>
>> I am trying to import KVM guest VMs to my oVirt Server using external
>> Provider. But when i add external provider with type KVM and do the 
>> testing
>> that time i am getting below error
>>
>> Caused by: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException:
>> VDSGenericException: 

Re: [ovirt-users] Import KVM/libvirt VMs to oVirt 4.1 with External Provider

2017-03-30 Thread Pradeep Antil
Hi Shahar ,

vdsm shows the following errors.

Just giving the background how do we created VMs in KVM,  All the VMs are
created on separate Luns of 100 GB and before creating VMs in KVM we
usually format the LUN and then we create VMs on the formatted Lun.In this
case we have mount the formatted Lun under "/opt/wiki-uat".

I am just curious to know , will this type of VMs can be imported in Ovirt.


2017-03-30 12:30:17,999+0530 INFO  (jsonrpc/7) [jsonrpc.JsonRpcServer] RPC
call Host.getStats succeeded in 0.02 seconds (__init__:515)
2017-03-30 12:30:19,366+0530 INFO  (jsonrpc/4) [throttled] Current
getAllVmStats: {} (throttledlog:105)
2017-03-30 12:30:19,367+0530 INFO  (jsonrpc/4) [jsonrpc.JsonRpcServer] RPC
call Host.getAllVmStats succeeded in 0.00 seconds (__init__:515)
2017-03-30 12:30:20,028+0530 ERROR (jsonrpc/6) [root] Error getting disk
size (v2v:1084)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1073, in
_get_disk_info
vol = conn.storageVolLookupByPath(disk['alias'])
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4770, in
storageVolLookupByPath
if ret is None:raise libvirtError('virStorageVolLookupByPath() failed',
conn=self)
libvirtError: Storage volume not found: no storage vol with matching path
2017-03-30 12:30:20,029+0530 WARN  (jsonrpc/6) [root] Cannot add VM
wiki-uat due to disk storage error (v2v:1015)
2017-03-30 12:30:20,034+0530 INFO  (jsonrpc/6) [jsonrpc.JsonRpcServer] RPC
call Host.getExternalVMs succeeded in 0.48 seconds (__init__:515)

Below are the contents of VM libvirt xml file


 9e2f7338-9f13-32db-ea50-d6d9467e1345
  2097152
  2097152
  2
  
hvm

  
  



  
  
  destroy
  restart
  restart
  
/usr/libexec/qemu-kvm

  
  
  
  


  


  


  
  
  
  


  


  




  


  
  


  

  






On Thu, Mar 30, 2017 at 12:16 PM, Shahar Havivi  wrote:

> Sorry for the miss leading message, its suppose to say that some of the
> selected VMs cannot be imported.
> This can be due to broken storage disk path or any other Libvirt parsing
> error.
> For more details you can look at the vdsm log (/var/log/vdsm/vdsm.log) and
> see why we failed to parse Libvirt xml for each VM that is not in the right
> list.
>
> On Thu, Mar 30, 2017 at 9:34 AM, Pradeep Antil 
> wrote:
>
>> Hi Team,
>>
>> While importing VMs with external Provider KVM on my oVirt setup, i am
>> getting the below error:
>>
>> "All chosen VMs couldn't be retrieved by the external system and
>> therefore have been filtered. Please see log for details.
>>
>> As per Shahar suggestion yesterday i was able to view the virtual machine
>> of my KVM hypervisior in oVirt Portal.I have also created the export domain
>> in my DC as well.
>>
>> Any idea how to resolve this issue and so that i can start importing VMs
>>
>>
>> [image: Inline image 1]
>>
>> Thanks in Advance
>>
>>
>>
>>
>>
>> On Wed, Mar 29, 2017 at 6:17 PM, Pradeep Antil 
>> wrote:
>>
>>> Hi Shahar,
>>>
>>> Thanks for the quick response. Issue is resolved now with your suggested
>>> steps.
>>>
>>> Thank you very much 
>>>
>>>
>>>
>>> On Wed, Mar 29, 2017 at 5:38 PM, Shahar Havivi 
>>> wrote:
>>>
 when you run virsh you where logged in as root user,
 the user that oVirt is running is vdsm

 you need to run:
 $ sudo -u vdsm ssh-keygen
 $ sudo -u vdsm ssh-copy-id user@kvmhost

 you can look at wiki we have for Xen to generate the ssh keys but its
 the same for kvm.
 https://www.ovirt.org/develop/release-management/features/vi
 rt/XenToOvirt/

  Shahar.

 On Wed, Mar 29, 2017 at 12:34 PM, Pradeep Antil >>> > wrote:

>
> Hello Folks,
>
> I am trying to import KVM guest VMs to my oVirt Server using external
> Provider. But when i add external provider with type KVM and do the 
> testing
> that time i am getting below error
>
> Caused by: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException:
> VDSGenericException: VDSErrorException: Failed to
> GetVmsNamesFromExternalProviderVDS, error = Cannot recv data: Host
> key verification failed.: Connection reset by peer, code = 65
> at org.ovirt.engine.core.vdsbroke
> r.vdsbroker.VdsBrokerCommand.createDefaultConcreteException(VdsBrokerCommand.java:76)
> [vdsbroker.jar:]
> at org.ovirt.engine.core.vdsbroke
> r.vdsbroker.BrokerCommandBase.createException(BrokerCommandBase.java:222)
> [vdsbroker.jar:]
>
>
> [image: Inline image 2]
>
> I have already configure password less authentication with ssh keys
> between proxy host to my KVM hypervisor. Though i can reach to kvm
> hypervisor with virsh connect.
>
> [root@lplinnd1hypov13 ~]# virsh -c qemu+ssh://root@
> /system
> Welcome to virsh, the virtualization