Re: [ovirt-users] Ovirt + OpenVSwitch

2016-05-23 Thread Dan Kenigsberg
On Mon, May 23, 2016 at 02:38:06PM +0200, Sverker Abrahamsson wrote:
> I've been giving this a new try. Unfortunately the setup script for hosted
> engine seems to be hardcoded to create a bridge on a physical network
> interface. I was somewhat successful by creating a dummy ovirtmgmt bridge
> interface and patching bridge.py to give back a static ip. Then the engine
> started up but failed later in the setup due to a faulty firewall rule.
> 
> I then thought that ok I'll restore the network config to the original
> settings, run the setup and then add the OpenVSwitch config. That failed
> even more miserably before I got that far..
> 
> As soon as vdsm activates it will write ifcfg files for eth0 and ovirtmgmt
> but with a config that doesn't work in my case as there are some additional
> parameters that are needed. For example it is missing the HWADDR setting in
> ifcfg-eth0. This is using the beta1 release of 4.0
> 
> Even if I boot rescue image and correct the network configuration it will
> again be overwritten by vdsm on boot.
> 
> I really need to make Ovirt understand that it must NOT change any network
> configuration on the host, just use what is provided to it and if there is
> something that it doesn't like then log the settings that should be changed.
> 
> How can I accomplish that?

I did not follow all the complexities (host-engine-related and others)
but for your latter question, the suggestion is to write a
before_ifcfg_write hook, as defined in https://gerrit.ovirt.org/44552 .

Here's an example for such a hook script
https://bugzilla.redhat.com/attachment.cgi?id=1098701

which makes sure that whatever Vdsm wants to do to your ifcfg files, you
have the final word about what's written there.

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


[ovirt-users] Downgrade ovirt-engine 3.6 to 3.5

2016-05-23 Thread Sandvik Agustin
Hi users,

Is it possible to downgrade ovirt-engine 3.6 to 3.5 if I remove this
http://resources.ovirt.org/pub/yum-repo/ovirt-release36.rpm
 then install
this http://resources.ovirt.org/pub/yum-repo/ovirt-release35.rpm and run
this command? # yum update "ovirt-engine-setup*"?

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


[ovirt-users] Failure Backing up oVirt Manager 3.6.5

2016-05-23 Thread Julián Tete
oVirt version = 3.6.5 on CentOS 7.2

I have Data Warehouse and Reports database

Method 1:

In the Manager machine:

engine-backup --mode=backup --file=/home/cnscadmin/engine-3.6.bck
--log=/home/cnscadmin/backup.log

less /home/cnscadmin/backup.log

