Re: [ovirt-users] Firewall?

2014-06-05 Thread Ovirt User
Thanks livnat,

but i don't really understand .

The security group feature defines iptables rules on the note itself.

About that: how can i define security group rules ? and in a cluster, they are 
automatically propagated al all nodes ?


Il giorno 03/giu/2014, alle ore 17:29, Ovirt User ldrt8...@gmail.com ha 
scritto:

   Hello Guys,
 
 i'm searching for a simple firewall solution ( deny some ports etc ).
 
 It is possibile configure a firewall in the node ? to protect the vm's ?
 
 Thanks
 Lukas
 
 
 

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


[ovirt-users] oVirt 3.5.0 Second Alpha postponed due to jenkins issues

2014-06-05 Thread Sandro Bonazzola
Hi,
we discovered that some projects jenkins nightly build jobs weren't providing 
nightly rpms in the last week.
In order to allow basic sanity testing before releasing second alpha, its 
release has been postponed to tomorrow.
Thanks,

-- 
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] Firewall?

2014-06-05 Thread Livnat Peer
On 06/05/2014 09:37 AM, Ovirt User wrote:
 Thanks livnat,
 
 but i don't really understand .
 
 The security group feature defines iptables rules on the note itself.
 
 About that: how can i define security group rules ? and in a cluster, they 
 are automatically propagated al all nodes ?
 

The security group is configured per VM, the rules are configured by the
system on the node the VM is running on.

From the user perspective you need to configure a security group policy
and then associate the VM with the relevant policy, there is also a
default policy to which all VMs are associated by default.

To use this feature you need to use the oVirt-Neutron integration -
http://www.ovirt.org/Features/Detailed_OSN_Integration#Security_groups

One caveat in this integration is that we did not handle VM migration yet.

 
 Il giorno 03/giu/2014, alle ore 17:29, Ovirt User ldrt8...@gmail.com ha 
 scritto:
 
  Hello Guys,

 i'm searching for a simple firewall solution ( deny some ports etc ).

 It is possibile configure a firewall in the node ? to protect the vm's ?

 Thanks
 Lukas



 
 ___
 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] Firewall?

2014-06-05 Thread Gianluca Cecchi
On Thu, Jun 5, 2014 at 10:02 AM, Livnat Peer lp...@redhat.com wrote:

 [snip]




 The security group is configured per VM, the rules are configured by the
 system on the node the VM is running on.

 From the user perspective you need to configure a security group policy
 and then associate the VM with the relevant policy, there is also a
 default policy to which all VMs are associated by default.

 To use this feature you need to use the oVirt-Neutron integration -
 http://www.ovirt.org/Features/Detailed_OSN_Integration#Security_groups


How can I set more than one custom device property?

For example in my case when I had to use extnet I lose the security groups
one...

before
[root@tekkaman ovirt-engine]# engine-config -g CustomDeviceProperties
CustomDeviceProperties:  version: 3.0
CustomDeviceProperties:  version: 3.1
CustomDeviceProperties:  version: 3.2
CustomDeviceProperties:  version: 3.3
CustomDeviceProperties: {type=interface;prop={SecurityGroups=^(?:(?:[0-9a-
fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12},
*)*[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}|)$}} version: 3.4

then
[root@tekkaman ovirt-engine]# engine-config -s
CustomDeviceProperties='{type=interface;prop={extnet=^[a-zA-Z0-9_ ---]+$}}'
Please select a version:
1. 3.0
2. 3.1
3. 3.2
4. 3.3
5. 3.4
5

after:
[root@tekkaman ovirt-engine]# engine-config -g CustomDeviceProperties
CustomDeviceProperties:  version: 3.0
CustomDeviceProperties:  version: 3.1
CustomDeviceProperties:  version: 3.2
CustomDeviceProperties:  version: 3.3
CustomDeviceProperties: {type=interface;prop={extnet=^[a-zA-Z0-9_ ---]+$}}
version: 3.4

# systemctl restart ovirt-engine

What is the syntax to add extnet without deleting security groups one?

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


Re: [ovirt-users] Firewall?

2014-06-05 Thread Livnat Peer
I'm adding Moti to provide the details

On 06/05/2014 11:34 AM, Gianluca Cecchi wrote:
 On Thu, Jun 5, 2014 at 10:02 AM, Livnat Peer lp...@redhat.com
 mailto:lp...@redhat.com wrote:
 
 [snip]
 
  
 
 
 The security group is configured per VM, the rules are configured by the
 system on the node the VM is running on.
 
 From the user perspective you need to configure a security group policy
 and then associate the VM with the relevant policy, there is also a
 default policy to which all VMs are associated by default.
 
 To use this feature you need to use the oVirt-Neutron integration -
 http://www.ovirt.org/Features/Detailed_OSN_Integration#Security_groups
 
 
 How can I set more than one custom device property?
 
 For example in my case when I had to use extnet I lose the security
 groups one...
 
 before
 [root@tekkaman ovirt-engine]# engine-config -g CustomDeviceProperties
 CustomDeviceProperties:  version: 3.0
 CustomDeviceProperties:  version: 3.1
 CustomDeviceProperties:  version: 3.2
 CustomDeviceProperties:  version: 3.3
 CustomDeviceProperties:
 {type=interface;prop={SecurityGroups=^(?:(?:[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12},
 *)*[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}|)$}} version: 3.4
 
 then
 [root@tekkaman ovirt-engine]# engine-config -s
 CustomDeviceProperties='{type=interface;prop={extnet=^[a-zA-Z0-9_ ---]+$}}'
 Please select a version:
 1. 3.0
 2. 3.1
 3. 3.2
 4. 3.3
 5. 3.4
 5
 
 after:
 [root@tekkaman ovirt-engine]# engine-config -g CustomDeviceProperties
 CustomDeviceProperties:  version: 3.0
 CustomDeviceProperties:  version: 3.1
 CustomDeviceProperties:  version: 3.2
 CustomDeviceProperties:  version: 3.3
 CustomDeviceProperties: {type=interface;prop={extnet=^[a-zA-Z0-9_
 ---]+$}} version: 3.4
 
 # systemctl restart ovirt-engine
 
 What is the syntax to add extnet without deleting security groups one?
 
 Thanks
 Gianluca

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


Re: [ovirt-users] Firewall?

2014-06-05 Thread Moti Asayag


