Re: [ovirt-users] ovirt_nics problem at ansible module

2017-03-08 Thread Oğuz Yarımtepe
Yes, pip repo has 2.2. will use the add_vm_nic.py for now.

On Wed, Mar 8, 2017 at 5:07 PM, Ondra Machacek  wrote:

>
>
> On Wed, Mar 8, 2017 at 3:44 PM, Oğuz Yarımtepe 
> wrote:
>
>> Hi,
>>
>> Below is my playbook
>>
>> ---
>> - name: Setup oVirt environment
>>   hosts: vms
>>   tasks:
>> - block:
>> - name: Include oVirt password
>>   #no_log: true
>>   include_vars: vars.yml
>>
>> - name: Obtain SSO token
>>   no_log: true
>>   ovirt_auth:
>> url: "{{ url }}"
>> username: "{{ username }}"
>> password: "{{ password }}"
>> ca_file: "{{ ca_file }}"
>>
>> - name: Create and run VM from template
>>   ovirt_vms:
>> auth: "{{ ovirt_auth }}"
>> name: "{{ vm }}"
>> template: "{{ template }}"
>> cluster: "{{ cluster }}"
>> memory: "{{ memory }}"
>> memory_guaranteed: "{{ memory_guaranteed }}"
>> high_availability: true
>> cpu_cores: "{{ cpu_cores }}"
>> cpu_sockets: "{{ cpu_sockets }}"
>> type: server
>> name: "{{ vm }}"
>> operating_system: other_linux
>> state: stopped
>> wait: yes
>>
>> #- name: Add nic
>> #  ovirt_nics:
>> #auth: "{{ ovirt_auth }}"
>> #name: "{{ nic_name }}"
>> #profile: "{{ profile_name }}"
>> #state: plugged
>> #vm: "{{ vm }}"
>> #wait: yes
>>
>>   always:
>> - name: Revoke the SSO token
>>   ovirt_auth:
>> state: absent
>> ovirt_auth: "{{ ovirt_auth }}"
>>
>> When i remove the commented lines here is what i got:
>>
>> ERROR! no action detected in task. This often indicates a misspelled
>> module name, or incorrect module path.
>>
>
> ovirt_nics module is part of the Ansible 2.3, and I guess you are using
> Ansible 2.2. That's why it can't find the module.
>
>
>>
>> The error appears to have been in '/Users/oyarimtepe/test/ovirt-
>> ansible/create_vm_from_template/playbook.yml': line 35, column 11, but
>> may
>> be elsewhere in the file depending on the exact syntax problem.
>>
>> The offending line appears to be:
>>
>>
>> - name: Add nic
>>   ^ here
>>
>>
>> The error appears to have been in '/Users/oyarimtepe/test/ovirt-
>> ansible/create_vm_from_template/playbook.yml': line 35, column 11, but
>> may
>> be elsewhere in the file depending on the exact syntax problem.
>>
>> The offending line appears to be:
>>
>>
>> - name: Add nic
>>   ^ here
>>
>> I tried using the nics attribute of ovirt_vms module but this time i got
>> Nic[Name] is required although i defined as below:
>>
>> nics:
>>   - name: "{{ nic_name }}"
>>   - profile_name: "{{ profile_name }}"
>>
>
>
> This is a list of dictionary, so this should be:
>
> nics:
>   - name: "{{ nic_name }}"
> profile_name: "{{ profile_name }}"
>
> (no second dash)
>
>
>>
>> without comments it works. Any idea? Any way to set the nic and profile
>> via SDK? An example will be great.
>>
>> --
>> Oğuz Yarımtepe
>> http://about.me/oguzy
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>


-- 
Oğuz Yarımtepe
http://about.me/oguzy
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] host-only network

2017-03-08 Thread qinglong.d...@horebdata.cn
Hi, all
I have noticed that kvm supports host-only network mode. So I want to 
know how to create a host-only vinc for a virtual machine in ovirt.
Anyone can help? Thanks!
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Shrink gluster logical volume under Ovirt 4.0

2017-03-08 Thread Sahina Bose
Are you shrinking the gluster volume by removing bricks, or are you
shrinking the underlying LV/filesystem of the bricks associated with
gluster volume?
If latter, you need to move storage domain to maintenance and umount from
all hosts.

On Thu, Mar 9, 2017 at 4:56 AM, Ian Neilsen  wrote:

>
> Hi all
>
> I need to shrink/reduce the size of a gluster logical volume under Ovirt
> 4.0.
>
> Is there anything I should be aware of before reducing the file system and
> logical volume on my servers?
>
> I ask because I see under "df -h" the following;
> 192.168.3.10:data   5.7T  3.4G  5.7T   1% /rhev/data-center/mnt/
> glusterSD/192.168.3.10:data
>
> The storage domain is not connected yet via oVirt manager, well at least
> it isnt showing. Im running in hosted mode converged.
>
>
> Thanks in advance
> --
> Ian Neilsen
>
> Mobile: 0424 379 762
> Linkedin: http://au.linkedin.com/in/ianneilsen
> Twitter : ineilsen
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt backup and VM pauses.

2017-03-08 Thread Maton, Brett
I noticed similar behavior, I think if the memory state isn't backed-up
then the machines won't be paused.
Not seen an option in script to 'flip' the flag, but then again I haven't
looked at the script in enough detail to see what needs changing.

On 9 March 2017 at 06:11, Misak Khachatryan  wrote:

> Hello,
>
> I'm using oVirt and recently added backup functionality using this script:
>
> https://github.com/wefixit-AT/oVirtBackup
>
> This script runs every day from cron, but i noticed very bad behavior
> with the machines. Script on some stage pauses them, and it leads to
> problems. I have NTP stratum 2 server as a virtual machine, which I
> added to pool.ntp.org. When machine pauses, it loses time sync for a
> while and NTP.ORG monitoring system removes this machine from pool.
> And it take about a 24 hours to get good score to be included int the
> pool again, then next backup time arrives, and so on.
>
> So my question is - any suggestion to prevent this behavior or any
> other backup solution without pausing available?
>
> Best regards,
> Misak Khachatryan
> ___
> 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] oVirt backup and VM pauses.

2017-03-08 Thread Misak Khachatryan
Hello,

I'm using oVirt and recently added backup functionality using this script:

https://github.com/wefixit-AT/oVirtBackup

This script runs every day from cron, but i noticed very bad behavior
with the machines. Script on some stage pauses them, and it leads to
problems. I have NTP stratum 2 server as a virtual machine, which I
added to pool.ntp.org. When machine pauses, it loses time sync for a
while and NTP.ORG monitoring system removes this machine from pool.
And it take about a 24 hours to get good score to be included int the
pool again, then next backup time arrives, and so on.

So my question is - any suggestion to prevent this behavior or any
other backup solution without pausing available?

Best regards,
Misak Khachatryan
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Shrink gluster logical volume under Ovirt 4.0

2017-03-08 Thread Ian Neilsen
Hi all

I need to shrink/reduce the size of a gluster logical volume under Ovirt
4.0.

Is there anything I should be aware of before reducing the file system and
logical volume on my servers?

I ask because I see under "df -h" the following;
192.168.3.10:data   5.7T  3.4G  5.7T   1%
/rhev/data-center/mnt/glusterSD/192.168.3.10:data

The storage domain is not connected yet via oVirt manager, well at least it
isnt showing. Im running in hosted mode converged.


Thanks in advance
-- 
Ian Neilsen

Mobile: 0424 379 762
Linkedin: http://au.linkedin.com/in/ianneilsen
Twitter : ineilsen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt-engine-sdk-python-4.1 clone a vm from snapshot

2017-03-08 Thread Niyazi Elvan
Hello Juan !

Thank you very much ! I am quite new to ovirt sdk and I really appreciate
your help.

 ** with 4.0 I actually meant 3.6 , my typo :)





On Wed, Mar 8, 2017 at 9:18 PM, Juan Hernández  wrote:

> On 03/08/2017 06:53 PM, Niyazi Elvan wrote:
> > Hi Folks !
> >
> > I am looking for a documentation for ovirt-engine-sdk-python-4.1 but
> > could not find anything yet. Looks like there are many changes compared
> > to 4.0.
> >
>
> Version 4.1 of the SDK isn't very different for version 4.0. It is very
> different from version 3.6.
>
> Note that version 3 of the API, and version 3 of the SDK are deprecated
> since version 4.0 of the engine, and they will be removed in version 4.2
> of the engine.
>
> There is a general description of version 4 of the SDK here:
>
>   https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/README.adoc
>
> A collection of examples here:
>
>   https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples
>
> And reference documentation here:
>
>   http://ovirt.github.io/ovirt-engine-sdk/4.1
>
> You may also find useful the documentation of the API itself:
>
>   http://ovirt.github.io/ovirt-engine-api-model/4.1
>
> Specially the section that describes how to add virtual machines, as
> there is an example of how to add a virtual machine from a snapshot there:
>
>
> http://ovirt.github.io/ovirt-engine-api-model/4.1/#
> services/vms/methods/add
>
> > Can anyone help me about how to clone a VM from a snapshot using the
> > latest sdk ?
> >
>
> To create a virtual machine from a snapshot with the latest version of
> the SDK you will need something like this:
>
> ---8<---
> import time
>
> import ovirtsdk4 as sdk
> import ovirtsdk4.types as types
>
> # This example shows how to clone a virtual machine from an snapshot.
>
> # Create the connection to the server:
> connection = sdk.Connection(
> url='https://engine.example.com/ovirt-engine/api',
> username='admin@internal',
> password='...',
> ca_file='ca.pem'
> )
>
> # Get the reference to the root of the tree of services:
> system_service = connection.system_service()
>
> # Find the virtual machine:
> vms_service = system_service.vms_service()
> vm = vms_service.list(search='name=myvm')[0]
>
> # Find the service that manages the virtual machine:
> vm_service = vms_service.vm_service(vm.id)
>
> # Find the snapshot. Note that the snapshots collection doesn't support
> # search, so we need to retrieve the complete list and the look for the
> # snapshot that has the description that we are looking for.
> snaps_service = vm_service.snapshots_service()
> snaps = snaps_service.list()
> snap = next(
>   (s for s in snaps if s.description == 'mysnap'),
>   None
> )
>
> # Create a new virtual machine, cloning it from the snapshot:
> cloned_vm = vms_service.add(
> vm=types.Vm(
> name='myclonedvm',
> snapshots=[
> types.Snapshot(
> id=snap.id
> )
> ],
> cluster=types.Cluster(
> name='mycluster'
> )
> )
> )
>
> # Find the service that manages the cloned virtual machine:
> cloned_vm_service = vms_service.vm_service(cloned_vm.id)
>
> # Wait till the virtual machine is down, as that means that the creation
> # of the disks of the virtual machine has been completed:
> while True:
> time.sleep(5)
> cloned_vm = cloned_vm_service.get()
> if cloned_vm.status == types.VmStatus.DOWN:
> break
>
> # Close the connection to the server:
> connection.close()
> --->8---
>



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