2016-05-23 11:43:30 3585: Start of engine-backup mode backup scope all file
/home/cnscadmin/engine-3.6.bck
2016-05-23 11:43:30 3585: OUTPUT: Backing up:
2016-05-23 11:43:30 3585: Generating pgpass
2016-05-23 11:43:30 3585: OUTPUT: Notifying engine
2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost -p
5432  engine -t -c SELECT LogEngineBackupEvent('files', now(), 0,
'Started', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');


2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost -p
5432  engine -t -c SELECT LogEngineBackupEvent('db', now(), 0, 'Started', '
ovirt1.cnsc.net', '/home/cnscadmin/backup.log');


2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost -p
5432  engine -t -c SELECT LogEngineBackupEvent('dwhdb', now(), 0,
'Started', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');


2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost -p
5432  engine -t -c SELECT LogEngineBackupEvent('reportsdb', now(), 0,
'Started', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');


2016-05-23 11:43:30 3585: Creating temp folder
/tmp/engine-backup.UwsBOUPMGT/tar
2016-05-23 11:43:30 3585: OUTPUT: - Files
2016-05-23 11:43:30 3585: Backing up files to
/tmp/engine-backup.UwsBOUPMGT/tar/files
2016-05-23 11:43:30 3585: OUTPUT: - Engine database 'engine'
2016-05-23 11:43:30 3585: Backing up database to
/tmp/engine-backup.UwsBOUPMGT/tar/db/engine_backup.db
2016-05-23 11:43:30 3585: pg_cmd running: pg_dump -w -U engine -h localhost
-p 5432  engine -E UTF8 --disable-dollar-quoting --disable-triggers
--format=custom
2016-05-23 11:43:31 3585: OUTPUT: - DWH database 'ovirt_engine_history'
2016-05-23 11:43:31 3585: Backing up dwh database to
/tmp/engine-backup.UwsBOUPMGT/tar/db/dwh_backup.db
2016-05-23 11:43:31 3585: pg_cmd running: pg_dump -w -U
ovirt_engine_history -h localhost -p 5432  ovirt_engine_history -E UTF8
--disable-dollar-quoting --disable-triggers --format=custom
2016-05-23 11:43:32 3585: OUTPUT: - Reports database 'ovirt_engine_reports'
2016-05-23 11:43:32 3585: Backing up reports database to
/tmp/engine-backup.UwsBOUPMGT/tar/db/reports_backup.db
2016-05-23 11:43:32 3585: pg_cmd running: pg_dump -w -U
ovirt_engine_reports -h localhost -p 5432  ovirt_engine_reports -E UTF8
--disable-dollar-quoting --disable-triggers --format=custom
2016-05-23 11:43:33 3585: Creating md5sum at
/tmp/engine-backup.UwsBOUPMGT/tar/md5sum
2016-05-23 11:43:33 3585: OUTPUT: Packing into file
'/home/cnscadmin/engine-3.6.bck'
2016-05-23 11:43:33 3585: Creating tarball /home/cnscadmin/engine-3.6.bck
2016-05-23 11:43:33 3585: OUTPUT: Notifying engine
2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost -p
5432  engine -t -c SELECT LogEngineBackupEvent('files', now(), 1,
'Finished', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');


2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost -p
5432  engine -t -c SELECT LogEngineBackupEvent('db', now(), 1, 'Finished', '
ovirt1.cnsc.net', '/home/cnscadmin/backup.log');


2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost -p
5432  engine -t -c SELECT LogEngineBackupEvent('dwhdb', now(), 1,
'Finished', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');


2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost -p
5432  engine -t -c SELECT LogEngineBackupEvent('reportsdb', now(), 1,
'Finished', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');


2016-05-23 11:43:33 3585: OUTPUT: Done.

In the Restore Machine:

yum -y install postgresql postgresql-server postgresql-contrib

postgresql-setup initdb

systemctl enable postgresql.service

systemctl start postgresql.service

less /var/lib/pgsql/data/pg_hba.conf


hostengine  engine  0.0.0.0/0   md5
hostovirt_engine_reports  ovirt_engine_reports
0.0.0.0/0   md5
hostovirt_engine_history  ovirt_engine_history
0.0.0.0/0   md5


hostengine  engine  ::0/0   md5
hostovirt_engine_reports  ovirt_engine_reports
::0/0   md5
hostovirt_engine_history  ovirt_engine_history
::0/0   md5

less /var/lib/pgsql/data/postgresql.conf

listen_addresses = '*'  # what IP address(es) to listen on;


firewall-cmd --permanent --add-service=postgresql

firewall-cmd --reload

engine-backup --mode=restore --file=/home/cnscadmin/engine-3.6.bck
--log=/home/cnscadmin/restore.log --provision-db --no-restore-permissions

less /home/cnscadmin/restore.log

2016-05-23 11:49:08 2970: Start of engine-backup mode restore scope all
file /home/cnscadmin/engine-3.6.bck
2016-05-23 11:49:08 2970: OUTPUT: Preparing to 

Re: [ovirt-users] [ANN] oVirt 3.6.6 Final Release is now available

2016-05-23 Thread Arman Khalatyan
Nice!thank you!

I found small bug on web page, the link to *oVirt Node*  doesnot exists
It points to:
http://www.ovirt.org/release/3.6.6/node#release 3.6.6 node
Am 23.05.2016 4:55 nachm. schrieb "Sandro Bonazzola" :

> The oVirt Project is pleased to announce today the general availability of
> oVirt 3.6.6.
>
> This latest community release includes new features and bug fixes for
>
> - oVirt Engine
> - oVirt Engine Appliance
> - oVirt Engine DWH
> - oVirt Engine Extension AAA JDBC
> - oVirt Engine Extension AAA LDAP
> - oVirt Hosted Enging HA
> - oVirt Hosted Engine Setup
> - oVirt VMConsole
> - VDSM
> - VDSM JsonRPC Java
>
>
> oVirt is an open-source, openly-governed enterprise virtualization
> management application, developed by a global community. You can use the
> oVirt management interface (oVirt Engine) to manage hardware nodes, storage
> and network resources, and to deploy and monitor virtual machines running
> in your data center.
>
> If you are familiar with VMware products, oVirt is conceptually similar to
> vSphere. oVirt serves as the bedrock for Red Hat's Enterprise
> Virtualization product, and it is the "upstream" project where new features
> are developed prior to their inclusion in Red Hat's supported product
> offering.
>
> Notes:
> * A new oVirt Live ISO, oVirt Engine Appliance and oVirt Node Next Install
> ISO will be available soon
> * Mirrors might need up to one day to synchronize.
>
>
> Additional Resources:
> * Read more about the oVirt 3.6.6 release highlights:
> http://www.ovirt.org/release/3.6.6/
> * Get more oVirt Project updates on Twitter: https://twitter.com/ovirt
> * Check out the latest project news on the oVirt blog:
> http://www.ovirt.org/blog/
>
> --
> Sandro Bonazzola
> Better technology. Faster innovation. Powered by community collaboration.
> See how it works at redhat.com
>
> ___
> 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] gluster VM disk permissions

2016-05-23 Thread Richard W.M. Jones
On Mon, May 23, 2016 at 09:00:48AM -0700, Bill James wrote:
> thank you very much for the reply.
> My main question now is does it required to use "user = root" in
> qemu.conf for the import script to work?

I haven't knowingly modified qemu.conf in my life, so likely the
answer is no.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] gluster VM disk permissions

2016-05-23 Thread Bill James

thank you very much for the reply.
My main question now is does it required to use "user = root" in 
qemu.conf for the import script to work?
I know in my earlier testing I got a permissions error when doing import 
until I added the root user line.


I guess I'll take it out and give it a try.



On 05/21/2016 01:52 AM, Richard W.M. Jones wrote:

On Fri, May 20, 2016 at 02:53:02PM -0700, Bill James wrote:

maybe the other doc is old but it says:
"And a feature I intentionally removed in RHEL 7 was importing KVM → KVM"
which is what I am doing. raw disk KVM to ovirt.

Yes I can copy the disk image over the top of a ovirt disk image,
but the import script seemed cleaner.

Does virt-v2v try to convert the KVM image to KVM image or does it
just import it?

Virt-v2v will now refuse to do this at all (except if you "trick" it
as I did in my blog posting), but if we allowed it then it would make
all kinds of modifications inside the guest which you don't need and
have at least the potential to break things.

The import-to-ovirt.pl script is/was intended as a simple import
script which you should use instead in the case where guests already
run on KVM and therefore don't need driver etc conversion/
installation.

As Nir said in the other reply, oVirt 4.0 has native import
functionality and the import script is not needed at all for KVM ->
oVirt imports.

Virt-v2v should only be used for foreign hypervisor imports, such as
VMware, Xen or Hyper-V to oVirt.

Rich.




Cloud Services for Business www.j2.com
j2 | eFax | eVoice | FuseMail | Campaigner | KeepItSafe | Onebox


This email, its contents and attachments contain information from j2 Global, 
Inc. and/or its affiliates which may be privileged, confidential or otherwise 
protected from disclosure. The information is intended to be for the 
addressee(s) only. If you are not an addressee, any disclosure, copy, 
distribution, or use of the contents of this message is prohibited. If you have 
received this email in error please notify the sender by reply e-mail and 
delete the original message and any copies. (c) 2015 j2 Global, Inc. All rights 
reserved. eFax, eVoice, Campaigner, FuseMail, KeepItSafe, and Onebox are 
registered trademarks of j2 Global, Inc. and its affiliates.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] [ANN] oVirt 3.6.6 Final Release is now available

2016-05-23 Thread Sandro Bonazzola
The oVirt Project is pleased to announce today the general availability of
oVirt 3.6.6.

This latest community release includes new features and bug fixes for

- oVirt Engine
- oVirt Engine Appliance
- oVirt Engine DWH
- oVirt Engine Extension AAA JDBC
- oVirt Engine Extension AAA LDAP
- oVirt Hosted Enging HA
- oVirt Hosted Engine Setup
- oVirt VMConsole
- VDSM
- VDSM JsonRPC Java


oVirt is an open-source, openly-governed enterprise virtualization
management application, developed by a global community. You can use the
oVirt management interface (oVirt Engine) to manage hardware nodes, storage
and network resources, and to deploy and monitor virtual machines running
in your data center.

If you are familiar with VMware products, oVirt is conceptually similar to
vSphere. oVirt serves as the bedrock for Red Hat's Enterprise
Virtualization product, and it is the "upstream" project where new features
are developed prior to their inclusion in Red Hat's supported product
offering.

Notes:
* A new oVirt Live ISO, oVirt Engine Appliance and oVirt Node Next Install
ISO will be available soon
* Mirrors might need up to one day to synchronize.


Additional Resources:
* Read more about the oVirt 3.6.6 release highlights:
http://www.ovirt.org/release/3.6.6/
* Get more oVirt Project updates on Twitter: https://twitter.com/ovirt
* Check out the latest project news on the oVirt blog:
http://www.ovirt.org/blog/

-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Ovirt + OpenVSwitch

2016-05-23 Thread Sverker Abrahamsson
I've been giving this a new try. Unfortunately the setup script for 
hosted engine seems to be hardcoded to create a bridge on a physical 
network interface. I was somewhat successful by creating a dummy 
ovirtmgmt bridge interface and patching bridge.py to give back a static 
ip. Then the engine started up but failed later in the setup due to a 
faulty firewall rule.


I then thought that ok I'll restore the network config to the original 
settings, run the setup and then add the OpenVSwitch config. That failed 
even more miserably before I got that far..


As soon as vdsm activates it will write ifcfg files for eth0 and 
ovirtmgmt but with a config that doesn't work in my case as there are 
some additional parameters that are needed. For example it is missing 
the HWADDR setting in ifcfg-eth0. This is using the beta1 release of 4.0


Even if I boot rescue image and correct the network configuration it 
will again be overwritten by vdsm on boot.


I really need to make Ovirt understand that it must NOT change any 
network configuration on the host, just use what is provided to it and 
if there is something that it doesn't like then log the settings that 
should be changed.


How can I accomplish that?

/Sverker

On 2016-04-13 14:50, Dan Kenigsberg wrote:

On Mon, Apr 11, 2016 at 01:24:51PM +0200, Sverker Abrahamsson wrote:

Hi
My usecase is that I am setting up a lab to emulate a customers production
environment which has multiple vlans. As this is done in a hosting
environment where I don't have any control over the switches, I've created
virtual switches with OpenVSwitch which connects together a couple of
physical servers which are running virtual machines to emulate their
servers. Currently I'm running a few virtual machines created manually with
libvirt but looking for a more user friendly way of handling them.

I'm not looking at managing the network setup from Ovirt, I just want it to
use the network that is present and create VM's there.

In this case, you may want to define your ovs-based network in
libvirt (virsh net-define bla.xml) and use vdsm-hook-extnet to let ovirt
consume it.


The tweaking that I did with 3.6 was to run the hosted-engine setup but
where it failed I put the right answer in the file so that it would skip
over that part. I got that far that it attempts to start the vm but as it
doesn't give right parameters to libvirt it fails to create a port on the
bridge.

I'm not having much luck with the 4.0 alpha though, this is a separate
machine that I set up for this testing but when I run hosted-engine --deploy
it just returns without any message. I did run the cleanup script found at
http://www.ovirt.org/documentation/how-to/hosted-engine/ and rebooted in
between but still no luck

/Sverker


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


Re: [ovirt-users] Recommended bonding modes?

2016-05-23 Thread Yaniv Kaul
On Sun, May 22, 2016 at 10:33 PM, Alan Murrell  wrote:

> Hello,
>
> I am wondering what the recommended bonding modes are for the different
> types of networks:
>
>   - Management/Display
>   - Guest VM Traffic
>

0, 5, 6 are NOT supported over bridges (hence, for guest VM traffic)

  - Storage (NFS)
>

Unless you have multiple mounts (multiple NFS storage domains) you are
unlikely to get a bandwidth improvements, only HA from bond for NFS (in
that sense, it's better to use iSCSI in such a scenario)

>
> For the purposes pf this post, assume mode 4 is not available.
>
> For Management/Display, I am thinking mode 1 (active-backup) is adequate
> since there generally isn't a lot of traffic being pushed through.
>
> Storage, I like mode 0 (round robin) due to some performance results I
> have seen, though I understand this has to be setup in "custom bonding".
> Mode 6 seems like it would do well here as well.
>

As explained above, for NFS, it's not going to help performance-wise.
Y.


>
> Guest VM traffic is the one I am not sure about.  There could be a lot of
> traffic going back and forth, so I would want all the interfaces in the
> bond active to balance the load.  Of the supported bonding modes, either 2
> or 5 would seem to be the options.
>
> I am just wondering what others' thoughts and experiences are.
>
> Thanks! :-)
>
> Regards,
>
> Alan
>
> ___
> 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] Clone, template, pools : how does it uses disk space ?

2016-05-23 Thread Alexis HAUSER
>Regarding your examples, I cannot say exactly because of lack of some
>details. What storage type are you using? How do you measure the space used
>on the physical disk?


simply df -h on the PC sharing the NFS storage.


>> For example, when making a VM from template, using pre-allocated disk
>> option, for a 50GB Virtual disk, it only uses 3GB on the physical disk.

> 3GB is the VM's disk? What about the disk of the template?


3GB is the difference using df -h betweem before making the template, and after 
making it and running the VM.


>Generally, 50GB pre-allocated disk will take 50GB of physical space. A 50GB
>sparse disk will take as many 1GB chunks as needed to store all the
>information that was written to it, maximum 50GB.


so "pre-allocated" doesn't use pre-allocation but sparse instead ? I don't 
really get it, sorry.


>When you create a VM by cloning another VM or create a VM from a template
>in "clone" mode, a copy of the source disk will be created. The new disk
>will take as much space as the source disk did.


What happens if you clone a source VM which is using "thin" ?


>When you create a VM from a template in "thin provision" mode or creating a
>VM in a pool, the new disk will be initially only a reference to the source
>disk. Reading from it will read the source disk. Writing to it will write
>to the new disk, not touching the source. Thus, all disk fragments that
>were overwritten after disk creation will be physically stored in the new
>disk and read from it, those that were not overwritten, will be read from
>the source disk.


Interesting. Is there a way to "merge" the changes ? (I mean to change it from 
being "thin provision" after its creation and make it an independent VM)
When you create a template for the first time, it seems you can't choose 
between clone and thin, which one is used ?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Recommended bonding modes?

2016-05-23 Thread InterNetX - Juergen Gotteswinter
Generally, avoid mode 0 - Round Robin or you will face problems sooner
or later. RR will generate TCP out of Order.

Go for mode 4 / lacp wherever possible

Am 5/22/2016 um 9:33 PM schrieb Alan Murrell:
> Hello,
> 
> I am wondering what the recommended bonding modes are for the different
> types of networks:
> 
>   - Management/Display
>   - Guest VM Traffic
>   - Storage (NFS)
> 
> For the purposes pf this post, assume mode 4 is not available.
> 
> For Management/Display, I am thinking mode 1 (active-backup) is adequate
> since there generally isn't a lot of traffic being pushed through.
> 
> Storage, I like mode 0 (round robin) due to some performance results I
> have seen, though I understand this has to be setup in "custom
> bonding".  Mode 6 seems like it would do well here as well.
> 
> Guest VM traffic is the one I am not sure about.  There could be a lot
> of traffic going back and forth, so I would want all the interfaces in
> the bond active to balance the load.  Of the supported bonding modes,
> either 2 or 5 would seem to be the options.
> 
> I am just wondering what others' thoughts and experiences are.
> 
> Thanks! :-)
> 
> Regards,
> 
> Alan
> 
> ___
> 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] question for VM

2016-05-23 Thread Francis Yap
​Thanks, the quicker way I have change to IDE so it does't need driver, is
that any impact?​

I tried latest Solaris 10 and 11 all failed, really QEMU problem?

Thanks & Regards
Francis Yap

On Mon, May 9, 2016 at 5:22 PM, Yaniv Kaul  wrote:

>
>
> On Mon, May 9, 2016 at 8:44 AM, Francis Yap  wrote:
>
>> Hi All,
>>
>> Windows 2003 require floppy storage driver at the installation, how to
>> resolve this problem.
>>
>
> Run Once and attach the floppy with the drivers.
>
>
>>
>> Solaris 10 is freeze when it try to boot from CD, any idea?
>>
>
> This is probably a KVM/QEMU issue. I suggest to ask on their mailing list
> - but first of all, ensure you have the latest Solaris 10 (or newer, if
> possible).
> Secondly, ensure you are NOT using virtio, but the regular devices.
> Y.
>
>
>>
>> Thanks & Regards
>> Francis Yap
>>
>> ___
>> 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] virt-in-virt problem: DHCP failing for a container in a oVirt VM

2016-05-23 Thread Edward Haas
On Wed, May 18, 2016 at 6:39 PM, Will Dennis  wrote:

> Sadly, having set the 'macspoof' key to 'true' in Custom Properties in the
> VM Edit dialog, then restarting the VM thereafter, I'm still not seeing the
> container's MAC address in the relevant bridge's MAC table in oVirt, and
> the container is failing to lease a DHCP address from the external
> network...
>
> Looked at the ebtables filter table, nothing there...
> [root@ovirt-node-03 ~]# ebtables -t filter -L
> Bridge table: filter
>
> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>
> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>
> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>
>
> Anyone know where else I could look to troubleshoot?
>
>
> -Original Message-
> From: Will Dennis
> Sent: Wednesday, May 18, 2016 11:06 AM
> To: 'Michal Skrivanek'; Yedidyah Bar David
> Cc: users@ovirt.org
> Subject: RE: [ovirt-users] virt-in-virt problem: DHCP failing for a
> container in a oVirt VM
>
> Yup, I see it now in the Admin portal VM Edit dialog - thanks!
>
> Will
>
> -Original Message-
> From: Michal Skrivanek [mailto:mskri...@redhat.com]
> Sent: Wednesday, May 18, 2016 2:37 AM
> To: Yedidyah Bar David
> Cc: Will Dennis; users@ovirt.org
> Subject: Re: [ovirt-users] virt-in-virt problem: DHCP failing for a
> container in a oVirt VM
>
>
>
> > On 15 May 2016, at 07:24, Yedidyah Bar David  wrote:
> >
> >> On Wed, May 11, 2016 at 5:17 PM, Will Dennis 
> wrote:
> >> OK; I searched the oVirt site for 'engine-config' (unfamiliar with it)
> and found the following page:
> >>
> https://www.ovirt.org/develop/developer-guide/engine/engine-config-examples/
> >>
> >> I see the instructions on it for "Adding VM custom properties
> (macspoof)", so I did execute the referenced engine-config line, and then
> restarted the ovirt-engine service. I then went and powered off the VM I'd
> like to deactivate mac spoof filtering on, then went in to the User Portal
> and clicked "Edit" on the VM. However, I can not find a "Custom Properties"
> dialog anywhere in the VM Edit UI (yes, I did enable Advanced options.)
> Where should I be seeing this?
> >
> > Not sure it's visible in the User Portal, might be a matter of
> permissions.
>
> Iirc it's not in user portal by design. All custom properties are
> generally considered admin-like stuff
>
> >
> > In the admin portal it has, in the same dialog, its own sub menu.
> > --
> > Didi
> > ___
>

Hello Will,

Please send the VM domxml.
>From the host, just issue: sudo virsh dumpxml 
(To list the VM/s: sudo virsh list)

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


Re: [ovirt-users] Clone, template, pools : how does it uses disk space ?

2016-05-23 Thread Shmuel Melamud
Hi!

Regarding your examples, I cannot say exactly because of lack of some
details. What storage type are you using? How do you measure the space used
on the physical disk?

> For example, when making a VM from template, using pre-allocated disk
option, for a 50GB Virtual disk, it only uses 3GB on the physical disk.

3GB is the VM's disk? What about the disk of the template?

Generally, 50GB pre-allocated disk will take 50GB of physical space. A 50GB
sparse disk will take as many 1GB chunks as needed to store all the
information that was written to it, maximum 50GB.

When you create a VM by cloning another VM or create a VM from a template
in "clone" mode, a copy of the source disk will be created. The new disk
will take as much space as the source disk did.

When you create a VM from a template in "thin provision" mode or creating a
VM in a pool, the new disk will be initially only a reference to the source
disk. Reading from it will read the source disk. Writing to it will write
to the new disk, not touching the source. Thus, all disk fragments that
were overwritten after disk creation will be physically stored in the new
disk and read from it, those that were not overwritten, will be read from
the source disk.

Also note that pool VMs are stateless, so the information that was written
to their disks when VM was used by user is erased after the VM is returned
back to the pool.

Shmuel

On Mon, May 23, 2016 at 12:50 PM, Alexis HAUSER <
alexis.hau...@telecom-bretagne.eu> wrote:

> Hi,
>
>
> I would like to know what happens to storage when using the different
> method of cloning or generating VMs using templates / pools.
> I'd like to know also in what case VM and virtual disks are totally
> independent and in what case they are not.
> Sadly the RHEV documentation doesn't really provide these informations and
> I don't find any explicit informations about it.
>
> For example, when making a VM from template, using pre-allocated disk
> option, for a 50GB Virtual disk, it only uses 3GB on the physical disk.
> Another example, when making a pool of 10 VMs, based on a VM with a 50 GB
> virtual disk, only 2GB more space is used on the physical disk.
> What is exactly done when this happens ?
>
> Here are the case I would like to have informations about (physical
> storage, and independence of VMs) :
> - using simple "clone function"
> - making VM from template with "clone" mode
> - making VM from template with "thin" mode
> - making VM in pools
>
> Is there modes calculating only the difference from the original VM, and
> other modes copying totally the informations from the virtual disk from the
> original VM ?
>
> ___
> 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] Clone, template, pools : how does it uses disk space ?