- Original Message -
 From: Gianluca Cecchi gianluca.cec...@gmail.com
 To: Livnat Peer lp...@redhat.com
 Cc: users@ovirt.org
 Sent: Thursday, June 5, 2014 11:34:11 AM
 Subject: Re: [ovirt-users] Firewall?
 
 On Thu, Jun 5, 2014 at 10:02 AM, Livnat Peer  lp...@redhat.com  wrote:
 
 
 
 [snip]
 
 
 
 
 The security group is configured per VM, the rules are configured by the
 system on the node the VM is running on.
 
 From the user perspective you need to configure a security group policy
 and then associate the VM with the relevant policy, there is also a
 default policy to which all VMs are associated by default.
 
 To use this feature you need to use the oVirt-Neutron integration -
 http://www.ovirt.org/Features/Detailed_OSN_Integration#Security_groups
 
 
 How can I set more than one custom device property?
 
 For example in my case when I had to use extnet I lose the security groups
 one...
 
 before
 [root@tekkaman ovirt-engine]# engine-config -g CustomDeviceProperties
 CustomDeviceProperties: version: 3.0
 CustomDeviceProperties: version: 3.1
 CustomDeviceProperties: version: 3.2
 CustomDeviceProperties: version: 3.3
 CustomDeviceProperties: {type=interface;prop={ SecurityGroups=^(?:(?:[0-9a-
 fA-F]{8}-(?:[0-9a-fA-F]{4}-){ 3}[0-9a-fA-F]{12},
 *)*[0-9a-fA-F]{8}-(?:[0-9a-fA- F]{4}-){3}[0-9a-fA-F]{12}|)$}} version: 3.4
 
 then
 [root@tekkaman ovirt-engine]# engine-config -s CustomDeviceProperties='{type=
 interface;prop={extnet=^[a-zA- Z0-9_ ---]+$}}'
 Please select a version:
 1. 3.0
 2. 3.1
 3. 3.2
 4. 3.3
 5. 3.4
 5
 
 after:
 [root@tekkaman ovirt-engine]# engine-config -g CustomDeviceProperties
 CustomDeviceProperties: version: 3.0
 CustomDeviceProperties: version: 3.1
 CustomDeviceProperties: version: 3.2
 CustomDeviceProperties: version: 3.3
 CustomDeviceProperties: {type=interface;prop={extnet=^ [a-zA-Z0-9_ ---]+$}}
 version: 3.4
 
 # systemctl restart ovirt-engine
 
 What is the syntax to add extnet without deleting security groups one?
 

See example on [1], modified a bit to fit you goal:

1. sudo engine-config -g CustomDeviceProperties --cver 3.4
2. Copy the SecurityGroups into variable PREVIOUS_PROPERTIES
   i.e. 
PREVIOUS_PROPERTIES=SecurityGroups=^(?:(?:[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12},
 *)*[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}|)$ 
3. sudo engine-config -s 
CustomDeviceProperties={type=interface;prop={$PREVIOUS_PROPERTIES;extnet=^ 
[a-zA-Z0-9_ ---]+$}} --cver=3.4
4. Verify: sudo engine-config -g CustomDeviceProperties --cver 3.4
5. Restart ovirt-engine for changes to reload.

[1] https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof

 Thanks
 Gianluca
 
 ___
 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] Firewall?

2014-06-05 Thread Chris Hunt
you could also do some transparent firewalling using ebtables to drop to
iptables, no?

-Chris
On 6/4/2014 10:44 PM, Ovirt User wrote:
 yes i know neutron, but really i don't want a server manage my L3 networks ! 
 :-) :-)) and you ?

 Il giorno 04/giu/2014, alle ore 22:15, Itamar Heim ih...@redhat.com ha 
 scritto:

 On 06/04/2014 04:08 PM, Maurice James wrote:
 As far as I know the node cannot manage the firewall on the VM, just like 
 the node cannot manage the firewall of another node
 try the Security Groups support in 3.4 via the neutron integration?
 http://www.ovirt.org/Features/Detailed_OSN_Integration

 - Original Message -
 From: Ovirt User ldrt8...@gmail.com
 To: Maurice James mja...@media-node.com
 Cc: users@ovirt.org
 Sent: Wednesday, June 4, 2014 1:48:13 AM
 Subject: Re: [ovirt-users] Firewall?

 thanks i know that. :)

 i'm asking if it is possible manage firewall rules at node level , since 
 node manage networking for VM'S…

 anyone know that ?

 thanks

 Il giorno 04/giu/2014, alle ore 01:15, Maurice James 
 mja...@media-node.com ha scritto:

 The VM becomes its own system, you will have to enable the firewall on the 
 VM itself. Windows Firewall for Windows clients and Iptables or Firewalld 
 for Linux clients


 - Original Message -
 From: Ovirt User ldrt8...@gmail.com
 To: Maurice James mja...@media-node.com
 Cc: users@ovirt.org
 Sent: Tuesday, June 3, 2014 3:33:10 PM
 Subject: Re: [ovirt-users] Firewall?

 the vm's

 thanks


 Il giorno 03/giu/2014, alle ore 17:39, Maurice James 
 mja...@media-node.com ha scritto:

 Do you want to protect the VMs or the manager?


 - Original Message -
 From: Ovirt User ldrt8...@gmail.com
 To: users@ovirt.org
 Sent: Tuesday, June 3, 2014 11:29:23 AM
 Subject: [ovirt-users] Firewall?

   Hello Guys,

 i'm searching for a simple firewall solution ( deny some ports etc ).

 It is possibile configure a firewall in the node ? to protect the vm's ?

 Thanks
 Lukas



 ___
 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] Firewall?

2014-06-05 Thread Ovirt User
hi chris,

at node level ?

Il giorno 03/giu/2014, alle ore 17:29, Ovirt User ldrt8...@gmail.com ha 
scritto:

   Hello Guys,
 
 i'm searching for a simple firewall solution ( deny some ports etc ).
 
 It is possibile configure a firewall in the node ? to protect the vm's ?
 
 Thanks
 Lukas
 
 
 

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


Re: [ovirt-users] experience with AMD Kabini (Jaguar) CPUs

2014-06-05 Thread i iordanov
Hi Doron,

I haven't purchased the Kabini-based system. I hoping that I would be
able to learn in advance whether an all-in-one installation of oVirt
would work on it. Unfortunately, returning it would be a hassle and I
would not get a full refund for it. If there is no way to discover in
advance whether oVirt will work on the system, I can take a risk. Is
an all-in-one oVirt installation known to work on any of the modern
AMD offerings?

Thanks!
iordan



On Wed, Jun 4, 2014 at 4:29 PM, Doron Fediuck dfedi...@redhat.com wrote:


 - Original Message -
 From: i iordanov iiorda...@gmail.com
 To: Doron Fediuck dfedi...@redhat.com
 Cc: users@ovirt.org
 Sent: Wednesday, June 4, 2014 1:26:03 AM
 Subject: Re: [ovirt-users] experience with AMD Kabini (Jaguar) CPUs

 Hi Doron,

 To justify the reason I'm asking my question. On this page:

 http://www.ovirt.org/Features/Self_Hosted_Engine

 I see references to a limited set of CPU types supported by some
 component of oVirt. For example, I find the following text alarming:

The following CPU types are supported by this host:
- model_Nehalem: Intel Nehalem Family
- model_Penryn: Intel Penryn Family
- model_Conroe: Intel Conroe Family


 Thanks!
 iordan

 On Tue, Jun 3, 2014 at 6:19 PM, i iordanov iiorda...@gmail.com wrote:
  Hi Doron,
 
  So there is no artificial check for supported CPUs in the oVirt engine
  installer?
 
  Thanks!
  iordan
 
  On Sun, May 25, 2014 at 7:47 AM, Doron Fediuck dfedi...@redhat.com wrote:
 
 
  - Original Message -
  From: i iordanov iiorda...@gmail.com
  To: users@ovirt.org
  Sent: Sunday, May 25, 2014 12:51:57 AM
  Subject: [ovirt-users] experience with AMD Kabini (Jaguar) CPUs
 
  Hey guys,
 
  I need a system to test oVirt and Opaque on, but I want it to be
  super-low power and near-silent. Therefore I am thinking of grabbing
  one of the new 25W AMD Kabini CPUs. Will oVirt work well on that
  architecture? If not, what would you recommend?
 
  Many thanks!
  iordan
 
  --
  The conscious mind has only one thread of execution.
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
 
 
  Hey,
  oVirt works with libvirt and kvm.
 
  In order to know what is supported with kvm you can check:
  http://www.linux-kvm.org/page/Processor_support
 
  As for libvirt, they provide a wiki on troubleshooting it:
  http://wiki.libvirt.org/page/Libvirt_identifies_host_processor_as_a_different_model_from_the_hardware_documentation
 
  Hope that helps,
  Doron
 
 
 
  --
  The conscious mind has only one thread of execution.



 --
 The conscious mind has only one thread of execution.


 Hi iordan,
 The text you provided is based on the information we get from libvirt
 with some restrictions we impose specifically on hosted engine to make
 sure its VM can live-migrate from one host to the other.

 You can see more info here:
 http://docs.fedoraproject.org/en-US/Fedora/18/html/Virtualization_Administration_Guide/ch15s13s03.html

 Can you provide the output of 'virsh capabilities' on your AMD Kabini?