Re: [ovirt-users] ovirt-engine-sdk-python-4.1 clone a vm from snapshot

2017-03-08 Thread Juan Hernández
On 03/08/2017 06:53 PM, Niyazi Elvan wrote:
> Hi Folks !
> 
> I am looking for a documentation for ovirt-engine-sdk-python-4.1 but
> could not find anything yet. Looks like there are many changes compared
> to 4.0.
> 

Version 4.1 of the SDK isn't very different for version 4.0. It is very
different from version 3.6.

Note that version 3 of the API, and version 3 of the SDK are deprecated
since version 4.0 of the engine, and they will be removed in version 4.2
of the engine.

There is a general description of version 4 of the SDK here:

  https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/README.adoc

A collection of examples here:

  https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples

And reference documentation here:

  http://ovirt.github.io/ovirt-engine-sdk/4.1

You may also find useful the documentation of the API itself:

  http://ovirt.github.io/ovirt-engine-api-model/4.1

Specially the section that describes how to add virtual machines, as
there is an example of how to add a virtual machine from a snapshot there:


http://ovirt.github.io/ovirt-engine-api-model/4.1/#services/vms/methods/add

> Can anyone help me about how to clone a VM from a snapshot using the
> latest sdk ?
> 

To create a virtual machine from a snapshot with the latest version of
the SDK you will need something like this:

---8<---
import time

import ovirtsdk4 as sdk
import ovirtsdk4.types as types

# This example shows how to clone a virtual machine from an snapshot.

# Create the connection to the server:
connection = sdk.Connection(
url='https://engine.example.com/ovirt-engine/api',
username='admin@internal',
password='...',
ca_file='ca.pem'
)

# Get the reference to the root of the tree of services:
system_service = connection.system_service()

# Find the virtual machine:
vms_service = system_service.vms_service()
vm = vms_service.list(search='name=myvm')[0]

# Find the service that manages the virtual machine:
vm_service = vms_service.vm_service(vm.id)

# Find the snapshot. Note that the snapshots collection doesn't support
# search, so we need to retrieve the complete list and the look for the
# snapshot that has the description that we are looking for.
snaps_service = vm_service.snapshots_service()
snaps = snaps_service.list()
snap = next(
  (s for s in snaps if s.description == 'mysnap'),
  None
)

# Create a new virtual machine, cloning it from the snapshot:
cloned_vm = vms_service.add(
vm=types.Vm(
name='myclonedvm',
snapshots=[
types.Snapshot(
id=snap.id
)
],
cluster=types.Cluster(
name='mycluster'
)
)
)

# Find the service that manages the cloned virtual machine:
cloned_vm_service = vms_service.vm_service(cloned_vm.id)

# Wait till the virtual machine is down, as that means that the creation
# of the disks of the virtual machine has been completed:
while True:
time.sleep(5)
cloned_vm = cloned_vm_service.get()
if cloned_vm.status == types.VmStatus.DOWN:
break

# Close the connection to the server:
connection.close()
--->8---
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] ovirt-engine-sdk-python-4.1 clone a vm from snapshot

2017-03-08 Thread Niyazi Elvan
Hi Folks !

I am looking for a documentation for ovirt-engine-sdk-python-4.1 but could
not find anything yet. Looks like there are many changes compared to 4.0.

Can anyone help me about how to clone a VM from a snapshot using the latest
sdk ?

Thank you !



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


Re: [ovirt-users] Python sdk 4 for Fedora 25 where?

2017-03-08 Thread Juan Hernández
On 03/08/2017 06:23 PM, Nathanaël Blanchet wrote:
> 
> 
> Le 08/03/2017 à 18:17, Juan Hernández a écrit :
>> On 03/08/2017 06:15 PM, Barak Korren wrote:
>>> On 8 March 2017 at 19:07, Juan Hernández  wrote:
 The best way to get the latest versions of those packages is to install
 the oVirt release RPM:

dnf install
 http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm

 Then install the required packages. The names of the packages are
 different for version 3 of the SDK and version 4 of the SDK, so you can
 install both simultaneously:

Version 3: ovirt-engine-sdk-python
Version 4: python-ovirt-engine-sdk4

yum -y install ovirt-engine-sdk-python python-ovirt-engine-sdk4

 Note that version 3 of the API, and version 3 of the SDK, are
 deprecated
 since version 4 of the engine, and that they will be removed in version
 4.2 of the engine, so prepare to migrate to version 4.