2016-05-23 Thread Alexis HAUSER
Hi,


I would like to know what happens to storage when using the different method of 
cloning or generating VMs using templates / pools.
I'd like to know also in what case VM and virtual disks are totally independent 
and in what case they are not.
Sadly the RHEV documentation doesn't really provide these informations and I 
don't find any explicit informations about it.

For example, when making a VM from template, using pre-allocated disk option, 
for a 50GB Virtual disk, it only uses 3GB on the physical disk.
Another example, when making a pool of 10 VMs, based on a VM with a 50 GB 
virtual disk, only 2GB more space is used on the physical disk.
What is exactly done when this happens ?

Here are the case I would like to have informations about (physical storage, 
and independence of VMs) :
- using simple "clone function"
- making VM from template with "clone" mode
- making VM from template with "thin" mode
- making VM in pools

Is there modes calculating only the difference from the original VM, and other 
modes copying totally the informations from the virtual disk from the original 
VM ?
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Errors while trying to join an external LDPA provider

2016-05-23 Thread Martin Perina
On Mon, May 23, 2016 at 11:31 AM, Alexis HAUSER <
alexis.hau...@telecom-bretagne.eu> wrote:

>
> > As I explained, my groups are not in the same dn path than my users. As
> it
> > is not possible to add multiple dn path, my only solution is to use
> users.
>
> > ​Well, that's the 1st time I've heard​ about LDAP setup where users and
> > groups of one domain are not under same baseDN. Usually all LDAP setups
> > have some baseDN (for example 'dc=company,dc=com') and somewhere under
> this
> > baseDN (not necessarily directly under it) we could find users and
> groups.
> >The only exception to this is ActiveDirectory with multi-domain trust
> >inside single forrest (which we currently support and user of domainA can
> >be a member of a group from domainB) and multi-forrest trust (which we
> >don't support).
>
>
> Oh thank you, it actually helped a lot : I just realize the search was
> "recursive" and now it actually works and seem to solve my problem.
>

​Great news!
​


> Now I only have to check if adding permissions to group apply to users who
> belong to this group, but I guess it should.
>
​


>
> > Those users have attributes like "member of" which still keep the
> > information about what group they belong too. I didn't find any way using
> > the interface to filter by attribute, for example to show all users
> member
> > of group "foo".
> >
> >"
> ​> We don't support LDAP searches in the webadmin UI, because we don't
> > distinguish betweem LDAP (ovirt-engine-extension-aaa-ldap) or database
> > (ovirt-engine-extension-aaa-jdbc) providers​, both of them provides users
> > and groups for oVirt using same AAA interface.
>
>
> And only a part of the attributes are imported to the database (it doesn't
> seem to be able to display them from the web interface) ?
> That would be a nice feature to be able to filter from any attribute of
> users.
> Do you think I should open a new RFE bug about it ?
>

We fetch only basic attributes common to all LDAPs, for users we fetch
username, first name, last name, display name, department, title, email and
for groups name and display name. But if you miss some attribute, please
create an RFE bug for that.

Thanks

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


Re: [ovirt-users] Errors while trying to join an external LDPA provider

2016-05-23 Thread Alexis HAUSER

> As I explained, my groups are not in the same dn path than my users. As it
> is not possible to add multiple dn path, my only solution is to use users.

> ​Well, that's the 1st time I've heard​ about LDAP setup where users and
> groups of one domain are not under same baseDN. Usually all LDAP setups
> have some baseDN (for example 'dc=company,dc=com') and somewhere under this
> baseDN (not necessarily directly under it) we could find users and groups.
>The only exception to this is ActiveDirectory with multi-domain trust
>inside single forrest (which we currently support and user of domainA can
>be a member of a group from domainB) and multi-forrest trust (which we
>don't support).


Oh thank you, it actually helped a lot : I just realize the search was 
"recursive" and now it actually works and seem to solve my problem.
Now I only have to check if adding permissions to group apply to users who 
belong to this group, but I guess it should.


> Those users have attributes like "member of" which still keep the
> information about what group they belong too. I didn't find any way using
> the interface to filter by attribute, for example to show all users member
> of group "foo".
>
>"
​> We don't support LDAP searches in the webadmin UI, because we don't
> distinguish betweem LDAP (ovirt-engine-extension-aaa-ldap) or database
> (ovirt-engine-extension-aaa-jdbc) providers​, both of them provides users
> and groups for oVirt using same AAA interface.


And only a part of the attributes are imported to the database (it doesn't seem 
to be able to display them from the web interface) ? 
That would be a nice feature to be able to filter from any attribute of users. 
Do you think I should open a new RFE bug about it ?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted engine HA does not migrate on maintenance

2016-05-23 Thread Martin Sivak
Hi Ralf,

can you please attach the following files?

- The engine log
- The hosted engine agent log from all hosts
- The vdsm log from all hosts

It will greatly help us diagnosing this. We even have a bug with similar
symptoms and this might give us some insight to what happened there as well.

Thanks

--
Martin Sivak
SLA / oVirt


On Mon, May 23, 2016 at 11:13 AM, Ralf Schenk  wrote:

> Hello,
>
> I've set up 3 Hosts of my 8 to be able to run hosted-engine (on
> glusterfs). When I set the host running the HostedEngine to maintenance the
> hosted-engine VM doesn't migrate to one of the other hosts.
>
> I think a state as shown below (Host 1 in Local maintenance but engine
> running on it) should't be possible. When setting maintenance and observing
> Engine VM state in Management Interface I can see Status "migrating from.."
> for a short time in the interface but VM is not migrated and Status
> switches back to "Up" on the host which should be prepared for maintenance.
>
> [root@microcloud21 ~]# hosted-engine --vm-status
>
> --== Host 1 status ==--
>
> Status up-to-date  : True
> Hostname   : microcloud21.mydomain
> Host ID: 1
> Engine status  : {"health": "good", "vm": "up",
> "detail": "up"}
> Score  : 0
> stopped: False
> Local maintenance  : True
> crc32  : 922bd955
> Host timestamp : 426722
>
>
> --== Host 2 status ==--
>
> Status up-to-date  : True
> Hostname   : microcloud24.mydomain
> Host ID: 2
> Engine status  : {"reason": "vm not running on this
> host", "health": "bad", "vm": "down", "detail": "unknown"}
> Score  : 3400
> stopped: False
> Local maintenance  : False
> crc32  : a35888e4
> Host timestamp : 312349
>
>
> --== Host 3 status ==--
>
> Status up-to-date  : True
> Hostname   : microcloud27.mydomain
> Host ID: 3
> Engine status  : {"reason": "vm not running on this
> host", "health": "bad", "vm": "down", "detail": "unknown"}
> Score  : 3400
> stopped: False
> Local maintenance  : False
> crc32  : 06e20597
> Host timestamp : 312061
>
>
> --
>
>
> *Ralf Schenk*
> fon +49 (0) 24 05 / 40 83 70
> fax +49 (0) 24 05 / 40 83 759
> mail *r...@databay.de* 
>
> *Databay AG*
> Jens-Otto-Krag-Straße 11
> D-52146 Würselen
> *www.databay.de* 
>
> Sitz/Amtsgericht Aachen • HRB:8437 • USt-IdNr.: DE 210844202
> Vorstand: Ralf Schenk, Dipl.-Ing. Jens Conze, Aresch Yavari, Dipl.-Kfm.
> Philipp Hermanns
> Aufsichtsratsvorsitzender: Klaus Scholzen (RA)
> --
>
> ___
> 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] Hosted engine HA does not migrate on maintenance

2016-05-23 Thread Ralf Schenk
Hello,

I've set up 3 Hosts of my 8 to be able to run hosted-engine (on
glusterfs). When I set the host running the HostedEngine to maintenance
the hosted-engine VM doesn't migrate to one of the other hosts.

I think a state as shown below (Host 1 in Local maintenance but engine
running on it) should't be possible. When setting maintenance and
observing Engine VM state in Management Interface I can see Status
"migrating from.." for a short time in the interface but VM is not
migrated and Status switches back to "Up" on the host which should be
prepared for maintenance.

[root@microcloud21 ~]# hosted-engine --vm-status

--== Host 1 status ==--

Status up-to-date  : True
Hostname   : microcloud21.mydomain
Host ID: 1
Engine status  : {"health": "good", "vm": "up",
"detail": "up"}
Score  : 0
stopped: False
Local maintenance  : True
crc32  : 922bd955
Host timestamp : 426722


--== Host 2 status ==--

Status up-to-date  : True
Hostname   : microcloud24.mydomain
Host ID: 2
Engine status  : {"reason": "vm not running on this
host", "health": "bad", "vm": "down", "detail": "unknown"}
Score  : 3400
stopped: False
Local maintenance  : False
crc32  : a35888e4
Host timestamp : 312349


--== Host 3 status ==--

Status up-to-date  : True
Hostname   : microcloud27.mydomain
Host ID: 3
Engine status  : {"reason": "vm not running on this
host", "health": "bad", "vm": "down", "detail": "unknown"}
Score  : 3400
stopped: False
Local maintenance  : False
crc32  : 06e20597
Host timestamp : 312061


-- 


*Ralf Schenk*
fon +49 (0) 24 05 / 40 83 70
fax +49 (0) 24 05 / 40 83 759
mail *r...@databay.de* 

*Databay AG*
Jens-Otto-Krag-Straße 11
D-52146 Würselen
*www.databay.de* 

Sitz/Amtsgericht Aachen • HRB:8437 • USt-IdNr.: DE 210844202
Vorstand: Ralf Schenk, Dipl.-Ing. Jens Conze, Aresch Yavari, Dipl.-Kfm.
Philipp Hermanns
Aufsichtsratsvorsitzender: Klaus Scholzen (RA)


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


Re: [ovirt-users] Cinder Snapshot Issues

2016-05-23 Thread Daniel Erez
On Tue, Apr 12, 2016 at 11:13 PM, Kevin Hrpcek  wrote:

> Hello,
>
> I'm running into a problem with live snapshots not working when using
> cinder/ceph disks. There are different failures for including and not
> including memory, but in each case cinder/ceph creates a new snapshot that
> can be seen in cinder and ceph. When doing a memory/disk snapshot the VM
> ends up in a paused state and I need to kill -9 the qemu process to be able
> to boot the vm again. The engine seems to be losing connection with the
> vdsm process on the VM host after freezing the guest's filesystems. The
> guest never receives the thaw command and it fails in the logs. I am
> pasting in some log snippets.
>
> 2016-04-12 19:24:58,851 INFO
> [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand]
> (org.ovirt.thread.pool-8-thread-27) [5c4493e] Ending command
> 'org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand' successfully.
> 2016-04-12 19:27:56,873 ERROR
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (DefaultQuartzScheduler_Worker-27) [4d97ca06] Correlation ID: null, Call
> Stack: null, Custom Event ID: -1, Message: VDSM OVCL1A command failed:
> Message timeout which can be caused by communication issues
> 2016-04-12 19:27:56,873 INFO
> [org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand]
> (DefaultQuartzScheduler_Worker-27) [4d97ca06] Command
> 'org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand' return value
> 'StatusOnlyReturnForXmlRpc [status=StatusForXmlRpc [code=5022,
> message=Message timeout which can be caused by communication issues]]'
> 2016-04-12 19:27:56,874 INFO
> [org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand]
> (DefaultQuartzScheduler_Worker-27) [4d97ca06] HostName = OVCL1A
> 2016-04-12 19:27:56,874 ERROR
> [org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand]
> (DefaultQuartzScheduler_Worker-27) [4d97ca06] Command
> 'SnapshotVDSCommand(HostName = OVCL1A,
> SnapshotVDSCommandParameters:{runAsync='true',
> hostId='9bdfaedc-34a8-4a08-ad8a-c117835a6094',
> vmId='040609f6-cfe0-4763-8b32-08ffad158c93'})' execution failed:
> VDSGenericException: VDSNetworkException: Message timeout which can be
> caused by communication issues
> 2016-04-12 19:27:56,875 WARN  [org.ovirt.engine.core.vdsbroker.VdsManager]
> (org.ovirt.thread.pool-8-thread-16) [4d97ca06] Host 'OVCL1A' is not
> responding.
>
> Disk only live snapshots freeze the guest file systems, the vm receives
> the thaw command, but the VM is no longer responsive. The VM pings on the
> network but it is hung and it also needs a kill -9 to the qemu process so
> that it can be booted again.
>
> jsonrpc.Executor/0::DEBUG::2016-04-12
> 19:41:58,342::__init__::503::jsonrpc.JsonRpcServer::(_serveRequest) Calling
> 'VM.snapshot' in bridge with {u'frozen': True, u'vmID':
> u'040609f6-cfe0-4763-8b32-08ffad158c93', u'snapDrives': []}
> jsonrpc.Executor/0::INFO::2016-04-12
> 19:41:58,343::vm::3237::virt.vm::(snapshot)
> vmId=`040609f6-cfe0-4763-8b32-08ffad158c93`::
> 
> 
>
> jsonrpc.Executor/0::ERROR::2016-04-12
> 19:41:58,346::vm::3252::virt.vm::(snapshot)
> vmId=`040609f6-cfe0-4763-8b32-08ffad158c93`::Unable to take snapshot
> Traceback (most recent call last):
>   File "/usr/share/vdsm/virt/vm.py", line 3250, in snapshot
> self._dom.snapshotCreateXML(snapxml, snapFlags)
>   File "/usr/share/vdsm/virt/virdomain.py", line 68, in f
> ret = attr(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line
> 124, in wrapper
> ret = f(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 1313, in
> wrapper
> return func(inst, *args, **kwargs)
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2581, in
> snapshotCreateXML
> if ret is None:raise libvirtError('virDomainSnapshotCreateXML()
> failed', dom=self)
> libvirtError: unsupported configuration: nothing selected for snapshot
> jsonrpc.Executor/7::DEBUG::2016-04-12
> 19:41:58,391::__init__::503::jsonrpc.JsonRpcServer::(_serveRequest) Calling
> 'VM.thaw' in bridge with {u'vmID': u'040609f6-cfe0-4763-8b32-08ffad158c93'}
> jsonrpc.Executor/7::INFO::2016-04-12
> 19:41:58,391::vm::3041::virt.vm::(thaw)
> vmId=`040609f6-cfe0-4763-8b32-08ffad158c93`::Thawing guest filesystems
> jsonrpc.Executor/7::INFO::2016-04-12
> 19:41:58,396::vm::3056::virt.vm::(thaw)
> vmId=`040609f6-cfe0-4763-8b32-08ffad158c93`::6 guest filesystems thawed
>

It could be an issue of a guest agent. Please make sure the
ovirt-guest-agent and qemu-guest-agent are installed and running in the VM.
Further details are available at:
http://www.ovirt.org/documentation/internal/guest-agent/understanding-guest-agents-and-other-tools/
In addition, can you please attach full engine/vdsm logs.


>
> Everything else is working well with cinder for running VMs (making disks,
> running VMs, live migration, etc...). I was able to get live snapshots when
> using a CephFS Posix storage