-- 
The conscious mind has only one thread of execution.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Users seeing all vm's

2014-06-05 Thread Jeff Clay
Yes, I have resolved this issue. It was due to my lack of understanding in
how Ovirt expected things to be configured and setup. Are you using active
directory for authentication and setting up pools of vm's for users to
access?


On Thu, Jun 5, 2014 at 1:10 PM, Artur Sarkisyan s.ar...@gmail.com wrote:

 Hi Jeff,

 I would like to know if you have resolved this issue?

 At this moment i'm building a poc and i have the same problem like yours:
 All users can see all vm's. Do you have some suggestions for me ?

 Thanks in advanced.


 Kind regards,
 Artur


 On Tue, May 6, 2014 at 10:32 PM, Jeff Clay jeffc...@gmail.com wrote:

 For some reason, when logged in as a user with a modifed copy role of
 UserRole (only has login permssion and VM - Basic Operations - Remote
 Log
 In permission) the user can see all of the VM's and has the ability to
 open
 a console, start, shutdown or suspend any of the VM's. I have verified
 that
 all of the VM's only show the SuperUser role in their permissions. I went
 through all of the roles and verified that the user is only a member of
 the
 Copy_of_UserRole. The only thing I can think of is that the user is
 inheriting permissions from something, but I can't find what it is or
 where. Any suggestions?

 Thanks.

 ___
 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] Memory and swap issue

2014-06-05 Thread Itamar Heim

On 06/05/2014 02:24 AM, Jeff Clay wrote:

I'm getting the following error trying to start a VM. I have 64 gb of
RAM on this host. I got this error once before and found that my swap
partition was only 2gb or so. I increased the swap size to 124GB and the
problem went away. Below is the error when trying to start a VM and
below that is what my output from free -g. I don't see why I'm getting
a swap file error when there's plenty of it available.


  * Cannot run VM. Host swap percentage is above the defined threshold.
- Check your configuration parameters for Host Swap Percentage.
  * Cannot run VM. There is no host that satisfies current scheduling
constraints. See below for details:
  * The host USARPAOVRTHOST02 did not satisfy internal filter Memory.



[root@usarpaovrthost02 ~]# free -g
  total   used   free sharedbuffers cached
Mem:62 62  0  0  0 12
-/+ buffers/cache: 50 12
Swap:  123 12110
[root@usarpaovrthost02 ~]#
[root@usarpaovrthost02 ~]#
[root@usarpaovrthost02 ~]# swapon -s
FilenameTypeSizeUsed
Priority
/dev/dm-1   partition   129490936
12811000-1
[root@usarpaovrthost02 ~]#



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



what do you see under host general subtab for swap percentage?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Rename disks when creating VM from Template

2014-06-05 Thread s k
Just noticed that I can actually change the disk name at the bottom of Resource 
Allocation. Apparently I never scrolled down to the very bottom :)

From: sokratis1...@outlook.com
To: users@ovirt.org
Subject: Rename disks when creating VM from Template
Date: Wed, 4 Jun 2014 11:59:55 +0300







Hello all,
I have noticed that when I create a VM from a template the disks of the VM have 
the name of the Templates's disk.
What I would like is to be able to rename the VM's disks based on the hostname.
For example the template I use have the following disk names:
VM_Template_Disk1VM_Template_Disk2VM_Template_Disk3
When I create a new VM (e.g. testvm01) the disk names remain the same. What I 
would like is to be able to rename them automatically as below:
testvm01_Disk1testvm01_Disk2testvm01_Disk3
At the moment I'm editing the names manually using the oVirt GUI.
Is it possible to do this automatically?
Thanks,
Sokratis

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


Re: [ovirt-users] Memory and swap issue

2014-06-05 Thread Jeff Clay
126455 MB total, 863 MB used, 125592 MB free
 That's what I'm showing right now, but I don't have as many VM's running
at the moment. There are currently 8 running and I was getting that issue
yesterday when I got around the 15 vm mark.











On Thu, Jun 5, 2014 at 2:07 PM, Itamar Heim ih...@redhat.com wrote:

 On 06/05/2014 02:24 AM, Jeff Clay wrote:

 I'm getting the following error trying to start a VM. I have 64 gb of
 RAM on this host. I got this error once before and found that my swap
 partition was only 2gb or so. I increased the swap size to 124GB and the
 problem went away. Below is the error when trying to start a VM and
 below that is what my output from free -g. I don't see why I'm getting
 a swap file error when there's plenty of it available.


   * Cannot run VM. Host swap percentage is above the defined threshold.

 - Check your configuration parameters for Host Swap Percentage.
   * Cannot run VM. There is no host that satisfies current scheduling

 constraints. See below for details:
   * The host USARPAOVRTHOST02 did not satisfy internal filter Memory.




 [root@usarpaovrthost02 ~]# free -g
   total   used   free sharedbuffers cached
 Mem:62 62  0  0  0 12
 -/+ buffers/cache: 50 12
 Swap:  123 12110
 [root@usarpaovrthost02 ~]#
 [root@usarpaovrthost02 ~]#
 [root@usarpaovrthost02 ~]# swapon -s
 FilenameTypeSizeUsed
 Priority
 /dev/dm-1   partition   129490936
 12811000-1
 [root@usarpaovrthost02 ~]#



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


 what do you see under host general subtab for swap percentage?

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


Re: [ovirt-users] Memory and swap issue

2014-06-05 Thread Jeff Clay
Also, just to note, all of my VMs are configured for memory ballooning with
1.5gb guaranteed and can use up to 3gb. All VM guests are Windows 7 32bit.
On Jun 5, 2014 2:30 PM, Jeff Clay jeffc...@gmail.com wrote:

 126455 MB total, 863 MB used, 125592 MB free
  That's what I'm showing right now, but I don't have as many VM's running
 at the moment. There are currently 8 running and I was getting that issue
 yesterday when I got around the 15 vm mark.











 On Thu, Jun 5, 2014 at 2:07 PM, Itamar Heim ih...@redhat.com wrote:

 On 06/05/2014 02:24 AM, Jeff Clay wrote:

 I'm getting the following error trying to start a VM. I have 64 gb of
 RAM on this host. I got this error once before and found that my swap
 partition was only 2gb or so. I increased the swap size to 124GB and the
 problem went away. Below is the error when trying to start a VM and
 below that is what my output from free -g. I don't see why I'm getting
 a swap file error when there's plenty of it available.


   * Cannot run VM. Host swap percentage is above the defined threshold.

 - Check your configuration parameters for Host Swap Percentage.
   * Cannot run VM. There is no host that satisfies current scheduling

 constraints. See below for details:
   * The host USARPAOVRTHOST02 did not satisfy internal filter Memory.




 [root@usarpaovrthost02 ~]# free -g
   total   used   free sharedbuffers
 cached
 Mem:62 62  0  0  0 12
 -/+ buffers/cache: 50 12
 Swap:  123 12110
 [root@usarpaovrthost02 ~]#
 [root@usarpaovrthost02 ~]#
 [root@usarpaovrthost02 ~]# swapon -s
 FilenameTypeSizeUsed
 Priority
 /dev/dm-1   partition   129490936
 12811000-1
 [root@usarpaovrthost02 ~]#



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


 what do you see under host general subtab for swap percentage?



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