>>> Juan, it seems that we did not build SDK4 for FC25 in 4.1 or older
>>> versions:
>>> http://jenkins.ovirt.org/search/?q=python-ovirt-engine-sdk4_4.1_build-artifacts
>>>
>>>
>>> So as far as I can tell there is no released SDK4 for FC25 ATM. Only a
>>> pre-released one in the master snapshot.
>>>
>> Sorry, I forgot you are using Fedora 25, and Fedora 25 isn't yet a
>> supported platform :-( .
>>
>> For Fedora 25 you can either build the packages yourself, or else
>> install using 'pip':
> previously
> 
> sudo dnf install gcc python3-devel libxml2-devel

That is correct, thanks Nathanaël. I have just submitted a patch to
document this in the README.adoc file of the SDK:

  Add installation instructions
  https://gerrit.ovirt.org/73796

Would be nice if you can review that patch.

>>pip install ovirt-engine-sdk
>>
>> But you can't install version 3 and 4 in this way, as in the PyPI world
>> they are the same package.
>>
>> Another thing you can do is get the latest builds from the master
>> branch, which already support Fedora 25:
>>
>>Version 3:
>>
>> http://jenkins.ovirt.org/view/All/job/ovirt-engine-sdk_master_build-artifacts-fc25-x86_64/lastSuccessfulBuild/artifact/exported-artifacts/ovirt-engine-sdk-python-3.6.9.2-0.1.20170209.gite99bbd1.fc25.noarch.rpm
>>
>>
>>Version 4:
>>
>> http://jenkins.ovirt.org/view/All/job/python-ovirt-engine-sdk4_master_build-artifacts-fc25-x86_64/lastSuccessfulBuild/artifact/exported-artifacts/python-ovirt-engine-sdk4-4.2.0-1.a0.20170308git9add66c.fc25.x86_64.rpm
>>
>>
>> That pre-releases are that, pre-releases, but there are no big changes,
>> should be very usable.
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
> 

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


Re: [ovirt-users] Python sdk 4 for Fedora 25 where?

2017-03-08 Thread Nathanaël Blanchet



Le 08/03/2017 à 18:17, Juan Hernández a écrit :

On 03/08/2017 06:15 PM, Barak Korren wrote:

On 8 March 2017 at 19:07, Juan Hernández  wrote:

The best way to get the latest versions of those packages is to install
the oVirt release RPM:

   dnf install http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm

Then install the required packages. The names of the packages are
different for version 3 of the SDK and version 4 of the SDK, so you can
install both simultaneously:

   Version 3: ovirt-engine-sdk-python
   Version 4: python-ovirt-engine-sdk4

   yum -y install ovirt-engine-sdk-python python-ovirt-engine-sdk4

Note that version 3 of the API, and version 3 of the SDK, are deprecated
since version 4 of the engine, and that they will be removed in version
4.2 of the engine, so prepare to migrate to version 4.


Juan, it seems that we did not build SDK4 for FC25 in 4.1 or older versions:
http://jenkins.ovirt.org/search/?q=python-ovirt-engine-sdk4_4.1_build-artifacts

So as far as I can tell there is no released SDK4 for FC25 ATM. Only a
pre-released one in the master snapshot.


Sorry, I forgot you are using Fedora 25, and Fedora 25 isn't yet a
supported platform :-( .

For Fedora 25 you can either build the packages yourself, or else
install using 'pip':

previously

sudo dnf install gcc python3-devel libxml2-devel

   pip install ovirt-engine-sdk

But you can't install version 3 and 4 in this way, as in the PyPI world
they are the same package.

Another thing you can do is get the latest builds from the master
branch, which already support Fedora 25:

   Version 3:

http://jenkins.ovirt.org/view/All/job/ovirt-engine-sdk_master_build-artifacts-fc25-x86_64/lastSuccessfulBuild/artifact/exported-artifacts/ovirt-engine-sdk-python-3.6.9.2-0.1.20170209.gite99bbd1.fc25.noarch.rpm

   Version 4:

http://jenkins.ovirt.org/view/All/job/python-ovirt-engine-sdk4_master_build-artifacts-fc25-x86_64/lastSuccessfulBuild/artifact/exported-artifacts/python-ovirt-engine-sdk4-4.2.0-1.a0.20170308git9add66c.fc25.x86_64.rpm

That pre-releases are that, pre-releases, but there are no big changes,
should be very usable.

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


--
Nathanaël Blanchet

Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5   
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
blanc...@abes.fr

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


Re: [ovirt-users] Python sdk 4 for Fedora 25 where?

2017-03-08 Thread Juan Hernández
On 03/08/2017 06:15 PM, Barak Korren wrote:
> On 8 March 2017 at 19:07, Juan Hernández  wrote:
>>
>> The best way to get the latest versions of those packages is to install
>> the oVirt release RPM:
>>
>>   dnf install http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm
>>
>> Then install the required packages. The names of the packages are
>> different for version 3 of the SDK and version 4 of the SDK, so you can
>> install both simultaneously:
>>
>>   Version 3: ovirt-engine-sdk-python
>>   Version 4: python-ovirt-engine-sdk4
>>
>>   yum -y install ovirt-engine-sdk-python python-ovirt-engine-sdk4
>>
>> Note that version 3 of the API, and version 3 of the SDK, are deprecated
>> since version 4 of the engine, and that they will be removed in version
>> 4.2 of the engine, so prepare to migrate to version 4.
>>
> 
> Juan, it seems that we did not build SDK4 for FC25 in 4.1 or older versions:
> http://jenkins.ovirt.org/search/?q=python-ovirt-engine-sdk4_4.1_build-artifacts
> 
> So as far as I can tell there is no released SDK4 for FC25 ATM. Only a
> pre-released one in the master snapshot.
> 

Sorry, I forgot you are using Fedora 25, and Fedora 25 isn't yet a
supported platform :-( .

For Fedora 25 you can either build the packages yourself, or else
install using 'pip':

  pip install ovirt-engine-sdk

But you can't install version 3 and 4 in this way, as in the PyPI world
they are the same package.

Another thing you can do is get the latest builds from the master
branch, which already support Fedora 25:

  Version 3:

http://jenkins.ovirt.org/view/All/job/ovirt-engine-sdk_master_build-artifacts-fc25-x86_64/lastSuccessfulBuild/artifact/exported-artifacts/ovirt-engine-sdk-python-3.6.9.2-0.1.20170209.gite99bbd1.fc25.noarch.rpm

  Version 4:

http://jenkins.ovirt.org/view/All/job/python-ovirt-engine-sdk4_master_build-artifacts-fc25-x86_64/lastSuccessfulBuild/artifact/exported-artifacts/python-ovirt-engine-sdk4-4.2.0-1.a0.20170308git9add66c.fc25.x86_64.rpm

That pre-releases are that, pre-releases, but there are no big changes,
should be very usable.

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


Re: [ovirt-users] Python sdk 4 for Fedora 25 where?

2017-03-08 Thread Barak Korren
On 8 March 2017 at 19:07, Juan Hernández  wrote:
>
> The best way to get the latest versions of those packages is to install
> the oVirt release RPM:
>
>   dnf install http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm
>
> Then install the required packages. The names of the packages are
> different for version 3 of the SDK and version 4 of the SDK, so you can
> install both simultaneously:
>
>   Version 3: ovirt-engine-sdk-python
>   Version 4: python-ovirt-engine-sdk4
>
>   yum -y install ovirt-engine-sdk-python python-ovirt-engine-sdk4
>
> Note that version 3 of the API, and version 3 of the SDK, are deprecated
> since version 4 of the engine, and that they will be removed in version
> 4.2 of the engine, so prepare to migrate to version 4.
>

Juan, it seems that we did not build SDK4 for FC25 in 4.1 or older versions:
http://jenkins.ovirt.org/search/?q=python-ovirt-engine-sdk4_4.1_build-artifacts

So as far as I can tell there is no released SDK4 for FC25 ATM. Only a
pre-released one in the master snapshot.

-- 
Barak Korren
bkor...@redhat.com
RHCE, RHCi, RHV-DevOps Team
https://ifireball.wordpress.com/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Python sdk 4 for Fedora 25 where?

2017-03-08 Thread Juan Hernández
On 03/08/2017 05:58 PM, Gianluca Cecchi wrote:
> Hello,
> it seems that on my Fedora 25 I'm able to find
> only ovirt-engine-sdk-python that is 3.6.9.1
> What should I execute to get sdk 4 on Fedora 25?
> Can I have both the sdk 3 and 4 for test an a single machine?
> 
> Thanks in advance,
> Gianluca
> 

The best way to get the latest versions of those packages is to install
the oVirt release RPM:

  dnf install http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm

Then install the required packages. The names of the packages are
different for version 3 of the SDK and version 4 of the SDK, so you can
install both simultaneously:

  Version 3: ovirt-engine-sdk-python
  Version 4: python-ovirt-engine-sdk4

  yum -y install ovirt-engine-sdk-python python-ovirt-engine-sdk4

Note that version 3 of the API, and version 3 of the SDK, are deprecated
since version 4 of the engine, and that they will be removed in version
4.2 of the engine, so prepare to migrate to version 4.

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


Re: [ovirt-users] oVirt VM backup and restore

2017-03-08 Thread Gianluca Cecchi
On Tue, Feb 7, 2017 at 6:05 PM, Beckman, Daniel <
daniel.beck...@ingramcontent.com> wrote:

> We’re been using oVirtBackup with our oVirt 4.0.5 environment and it’s
> worked well. It’s not the most efficient ( first creates a snapshot, then
> clone, then backup) but we can live with it.
>
>
>
> Has anyone tested oVirtBackup with oVirt 4.1? Does it still work? I want
> to know before we upgrade. I’d like to eventually use the new v4 API but I
> haven’t seen a lot of documentation on how it works in practice.
>
>
>
> Thanks,
>
> Daniel
>
>
>
> *From: * on behalf of Nathanaël Blanchet <
> blanc...@abes.fr>
> *Date: *Monday, January 30, 2017 at 3:44 AM
> *To: *"users@ovirt.org" 
> *Subject: *Re: [ovirt-users] oVirt VM backup and restore
>
>
>
> Hello,
>
>- With ovirt <= 4.1 and ovirtsdk3 : https://github.com/wefixit-AT/
>oVirtBackup
>
> This workflow works fine but will be soon deprecated.
>
>- With ovirt > 4.0, jhernandez has recently posted a new python script
>based on the new v4 API : https://github.com/oVirt/
>ovirt-engine-sdk/blob/master/sdk/examples/vm_backup.py
>
> 
>
> I personnally didn't try it, maybe someone could give a feedback.
>
>
>


I'm running some tests in a 4.1 testenvironment.
At the moment testing on a Oracle Linux 7.3 VM

- using oVirtBackup from master (version is on 3rd of July 2016)

$ ./backup.py -c config_test.cfg
Mar 08 17:37:08: Start backup for: Oracle7
Mar 08 17:37:09: Snapshot creation started ...
Mar 08 17:38:23: Snapshot created
Mar 08 17:38:33: Clone into VM started ...
Mar 08 17:40:31: Cloning finished
Mar 08 17:40:32: Snapshot deletion started ...
Mar 08 17:41:53: Snapshots deleted
Mar 08 17:41:54: Export started ...
Mar 08 17:43:56: Exporting finished
Mar 08 17:43:57: Delete cloned VM started ...
Mar 08 17:44:01: Cloned VM deleted
Mar 08 17:44:01: Duration: 6:54 minutes
Mar 08 17:44:01: VM exported as Oracle7_BACKUP_20170308_173708
Mar 08 17:44:01: Backup done for: Oracle7
Mar 08 17:44:01: All backups done

NOTE: during the snapshot creation I see in web admin console the VM in
paused state and also not responsive in both console and ssh session.
After a couple of seconds it comes back and as a confirmation I see this in
its messages:

Mar  8 17:38:57 T-ORACLE73 chronyd[616]: System clock wrong by 19.077230
seconds, adjustment started

Is this expected?

Not yet used the vm_backup.py, I;m trying to get sdk4 on Fedora 25 before
(see the other thread I opened)...

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


[ovirt-users] Python sdk 4 for Fedora 25 where?

2017-03-08 Thread Gianluca Cecchi
Hello,
it seems that on my Fedora 25 I'm able to find only ovirt-engine-sdk-python
that is 3.6.9.1
What should I execute to get sdk 4 on Fedora 25?
Can I have both the sdk 3 and 4 for test an a single machine?

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


Re: [ovirt-users] Moving from fc based to iSCSI based

2017-03-08 Thread Gianluca Cecchi
On Wed, Mar 8, 2017 at 3:33 PM, Fred Rolland  wrote:

> I cannot think of another option other to have an export domain in the
> middle that can be accessed from all the hosts.
>
>
> On Wed, Mar 8, 2017 at 3:50 PM, Gianluca Cecchi  > wrote:
>
>> On Wed, Mar 8, 2017 at 1:30 PM, Fred Rolland  wrote:
>>
>>> Hi,
>>>
>>> Storage domains are per Data Center, and all hosts in this DC should be
>>> able to access the SDs, no matter in which cluster they are...
>>>
>>> Are you sure your hosts are on the same DC ?
>>>
>>> Thanks,
>>>
>>> Freddy
>>>
>>>
>> No, my scenario was a planning workflow.
>> At this moment I only have Host1 and Host2 that are connected to an
>> FC-SAN.
>> I have to move data to an iSCSI storage and also oVirt hosts to Host3 and
>> Host4 (yet to be deployed).
>> So I'm trying to understand if I can do it in pieces bypassing
>> export/import
>>
>> I forgot that it is DC the constraint for SD accessibility.
>> Any suggestion to accomplish the desired target?
>>
>> Thanks,
>> Gianluca
>>
>>
>
Is it realistic to think something similar to the workflow described below,
based on the import storage domain functionality described here:
http://www.ovirt.org/develop/release-management/features/storage/importstoragedomain

and in particular one of its targets:
Transfer VMs between setups without the need to copy the data into and out
of the export domain.


Prerequisite:
- Host1 has network connectivity with Host3
- Host1 is part of a DC that contains an FC based storage domain, composed
of SAN LUN A of X Tb
- Host3 is part of another DC and has connection in place with iSCSI LUN B
of X Tb

Workflow:
- Stop the VMs that are on the source FC domain
- Put source storage domain into maintenance
- Detach source storage domain
- Clone LUN A to LUN B at low level
(eg dd command via network
Similar to when you clone an entire disk from a server to another server
)
- import domain on DC where Host3 lives giving the correct iSCSI
parameters...

Do the OVF_STORE disks on the storage domain contain information about the
fact of it being an FC or an iSCSI storage domain, preventing then a
possible import operation?

This is a test environment where I would like to transfer 4Tb of data from
FC SAN in decommission phase to an iSCSI SAN, and if I can by-pass export /
import phases, even giving some downtime, would be good.

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


Re: [ovirt-users] ovirt ansible module

2017-03-08 Thread Ondra Machacek
On Wed, Mar 8, 2017 at 10:08 AM, Oğuz Yarımtepe 
wrote:

> I didn't see any parameter at the current ansible documentation related
> with these features. How can i set these feature if i am using ansible? Any
> possibility to set them via SDK after the vm is opened via ansible?
>

This is indeed not supported, feel free to open an issue here:

 https://github.com/ansible/ansible/issues

Thank you!


>
> On Wed, Mar 8, 2017 at 8:46 AM, Oved Ourfali  wrote:
>
>> The VM leases feature is a new feature in 4.1, and I'm not sure whether
>> it was included in the ansible modules or not.
>> CC-ing Ondra as he will know for sure.
>>
>>
>> On Wed, Mar 8, 2017 at 3:20 AM, Oğuz Yarımtepe 
>> wrote:
>>
>>> Hi,
>>>
>>> I am ttesting the ovirt ansible module. Couldn't figured ot how to open
>>> a new vm from template with thin provisioning and Target Storage Domain
>>> for VM Lease definition. Any idea how can i set these values at the ansible
>>> playbook?
>>>
>>>
>>> --
>>> Oğuz Yarımtepe
>>> http://about.me/oguzy
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>>
>>
>
>
> --
> Oğuz Yarımtepe
> http://about.me/oguzy
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt_nics problem at ansible module

2017-03-08 Thread Ondra Machacek
On Wed, Mar 8, 2017 at 3:44 PM, Oğuz Yarımtepe 
wrote:

> Hi,
>
> Below is my playbook
>
> ---
> - name: Setup oVirt environment
>   hosts: vms
>   tasks:
> - block:
> - name: Include oVirt password
>   #no_log: true
>   include_vars: vars.yml
>
> - name: Obtain SSO token
>   no_log: true
>   ovirt_auth:
> url: "{{ url }}"
> username: "{{ username }}"
> password: "{{ password }}"
> ca_file: "{{ ca_file }}"
>
> - name: Create and run VM from template
>   ovirt_vms:
> auth: "{{ ovirt_auth }}"
> name: "{{ vm }}"
> template: "{{ template }}"
> cluster: "{{ cluster }}"
> memory: "{{ memory }}"
> memory_guaranteed: "{{ memory_guaranteed }}"
> high_availability: true
> cpu_cores: "{{ cpu_cores }}"
> cpu_sockets: "{{ cpu_sockets }}"
> type: server
> name: "{{ vm }}"
> operating_system: other_linux
> state: stopped
> wait: yes
>
> #- name: Add nic
> #  ovirt_nics:
> #auth: "{{ ovirt_auth }}"
> #name: "{{ nic_name }}"
> #profile: "{{ profile_name }}"
> #state: plugged
> #vm: "{{ vm }}"
> #wait: yes
>
>   always:
> - name: Revoke the SSO token
>   ovirt_auth:
> state: absent
> ovirt_auth: "{{ ovirt_auth }}"
>
> When i remove the commented lines here is what i got:
>
> ERROR! no action detected in task. This often indicates a misspelled
> module name, or incorrect module path.
>

ovirt_nics module is part of the Ansible 2.3, and I guess you are using
Ansible 2.2. That's why it can't find the module.


>
> The error appears to have been in '/Users/oyarimtepe/test/ovirt-
> ansible/create_vm_from_template/playbook.yml': line 35, column 11, but may
> be elsewhere in the file depending on the exact syntax problem.
>
> The offending line appears to be:
>
>
> - name: Add nic
>   ^ here
>
>
> The error appears to have been in '/Users/oyarimtepe/test/ovirt-
> ansible/create_vm_from_template/playbook.yml': line 35, column 11, but may
> be elsewhere in the file depending on the exact syntax problem.
>
> The offending line appears to be:
>
>
> - name: Add nic
>   ^ here
>
> I tried using the nics attribute of ovirt_vms module but this time i got
> Nic[Name] is required although i defined as below:
>
> nics:
>   - name: "{{ nic_name }}"
>   - profile_name: "{{ profile_name }}"
>


This is a list of dictionary, so this should be:

nics:
  - name: "{{ nic_name }}"
profile_name: "{{ profile_name }}"

(no second dash)


>
> without comments it works. Any idea? Any way to set the nic and profile
> via SDK? An example will be great.
>
> --
> Oğuz Yarımtepe
> http://about.me/oguzy
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt_nics problem at ansible module

2017-03-08 Thread Juan Hernández
On 03/08/2017 03:44 PM, Oğuz Yarımtepe wrote:
> Hi,
> 
> Below is my playbook
> 
> ---
> - name: Setup oVirt environment
>   hosts: vms
>   tasks:
> - block:
> - name: Include oVirt password
>   #no_log: true
>   include_vars: vars.yml
> 
> - name: Obtain SSO token
>   no_log: true
>   ovirt_auth:
> url: "{{ url }}"
> username: "{{ username }}"
> password: "{{ password }}"
> ca_file: "{{ ca_file }}"
> 
> - name: Create and run VM from template
>   ovirt_vms:
> auth: "{{ ovirt_auth }}"
> name: "{{ vm }}"
> template: "{{ template }}"
> cluster: "{{ cluster }}"
> memory: "{{ memory }}"
> memory_guaranteed: "{{ memory_guaranteed }}"
> high_availability: true
> cpu_cores: "{{ cpu_cores }}"
> cpu_sockets: "{{ cpu_sockets }}"
> type: server
> name: "{{ vm }}"
> operating_system: other_linux
> state: stopped
> wait: yes
> 
> #- name: Add nic
> #  ovirt_nics:
> #auth: "{{ ovirt_auth }}"
> #name: "{{ nic_name }}"
> #profile: "{{ profile_name }}"
> #state: plugged
> #vm: "{{ vm }}"
> #wait: yes
> 
>   always:
> - name: Revoke the SSO token
>   ovirt_auth:
> state: absent
> ovirt_auth: "{{ ovirt_auth }}"
> 
> When i remove the commented lines here is what i got:
> 
> ERROR! no action detected in task. This often indicates a misspelled
> module name, or incorrect module path.
> 
> The error appears to have been in
> '/Users/oyarimtepe/test/ovirt-ansible/create_vm_from_template/playbook.yml':
> line 35, column 11, but may
> be elsewhere in the file depending on the exact syntax problem.
> 
> The offending line appears to be:
> 
> 
> - name: Add nic
>   ^ here
> 
> 
> The error appears to have been in
> '/Users/oyarimtepe/test/ovirt-ansible/create_vm_from_template/playbook.yml':
> line 35, column 11, but may
> be elsewhere in the file depending on the exact syntax problem.
> 
> The offending line appears to be:
> 
> 
> - name: Add nic
>   ^ here
> 
> I tried using the nics attribute of ovirt_vms module but this time i got
> Nic[Name] is required although i defined as below:
> 
> nics:
>   - name: "{{ nic_name }}"
>   - profile_name: "{{ profile_name }}"
> 
> without comments it works. Any idea? Any way to set the nic and profile
> via SDK? An example will be great.
> 

If what you are looking for is a way to add a NIC to an existing VM,
using a specific vNIC profile, you can use this example:


https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_vm_nic.py

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


Re: [ovirt-users] DWH reports in 4.X ?

2017-03-08 Thread Eduardo Mayoral
Thanks for your answer!

Looks certainly interesting. I am using collectd with virt plugin +
carbon + graphite + grafana for performance graphs of the hosts and the
VMs right now ( oVirt 4.1 with nodes in CentOS 7.3)

I like the idea of using fluentd for this instead of a relational
database. Will it handle metrics and logs as well? I am asking because
of the kibana component.

Best regards,

Eduardo Mayoral Jimeno (emayo...@arsys.es)
Administrador de sistemas. Departamento de Plataformas. Arsys internet.
+34 941 620 145 ext. 5153

On 08/03/17 14:51, Shirly Radco wrote:
> Hi Eduardo, 
>
> DWH still exists, and if you have a reports tool that supports sql you
> can use it with it.
> Reports was deprecated in 3.6.
>
> We are now working on adding a new metrics store solution for oVirt.
>
> For more details you can have a look at:
> http://www.ovirt.org/develop/release-management/features/engine/metrics-store/
> 
>
> Currently in 4.1 the hosts and engine include Collectd and Fluentd.
> In 4.2 we expect to have the metrics store ready.
>
> You can try setting up the metrics store side from upstream for now.
> https://github.com/sradco/ovirt-metrics-conf
> 
>
> 
>
> 
> The Fluent and Collectd configuration are handled at:
> https://github.com/oVirt/ovirt-engine-metrics
>
>
> Best regards,
> Shirly Radco
> BI Software Engineer Red Hat Israel Ltd. 34 Jerusalem Road Building A,
> 4th floor Ra'anana, Israel 4350109
>
> On Tue, Mar 7, 2017 at 12:29 PM, Eduardo Mayoral  > wrote:
>
>
> Hi,
>
> I see the DWH reports disappeared in 3.5 or maybe 3.6, there seems
> to be no substitute por 4.X
>
> Is there some alternative to have some pre-made reports from
> the DWH
> on 4.X ? Maybe not something on the oVirt project itself but from
> someone on the community?
>
> Thanks in advance!
>
> --
> Eduardo Mayoral Jimeno (emayo...@arsys.es )
> Administrador de sistemas. Departamento de Plataformas. Arsys
> internet.
> +34 941 620 145 ext. 5153 
>
> ___
> 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] ovirt_nics problem at ansible module

2017-03-08 Thread Oğuz Yarımtepe
Hi,

Below is my playbook

---
- name: Setup oVirt environment
  hosts: vms
  tasks:
- block:
- name: Include oVirt password
  #no_log: true
  include_vars: vars.yml

- name: Obtain SSO token
  no_log: true
  ovirt_auth:
url: "{{ url }}"
username: "{{ username }}"
password: "{{ password }}"
ca_file: "{{ ca_file }}"

- name: Create and run VM from template
  ovirt_vms:
auth: "{{ ovirt_auth }}"
name: "{{ vm }}"
template: "{{ template }}"
cluster: "{{ cluster }}"
memory: "{{ memory }}"
memory_guaranteed: "{{ memory_guaranteed }}"
high_availability: true
cpu_cores: "{{ cpu_cores }}"
cpu_sockets: "{{ cpu_sockets }}"
type: server
name: "{{ vm }}"
operating_system: other_linux
state: stopped
wait: yes

#- name: Add nic
#  ovirt_nics:
#auth: "{{ ovirt_auth }}"
#name: "{{ nic_name }}"
#profile: "{{ profile_name }}"
#state: plugged
#vm: "{{ vm }}"
#wait: yes

  always:
- name: Revoke the SSO token
  ovirt_auth:
state: absent
ovirt_auth: "{{ ovirt_auth }}"

When i remove the commented lines here is what i got:

ERROR! no action detected in task. This often indicates a misspelled module
name, or incorrect module path.

The error appears to have been in
'/Users/oyarimtepe/test/ovirt-ansible/create_vm_from_template/playbook.yml':
line 35, column 11, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Add nic
  ^ here


The error appears to have been in
'/Users/oyarimtepe/test/ovirt-ansible/create_vm_from_template/playbook.yml':
line 35, column 11, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Add nic
  ^ here

I tried using the nics attribute of ovirt_vms module but this time i got
Nic[Name] is required although i defined as below:

nics:
  - name: "{{ nic_name }}"
  - profile_name: "{{ profile_name }}"

without comments it works. Any idea? Any way to set the nic and profile via
SDK? An example will be great.

-- 
Oğuz Yarımtepe
http://about.me/oguzy
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Moving from fc based to iSCSI based

2017-03-08 Thread Fred Rolland
I cannot think of another option other to have an export domain in the
middle that can be accessed from all the hosts.


On Wed, Mar 8, 2017 at 3:50 PM, Gianluca Cecchi 
wrote:

> On Wed, Mar 8, 2017 at 1:30 PM, Fred Rolland  wrote:
>
>> Hi,
>>
>> Storage domains are per Data Center, and all hosts in this DC should be
>> able to access the SDs, no matter in which cluster they are...
>>
>> Are you sure your hosts are on the same DC ?
>>
>> Thanks,
>>
>> Freddy
>>
>>
> No, my scenario was a planning workflow.
> At this moment I only have Host1 and Host2 that are connected to an FC-SAN.
> I have to move data to an iSCSI storage and also oVirt hosts to Host3 and
> Host4 (yet to be deployed).
> So I'm trying to understand if I can do it in pieces bypassing
> export/import
>
> I forgot that it is DC the constraint for SD accessibility.
> Any suggestion to accomplish the desired target?
>
> Thanks,
> Gianluca
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Graphics are turned upside down when install QXL in Windows

2017-03-08 Thread Derek Atkins
Pavel Gashev  writes:

> It's not applied yet. However it looks like it's under review right now:
> https://lists.freedesktop.org/archives/spice-devel/2017-March/036355.html

Nice.  Glad to know it only takes 4 years for a patch to get reviewed...

;-)

-d
-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt Nodes Monitoring

2017-03-08 Thread Anantha Raghava

Hi,

You can also monitor by enabling SNMP in Hosts. For this purpose, using 
the MIB, you need to build a Zabbix Template as detailed in the link 
here https://github.com/jensdepuydt/zabbix-ovirt


We are monitoring Version Hosts with CentOS 7 and oVirt 4.0.x using this 
method.


I will share the Zabbix-Template, we have built tomorrow as I, at the 
moment do not have access to my resources.


--

Thanks & Regards,


Anantha Raghava

eXzaTech Consulting And Services Pvt. Ltd.



Thanks Arsène

Just for others benefit just adding the repository and installing the 
agent won't work. Need to add it to SELINUX. For that I used the 
following command:


semodule -i zabbix_agent_setrlimit.pp

Fernando


On 07/03/2017 05:42, Arsène Gschwind wrote:

Hi Fernando,

We do monitor our oVirt hosts using Zabbix and we add the zabbix repo 
to the host so we keep it up to date.


rgds,
Arsène


On 03/06/2017 03:00 PM, FERNANDO FREDIANI wrote:

Hi.

How do you guys monitor your hosts with Zabbix ?
I see the oVirt Nodes have snmpd service installed and could be used 
for basic things but ideally, for Zabbix is good to use its agent.


What would be the best way to install its zabbix-agent package and 
make it persistent ? Add its repository to the oVirt-Node in 
/etc/yum.repos.d/ and install it with yum or install using a .rpm 
directly ?


Thanks
Fernando

___
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] DWH reports in 4.X ?