Re: [ovirt-users] Memory and swap issue

2014-06-05 Thread Itamar Heim

On 06/05/2014 10:30 PM, Jeff Clay wrote:

126455 MB total, 863 MB used, 125592 MB free
  That's what I'm showing right now, but I don't have as many VM's
running at the moment. There are currently 8 running and I was getting
that issue yesterday when I got around the 15 vm mark.











On Thu, Jun 5, 2014 at 2:07 PM, Itamar Heim ih...@redhat.com
mailto:ih...@redhat.com wrote:

On 06/05/2014 02:24 AM, Jeff Clay wrote:

I'm getting the following error trying to start a VM. I have 64
gb of
RAM on this host. I got this error once before and found that my
swap
partition was only 2gb or so. I increased the swap size to 124GB
and the
problem went away. Below is the error when trying to start a VM and
below that is what my output from free -g. I don't see why I'm
getting
a swap file error when there's plenty of it available.


   * Cannot run VM. Host swap percentage is above the defined
threshold.

 - Check your configuration parameters for Host Swap Percentage.
   * Cannot run VM. There is no host that satisfies current
scheduling

 constraints. See below for details:
   * The host USARPAOVRTHOST02 did not satisfy internal filter
Memory.




[root@usarpaovrthost02 ~]# free -g
   total   used   free sharedbuffers
 cached
Mem:62 62  0  0  0
   12
-/+ buffers/cache: 50 12
Swap:  123 12110
[root@usarpaovrthost02 ~]#
[root@usarpaovrthost02 ~]#
[root@usarpaovrthost02 ~]# swapon -s
FilenameTypeSizeUsed
Priority
/dev/dm-1   partition   129490936
12811000-1
[root@usarpaovrthost02 ~]#



_
Users mailing list
Users@ovirt.org mailto:Users@ovirt.org
http://lists.ovirt.org/__mailman/listinfo/users
http://lists.ovirt.org/mailman/listinfo/users


what do you see under host general subtab for swap percentage?




iirc, you can either disable the swap check via the config 
EnableSwapCheck, or change the threshold via 
BlockMigrationOnSwapUsagePercentage
(which would be a confusing name if it affects RunVm and not only 
migration...)

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


Re: [ovirt-users] Memory and swap issue

2014-06-05 Thread Jeff Clay
I'm concerned about disabling it and having unexpected behavior if the
system actually does end up using all of its swap space. Any insight?
On Jun 5, 2014 2:34 PM, Itamar Heim ih...@redhat.com wrote:

 On 06/05/2014 10:30 PM, Jeff Clay wrote:

 126455 MB total, 863 MB used, 125592 MB free
   That's what I'm showing right now, but I don't have as many VM's
 running at the moment. There are currently 8 running and I was getting
 that issue yesterday when I got around the 15 vm mark.











 On Thu, Jun 5, 2014 at 2:07 PM, Itamar Heim ih...@redhat.com
 mailto:ih...@redhat.com wrote:

 On 06/05/2014 02:24 AM, Jeff Clay wrote:

 I'm getting the following error trying to start a VM. I have 64
 gb of
 RAM on this host. I got this error once before and found that my
 swap
 partition was only 2gb or so. I increased the swap size to 124GB
 and the
 problem went away. Below is the error when trying to start a VM
 and
 below that is what my output from free -g. I don't see why I'm
 getting
 a swap file error when there's plenty of it available.


* Cannot run VM. Host swap percentage is above the defined
 threshold.

  - Check your configuration parameters for Host Swap
 Percentage.
* Cannot run VM. There is no host that satisfies current
 scheduling

  constraints. See below for details:
* The host USARPAOVRTHOST02 did not satisfy internal filter
 Memory.




 [root@usarpaovrthost02 ~]# free -g
total   used   free sharedbuffers
  cached
 Mem:62 62  0  0  0
12
 -/+ buffers/cache: 50 12
 Swap:  123 12110
 [root@usarpaovrthost02 ~]#
 [root@usarpaovrthost02 ~]#
 [root@usarpaovrthost02 ~]# swapon -s
 FilenameTypeSize
  Used
 Priority
 /dev/dm-1   partition   129490936
 12811000-1
 [root@usarpaovrthost02 ~]#



 _
 Users mailing list
 Users@ovirt.org mailto:Users@ovirt.org
 http://lists.ovirt.org/__mailman/listinfo/users
 http://lists.ovirt.org/mailman/listinfo/users


 what do you see under host general subtab for swap percentage?



 iirc, you can either disable the swap check via the config
 EnableSwapCheck, or change the threshold via BlockMigrationOnSwapUsagePerce
 ntage
 (which would be a confusing name if it affects RunVm and not only
 migration...)

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


Re: [ovirt-users] Memory and swap issue

2014-06-05 Thread Itamar Heim

On 06/05/2014 10:36 PM, Jeff Clay wrote:

I'm concerned about disabling it and having unexpected behavior if the
system actually does end up using all of its swap space. Any insight?


change the percentage threshold then.
the idea is if you are swapping - its bad.
though, if you also have a lot of free memory, its kind of absurd to 
block because there is a swap, but its not needed so it remains swapped.





On Jun 5, 2014 2:34 PM, Itamar Heim ih...@redhat.com
mailto:ih...@redhat.com wrote:

On 06/05/2014 10:30 PM, Jeff Clay wrote:

126455 MB total, 863 MB used, 125592 MB free
   That's what I'm showing right now, but I don't have as many VM's
running at the moment. There are currently 8 running and I was
getting
that issue yesterday when I got around the 15 vm mark.











On Thu, Jun 5, 2014 at 2:07 PM, Itamar Heim ih...@redhat.com
mailto:ih...@redhat.com
mailto:ih...@redhat.com mailto:ih...@redhat.com wrote:

 On 06/05/2014 02:24 AM, Jeff Clay wrote:

 I'm getting the following error trying to start a VM. I
have 64
 gb of
 RAM on this host. I got this error once before and
found that my
 swap
 partition was only 2gb or so. I increased the swap size
to 124GB
 and the
 problem went away. Below is the error when trying to
start a VM and
 below that is what my output from free -g. I don't
see why I'm
 getting
 a swap file error when there's plenty of it available.


* Cannot run VM. Host swap percentage is above the
defined
 threshold.

  - Check your configuration parameters for Host
Swap Percentage.
* Cannot run VM. There is no host that satisfies current
 scheduling

  constraints. See below for details:
* The host USARPAOVRTHOST02 did not satisfy internal
filter
 Memory.




 [root@usarpaovrthost02 ~]# free -g
total   used   free shared
  buffers
  cached
 Mem:62 62  0  0
  0
12
 -/+ buffers/cache: 50 12
 Swap:  123 12110
 [root@usarpaovrthost02 ~]#
 [root@usarpaovrthost02 ~]#
 [root@usarpaovrthost02 ~]# swapon -s
 FilenameType
  SizeUsed
 Priority
 /dev/dm-1   partition
129490936
 12811000-1
 [root@usarpaovrthost02 ~]#



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


 what do you see under host general subtab for swap percentage?



iirc, you can either disable the swap check via the config
EnableSwapCheck, or change the threshold via
BlockMigrationOnSwapUsagePerce__ntage
(which would be a confusing name if it affects RunVm and not only
migration...)



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


Re: [ovirt-users] Memory and swap issue

2014-06-05 Thread Jeff Clay
Am I correct in understanding that vm's which aren't being actively used
are moved to swap space to free more available RAM? If so, that might be
what is causing my issue, since we usually have several VM's idle and not
in direct use.


On Thu, Jun 5, 2014 at 2:45 PM, Itamar Heim ih...@redhat.com wrote:

 On 06/05/2014 10:36 PM, Jeff Clay wrote:

 I'm concerned about disabling it and having unexpected behavior if the
 system actually does end up using all of its swap space. Any insight?


 change the percentage threshold then.
 the idea is if you are swapping - its bad.
 though, if you also have a lot of free memory, its kind of absurd to block
 because there is a swap, but its not needed so it remains swapped.



 On Jun 5, 2014 2:34 PM, Itamar Heim ih...@redhat.com
 mailto:ih...@redhat.com wrote:

 On 06/05/2014 10:30 PM, Jeff Clay wrote:

 126455 MB total, 863 MB used, 125592 MB free
That's what I'm showing right now, but I don't have as many
 VM's
 running at the moment. There are currently 8 running and I was
 getting
 that issue yesterday when I got around the 15 vm mark.











 On Thu, Jun 5, 2014 at 2:07 PM, Itamar Heim ih...@redhat.com
 mailto:ih...@redhat.com
 mailto:ih...@redhat.com mailto:ih...@redhat.com wrote:

  On 06/05/2014 02:24 AM, Jeff Clay wrote:

  I'm getting the following error trying to start a VM. I
 have 64
  gb of
  RAM on this host. I got this error once before and
 found that my
  swap
  partition was only 2gb or so. I increased the swap size
 to 124GB
  and the
  problem went away. Below is the error when trying to
 start a VM and
  below that is what my output from free -g. I don't
 see why I'm
  getting
  a swap file error when there's plenty of it available.


 * Cannot run VM. Host swap percentage is above the
 defined
  threshold.

   - Check your configuration parameters for Host
 Swap Percentage.
 * Cannot run VM. There is no host that satisfies
 current
  scheduling

   constraints. See below for details:
 * The host USARPAOVRTHOST02 did not satisfy internal
 filter
  Memory.




  [root@usarpaovrthost02 ~]# free -g
 total   used   free shared
   buffers
   cached
  Mem:62 62  0  0
   0
 12
  -/+ buffers/cache: 50 12
  Swap:  123 12110
  [root@usarpaovrthost02 ~]#
  [root@usarpaovrthost02 ~]#
  [root@usarpaovrthost02 ~]# swapon -s
  FilenameType
   SizeUsed
  Priority
  /dev/dm-1   partition
 129490936
  12811000-1
  [root@usarpaovrthost02 ~]#



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

  http://lists.ovirt.org/__mailman/listinfo/users
 http://lists.ovirt.org/mailman/listinfo/users


  what do you see under host general subtab for swap
 percentage?



 iirc, you can either disable the swap check via the config
 EnableSwapCheck, or change the threshold via
 BlockMigrationOnSwapUsagePerce__ntage

 (which would be a confusing name if it affects RunVm and not only
 migration...)



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


Re: [ovirt-users] Memory and swap issue

2014-06-05 Thread Itamar Heim

On 06/05/2014 10:48 PM, Jeff Clay wrote:

Am I correct in understanding that vm's which aren't being actively used
are moved to swap space to free more available RAM? If so, that might be
what is causing my issue, since we usually have several VM's idle and
not in direct use.


yes, though i don't they are supposed to be swapped if there is enough 
available memory.





On Thu, Jun 5, 2014 at 2:45 PM, Itamar Heim ih...@redhat.com
mailto:ih...@redhat.com wrote:

On 06/05/2014 10:36 PM, Jeff Clay wrote:

I'm concerned about disabling it and having unexpected behavior
if the
system actually does end up using all of its swap space. Any
insight?


change the percentage threshold then.
the idea is if you are swapping - its bad.
though, if you also have a lot of free memory, its kind of absurd to
block because there is a swap, but its not needed so it remains swapped.



On Jun 5, 2014 2:34 PM, Itamar Heim ih...@redhat.com
mailto:ih...@redhat.com
mailto:ih...@redhat.com mailto:ih...@redhat.com wrote:

 On 06/05/2014 10:30 PM, Jeff Clay wrote:

 126455 MB total, 863 MB used, 125592 MB free
That's what I'm showing right now, but I don't have
as many VM's
 running at the moment. There are currently 8 running
and I was
 getting
 that issue yesterday when I got around the 15 vm mark.











 On Thu, Jun 5, 2014 at 2:07 PM, Itamar Heim
ih...@redhat.com mailto:ih...@redhat.com
 mailto:ih...@redhat.com mailto:ih...@redhat.com
 mailto:ih...@redhat.com mailto:ih...@redhat.com
mailto:ih...@redhat.com mailto:ih...@redhat.com wrote:

  On 06/05/2014 02:24 AM, Jeff Clay wrote:

  I'm getting the following error trying to
start a VM. I
 have 64
  gb of
  RAM on this host. I got this error once before and
 found that my
  swap
  partition was only 2gb or so. I increased the
swap size
 to 124GB
  and the
  problem went away. Below is the error when
trying to
 start a VM and
  below that is what my output from free -g. I
don't
 see why I'm
  getting
  a swap file error when there's plenty of it
available.


 * Cannot run VM. Host swap percentage is
above the
 defined
  threshold.

   - Check your configuration parameters for
Host
 Swap Percentage.
 * Cannot run VM. There is no host that
satisfies current
  scheduling

   constraints. See below for details:
 * The host USARPAOVRTHOST02 did not satisfy
internal
 filter
  Memory.




  [root@usarpaovrthost02 ~]# free -g
 total   used   free
shared
   buffers
   cached
  Mem:62 62  0
0
   0
 12
  -/+ buffers/cache: 50 12
  Swap:  123 12110
  [root@usarpaovrthost02 ~]#
  [root@usarpaovrthost02 ~]#
  [root@usarpaovrthost02 ~]# swapon -s
  FilenameType
   SizeUsed
  Priority
  /dev/dm-1   partition
 129490936
  12811000-1
  [root@usarpaovrthost02 ~]#




  _
  Users mailing list
Users@ovirt.org mailto:Users@ovirt.org mailto:Users@ovirt.org
mailto:Users@ovirt.org mailto:Users@ovirt.org
mailto:Users@ovirt.org
 mailto:Users@ovirt.org mailto:Users@ovirt.org