2017-03-08 Thread Shirly Radco
Hi Eduardo,

DWH still exists, and if you have a reports tool that supports sql you can
use it with it.
Reports was deprecated in 3.6.

We are now working on adding a new metrics store solution for oVirt.

For more details you can have a look at:
http://www.ovirt.org/develop/release-management/features/
engine/metrics-store/

Currently in 4.1 the hosts and engine include Collectd and Fluentd.
In 4.2 we expect to have the metrics store ready.

You can try setting up the metrics store side from upstream for now.
https://github.com/sradco/ovirt-metrics-conf




The Fluent and Collectd configuration are handled at:
https://github.com/oVirt/ovirt-engine-metrics


Best regards,

Shirly Radco

BI Software Engineer
Red Hat Israel Ltd.
34 Jerusalem Road
Building A, 4th floor
Ra'anana, Israel 4350109


On Tue, Mar 7, 2017 at 12:29 PM, Eduardo Mayoral  wrote:

>
> Hi,
>
> I see the DWH reports disappeared in 3.5 or maybe 3.6, there seems
> to be no substitute por 4.X
>
> Is there some alternative to have some pre-made reports from the DWH
> on 4.X ? Maybe not something on the oVirt project itself but from
> someone on the community?
>
> Thanks in advance!
>
> --
> Eduardo Mayoral Jimeno (emayo...@arsys.es)
> Administrador de sistemas. Departamento de Plataformas. Arsys internet.
> +34 941 620 145 ext. 5153
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt Nodes Monitoring