http://lists.ovirt.org/__mailman/listinfo/users
http://lists.ovirt.org/mailman/listinfo/users
 http://lists.ovirt.org/mailman/listinfo/users
http://lists.ovirt.org/__mailman/listinfo/users


  http://lists.ovirt.org/mailman/listinfo/users
http://lists.ovirt.org/__mailman/listinfo/users
 

[ovirt-users] Ovirt Guest Agent Windows 7

2014-06-05 Thread Jeff Clay
I have the spice guest agent/tools installed, but I'm reading that I also
need to install/setup the ovirt-guest-agent to get proper reporting of
resources, etc. I'm following the instructions in
https://github.com/oVirt/ovirt-guest-agent/blob/master/ovirt-guest-agent/README-windows.txt


I am confused at


Update the AGENT_CONFIG global variable in OVirtGuestService.py to point to

right configuration location.

I can find the file without issue, the value I'm requested to change
has a default value of:  AGENT_CONFIG = 'ovirt-guest-agent.ini'


I cannot locate a file named ovirt-guest-agent.ini within the
C:\ovirt-guest-agent-master\ovirt-guest-agent folder so I'm not sure
what to set this value to.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Ovirt Guest Agent Windows 7

2014-06-05 Thread Joop

Jeff Clay wrote:
I have the spice guest agent/tools installed, but I'm reading that I 
also need to install/setup the ovirt-guest-agent to get proper 
reporting of resources, etc. I'm following the instructions 
in https://github.com/oVirt/ovirt-guest-agent/blob/master/ovirt-guest-agent/README-windows.txt  



I am confused at

Update the AGENT_CONFIG global variable in OVirtGuestService.py to 
point to

right configuration location.
I can find the file without issue, the value I'm requested to change 
has a default value of: AGENT_CONFIG = 'ovirt-guest-agent.ini'



I cannot locate a file named ovirt-guest-agent.ini within the 
C:\ovirt-guest-agent-master\ovirt-guest-agent folder so I'm not sure 
what to set this value to.


  
Just enter the two command to install the service and to start it. I 
have never changed the location of the ini file. I'm don't even know 
what's in it although I guess the same sort of into that is in the linux 
/etc/ovirt-guest-agent.conf file. Check services CPL to make sure its 
set to automatic.


Joop

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


Re: [ovirt-users] Can HA Agent control NFS Mount?

2014-06-05 Thread Andrew Lau
Hi Doron,

On Mon, May 26, 2014 at 4:38 PM, Doron Fediuck dfedi...@redhat.com wrote:


 - Original Message -
 From: Andrew Lau and...@andrewklau.com
 To: Bob Doolittle b...@doolittle.us.com
 Cc: users users@ovirt.org
 Sent: Monday, May 26, 2014 7:30:41 AM
 Subject: Re: [ovirt-users] Can HA Agent control NFS Mount?

 On Mon, May 26, 2014 at 5:10 AM, Bob Doolittle b...@doolittle.us.com wrote:
 
  On 05/25/2014 02:51 PM, Joop wrote:
 
  On 25-5-2014 19:38, Bob Doolittle wrote:
 
 
  Also curious is that when I say poweroff it actually reboots and comes
  up again. Could that be due to the timeouts on the way down?
 
  Ah, that's something my F19 host does too. Some more info: if engine
  hasn't been started on the host then I can shutdown it and it will
  poweroff.
  IF engine has been run on it then it will reboot.
  Its not vdsm (I think) because my shutdown sequence is (on my f19 host):
   service ovirt-agent-ha stop
   service ovirt-agent-broker stop
   service vdsmd stop
   ssh root@engine01 init 0
  init 0
 
  I don't use maintenance mode because when I poweron my host (= my desktop)
  I want engine to power on automatically which it does most of the time
  within 10 min.
 
 
  For comparison, I see this issue and I *do* use maintenance mode (because
  presumably that's the 'blessed' way to shut things down and I'm scared to
  mess this complex system up by straying off the beaten path ;). My process
  is:
 
  ssh root@engine init 0
  (wait for vdsClient -s 0 list | grep Status: to show the vm as down)
  hosted-engine --set-maintenance --mode=global
  poweroff
 
  And then on startup:
  hosted-engine --set-maintenance --mode=none
  hosted-engine --vm-start
 
  There are two issues here. I am not sure if they are related or not.
  1. The NFS timeout during shutdown (Joop do you see this also? Or just #2?)
  2. The system reboot instead of poweroff (which messes up remote machine
  management)
 

 For 1. I was wondering if perhaps, we could have an option to specify
 the mount options. If I understand correctly, applying a soft mount
 instead of a hard mount would prevent this from happening. I'm however
 not sure of the implications this would have on the data integrity..

 I would really like to see it happen in the ha-agent, as it's the one
 which connects/mounts the storage it should also unmount it on boot.
 However the stability on it, is flaky at best. I've noticed if `df`
 hangs because of another NFS mount having timed-out the agent will
 die. That's not a good sign.. this was what actually caused my
 hosted-engine to run twice in one case.

  Thanks,
   Bob
 
 
  I think wdmd or sanlock are causing the reboot instead of poweroff
 
  Joop
 

 Great to have your feedback guys!

 So just to clarify some of the issues you mentioned;

 Hosted engine wasn't designed for a 'single node' use case, as we do
 want it to be highly available. This is why it's being restarted
 elsewhere or even on the same server if no better alternative.

 Having said that, it is possible to set global maintenance mode
 as a first step (in the UI: right click engine vm and choose ha-maintenance).
 Then you can ssh into the engine vm and init 0.

 After a short while, the qemu process should gracefully end and release
 its sanlock lease as well as any other resource, which means you can
 reboot your hypervisor peacefully.

Sadly no, I've only been able to reboot my hypervisors if one of the
two conditions are met:

- Lazy unmount of /rhev/mnt/hosted-engine etc.
- killall -9 sanlock wdmd

I notice sanlock and wdmd are not able to be stopped with service wdmd
stop; service sanlock stop
These seem to fail during the shutdown/reboot process which prevents
the unmount and the graceful reboot.

Are there any logs I can look into on how to debug those failed shutdowns?


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


Re: [ovirt-users] Can HA Agent control NFS Mount?

2014-06-05 Thread Andrew Lau
On Mon, May 26, 2014 at 5:10 AM, Bob Doolittle b...@doolittle.us.com wrote:

 On 05/25/2014 02:51 PM, Joop wrote:

 On 25-5-2014 19:38, Bob Doolittle wrote:


 Also curious is that when I say poweroff it actually reboots and comes
 up again. Could that be due to the timeouts on the way down?

 Ah, that's something my F19 host does too. Some more info: if engine
 hasn't been started on the host then I can shutdown it and it will poweroff.
 IF engine has been run on it then it will reboot.
 Its not vdsm (I think) because my shutdown sequence is (on my f19 host):
  service ovirt-agent-ha stop
  service ovirt-agent-broker stop
  service vdsmd stop
  ssh root@engine01 init 0
 init 0

 I don't use maintenance mode because when I poweron my host (= my desktop)
 I want engine to power on automatically which it does most of the time
 within 10 min.


 For comparison, I see this issue and I *do* use maintenance mode (because
 presumably that's the 'blessed' way to shut things down and I'm scared to
 mess this complex system up by straying off the beaten path ;). My process
 is:

 ssh root@engine init 0
 (wait for vdsClient -s 0 list | grep Status: to show the vm as down)
 hosted-engine --set-maintenance --mode=global
 poweroff

 And then on startup:
 hosted-engine --set-maintenance --mode=none
 hosted-engine --vm-start

 There are two issues here. I am not sure if they are related or not.
 1. The NFS timeout during shutdown (Joop do you see this also? Or just #2?)
 2. The system reboot instead of poweroff (which messes up remote machine
 management)

 Thanks,
  Bob


 I think wdmd or sanlock are causing the reboot instead of poweroff

While searching for my issue of wdmd/sanlock not shutting down, I
found this which may interest you both:
https://bugzilla.redhat.com/show_bug.cgi?id=888197

Specifically:
To shut down sanlock without causing a wdmd reboot, you can run the
following command: sanlock client shutdown -f 1

This will cause sanlock to kill any pid's that are holding leases,
release those leases, and then exit.



 Joop

 ___
 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] Can HA Agent control NFS Mount?

2014-06-05 Thread Bob Doolittle
Thanks Andrew, I'll try this workaround tomorrow for sure. But reading
though that bug report (closed not a bug) it states that the problem should
only arise if something is not releasing a sanlock lease. So if we've
entered Global Maintenance and shut down Engine, the question is what's
holding the lease?

How can that be debugged?

-Bob
On Jun 5, 2014 10:56 PM, Andrew Lau and...@andrewklau.com wrote:

 On Mon, May 26, 2014 at 5:10 AM, Bob Doolittle b...@doolittle.us.com
 wrote:
 
  On 05/25/2014 02:51 PM, Joop wrote:
 
  On 25-5-2014 19:38, Bob Doolittle wrote:
 
 
  Also curious is that when I say poweroff it actually reboots and
 comes
  up again. Could that be due to the timeouts on the way down?
 
  Ah, that's something my F19 host does too. Some more info: if engine
  hasn't been started on the host then I can shutdown it and it will
 poweroff.
  IF engine has been run on it then it will reboot.
  Its not vdsm (I think) because my shutdown sequence is (on my f19 host):
   service ovirt-agent-ha stop
   service ovirt-agent-broker stop
   service vdsmd stop
   ssh root@engine01 init 0
  init 0
 
  I don't use maintenance mode because when I poweron my host (= my
 desktop)
  I want engine to power on automatically which it does most of the time
  within 10 min.
 
 
  For comparison, I see this issue and I *do* use maintenance mode (because
  presumably that's the 'blessed' way to shut things down and I'm scared to
  mess this complex system up by straying off the beaten path ;). My
 process
  is:
 
  ssh root@engine init 0
  (wait for vdsClient -s 0 list | grep Status: to show the vm as down)
  hosted-engine --set-maintenance --mode=global
  poweroff
 
  And then on startup:
  hosted-engine --set-maintenance --mode=none
  hosted-engine --vm-start
 
  There are two issues here. I am not sure if they are related or not.
  1. The NFS timeout during shutdown (Joop do you see this also? Or just
 #2?)
  2. The system reboot instead of poweroff (which messes up remote machine
  management)
 
  Thanks,
   Bob
 
 
  I think wdmd or sanlock are causing the reboot instead of poweroff

 While searching for my issue of wdmd/sanlock not shutting down, I
 found this which may interest you both:
 https://bugzilla.redhat.com/show_bug.cgi?id=888197

 Specifically:
 To shut down sanlock without causing a wdmd reboot, you can run the
 following command: sanlock client shutdown -f 1

 This will cause sanlock to kill any pid's that are holding leases,
 release those leases, and then exit.
 

 
  Joop
 
  ___
  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] VM HostedEngie is down. Exist message: internal error Failed to acquire lock error -243