2017-03-08 Thread FERNANDO FREDIANI

Thanks Arsène

Just for others benefit just adding the repository and installing the 
agent won't work. Need to add it to SELINUX. For that I used the 
following command:


semodule -i zabbix_agent_setrlimit.pp

Fernando


On 07/03/2017 05:42, Arsène Gschwind wrote:

Hi Fernando,

We do monitor our oVirt hosts using Zabbix and we add the zabbix repo 
to the host so we keep it up to date.


rgds,
Arsène


On 03/06/2017 03:00 PM, FERNANDO FREDIANI wrote:

Hi.

How do you guys monitor your hosts with Zabbix ?
I see the oVirt Nodes have snmpd service installed and could be used 
for basic things but ideally, for Zabbix is good to use its agent.


What would be the best way to install its zabbix-agent package and 
make it persistent ? Add its repository to the oVirt-Node in 
/etc/yum.repos.d/ and install it with yum or install using a .rpm 
directly ?


Thanks
Fernando

___
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] Moving from fc based to iSCSI based

2017-03-08 Thread Gianluca Cecchi
On Wed, Mar 8, 2017 at 1:30 PM, Fred Rolland  wrote:

> Hi,
>
> Storage domains are per Data Center, and all hosts in this DC should be
> able to access the SDs, no matter in which cluster they are...
>
> Are you sure your hosts are on the same DC ?
>
> Thanks,
>
> Freddy
>
>
No, my scenario was a planning workflow.
At this moment I only have Host1 and Host2 that are connected to an FC-SAN.
I have to move data to an iSCSI storage and also oVirt hosts to Host3 and
Host4 (yet to be deployed).
So I'm trying to understand if I can do it in pieces bypassing export/import

I forgot that it is DC the constraint for SD accessibility.
Any suggestion to accomplish the desired target?

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


[ovirt-users] oVirt and Openstack Neutron: network not working

2017-03-08 Thread Luca 'remix_tj' Lorenzetto
Hello,

i have a oVirt 4.1 setup attached to an openstack newton. I imported a
network from my openstack setup without issues.
I attached a VM to that network, but dhcp isn't working. Tried setting
fixed ip, but still not working. I've seen a new qbr* bridge appeared
and so tried to tcpdump on it. I've seen only arp requests, but no arp
replies.
Openstack is using openvswitch, and here i can use ovs-vsctl show to
see the status of the switch. Here i see instead a linuxbridge. How do
i check if everything is flowing correctly?

Nodes are based on ovirt-node-ng 4.1.

Luca


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

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

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


[ovirt-users] Error on Node upgrade

2017-03-08 Thread FERNANDO FREDIANI

Hello.

I'm running oVirt-Node *4.1.0--0.20170201.0+1* on my hosts and tried a 
normal upgrade. It detected it has to upgrade to 
*4.1.1-0.3.rc1.20170303133657.git20d3594.el7.centos* from the 
ovirt-4.1-pre repository.


The upgrade finished with the following problems:

...
Running transaction
  Updating   : 
ovirt-node-ng-image-4.1.1-0.3.rc1.20170303133657.git20d3594.el7.centos.noarch 
1/4
  Updating   : 
ovirt-node-ng-image-update-4.1.1-0.3.rc1.20170303133657.git20d3594.el7.centos.noarch 
2/4
mount: special device /dev/onn_kvm01/ovirt-node-ng-4.1.1-0.20170303.0+1 
does not exist