2014-06-05 Thread Andrew Lau
Hi,

I'm seeing this weird message in my engine log

2014-06-06 03:06:09,380 INFO
[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo]
(DefaultQuartzScheduler_Worker-79) RefreshVmList vm id
85d4cfb9-f063-4c7c-a9f8-2b74f5f7afa5 status = WaitForLaunch on vds
ov-hv2-2a-08-23 ignoring it in the refresh until migration is done
2014-06-06 03:06:12,494 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand]
(DefaultQuartzScheduler_Worker-89) START, DestroyVDSCommand(HostName =
ov-hv2-2a-08-23, HostId = c04c62be-5d34-4e73-bd26-26f805b2dc60,
vmId=85d4cfb9-f063-4c7c-a9f8-2b74f5f7afa5, force=false,
secondsToWait=0, gracefully=false), log id: 62a9d4c1
2014-06-06 03:06:12,561 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand]
(DefaultQuartzScheduler_Worker-89) FINISH, DestroyVDSCommand, log id:
62a9d4c1
2014-06-06 03:06:12,652 INFO
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(DefaultQuartzScheduler_Worker-89) Correlation ID: null, Call Stack:
null, Custom Event ID: -1, Message: VM HostedEngine is down. Exit
message: internal error Failed to acquire lock: error -243.

It also appears to occur on the other hosts in the cluster, except the
host which is running the hosted-engine. So right now 3 servers, it
shows up twice in the engine UI.

The engine VM continues to run peacefully, without any issues on the
host which doesn't have that error.

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


Re: [ovirt-users] Can HA Agent control NFS Mount?

2014-06-05 Thread Andrew Lau
On Fri, Jun 6, 2014 at 1:09 PM, Bob Doolittle b...@doolittle.us.com wrote:
 Thanks Andrew, I'll try this workaround tomorrow for sure. But reading
 though that bug report (closed not a bug) it states that the problem should
 only arise if something is not releasing a sanlock lease. So if we've
 entered Global Maintenance and shut down Engine, the question is what's
 holding the lease?

 How can that be debugged?

For me it's wdmd and sanlock itself failing to shutdown properly. I
also noticed even when in global maintenance and the engine VM powered
off there is still a sanlock lease for the
/rhev/mnt/hosted-engine/? lease file or something along those
lines. So the global maintenance may not actually be releasing that
lock.

I'm not too familiar with sanlock etc. So it's like stabbing in the dark :(


 -Bob

 On Jun 5, 2014 10:56 PM, Andrew Lau and...@andrewklau.com wrote:

 On Mon, May 26, 2014 at 5:10 AM, Bob Doolittle b...@doolittle.us.com
 wrote:
 
  On 05/25/2014 02:51 PM, Joop wrote:
 
  On 25-5-2014 19:38, Bob Doolittle wrote:
 
 
  Also curious is that when I say poweroff it actually reboots and
  comes
  up again. Could that be due to the timeouts on the way down?
 
  Ah, that's something my F19 host does too. Some more info: if engine
  hasn't been started on the host then I can shutdown it and it will
  poweroff.
  IF engine has been run on it then it will reboot.
  Its not vdsm (I think) because my shutdown sequence is (on my f19
  host):
   service ovirt-agent-ha stop
   service ovirt-agent-broker stop
   service vdsmd stop
   ssh root@engine01 init 0
  init 0
 
  I don't use maintenance mode because when I poweron my host (= my
  desktop)
  I want engine to power on automatically which it does most of the time
  within 10 min.
 
 
  For comparison, I see this issue and I *do* use maintenance mode
  (because
  presumably that's the 'blessed' way to shut things down and I'm scared
  to
  mess this complex system up by straying off the beaten path ;). My
  process
  is:
 
  ssh root@engine init 0
  (wait for vdsClient -s 0 list | grep Status: to show the vm as down)
  hosted-engine --set-maintenance --mode=global
  poweroff
 
  And then on startup:
  hosted-engine --set-maintenance --mode=none
  hosted-engine --vm-start
 
  There are two issues here. I am not sure if they are related or not.
  1. The NFS timeout during shutdown (Joop do you see this also? Or just
  #2?)
  2. The system reboot instead of poweroff (which messes up remote machine
  management)
 
  Thanks,
   Bob
 
 
  I think wdmd or sanlock are causing the reboot instead of poweroff

 While searching for my issue of wdmd/sanlock not shutting down, I
 found this which may interest you both:
 https://bugzilla.redhat.com/show_bug.cgi?id=888197

 Specifically:
 To shut down sanlock without causing a wdmd reboot, you can run the
 following command: sanlock client shutdown -f 1

 This will cause sanlock to kill any pid's that are holding leases,
 release those leases, and then exit.
 

 
  Joop
 
  ___
  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] Spam Windows guest agent