cp: target ‘/tmp/tmp.N6JgSdFcu6/usr/share/imgbased/’ is not a directory
rm: cannot remove 
‘/tmp/tmp.N6JgSdFcu6/usr/share/imgbased/*image-update*.rpm’: No such 
file or directory

umount: /tmp/tmp.N6JgSdFcu6: not mounted
...

So it seems it was not able to do it correctly.
This is the second time it happens and I had to remove manually these 
packages containing 4.1.1 version.


Tried also:

# lvdisplay | grep ovirt-node-ng-4.1.1-0.20170303.0+1
  LV Path /dev/onn_kvm01/ovirt-node-ng-4.1.1-0.20170303.0+1
  LV Nameovirt-node-ng-4.1.1-0.20170303.0+1
# fdisk -l /dev/onn_kvm01/ovirt-node-ng-4.1.1-0.20170303.0+1
fdisk: cannot open /dev/onn_kvm01/ovirt-node-ng-4.1.1-0.20170303.0+1: No 
such file or directory

# vgchange -ay
# fdisk -l /dev/onn_kvm01/ovirt-node-ng-4.1.1-0.20170303.0+1 (then worked)

But the upon reboot it came back to 4.1.0 as if 4.1.1 never existed.

Is there any known solution of a full Node reinstall is the recommended ?

Thanks
Fernando

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


Re: [ovirt-users] iscsi failover MD3820i

2017-03-08 Thread Marcin Kruk
According to not hosted-engine storage, I found the
"storage_server_connections" and "lun_storage_server_connnection_map"
tables.
Is it possible to insert there rows with info about my extra iSCSI
connections?

2017-03-08 11:45 GMT+01:00 Marcin Kruk :

> I found the configuration file /etc/ovirt-hosted-engine/hosted-engine.conf
> with field sotrage=.
> Is it possible to change the value above to put four IP there (four array
> interfaces IP)?
>
> 2017-03-08 10:58 GMT+01:00 Marcin Kruk :
>
>> How to verify this?
>> In the RHEM GUI storage ->  -> Manage domain  I can see all
>> fourt target names,
>> but mabye there is only present state and I shoud verify something else
>> in the database or wherever?
>>
>> Where is the info about iSCSI hosted-engine storage target IP,
>> about other storages information is in the table
>> engine.storage_server_connections.
>> I presume that information about iSCSI storage target IP can not be in
>> the
>> the database due to "chicken or the egg" dillema.
>>
>> 2017-03-07 22:50 GMT+01:00 Dan Yasny :
>>
>>> "*Important:* If more than one path access is required, ensure to
>>> discover and log in to the target through all the required paths. Modifying
>>> a storage domain to add additional paths is currently not supported."
>>>
>>> This is from the oVirt admin guide, did you discover and login to all
>>> the MD3xxxi controllers/portals when you were setting the storage domain up?
>>>
>>> On Tue, Mar 7, 2017 at 4:43 PM, Marcin Kruk 
>>> wrote:
>>>
 Hello I have got Dell MD3820i and four interfaces which was connected
 to the hostst via switches.

 But there is only one IP which I can set during the configuration of
 iSCSI RHV storage.
 Everything has been fine until I pluged off cable from the storage NIC
 interface with IP configured in the RHV iSCSI section.

 Now VDSMD got problem because it tries to connect via iscsiadm with
 exact IP and does not use the configuration from the /var/lib/iscsi/, where
 are tree extra paths to achive the LUN. In multipath -ll I see an active
 path, of course with the second storage interface IP

 systemctl status vdsmd:
CGroup: /system.slice/vdsmd.service
├─4975 /usr/bin/python /usr/share/vdsm/vdsm
├─5558 /usr/bin/sudo -n /usr/sbin/iscsiadm -m node -T
 iqn.1984-05.com.dell:powervault.md3800i.600a098000ae589c5893ade2
 -I default -p 192...
└─5559 /usr/sbin/iscsiadm -m node -T
 iqn.1984-05.com.dell:powervault.md3800i.600a098000ae589c5893ade2
 -I default -p 192.168.130.101 32...

 ___
 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] HE vm fails to migrate due to host CPU incompatibility even after changing cluster CPU type

2017-03-08 Thread Simone Tiraboschi
On Wed, Mar 8, 2017 at 1:02 PM, Sandro Bonazzola 
wrote:

>
>
> On Sat, Mar 4, 2017 at 12:04 PM, Stefano Stagnaro  prismatelecomtesting.com> wrote:
>
>> Hi guys,
>>
>> I've started an oVirt 4.1 HE deployment on a Broadwell based server. Then
>> I added to HE a second, older host based on Nehalem. I've downgraded the
>> cluster CPU type to Nehalem to accommodate host2 and it finally reached
>> score 3400. However, when I try to migrate HE vm it fails with the
>> following error:
>>
>> 2017-03-03 20:19:51,814 ERROR (migsrc/b0d38435) [virt.vm]
>> (vmId='b0d38435-5774-4ca9-ad24-70b57b5bc25d') unsupported configuration:
>> guest and host CPU are not compatible: Host CPU does not provide required
>> features: pclmuldq, fma, pcid, x2apic, movbe, tsc-deadline, aes, xsave,
>> avx, fsgsbase, bmi1, hle, avx2, smep, bmi2, erms, invpcid, rtm, rdseed,
>> adx, smap, 3dnowprefetch; try using 'Broadwell-noTSX' CPU model
>> (migration:265)
>>
>> I believe the problem is in the HE vm XML where the cpu is still
>> configured as Broadwell. how can I change this specific setting without
>> losing the deployment? Please find all the relevant logs at the following
>> link: https://www.dropbox.com/sh/njl9aofhdw10ses/AADf2Ql4GKVIKcbgL
>> ivbmjC2a
>>
>> Besides that, I believe this is a wrong behavior because HE should follow
>> cluster properties (otherwise do not reach score 3400); do you believe is
>> it worth opening a issue on bugzilla?
>>
>
> I would consider opening a BZ to track this. Adding some people who may
> have some insight on the issue.
>

The definition for the engine VM is getting extracted by ovirt-ha-agent
from the OVF_STORE volume, not sure why the engine doesn't update it when
you change cluster properties. I think it's work to fill a bug.
Stefano, did you tried simply changing the number of cores for the engine
VM from the engine to force a configuration update?



>
>
>>
>> Thank you,
>> Stefano.
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>
>
>
> --
> 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] Moving from fc based to iSCSI based

2017-03-08 Thread Fred Rolland
Hi,

Storage domains are per Data Center, and all hosts in this DC should be
able to access the SDs, no matter in which cluster they are...

Are you sure your hosts are on the same DC ?

Thanks,

Freddy

On Wed, Mar 8, 2017 at 12:57 PM, Gianluca Cecchi 
wrote:

> Hello,
> I have to move some VMs from FCP based storage domain to iSCSI based
> storage domain.
> Can I do it offline or online keeping in mind that:
>
> Host1, Host2 have access only to the FCP SD
> Host3, Host4 have access only to the iSCSI SD
>
> They are all managed by the same engine in the same DC but in different
> cluster
>
> I suppose it happens through network, correct?
> Thanks in advance,
> 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] ovirt don't give "initiator name" to cinder when I'm launching a VM with a cinder volume

2017-03-08 Thread herve

Thanks a lot!

I beleived lvm backend was much easier to implement than ceph an 
obviously should work if ceph was supported...

that was my mistake
Regarding the behvior I got the backend lvm is almost working anyway - )
 I could have been searching during a lot of time ... I'm going to try 
it with ceph...


Thanks again for your quick answer.

Herve.


On 03/08/2017 12:18 PM, Nir Soffer wrote:

On Wed, Mar 8, 2017 at 10:04 AM, herve  wrote:

dear ovirt user community,

I can't sort out an ovirt issue I got with cinder for weeks, I hope someone
could give me a clue...
 From mi ovirt manager 4.1, I can create and delete a cinder volume or attach
and detach a cider vomume from an ovirt  VM.

The problem is I never had been able to launch an ovirt VM with a cinder
volume attached to it.
I just got a simple message from ovir web gui:  "Failed to run VM
centoscinder (User: admin@internal-authz)".

what i am using is
a RDO newton release of openstack. the backend of cinder is a local lvm,

Here is your problem, ovirt supports only ceph storage with cinder.

We may add more storage types in the future.

Nir


and
the openstack VMs can use the cinder volumes from other compute node.
from the ovirt 4.1 fedora 24 server:
[root@rhevf24 ~]# rpm -qa | grep ovirt-engine-4
ovirt-engine-4.1.0.4-1.fc24.noarch
ovirt-engine-setup-plugin-ovirt-engine-4.1.0.4-1.fc24.noarch
[root@rhevf24 ~]#

from the ovirt server , through the iscsiadm command,  I can see for example
the 2 disks attached to 2 diffents  openstack instances,
but not the one I just created from ovirt which is attached to nothing ,
from the openstack rdo point of view.
[root@rhevf24 iscsi]# iscsiadm -m discovery -t sendtargets -p 192.168.122.36
192.168.122.36:3260,1
iqn.2010-10.org.openstack:volume-f4c6c55c-e383-4781-8d24-d41b55870d29
192.168.122.36:3260,1
iqn.2010-10.org.openstack:volume-58844340-741e-45da-9aa7-b0ed08391df3

as I said previously From ovirt I can create /delete in cinder and
attach/detach volumes to ovirt VMs I don't get any troubles with that.


in ovirt engine.log almost nothing , except it can't aquire lock.. but in
openstack cinder, and with tcpdump I get more informations.
tcpdump give me when ovirt intent the iscsi connection something like:
json.key == "os-initialize_connection"
{.  "os-initialize_connection" : {."connector"  :  {  }, },}

and I get from "tail -f  /var/log/cinder/volume.log" :
2017-03-07 16:45:06.889 3856 ERROR cinder.volume.targets.iscsi
[req-b6d39a14-f9ea-4552-91e7-5db811217b1e dd1dd33789274fb7ba228c75a07c0e94
0f68893965dd4f5dafd319cbffb33bb4 - default default] The volume driver
requires the iSCSI initiator name in the connector.
...
...
2017-03-07 16:45:06.891 3856 ERROR oslo_messaging.rpc.server InvalidInput:
Invalid input received: Connector doesn't have required information:
initiator


So it looks like I didn't get  or I can't provide the initiator name I want
to be connected to.
Cinder can't obviously guess which one I want. that's more or less what's
the cinder's logs are telling me.

I have searched for a long time in internet, it looks like  at least since
ovirt 3.6, cinder is ont anymore an issue, and can even be integrated with a
ceph back end to ovirt...
cinder model an client are installed in the ovirt server...

Somebody get any clue to tell ma where i made a mistake in the cinder
integration with ovirt , which seems to be correct regarding the
create/delete attach /detach volume behavior...

Thank you

Herve








___
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] HE vm fails to migrate due to host CPU incompatibility even after changing cluster CPU type

2017-03-08 Thread Sandro Bonazzola
On Sat, Mar 4, 2017 at 12:04 PM, Stefano Stagnaro <
stefa...@prismatelecomtesting.com> wrote:

> Hi guys,
>
> I've started an oVirt 4.1 HE deployment on a Broadwell based server. Then
> I added to HE a second, older host based on Nehalem. I've downgraded the
> cluster CPU type to Nehalem to accommodate host2 and it finally reached
> score 3400. However, when I try to migrate HE vm it fails with the
> following error:
>
> 2017-03-03 20:19:51,814 ERROR (migsrc/b0d38435) [virt.vm]
> (vmId='b0d38435-5774-4ca9-ad24-70b57b5bc25d') unsupported configuration:
> guest and host CPU are not compatible: Host CPU does not provide required
> features: pclmuldq, fma, pcid, x2apic, movbe, tsc-deadline, aes, xsave,
> avx, fsgsbase, bmi1, hle, avx2, smep, bmi2, erms, invpcid, rtm, rdseed,
> adx, smap, 3dnowprefetch; try using 'Broadwell-noTSX' CPU model
> (migration:265)
>
> I believe the problem is in the HE vm XML where the cpu is still
> configured as Broadwell. how can I change this specific setting without
> losing the deployment? Please find all the relevant logs at the following
> link: https://www.dropbox.com/sh/njl9aofhdw10ses/AADf2Ql4GKVIKcbgLivbmjC2a
>
> Besides that, I believe this is a wrong behavior because HE should follow
> cluster properties (otherwise do not reach score 3400); do you believe is
> it worth opening a issue on bugzilla?
>

I would consider opening a BZ to track this. Adding some people who may
have some insight on the issue.



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



-- 
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 don't give "initiator name" to cinder when I'm launching a VM with a cinder volume

2017-03-08 Thread Nir Soffer
On Wed, Mar 8, 2017 at 10:04 AM, herve  wrote:
> dear ovirt user community,
>
> I can't sort out an ovirt issue I got with cinder for weeks, I hope someone
> could give me a clue...
> From mi ovirt manager 4.1, I can create and delete a cinder volume or attach
> and detach a cider vomume from an ovirt  VM.
>
> The problem is I never had been able to launch an ovirt VM with a cinder
> volume attached to it.
> I just got a simple message from ovir web gui:  "Failed to run VM
> centoscinder (User: admin@internal-authz)".
>
> what i am using is
> a RDO newton release of openstack. the backend of cinder is a local lvm,

Here is your problem, ovirt supports only ceph storage with cinder.

We may add more storage types in the future.

Nir

> and
> the openstack VMs can use the cinder volumes from other compute node.
> from the ovirt 4.1 fedora 24 server:
> [root@rhevf24 ~]# rpm -qa | grep ovirt-engine-4
> ovirt-engine-4.1.0.4-1.fc24.noarch
> ovirt-engine-setup-plugin-ovirt-engine-4.1.0.4-1.fc24.noarch
> [root@rhevf24 ~]#
>
> from the ovirt server , through the iscsiadm command,  I can see for example
> the 2 disks attached to 2 diffents  openstack instances,
> but not the one I just created from ovirt which is attached to nothing ,
> from the openstack rdo point of view.
> [root@rhevf24 iscsi]# iscsiadm -m discovery -t sendtargets -p 192.168.122.36
> 192.168.122.36:3260,1
> iqn.2010-10.org.openstack:volume-f4c6c55c-e383-4781-8d24-d41b55870d29
> 192.168.122.36:3260,1
> iqn.2010-10.org.openstack:volume-58844340-741e-45da-9aa7-b0ed08391df3
>
> as I said previously From ovirt I can create /delete in cinder and
> attach/detach volumes to ovirt VMs I don't get any troubles with that.
>
> 
> in ovirt engine.log almost nothing , except it can't aquire lock.. but in
> openstack cinder, and with tcpdump I get more informations.
> tcpdump give me when ovirt intent the iscsi connection something like:
> json.key == "os-initialize_connection"
> {.  "os-initialize_connection" : {."connector"  :  {  }, },}
>
> and I get from "tail -f  /var/log/cinder/volume.log" :
> 2017-03-07 16:45:06.889 3856 ERROR cinder.volume.targets.iscsi
> [req-b6d39a14-f9ea-4552-91e7-5db811217b1e dd1dd33789274fb7ba228c75a07c0e94
> 0f68893965dd4f5dafd319cbffb33bb4 - default default] The volume driver
> requires the iSCSI initiator name in the connector.
> ...
> ...
> 2017-03-07 16:45:06.891 3856 ERROR oslo_messaging.rpc.server InvalidInput:
> Invalid input received: Connector doesn't have required information:
> initiator
>
>
> So it looks like I didn't get  or I can't provide the initiator name I want
> to be connected to.
> Cinder can't obviously guess which one I want. that's more or less what's
> the cinder's logs are telling me.
>
> I have searched for a long time in internet, it looks like  at least since
> ovirt 3.6, cinder is ont anymore an issue, and can even be integrated with a
> ceph back end to ovirt...
> cinder model an client are installed in the ovirt server...
>
> Somebody get any clue to tell ma where i made a mistake in the cinder
> integration with ovirt , which seems to be correct regarding the
> create/delete attach /detach volume behavior...
>
> Thank you
>
> Herve
>
>
>
>
>
>
>
>
> ___
> 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] Moving from fc based to iSCSI based

2017-03-08 Thread Gianluca Cecchi
Hello,
I have to move some VMs from FCP based storage domain to iSCSI based
storage domain.
Can I do it offline or online keeping in mind that:

Host1, Host2 have access only to the FCP SD
Host3, Host4 have access only to the iSCSI SD

They are all managed by the same engine in the same DC but in different
cluster

I suppose it happens through network, correct?
Thanks in advance,
Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] iscsi failover MD3820i

2017-03-08 Thread Marcin Kruk
I found the configuration file /etc/ovirt-hosted-engine/hosted-engine.conf
with field sotrage=.
Is it possible to change the value above to put four IP there (four array
interfaces IP)?

2017-03-08 10:58 GMT+01:00 Marcin Kruk :

> How to verify this?
> In the RHEM GUI storage ->  -> Manage domain  I can see all
> fourt target names,
> but mabye there is only present state and I shoud verify something else in
> the database or wherever?
>
> Where is the info about iSCSI hosted-engine storage target IP,
> about other storages information is in the table
> engine.storage_server_connections.
> I presume that information about iSCSI storage target IP can not be in the
> the database due to "chicken or the egg" dillema.
>
> 2017-03-07 22:50 GMT+01:00 Dan Yasny :
>
>> "*Important:* If more than one path access is required, ensure to
>> discover and log in to the target through all the required paths. Modifying
>> a storage domain to add additional paths is currently not supported."
>>
>> This is from the oVirt admin guide, did you discover and login to all the
>> MD3xxxi controllers/portals when you were setting the storage domain up?
>>
>> On Tue, Mar 7, 2017 at 4:43 PM, Marcin Kruk 
>> wrote:
>>
>>> Hello I have got Dell MD3820i and four interfaces which was connected to
>>> the hostst via switches.
>>>
>>> But there is only one IP which I can set during the configuration of
>>> iSCSI RHV storage.
>>> Everything has been fine until I pluged off cable from the storage NIC
>>> interface with IP configured in the RHV iSCSI section.
>>>
>>> Now VDSMD got problem because it tries to connect via iscsiadm with
>>> exact IP and does not use the configuration from the /var/lib/iscsi/, where
>>> are tree extra paths to achive the LUN. In multipath -ll I see an active
>>> path, of course with the second storage interface IP
>>>
>>> systemctl status vdsmd:
>>>CGroup: /system.slice/vdsmd.service
>>>├─4975 /usr/bin/python /usr/share/vdsm/vdsm
>>>├─5558 /usr/bin/sudo -n /usr/sbin/iscsiadm -m node -T
>>> iqn.1984-05.com.dell:powervault.md3800i.600a098000ae589c5893ade2
>>> -I default -p 192...
>>>└─5559 /usr/sbin/iscsiadm -m node -T
>>> iqn.1984-05.com.dell:powervault.md3800i.600a098000ae589c5893ade2
>>> -I default -p 192.168.130.101 32...
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>>
>>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt ansible module

2017-03-08 Thread Juan Hernández
On 03/08/2017 10:08 AM, Oğuz Yarımtepe wrote:
> I didn't see any parameter at the current ansible documentation related
> with these features. How can i set these feature if i am using ansible?
> Any possibility to set them via SDK after the vm is opened via ansible?
> 

The target storage domain for the lease can be set using the Python SDK,
like this:

---8<---
import ovirtsdk4 as sdk
import ovirtsdk4.types as types

# This example shows how to set the storage domain where the lease of a
# virtual machine should be created.

# Create the connection to the server:
connection = sdk.Connection(
url='https://engine.example.com/ovirt-engine/api',
username='admin@internal',
password='...',
ca_file='ca.pem'
)

# Get the reference to the root of the tree of services:
system_service = connection.system_service()

# Find the virtual machine:
vms_service = system_service.vms_service()
vm = vms_service.list(search='name=myvm')[0]

# Find the storage domain:
sds_service = system_service.storage_domains_service()
sd = sds_service.list(search='name=mydata')[0]

# Update the storage machine so that high availability is enabled and
# the lease is created in the selected storage domain:
vm_service = vms_service.vm_service(vm.id)
vm_service.update(
vm=types.Vm(
high_availability=types.HighAvailability(
enabled=True
),
lease=types.StorageDomainLease(
storage_domain=types.StorageDomain(
id=sd.id
)
)
)
)

# Close the connection to the server:
connection.close()
--->8---

~
> On Wed, Mar 8, 2017 at 8:46 AM, Oved Ourfali  > wrote:
> 
> The VM leases feature is a new feature in 4.1, and I'm not sure
> whether it was included in the ansible modules or not.
> CC-ing Ondra as he will know for sure.
> 
> 
> On Wed, Mar 8, 2017 at 3:20 AM, Oğuz Yarımtepe
> > wrote:
> 
> Hi,
> 
> I am ttesting the ovirt ansible module. Couldn't figured ot how
> to open a new vm from template with thin provisioning and Target
> Storage Domain for VM Lease definition. Any idea how can i set
> these values at the ansible playbook?
>  
> 
> -- 
> Oğuz Yarımtepe
> http://about.me/oguzy
> 
> ___
> Users mailing list
> Users@ovirt.org 
> http://lists.ovirt.org/mailman/listinfo/users
> 
> 
> 
> 
> 
> 
> -- 
> Oğuz Yarımtepe
> http://about.me/oguzy
> 
> 
> ___
> 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] iscsi failover MD3820i

2017-03-08 Thread Marcin Kruk
How to verify this?
In the RHEM GUI storage ->  -> Manage domain  I can see all
fourt target names,
but mabye there is only present state and I shoud verify something else in
the database or wherever?

Where is the info about iSCSI hosted-engine storage target IP,
about other storages information is in the table engine.storage_server_
connections.
I presume that information about iSCSI storage target IP can not be in the
the database due to "chicken or the egg" dillema.

2017-03-07 22:50 GMT+01:00 Dan Yasny :

> "*Important:* If more than one path access is required, ensure to
> discover and log in to the target through all the required paths. Modifying
> a storage domain to add additional paths is currently not supported."
>
> This is from the oVirt admin guide, did you discover and login to all the
> MD3xxxi controllers/portals when you were setting the storage domain up?
>
> On Tue, Mar 7, 2017 at 4:43 PM, Marcin Kruk 
> wrote:
>
>> Hello I have got Dell MD3820i and four interfaces which was connected to
>> the hostst via switches.
>>
>> But there is only one IP which I can set during the configuration of
>> iSCSI RHV storage.
>> Everything has been fine until I pluged off cable from the storage NIC
>> interface with IP configured in the RHV iSCSI section.
>>
>> Now VDSMD got problem because it tries to connect via iscsiadm with exact
>> IP and does not use the configuration from the /var/lib/iscsi/, where are
>> tree extra paths to achive the LUN. In multipath -ll I see an active path,
>> of course with the second storage interface IP
>>
>> systemctl status vdsmd:
>>CGroup: /system.slice/vdsmd.service
>>├─4975 /usr/bin/python /usr/share/vdsm/vdsm
>>├─5558 /usr/bin/sudo -n /usr/sbin/iscsiadm -m node -T
>> iqn.1984-05.com.dell:powervault.md3800i.600a098000ae589c5893ade2
>> -I default -p 192...
>>└─5559 /usr/sbin/iscsiadm -m node -T
>> iqn.1984-05.com.dell:powervault.md3800i.600a098000ae589c5893ade2
>> -I default -p 192.168.130.101 32...
>>
>> ___
>> 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] Info on network interface threshold alert

2017-03-08 Thread Gianluca Cecchi
Hello,
this morning I get these two messages regarding bond1 and its active
interface on one host (ovmsrv07):

Host ovmsrv07 has network interface which exceeded the defined threshold
[95%] (bond1: transmit rate[96%], receive rate [0%])

Host ovmsrv07 has network interface which exceeded the defined threshold
[95%] (enp7s4f0: transmit rate[96%], receive rate [0%])

Actually there is no particular network activity during this latest night...
There have been some different resore jobs during past days...
How is determined this message? Is it perhaps cumulative?

On the host there are 3 VMs and only one of them actively using the network.
In its "Network Interfaces subtab I see
Total RX (bytes)
542,696,952,529

Inside VM OS:
$ uptime
 10:26:50 up 14 days,  1:35,  3 users,  load average: 0.00, 0.04, 0.05

$ ifconfig eth0
eth0  Link encap:Ethernet  HWaddr 00:1A:4A:17:01:5B
  inet addr:10.4.4.66  Bcast:10.4.4.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:40280066 errors:0 dropped:612718 overruns:0 frame:0
  TX packets:21110417 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:193066319488 (179.8 GiB)  TX bytes:20983189756 (19.5 GiB)

Almost confirmaed on host where I have these counter indeed, but I think
they are cumulative for the VM, and not an alert in se

ON ovmsrv07:
$ ifconfig bond1
bond1: flags=5187  mtu 9000
ether 00:1c:c4:ab:3a:dd  txqueuelen 1000  (Ethernet)
RX packets 140610596  bytes 200368822262 (186.6 GiB)
RX errors 0  dropped 126874  overruns 0  frame 0
TX packets 33886066  bytes 21972025081 (20.4 GiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

$ cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: enp7s4f0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: enp7s4f0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:1c:c4:ab:3a:dd
Slave queue ID: 0

Slave Interface: enp7s4f1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:1c:c4:ab:3a:de
Slave queue ID: 0

Could anyone clarify?

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


Re: [ovirt-users] ovirt ansible module

2017-03-08 Thread Oğuz Yarımtepe
I didn't see any parameter at the current ansible documentation related
with these features. How can i set these feature if i am using ansible? Any
possibility to set them via SDK after the vm is opened via ansible?

On Wed, Mar 8, 2017 at 8:46 AM, Oved Ourfali  wrote:

> The VM leases feature is a new feature in 4.1, and I'm not sure whether it
> was included in the ansible modules or not.
> CC-ing Ondra as he will know for sure.
>
>
> On Wed, Mar 8, 2017 at 3:20 AM, Oğuz Yarımtepe 
> wrote:
>
>> Hi,
>>
>> I am ttesting the ovirt ansible module. Couldn't figured ot how to open a
>> new vm from template with thin provisioning and Target Storage Domain
>> for VM Lease definition. Any idea how can i set these values at the ansible
>> playbook?
>>
>>
>> --
>> Oğuz Yarımtepe
>> http://about.me/oguzy
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>


-- 
Oğuz Yarımtepe
http://about.me/oguzy
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] ovirt don't give "initiator name" to cinder when I'm launching a VM with a cinder volume

2017-03-08 Thread herve

dear ovirt user community,

I can't sort out an ovirt issue I got with cinder for weeks, I hope 
someone could give me a clue...
From mi ovirt manager 4.1, I can create and delete a cinder volume or 
attach and detach a cider vomume from an ovirt  VM.


The problem is I never had been able to launch an ovirt VM with a cinder 
volume attached to it.
I just got a simple message from ovir web gui:  "Failed to run VM 
centoscinder (User: admin@internal-authz)".


what i am using is
a RDO newton release of openstack. the backend of cinder is a local lvm, 
and the openstack VMs can use the cinder volumes from other compute node.

from the ovirt 4.1 fedora 24 server:
[root@rhevf24 ~]# rpm -qa | grep ovirt-engine-4
ovirt-engine-4.1.0.4-1.fc24.noarch
ovirt-engine-setup-plugin-ovirt-engine-4.1.0.4-1.fc24.noarch
[root@rhevf24 ~]#

from the ovirt server , through the iscsiadm command,  I can see for 
example the 2 disks attached to 2 diffents  openstack instances,
but not the one I just created from ovirt which is attached to nothing , 
from the openstack rdo point of view.

[root@rhevf24 iscsi]# iscsiadm -m discovery -t sendtargets -p 192.168.122.36
192.168.122.36:3260,1 
iqn.2010-10.org.openstack:volume-f4c6c55c-e383-4781-8d24-d41b55870d29
192.168.122.36:3260,1 
iqn.2010-10.org.openstack:volume-58844340-741e-45da-9aa7-b0ed08391df3


as I said previously From ovirt I can create /delete in cinder and 
attach/detach volumes to ovirt VMs I don't get any troubles with that.



in ovirt engine.log almost nothing , except it can't aquire lock.. but 
in openstack cinder, and with tcpdump I get more informations.

tcpdump give me when ovirt intent the iscsi connection something like:
json.key == "os-initialize_connection"
{.  "os-initialize_connection" : {."connector"  :  {  }, },}

and I get from "tail -f  /var/log/cinder/volume.log" :
2017-03-07 16:45:06.889 3856 ERROR cinder.volume.targets.iscsi 
[req-b6d39a14-f9ea-4552-91e7-5db811217b1e 
dd1dd33789274fb7ba228c75a07c0e94 0f68893965dd4f5dafd319cbffb33bb4 - 
default default] The volume driver requires the iSCSI initiator name in 
the connector.

...
...
2017-03-07 16:45:06.891 3856 ERROR oslo_messaging.rpc.server 
InvalidInput: Invalid input received: Connector doesn't have required 
information: initiator



So it looks like I didn't get  or I can't provide the initiator name I 
want to be connected to.
Cinder can't obviously guess which one I want. that's more or less 
what's the cinder's logs are telling me.


I have searched for a long time in internet, it looks like  at least 
since ovirt 3.6, cinder is ont anymore an issue, and can even be 
integrated with a ceph back end to ovirt...

cinder model an client are installed in the ovirt server...

Somebody get any clue to tell ma where i made a mistake in the cinder 
integration with ovirt , which seems to be correct regarding the 
create/delete attach /detach volume behavior...


Thank you

Herve








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


[ovirt-users] Second node ovirt 4.0 no ovirtmgmt bridge, non-operational issue

2017-03-08 Thread Ian Neilsen
Hi all

I currently have a non-operational second node in my "ovirt 4.0
hosted-engine" installation running on Centos7, kernel
3.10.0-514.10.2.el7.x86_64.

When I ran "hosted-engine --deploy" on the second node, it produce the
following error(see bottom of email).

I now cannot set the second node into operational mode, no matter what I
try. I did notice a few things though.

#1 - no ovirtmgt bridge was created during hosted-engine deploy; should I
create this bridge and retry?
#2- vdsmd keep throwing start errors before I ran hosted-engine deploy. I
ran vdsm-tool configure --force this seem to fix it.
#3 - second node complained of no fencing agent, so I added in a DRAC fence
agent and it worked/tested fine. But still not able to go opertional on
second node.
#4 Ive tried restarting vdsmd, ovirt-ha-agent and ovirt-ha-broker. Both the
agent and broker throw error messages.(see bottom of email for errors)

Any advice of where to look next, what to fix?


***Hosted-engine --deploy message***

[WARNING] Host left in non-operational state
  To finish deploying, please:
  - activate it
  - restart the hosted-engine high availability services by running
on this machine:
# service ovirt-ha-agent restart
# service ovirt-ha-broker restart
[ INFO  ] Enabling and starting HA services
[ INFO  ] Stage: Clean up
[ INFO  ] Generating answer file
'/var/lib/ovirt-hosted-engine-setup/answers/answers-20170307062116.conf'
[ INFO  ] Generating answer file '/etc/ovirt-hosted-engine/answers.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ INFO  ] Hosted Engine successfully deployed

***ovirt-ha-agent error message***

ovirt-ha-agent
ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR Unable
to get vm.conf from OVF_STORE, falling back to initial vm.conf

***ovirt-ha-broker error message***

ovirt-ha-broker ovirt_hosted_engine_ha.broker.notifications.Notifications
ERROR Connection unexpectedly closed

Traceback (most recent call last):
File
"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/notifications.py",
line 34, in send_email message.as_string())
File "/usr/lib64/python2.7/smtplib.py", line 749, in sendmail
self.rset()
File "/usr/lib64/python2.7/smtplib.py", line 468, in rsetreturn
self.docmd("rset")
File "/usr/lib64/python2.7/smtplib.py", line 393, in docmdreturn
self.getreply()
File "/usr/lib64/python2.7/smtplib.py", line 367, in getreplyraise
SMTPServerDisconnected("Connection unexpectedly
closed")  SMTPServerDisconnected:
Connection unexpectedly closed



-- 
Ian Neilsen

Mobile: 0424 379 762
Linkedin: http://au.linkedin.com/in/ianneilsen
Twitter : ineilsen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users