2014-06-05 Thread Maurice James
Is there some special trick to get the windows guest agent to install properly? 
I have the service installed but it wont start. Perhaps someone made a youtube 
video of the install. I saw some prior posts where other were having issues but 
when they asked for helped they got the old RTFM answer. The problem is the FM 
seems to be missing some steps. Any help would be appreciated. Thanks 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Cann't ping guest from outside

2014-06-05 Thread John Xue
Anyone help me?


On Wed, Jun 4, 2014 at 11:43 AM, John Xue xgxj...@gmail.com wrote:

 I am testing ovirth, my test environment are:

 Host: nested virtualization ESXi5.5+CentOS 6.4_x86_64
 Guest: Ubuntu14.04_i386

 Now, ping
 CentOS - guest and outside are OK
 Outside - gest Fail

 I am using bridge connection, I try to tcpdump

 [root@centos vdsm]# brctl show
 bridge namebridge id   STP enabled
 interfaces
 ;vdsmdummy; 8000.   no
 rhevm 8000.005056ae45e5   no
 eth0

  vnet0
 [root@centos vdsm]# brctl showmacs rhevm
 port no mac addris local?   ageing timer
 2 fe:1a:4a:0c:14:41   yes0.00
 [root@centos vdsm]# ifconfig|grep HWaddr
 eth0  Link encap:Ethernet  HWaddr 00:50:56:AE:45:E5
 rhevm Link encap:Ethernet  HWaddr 00:50:56:AE:45:E5
 vnet0 Link encap:Ethernet  HWaddr FE:1A:4A:0C:14:41
 [root@centos vdsm]# service iptables stop
 [root@centos vdsm]# tcpdump
 11:34:59.267379 ARP, Request who-has GUESTIP tell OUTSIDEPCIP, length 46
 11:34:59.268017 ARP, Reply GUESTIP is-at 00:1a:4a:0c:14:41 (oui Unknown),
 length 28

 I can see only arp working, how do I check this problem? and how vdsm
 convert from FE:1A:4A:0C:14:41 to guest mac 00:1a:4a:0c:14:41?

 Thank you!

 --
 Regards,
 John Xue




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


Re: [ovirt-users] VM HostedEngie is down. Exist message: internal error Failed to acquire lock error -243

2014-06-05 Thread combuster

Hi Andrew,

this is something that I saw in my logs too, first on one node and then 
on the other three. When that happend on all four of them, engine was 
corrupted beyond repair.


First of all, I think that message is saying that sanlock can't get a 
lock on the shared storage that you defined for the hostedengine during 
installation. I got this error when I've tried to manually migrate the 
hosted engine. There is an unresolved bug there and I think it's related 
to this one:


[*Bug 1093366* https://bugzilla.redhat.com/show_bug.cgi?id=1093366 
-Migration of hosted-engine vm put target host score to zero]

https://bugzilla.redhat.com/show_bug.cgi?id=1093366

This is a blocker bug (or should be) for the selfhostedengine and, from 
my own experience with it, shouldn't be used in the production 
enviroment (not untill it's fixed).


Nothing that I've done couldn't fix the fact that the score for the 
target node was Zero, tried to reinstall the node, reboot the node, 
restarted several services, tailed a tons of logs etc but to no avail. 
When only one node was left (that was actually running the hosted 
engine), I brought the engine's vm down gracefully (hosted-engine 
--vm-shutdown I belive) and after that, when I've tried to start the vm 
- it wouldn't load. Running VNC showed that the filesystem inside the vm 
was corrupted and when I ran fsck and finally started up - it was too 
badly damaged. I succeded to start the engine itself (after repairing 
postgresql service that wouldn't want to start) but the database was 
damaged enough and acted pretty weird (showed that storage domains were 
down but the vm's were running fine etc). Lucky me, I had already 
exported all of the VM's on the first sign of trouble and then installed 
ovirt-engine on the dedicated server and attached the export domain.


So while really a usefull feature, and it's working (for the most part 
ie, automatic migration works), manually migrating VM with the 
hosted-engine will lead to troubles.


I hope that my experience with it, will be of use to you. It happened to 
me two weeks ago, ovirt-engine was current (3.4.1) and there was no fix 
available.


Regards,

Ivan
On 06/06/2014 05:12 AM, Andrew Lau wrote:

Hi,

I'm seeing this weird message in my engine log

2014-06-06 03:06:09,380 INFO
[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo]
(DefaultQuartzScheduler_Worker-79) RefreshVmList vm id
85d4cfb9-f063-4c7c-a9f8-2b74f5f7afa5 status = WaitForLaunch on vds
ov-hv2-2a-08-23 ignoring it in the refresh until migration is done
2014-06-06 03:06:12,494 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand]
(DefaultQuartzScheduler_Worker-89) START, DestroyVDSCommand(HostName =
ov-hv2-2a-08-23, HostId = c04c62be-5d34-4e73-bd26-26f805b2dc60,
vmId=85d4cfb9-f063-4c7c-a9f8-2b74f5f7afa5, force=false,
secondsToWait=0, gracefully=false), log id: 62a9d4c1
2014-06-06 03:06:12,561 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand]
(DefaultQuartzScheduler_Worker-89) FINISH, DestroyVDSCommand, log id:
62a9d4c1
2014-06-06 03:06:12,652 INFO
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(DefaultQuartzScheduler_Worker-89) Correlation ID: null, Call Stack:
null, Custom Event ID: -1, Message: VM HostedEngine is down. Exit
message: internal error Failed to acquire lock: error -243.

It also appears to occur on the other hosts in the cluster, except the
host which is running the hosted-engine. So right now 3 servers, it
shows up twice in the engine UI.

The engine VM continues to run peacefully, without any issues on the
host which doesn't have that error.

Any ideas?
___
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] Spam Windows guest agent

2014-06-05 Thread Karli Sjöberg

Den 6 jun 2014 05:44 skrev Maurice James mja...@media-node.com:

 Is there some special trick to get the windows guest agent to install 
 properly? I have the service installed but it wont start. Perhaps someone 
 made a youtube video of the install. I saw some prior posts where other were 
 having issues but when they asked for helped they got the old RTFM answer. 
 The problem is the FM seems to be missing some steps. Any help would be 
 appreciated. Thanks

You mean this[1] FM?

[1] http://www.ovirt.org/OVirt_Guest_Agent_For_Windows

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