[ovirt-users] Planning out oVirt Self-Hosted Engine on Gluster (oVirt 3.6.x / Gluster 3.7.5)

2015-10-22 Thread Willard Dennis
Hi all,

Back to trying out the latest oVirt with latest Gluster, and wanting to do a 
self-hosted Engine setup. I am reading the instructions I found on the 
following pages:

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


http://www.ovirt.org/QA:TestCase_Hosted_Engine_External_Gluster_Support 


I have the requisite Gluster volume all ready to go:

[root@ovirt-node-01 ~]# gluster volume info engine

Volume Name: engine
Type: Distributed-Replicate
Volume ID: 974c9da4-b236-4fc1-b26a-645f14601db8
Status: Started
Number of Bricks: 2 x 3 = 6
Transport-type: tcp
Bricks:
Brick1: ovirt-node-01:/gluster_brick1/engine_brick
Brick2: ovirt-node-02:/gluster_brick2/engine_brick
Brick3: ovirt-node-03:/gluster_brick3/engine_brick
Brick4: ovirt-node-01:/gluster_brick3/engine_brick
Brick5: ovirt-node-02:/gluster_brick4/engine_brick
Brick6: ovirt-node-03:/gluster_brick5/engine_brick
Options Reconfigured:
server.allow-insecure: on
storage.owner-gid: 36
storage.owner-uid: 36
auth.allow: *
network.ping-timeout: 10
cluster.server-quorum-type: server
cluster.quorum-type: auto
network.remote-dio: enable
cluster.eager-lock: enable
performance.stat-prefetch: off
performance.io-cache: off
performance.read-ahead: off
performance.quick-read: off

The one question I have is, should it be mounted or not? I currently do have it 
mounted on each host (example off one of my oVirt hosts):

localhost:/engine  1.9T   65M  1.9T   1% /data/ovirt/engine

Will this interfere with the running of "hosted-engine —deploy”? Kindly advise.

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


Re: [ovirt-users] trunk mode for getting vlan into vms.

2015-10-22 Thread Kapetanakis Giannis



On 22/10/15 16:42, Nathanaël Blanchet wrote:
As explained here 
http://blog.davidvassallo.me/2012/05/05/kvm-brctl-in-linux-bringing-vlans-to-the-guests/ 
, does it exist any way to do the same with ovirt hosts? (e.g. vlan at 
the bridge level and untagged by the nics vm themselves)




By default vlan interfaces come untagged to vms. This is normal setup.

I guess you want to pass the vlan trunk up to the vm's nic? (multiple 
vlans to vm)


I don't know any way of doing that with ovirt but it would be interesting.
I guess you would need something like openvswitch but I don't know if it 
will cooperate well with ovirt.


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


Re: [ovirt-users] Can´t use a VM Network VLAN, because the Virtual Machines inside can't reach the Gateway

2015-10-22 Thread Julián Tete
Good News Everyone :)

I Change from the CentOS 7 kernel to kernel-ml from elrepo in the Host

And oVirt 3.6 Release Candidate 3 works like a charm

Thank you pals :)

2015-10-21 19:36 GMT-05:00 Julián Tete :

> Hello Friends of oVirt
>
> I'm glad to get your help. I'm trying to build a community of oVirt in
> Colombia.
>
> This is the data requested:
>
> #HOST
>
> Software
>
> OS Version: RHEL - 7 - 1.1503.el7.centos.2.8
> Kernel Version: 3.10.0 - 229.14.1.el7.x86_64
> KVM Version: 3.10.0 - 229.14.1.el7.x86_64
> LIBVIRT Version: libvirt-1.2.8-16.el7_1.4
> VDSM Version: vdsm-4.17.9-0.el7.centos
> SPICE Version: 0.12.4 - 9.el7_1.3
> GlusterFS Version: glusterfs-3.7.5-1.el7
> CEPH Version: librbd1-0.80.7-2.el7
>
> Hardware
>
> Manufacturer: HP
> Family: ProLiant
> Product Name: ProLiant BL460c Gen8
> Version: [N/A]
> UUID: 2197C286-BC9C-4CF3-99CB-..
> Serial Number: VCX.
> CPU Model: Intel(R) Xeon(R) CPU E5-2667 v2 @ 3.30GHz
> CPU Type: Intel SandyBridge Family
> CPU Sockets: 2
> CPU Cores per Socket: 8
> CPU Threads per Core: 2 (SMT Enabled)
>
> Model name: QMH2572 - PCI-Express Dual Channel 8Gb Fibre Channel Mezzanine
> HBA, NFF
> Device type: FC
> Model name: QMH2572 - PCI-Express Dual Channel 8Gb Fibre Channel Mezzanine
> HBA, NFF
> Device type: FC
>
> The rest of the data is here:
>
> http://pastebin.com/Snc27Jgn
>
> Thank very much
>
> I love oVirt 3.6, so far so good.
>
> This is the last detail to dump VMware
>
> :)
>
>
>
> 2015-10-13 2:43 GMT-05:00 Ido Barkan :
>
>> Julian,
>> Lets try a more systematic approach (similar to what Donny suggests):
>>
>> Please disable your arp script, and reproduce the situation where your vm
>> cannot connect to the outside.
>> It will be also a good idea to have the failing machine be the only
>> powered on machine connected to the network (bridge).
>>
>> * from the machine os run a ping to a pingable destination outside of
>> your network (8.8.8.8?)
>> * run tcpdump on the hypervisor on several interfaces:
>>   * the vm tap device (vnet0? vnet1?)
>>   * the vm network bridge device (hosting?), where the tap device is
>> attached to. This should be visible via brctl.
>>   * the vlan device underneath the bridge (this one should have a name
>> like 'eno1.50' where eno1 is the physical nic and 50 is the vlan tag)
>>   * the physical device (the ethernet nic)
>>
>> The tcpdump command requires root privileges and looks like this: "sudo
>> tcpdump -n -i  icmp or arp"
>>
>> What I assume we will see are only icmp requests (pings) and no icmp
>> replies (pongs). There might be also be only arp requests and
>> no arp replies.
>> What I am interested at is the arp broadcasts, as the vm should broadcast
>> an arp request (who-is ).
>> My first guess is that is no response or there is one but the vm cannot
>> hear it. This is why I used the arp filter in the tcpdump command.
>>
>> This should shed some light on where the problem is and in which layer.
>> find out where the traffic is not forwarded.
>>
>> Also, when you locate the point of failure, try and wait for the traffic
>> to 'suddenly work' as you said and then figure out what was changed.
>>
>> We would love to see the dumps and coontinue to help.
>>
>> Thanks,
>> Ido
>>
>>
>> On Thu, Oct 8, 2015 at 7:29 PM, Julián Tete 
>> wrote:
>>
>>> I found the reason of my Problem: the virtual machines can't write the
>>> ARP table ¡¡¿?!!
>>>
>>> When I manually use the command:
>>>
>>> arp -s 192.168.XXX.XX 00:09:XX:XX:XX:XX
>>>
>>> I can reach the gateway
>>>
>>> I can't reach anything from my net segment but i can reach Internet
>>> (Double ¡¡¿?!!)
>>>
>>> For the moment I wrote a script, but is awful to do this.
>>>
>>> Any idea ?
>>>
>>> Thanks in advance :)
>>>
>>> 2015-07-10 11:26 GMT-05:00 Julián Tete :
>>>
 Perhaps us are affected by the following error :

 http://h20564.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c04267968

 I will keep you informed

 Thanks Friends

 2015-07-06 12:06 GMT-05:00 Julián Tete :

> Hi Friends of oVirt
>
> This the data required:
>
> I have a HP Enclosure with a HP SAN.
> I can't change the net settings in the switch because we have VMware
> Virtual Machines in production in the same enclosure.
> The switch is in Trunk Mode and all the traffic are in Tagged VLAN's
> with ID's: 1,50,90,91 and 100.
> I can play with 6 blades.
> I in the first Blade I installed oVirt in hosted engine mode.
> The only S.O is CentOS 7.1
>
> I used inxi to brig the data for you:
>
> My First Host is the only host until now (SPM) is the first data
> domain (NFS) and contains the hosted engine machine.
> I installed oVirt with ovirtmgmt in VLAN 1, over the interface eno1,
> without any VLAN Tagged configuration.
>
> This the data for my first 

Re: [ovirt-users] Testing self hosted engine in 3.6: hostname not resolved error

2015-10-22 Thread Gianluca Cecchi
On Thu, Oct 22, 2015 at 3:01 PM, Simone Tiraboschi 
wrote:

>
>>
>> Any particular file or section in log files to cross check?
>> I can also start from scratch in case just to be sure that I don't
>> get into same problem, so that it can be useful to find it before...
>>
>>
> I suspect that that host-deploy fails cause you have in place a leftover
> VDSM cert from the previous attempt which is still signed by your previous
> attempt engine and so it fails to match this new engine: on the second
> attempt hosted-engine-setup deployed again the engine appliance creating a
> new instance with different certs.
>
>
I decided to restart clean and in fact all went well.
Last lines of output of "hosted-engine --deploy"

...
[ INFO  ] Connecting to the Engine
[ INFO  ] Waiting for the host to become operational in the engine. This
may take several minutes...
[ INFO  ] Still waiting for VDSM host to become operational...
[ INFO  ] The VDSM Host is now operational
[ INFO  ] Saving hosted-engine configuration on the shared storage domain
[ INFO  ] Shutting down the engine VM
[ INFO  ] Enabling and starting HA services
  Hosted Engine successfully set up
[ INFO  ] Stage: Clean up
[ INFO  ] Generating answer file
'/var/lib/ovirt-hosted-engine-setup/answers/answers-20151022160359.conf'
[ INFO  ] Generating answer file '/etc/ovirt-hosted-engine/answers.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination

engine is up and admin web portal accessible and host results up.

I expected storage to be configured inside admin web portal but apparently
I don't see anything already configured and also I don't see the sh engine
VM listed... is it correct?

Filesystem layout at this time on the hypervisor is this:
[root@ovc71 tmp]# df -h
Filesystem   Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   27G  2.7G   24G  11% /
devtmpfs 3.9G 0  3.9G   0% /dev
tmpfs3.9G  4.0K  3.9G   1% /dev/shm
tmpfs3.9G  8.7M  3.9G   1% /run
tmpfs3.9G 0  3.9G   0% /sys/fs/cgroup
/dev/sda1497M  130M  368M  27% /boot
/dev/mapper/OVIRT_DOMAIN-ISO_DOMAIN  5.0G   33M  5.0G   1% /ISO_DOMAIN
/dev/mapper/OVIRT_DOMAIN-NFS_DOMAIN   45G  2.7G   43G   6% /NFS_DOMAIN
ovc71.localdomain.local:/NFS_DOMAIN   45G  2.7G   43G   6%
/rhev/data-center/mnt/ovc71.localdomain.local:_NFS__DOMAIN
/dev/loop1   2.0G  3.1M  1.9G   1%
/rhev/data-center/mnt/_var_lib_ovirt-hosted-engine-setup_tmpUEso__Q

BTW: what is the 2Gb file system on loop device?

I configured the storage domain part as NFS, pointing
to ovc71.localdomain.local:/NFS_DOMAIN
Reading page at
http://www.ovirt.org/Features/Self_Hosted_Engine

it is not clear to me what to do next if I want for example keep a single
host with its sh engine as a replacement concept of what before was
all-in-one... and start creating VMs

Output of my web admin page:
https://drive.google.com/file/d/0BwoPbcrMv8mva3UyMTFDbHdsN3c/view?usp=sharing

Also, I didn't restart my hypervisor yet.
WHat should be the shutdown procedure? SImply run shutdown on hypervisor or
1) shutdwn engine vm
2) shutdown hypervisor
?


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


[ovirt-users] trunk mode for getting vlan into vms.

2015-10-22 Thread Nathanaël Blanchet
As explained here 
http://blog.davidvassallo.me/2012/05/05/kvm-brctl-in-linux-bringing-vlans-to-the-guests/ 
, does it exist any way to do the same with ovirt hosts? (e.g. vlan at 
the bridge level and untagged by the nics vm themselves)


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


[ovirt-users] [ANN] oVirt 3.6.0 Third Release Candidate is now available for testing

2015-10-22 Thread Sandro Bonazzola
[ANN] oVirt 3.6.0 Third Release Candidate is now available for testing

The oVirt Project is pleased to announce the availability
of the Third Release Candidate of oVirt 3.6 for testing, as of October
22nd, 2015.

This release is available now for Fedora 22,
Red Hat Enterprise Linux 6.7, CentOS Linux 6.7 (or similar) and
Red Hat Enterprise Linux 7.1, CentOS Linux 7.1 (or similar).

This release supports Hypervisor Hosts running
Red Hat Enterprise Linux 7.1, CentOS Linux 7.1 (or similar),
Fedora 21 and Fedora 22.
Highly experimental support for Debian 8.1 Jessie has been added too.

This release of oVirt 3.6.0 includes numerous bug fixes.
See the release notes [1] for an initial list of the new features and bugs
fixed.

Please refer to release notes [1] for Installation / Upgrade instructions.
New oVirt Node ISO and oVirt Live ISO will be available soon as well[2].

Please note that mirrors[3] may need usually one day before being
synchronized.

Please refer to the release notes for known issues in this release.

[1] http://www.ovirt.org/OVirt_3.6_Release_Notes
[2] http://plain.resources.ovirt.org/pub/ovirt-3.6-pre/iso/
[3] http://www.ovirt.org/Repository_mirrors#Current_mirrors


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


[ovirt-users] [SOLVED] Re: oVirt 3.6 disk speeds

2015-10-22 Thread Julian De Marchi

heya--

Issue came down to memory. The engine had 4095MB while my test VM had 
1048MB. Bumping up memory on my test VM saw speeds increase. In any 
case, 48 - 60MBs is my real speed. Time for iozone.


Hopefully this helps others.

--julian

On 23/10/2015 1:55 PM, Julian De Marchi wrote:

heya--

Playing around with oVirt 3.6 on some new kit before I rack and stack in
the DC.

   - Dell Eql PS4210(Raid-6)
   - Dell R630
   - Dell N400 10GB switch

I have my 10GB interfaces bonded and in a port-channel. I have setup a
basic 3.6 oVirt self-hosted stack.

I am seeing some pretty big differences in disks speeds from the
self-hosted engine and a VM guest. Both are direct luns via iscsi from
the SAN on the 10GB port-channel. Normal network traffic does not go
over the 10GB.

On the engine I'm seeing this:

# dd if=/dev/zero of=~/testfile bs=1G count=1 oflag=dsync
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 1.58877 s, 676 MB/s

On a test VM I'm seeing this:

# dd if=/dev/zero of=~/testfile bs=1G count=1 oflag=dsync
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 22.0732 s, 48.6 MB/s

I have played with the disk drivers for my guest VM, changing between
drivers does not change the speed at all.

What ideas do you folks have for me to narrow down this slow down? I
don't really know where to start with this one. I also noticed that 3.6
does not yet have ovirt-guest-agent available.

I know DD is not the best test for disk speeds, but it works for what I
need right now, iozone will be next when I'm happy.

Many thanks!

--julian
___
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] schedule a VM backup in ovirt 3.5

2015-10-22 Thread Indunil Jayasooriya
> If you know the name of the VM then you can find it, including its id,
> doing a search:
>
> https://engine.example.com/ovirt-engine/api/vms?search=name%3Dmyvm
>

  Thanks for the above info. It worked.


>
> If you prefer to use a script, which is probably the right thing, then
> you can do something like this, using the Python SDK:
>
>
Can I shedule a VM backup with Ovirt Manager GUI. If possible, Pls let me
know.



> ---8<---
> #!/usr/bin/python
>
> from ovirtsdk.api import API
> from ovirtsdk.xml import params
>
> # Connect to the server:
> api = API(
> url="https://engine.example.com/ovirt-engine/api;,
> username="admin@internal",
> password="**",
> ca_file="/etc/pki/ovirt-engine/ca.pem",
> debug=False
> )
>
> # Find the VM:
> vm = api.vms.get(name="myvm")
>
> # Print the id:
> print(vm.get_id())
>
> # Disconnect:
> api.disconnect()
> --->8---
>
>
Many thanks for the above script. I ran it on Ovirt manager. It worked. It
gave me the ID of my CentOS_71 VM that I want to backup.




> Once you have the VM you can create a snapshot like this:
>
> ---8<---
> vm.snapshots.add(
> params.Snapshot(description="My snapshot")
> )
> --->8---
>

I rewrote the script in this way and ran it.


#!/usr/bin/python

from ovirtsdk.api import API
from ovirtsdk.xml import params

# Connect to the server:
api = API(
url="https://engine.example.com/ovirt-engine/api;,
username="admin@internal",
password="**",
ca_file="/etc/pki/ovirt-
>
> engine/ca.pem",
> debug=False
> )
>
> # Find the VM:
> vm = api.vms.get(name="myvm")
>
> # Print the id:
> print(vm.get_id())
>
>


*vm.snapshots.add(  params.Snapshot(description="My
snapshot") )*

>
> *# Disconnect: api.disconnect()*
>

No error was given. I have no idea whether snapshot wad added or NOT by the
above script.

I can't display it.

*How to display it?  *

Then, *How to backup the VM with this snaphot? *

Then, finally* how to delete this snapshot? *to delete the snapshot,

I tried with below command. the did NOT worked.



*vm.snapshots.delete() *or
  *vm.snapshots.detach(*

 or
  *vm.snapshots.remove(*

I think I am have completed about 50% of this backup process. If you can
write down the  above steps, It would be very grateful.


I searched a whole lot. But , I still can't do it.

These are the links I came across.

https://github.com/laravot/backuprestoreapi/blob/master/example.py

http://www.ovirt.org/Testing/PythonApi#Create_a_Basic_Environment_using_ovirt-engine-sdk

this is your one

http://users.ovirt.narkive.com/Z29BQWAD/ovirt-users-python-sdk-attach-disk-snapshot-to-another-virtual-machine


Hmm,


*How to list the sanphot? *

*how to backup the VM with snapshot? *

*finally , how to remove this snapshot? *


Then. I think it will be OVER. Yesterday, I tried a lot.  but, NO success.

Hope to hear from you.










> You can also use the Java SDK, if you prefer Java.
>
> --
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> 3ºD, 28016 Madrid, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
>



-- 
cat /etc/motd

Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html   -  Download Sinhala
Fonts
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] oVirt 3.6 disk speeds

2015-10-22 Thread Julian De Marchi

heya--

Playing around with oVirt 3.6 on some new kit before I rack and stack in 
the DC.


  - Dell Eql PS4210(Raid-6)
  - Dell R630
  - Dell N400 10GB switch

I have my 10GB interfaces bonded and in a port-channel. I have setup a 
basic 3.6 oVirt self-hosted stack.


I am seeing some pretty big differences in disks speeds from the 
self-hosted engine and a VM guest. Both are direct luns via iscsi from 
the SAN on the 10GB port-channel. Normal network traffic does not go 
over the 10GB.


On the engine I'm seeing this:

# dd if=/dev/zero of=~/testfile bs=1G count=1 oflag=dsync
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 1.58877 s, 676 MB/s

On a test VM I'm seeing this:

# dd if=/dev/zero of=~/testfile bs=1G count=1 oflag=dsync
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 22.0732 s, 48.6 MB/s

I have played with the disk drivers for my guest VM, changing between 
drivers does not change the speed at all.


What ideas do you folks have for me to narrow down this slow down? I 
don't really know where to start with this one. I also noticed that 3.6 
does not yet have ovirt-guest-agent available.


I know DD is not the best test for disk speeds, but it works for what I 
need right now, iozone will be next when I'm happy.


Many thanks!

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


Re: [ovirt-users] schedule a VM backup in ovirt 3.5

2015-10-22 Thread Christopher Cox

On 10/22/2015 10:46 PM, Indunil Jayasooriya wrote:
...


Hmm,

*How to list the sanphot?
*
*how to backup the VM with snapshot?
*
*finally , how to remove this snapshot?
*


Then. I think it will be OVER. Yesterday, I tried a lot.  but, NO success.

Hope to hear from you.


Not exactly "help" but AFAIK, even with 3.5, there is no live merging of 
snapshots so they can't be deleted unless the VM is down.  I know for large 
snapshots that have been around for awhile removing them can take some time too.


Others feel free to chime in...


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


Re: [ovirt-users] schedule a VM backup in ovirt 3.5

2015-10-22 Thread Juan Hernández
On 10/22/2015 07:50 AM, Indunil Jayasooriya wrote:
> Hi list,
> 
> I want to *schedule a VM backup* in ovirt 3.5. I read below
> URL.
> 
> http://www.ovirt.org/Features/Backup-Restore_API_Integration#Full_VM_Backups
> 
> It gives an below example of VM backup
> 
> 
> Example for VM Backup
> 
>   * Use existing VM Snapshot/Create a vm snapshot (example): 
> 
>  URL = SERVER:PORT/api/vms/VM_ID/snapshots
>  Method = POST
>  (with Content-Type:application/xml header)
>  Body =
>  
>  Virtual Machine 1 - Snapshot For Backup
>  
> 
> 
> 
> But, How can I find the *VM_ID* of the VM that I want to backup?
> 
> How can I write this below format?
> 
>  URL = SERVER:PORT/api/vms/VM_ID/snapshots
> 
> MY Ovirt Engine manager is running on another PC. (let's say 
> engine.example.com  ) i can access it by typing 
> https://engine.example.com/
> 
> is it https://engine.example.com/api/vms/*VM_ID*/snapshots ? I can't access 
> it in firefox browser?
> 
> 
> Should I write a script? is there any Youtube video or doc that makes me to 
> understand this? 
> 
> Hope to hear from you.
> 

If you know the name of the VM then you can find it, including its id,
doing a search:

https://engine.example.com/ovirt-engine/api/vms?search=name%3Dmyvm

If you prefer to use a script, which is probably the right thing, then
you can do something like this, using the Python SDK:

---8<---
#!/usr/bin/python

from ovirtsdk.api import API
from ovirtsdk.xml import params

# Connect to the server:
api = API(
url="https://engine.example.com/ovirt-engine/api;,
username="admin@internal",
password="**",
ca_file="/etc/pki/ovirt-engine/ca.pem",
debug=False
)

# Find the VM:
vm = api.vms.get(name="myvm")

# Print the id:
print(vm.get_id())

# Disconnect:
api.disconnect()
--->8---

Once you have the VM you can create a snapshot like this:

---8<---
vm.snapshots.add(
params.Snapshot(description="My snapshot")
)
--->8---

You can also use the Java SDK, if you prefer Java.

-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] 3.6 upgrade issue

2015-10-22 Thread Yaniv Dary
History database has a issue. Can you add logs? maybe open a bug?

Yaniv Dary
Technical Product Manager
Red Hat Israel Ltd.
34 Jerusalem Road
Building A, 4th floor
Ra'anana, Israel 4350109

Tel : +972 (9) 7692306
8272306
Email: yd...@redhat.com
IRC : ydary


On Tue, Sep 29, 2015 at 4:45 PM, Jon Archer  wrote:

> Hi all,
>
> Wonder if anyone can shed any light on an error i'm seeing while running
> engine-setup.
>
> If just upgraded the packages to the latest 3.6 ones today (from 3.5), run
> engine-setup, answered the questions, confirming install then get presented
> with:
> [ INFO  ] Cleaning async tasks and compensations
> [ INFO  ] Unlocking existing entities
> [ INFO  ] Checking the Engine database consistency
> [ INFO  ] Stage: Transaction setup
> [ INFO  ] Stopping engine service
> [ INFO  ] Stopping ovirt-fence-kdump-listener service
> [ INFO  ] Stopping websocket-proxy service
> [ INFO  ] Stage: Misc configuration
> [ INFO  ] Stage: Package installation
> [ INFO  ] Stage: Misc configuration
> [ ERROR ] Failed to execute stage 'Misc configuration': function
> getdwhhistorytimekeepingbyvarname(unknown) does not exist LINE 2:
>select * from GetDwhHistoryTimekeepingByVarName(
>^ HINT:  No function matches the given name and argument types.
> You might need to add explicit type casts.
> [ INFO  ] Yum Performing yum transaction rollback
> [ INFO  ] Stage: Clean up
>   Log file is located at
> /var/log/ovirt-engine/setup/ovirt-engine-setup-20150929144137-7u5rhg.log
> [ INFO  ] Generating answer file
> '/var/lib/ovirt-engine/setup/answers/20150929144215-setup.conf'
> [ INFO  ] Stage: Pre-termination
> [ INFO  ] Stage: Termination
> [ ERROR ] Execution of setup failed
>
>
> Any ideas, where to look to fix things?
>
> Thanks
>
> Jon
> ___
> 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] schedule a VM backup in ovirt 3.5

2015-10-22 Thread Tomas Jelinek


- Original Message -
> From: "Indunil Jayasooriya" 
> To: users@ovirt.org
> Sent: Thursday, October 22, 2015 7:50:03 AM
> Subject: [ovirt-users] schedule a VM backup in ovirt 3.5
> 
> Hi list,
> 
> I want to schedule a VM backup in ovirt 3.5. I read below URL.
> 
> http://www.ovirt.org/Features/Backup-Restore_API_Integration#Full_VM_Backups
> 
> It gives an below example of VM backup
> 
> 
> Example for VM Backup
> 
> 
> * Use existing VM Snapshot/Create a vm snapshot (example):
> URL = SERVER:PORT/api/vms/VM_ID/snapshots
>  Method = POST
>  (with Content-Type:application/xml header)
>  Body =
>  
>  Virtual Machine 1 - Snapshot For Backup
>  
> 
> 
> But, How can I find the VM_ID of the VM that I want to backup?

look at:
https://engine.example.com/ovirt-engine/api/vms

it lists all the vms and shows both the VM name and it's ID

> 
> How can I write this below format?
> URL = SERVER:PORT/api/vms/VM_ID/snapshots
> 
> MY Ovirt Engine manager is running on another PC. (let's say
> engine.example.com ) i can access it by typing https://engine.example.com/
> 
> is it https://engine.example.com/api/vms/ VM_ID /snapshots ? I can't access
> it in firefox browser?

the correct address should be
https://engine.example.com/ovirt-engine/api/vms/ VM_ID /snapshots


> 
> Should I write a script? is there any Youtube video or doc that makes me to
> understand this?

it depends a lot on language you want to use. If you want to use for example 
python you could try this guide to python sdk
http://www.ovirt.org/Python-sdk

> 
> Hope to hear from you.
> 
> 
> 
> 
> 
> 
> 
> --
> cat /etc/motd
> 
> Thank you
> Indunil Jayasooriya
> http://www.theravadanet.net/
> http://www.siyabas.lk/sinhala_how_to_install.html - Download Sinhala Fonts
> 
> 
> ___
> 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] Testing self hosted engine in 3.6: hostname not resolved error

2015-10-22 Thread Gianluca Cecchi
On Thu, Oct 22, 2015 at 5:08 PM, Simone Tiraboschi 
wrote:

>
>> engine is up and admin web portal accessible and host results up.
>>
>> I expected storage to be configured inside admin web portal but
>> apparently I don't see anything already configured and also I don't see the
>> sh engine VM listed... is it correct?
>>
>
> No, we have an open bug on that:
> https://bugzilla.redhat.com/show_bug.cgi?id=1269768
>
> You can try to manually import it in the mean time.
>

Ok, I'll try.
So when bug solved, if I have a problem with the engine and for example I'm
not able to connect to it through ssh and/or web admin console, what other
means would I have to connect to it console and check (eg if it is in
kernel panic for any reason)?
During setup I was proposed to connect via remote-viewer via a temporary
password; I imagine this way is not usable after install, correct?




>
> But hosted-engine storage domain can just contain the engine VM so you
> still need to add a regular storage domain for other VMs.
>
>
>>

Ah, ok. I thought that the initial storage domain would have become the
first storage domain for general VMs purposes too...
So actually if on dedicated filesystem/device, it could be small in size,
say 5-10Gb if I use the appliance, correct?



> BTW: what is the 2Gb file system on loop device?
>>
>
> It was used by hosted-engine-setup as a fake storage pool to bootstrap the
> hosted-engine storage domain.
> It shouldn't be there at the end.
> Could you please attach hosted-engine-setup logs to let me check why it's
> still there?
>

here it is:
https://drive.google.com/file/d/0BwoPbcrMv8mvRFFKSmR0REN3Qkk/view?usp=sharing



>
>
>>
>> I configured the storage domain part as NFS, pointing
>> to ovc71.localdomain.local:/NFS_DOMAIN
>> Reading page at
>> http://www.ovirt.org/Features/Self_Hosted_Engine
>>
>> it is not clear to me what to do next if I want for example keep a single
>> host with its sh engine as a replacement concept of what before was
>> all-in-one... and start creating VMs
>>
>
> You have to setup your first regular data domain for other VMs: you can
> add another NFS one.
>

OK.
In case I want to setup a single host with self hosted engine, could I
configure on hypervisor
a) one NFS share for sh engine
b) one NFS share for ISO DOMAIN
c) a local filesystem to be used to create then a local POSIX complant FS
storage domain
and work this way as a replacement of all-in-one?



>>
> Put the host in global maintenance (otherwise the engine VM will be
> restarted)
> Shutdown the engine VM
> Shutdown the host
>
>
>>
>>
Ok. And for starting all again, is this correct:

a) power on hypevisor
b) hosted-engine --set-maintenance --mode=none

other steps required?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] [ANN] oVirt 3.6.0 Third Release Candidate is now available for testing

2015-10-22 Thread Sandro Bonazzola
The oVirt Project is pleased to announce the availability
of the Third Release Candidate of oVirt 3.6 for testing, as of October
22nd, 2015.

This release is available now for Fedora 22,
Red Hat Enterprise Linux 6.7, CentOS Linux 6.7 (or similar) and
Red Hat Enterprise Linux 7.1, CentOS Linux 7.1 (or similar).

This release supports Hypervisor Hosts running
Red Hat Enterprise Linux 7.1, CentOS Linux 7.1 (or similar),
Fedora 21 and Fedora 22.
Highly experimental support for Debian 8.1 Jessie has been added too.

This release of oVirt 3.6.0 includes numerous bug fixes.
See the release notes [1] for an initial list of the new features and bugs
fixed.

Please refer to release notes [1] for Installation / Upgrade instructions.
New oVirt Node ISO and oVirt Live ISO will be available soon as well[2].

Please note that mirrors[3] may need usually one day before being
synchronized.

Please refer to the release notes for known issues in this release.

[1] http://www.ovirt.org/OVirt_3.6_Release_Notes
[2] http://plain.resources.ovirt.org/pub/ovirt-3.6-pre/iso/
[3] http://www.ovirt.org/Repository_mirrors#Current_mirrors


-- 
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] Testing self hosted engine in 3.6: hostname not resolved error

2015-10-22 Thread Gianluca Cecchi
On Thu, Oct 22, 2015 at 2:15 PM, Simone Tiraboschi 
wrote:

>
>> 2015-10-21 17:36:33 DEBUG otopi.plugins.otopi.dialog.machine
>> dialog.__logString:219 DIALOG:SEND   ### Please input VDSM certificate
>> chain that matches certificate request, top is issuer
>> 2015-10-21 17:36:33 DEBUG otopi.plugins.otopi.dialog.machine
>> dialog.__logString:219 DIALOG:SEND   ###
>> 2015-10-21 17:36:33 DEBUG otopi.plugins.otopi.dialog.machine
>> dialog.__logString:219 DIALOG:SEND   ### type
>> '--=451b80dc-996f-432e-9e4f-2b29ef6d1141=--' in own line to mark end,
>> '--=451b80dc-996f-ABORT-9e4f-2b29ef6d1141=--' aborts
>> 2015-10-21 17:36:33 DEBUG otopi.context context._executeMethod:156 method
>> exception
>> Traceback (most recent call last):
>>   File "/tmp/ovirt-xP0lq4KMou/pythonlib/otopi/context.py", line 146, in
>> _executeMethod
>> method['method']()
>>   File
>> "/tmp/ovirt-xP0lq4KMou/otopi-plugins/ovirt-host-common/vdsm/pki.py", line
>> 319, in _misc
>> '\n\nPlease input VDSM certificate chain that '
>>   File "/tmp/ovirt-xP0lq4KMou/otopi-plugins/otopi/dialog/machine.py",
>> line 207, in queryMultiString
>> v = self._readline()
>>   File "/tmp/ovirt-xP0lq4KMou/pythonlib/otopi/dialog.py", line 263, in
>> _readline
>> raise IOError(_('End of file'))
>> IOError: End of file
>> 2015-10-21 17:36:33 ERROR otopi.context context._executeMethod:165 Failed
>> to execute stage 'Misc configuration': End of file
>> 2015-10-21 17:36:33 DEBUG otopi.transaction transaction.abort:134
>> aborting 'Yum Transaction'
>> 2015-10-21 17:36:33 INFO otopi.plugins.otopi.packagers.yumpackager
>> yumpackager.info:95 Yum Performing yum transaction rollback
>> Loaded plugins: fastestmirror, langpacks
>>
>
> The issue seams to be there:
> we have an input request on host-deploy to have somebody explicitly
> trusting the VDSM cert chain but of course, being an automated process,
> nobody will respond and so it failed.
> Did you manually changed the engine cert or some others CA cert?
>
> No.
The only thing is that I first ran
  hosted-engine --deploy
without putting the hostname of engine inside /etc/hosts of hypervisor and
it failed (see my first mail of the thread), I think without doing anything
(at least at engine VM level, I don't know if it created a cert...), but
generating an answer file.

And then I ran, as you suggested (with the warning you noted)
hosted-engine --deploy --config-append=answer_file

Inside log of first run
(ovirt-hosted-engine-setup-20151021151938-j4hy5g.log) I see

2015-10-21 15:20:13 DEBUG
otopi.plugins.ovirt_hosted_engine_setup.pki.vdsmpki plugin.execute:936
execut
e-output: ('/bin/openssl', 'x509', '-noout', '-text', '-in',
'/etc/pki/vdsm/libvirt-spice/server-cert.p
em') stdout:
Certificate:
Data:
Version: 1 (0x0)
Serial Number: 1 (0x1)
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=EN, L=Test, O=Test, CN=TestCA
Validity
Not Before: Oct 21 13:20:13 2015 GMT
Not After : Oct 20 13:20:13 2018 GMT
Subject: C=EN, L=Test, O=Test, CN=Test
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (1024 bit)
Modulus:
00:bd:f8:d4:a0:87:9e:20:7f:71:12:8d:8e:90:e0:
...

Inside the run with answer file
(ovirt-hosted-engine-setup-20151021170822-p1iv3y.log) I see
2015-10-21 17:08:22 DEBUG
otopi.plugins.ovirt_hosted_engine_setup.pki.vdsmpki plugin.execute:936
execute-output: ('/bin/openssl', 'x509', '-noout', '-text', '-in',
'/etc/pki/vdsm/libvirt-spice/server-cert.pem') stdout:
Certificate:
Data:
Version: 1 (0x0)
Serial Number: 1 (0x1)
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=EN, L=Test, O=Test, CN=TestCA
Validity
Not Before: Oct 21 13:20:13 2015 GMT
Not After : Oct 20 13:20:13 2018 GMT
Subject: C=EN, L=Test, O=Test, CN=Test
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (1024 bit)
Modulus:
00:bd:f8:d4:a0:87:9e:20:7f:71:12:8d:8e:90:e0:


Any particular file or section in log files to cross check?
I can also start from scratch in case just to be sure that I don't get
into same problem, so that it can be useful to find it before...

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


Re: [ovirt-users] Testing self hosted engine in 3.6: hostname not resolved error

2015-10-22 Thread Simone Tiraboschi
On Thu, Oct 22, 2015 at 5:28 PM, Gianluca Cecchi 
wrote:

> On Thu, Oct 22, 2015 at 5:08 PM, Simone Tiraboschi 
> wrote:
>
>>
>>> engine is up and admin web portal accessible and host results up.
>>>
>>> I expected storage to be configured inside admin web portal but
>>> apparently I don't see anything already configured and also I don't see the
>>> sh engine VM listed... is it correct?
>>>
>>
>> No, we have an open bug on that:
>> https://bugzilla.redhat.com/show_bug.cgi?id=1269768
>>
>> You can try to manually import it in the mean time.
>>
>
> Ok, I'll try.
> So when bug solved, if I have a problem with the engine and for example
> I'm not able to connect to it through ssh and/or web admin console, what
> other means would I have to connect to it console and check (eg if it is in
> kernel panic for any reason)?
>

Ehm if the engine VM is not responding you cannot use the engine to check
it.
But you have an HA agent that monitors it for you and can restart if needed.

You can also use ssh with the root password you set via cloud-init.


> During setup I was proposed to connect via remote-viewer via a temporary
> password; I imagine this way is not usable after install, correct?
>

You can use
hosted-engine --add-console-password to set another temporary password.


>
>
>
>>
>> But hosted-engine storage domain can just contain the engine VM so you
>> still need to add a regular storage domain for other VMs.
>>
>>
>>>
>
> Ah, ok. I thought that the initial storage domain would have become the
> first storage domain for general VMs purposes too...
> So actually if on dedicated filesystem/device, it could be small in size,
> say 5-10Gb if I use the appliance, correct?
>
>
20GB is the minimum recommended value plus you need additional space for
ancillary storage domain data structured so I'd avoid allocating less than
25GB.


>
>
>> BTW: what is the 2Gb file system on loop device?
>>>
>>
>> It was used by hosted-engine-setup as a fake storage pool to bootstrap
>> the hosted-engine storage domain.
>> It shouldn't be there at the end.
>> Could you please attach hosted-engine-setup logs to let me check why it's
>> still there?
>>
>
> here it is:
>
> https://drive.google.com/file/d/0BwoPbcrMv8mvRFFKSmR0REN3Qkk/view?usp=sharing
>

Thanks



>
>>
>>
>>>
>>> I configured the storage domain part as NFS, pointing
>>> to ovc71.localdomain.local:/NFS_DOMAIN
>>> Reading page at
>>> http://www.ovirt.org/Features/Self_Hosted_Engine
>>>
>>> it is not clear to me what to do next if I want for example keep a
>>> single host with its sh engine as a replacement concept of what before was
>>> all-in-one... and start creating VMs
>>>
>>
>> You have to setup your first regular data domain for other VMs: you can
>> add another NFS one.
>>
>
> OK.
> In case I want to setup a single host with self hosted engine, could I
> configure on hypervisor
> a) one NFS share for sh engine
> b) one NFS share for ISO DOMAIN
> c) a local filesystem to be used to create then a local POSIX complant FS
> storage domain
> and work this way as a replacement of all-in-one?
>

Yes but c is just a workaround, using another external NFS share would help
a lot if in the future you plan to add o to migrate to a new server.


>
>
>
>>>
>> Put the host in global maintenance (otherwise the engine VM will be
>> restarted)
>> Shutdown the engine VM
>> Shutdown the host
>>
>>
>>>
>>>
> Ok. And for starting all again, is this correct:
>
> a) power on hypevisor
> b) hosted-engine --set-maintenance --mode=none
>
> other steps required?
>
>
No, that's correct
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Testing self hosted engine in 3.6: hostname not resolved error

2015-10-22 Thread Simone Tiraboschi
On Thu, Oct 22, 2015 at 5:38 PM, Simone Tiraboschi 
wrote:

>
>
> On Thu, Oct 22, 2015 at 5:28 PM, Gianluca Cecchi <
> gianluca.cec...@gmail.com> wrote:
>
>> On Thu, Oct 22, 2015 at 5:08 PM, Simone Tiraboschi 
>> wrote:
>>
>>>
 engine is up and admin web portal accessible and host results up.

 I expected storage to be configured inside admin web portal but
 apparently I don't see anything already configured and also I don't see the
 sh engine VM listed... is it correct?

>>>
>>> No, we have an open bug on that:
>>> https://bugzilla.redhat.com/show_bug.cgi?id=1269768
>>>
>>> You can try to manually import it in the mean time.
>>>
>>
>> Ok, I'll try.
>> So when bug solved, if I have a problem with the engine and for example
>> I'm not able to connect to it through ssh and/or web admin console, what
>> other means would I have to connect to it console and check (eg if it is in
>> kernel panic for any reason)?
>>
>
> Ehm if the engine VM is not responding you cannot use the engine to check
> it.
> But you have an HA agent that monitors it for you and can restart if
> needed.
>
> You can also use ssh with the root password you set via cloud-init.
>
>
>> During setup I was proposed to connect via remote-viewer via a temporary
>> password; I imagine this way is not usable after install, correct?
>>
>
> You can use
> hosted-engine --add-console-password to set another temporary password.
>
>
>>
>>
>>
>>>
>>> But hosted-engine storage domain can just contain the engine VM so you
>>> still need to add a regular storage domain for other VMs.
>>>
>>>

>>
>> Ah, ok. I thought that the initial storage domain would have become the
>> first storage domain for general VMs purposes too...
>> So actually if on dedicated filesystem/device, it could be small in size,
>> say 5-10Gb if I use the appliance, correct?
>>
>>
> 20GB is the minimum recommended value plus you need additional space for
> ancillary storage domain data structured so I'd avoid allocating less than
> 25GB.
>
>
>>
>>
>>> BTW: what is the 2Gb file system on loop device?

>>>
>>> It was used by hosted-engine-setup as a fake storage pool to bootstrap
>>> the hosted-engine storage domain.
>>> It shouldn't be there at the end.
>>> Could you please attach hosted-engine-setup logs to let me check why
>>> it's still there?
>>>
>>
>> here it is:
>>
>> https://drive.google.com/file/d/0BwoPbcrMv8mvRFFKSmR0REN3Qkk/view?usp=sharing
>>
>
> Thanks
>

That ovirt-hosted-engine-setup attempt used /dev/loop0 and it got correctly
detached at the end.

2015-10-22 15:51:28 DEBUG
otopi.plugins.ovirt_hosted_engine_setup.storage.storage
plugin.executeRaw:828 execute: ('/sbin/losetup', '--detach',
u'/dev/loop0'), executable='None', cwd='None', env=None
2015-10-22 15:51:28 DEBUG
otopi.plugins.ovirt_hosted_engine_setup.storage.storage
plugin.executeRaw:878 execute-result: ('/sbin/losetup', '--detach',
u'/dev/loop0'), rc=0

So that /dev/loop3 is probably just a leftover of one of your previous
attempts. I think you can safely remove it.


>
>
>
>>
>>>
>>>

 I configured the storage domain part as NFS, pointing
 to ovc71.localdomain.local:/NFS_DOMAIN
 Reading page at
 http://www.ovirt.org/Features/Self_Hosted_Engine

 it is not clear to me what to do next if I want for example keep a
 single host with its sh engine as a replacement concept of what before was
 all-in-one... and start creating VMs

>>>
>>> You have to setup your first regular data domain for other VMs: you can
>>> add another NFS one.
>>>
>>
>> OK.
>> In case I want to setup a single host with self hosted engine, could I
>> configure on hypervisor
>> a) one NFS share for sh engine
>> b) one NFS share for ISO DOMAIN
>> c) a local filesystem to be used to create then a local POSIX complant FS
>> storage domain
>> and work this way as a replacement of all-in-one?
>>
>
> Yes but c is just a workaround, using another external NFS share would
> help a lot if in the future you plan to add o to migrate to a new server.
>
>
>>
>>
>>

>>> Put the host in global maintenance (otherwise the engine VM will be
>>> restarted)
>>> Shutdown the engine VM
>>> Shutdown the host
>>>
>>>


>> Ok. And for starting all again, is this correct:
>>
>> a) power on hypevisor
>> b) hosted-engine --set-maintenance --mode=none
>>
>> other steps required?
>>
>>
> No, that's correct
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] schedule a VM backup in ovirt 3.5

2015-10-22 Thread Yedidyah Bar David
On Thu, Oct 22, 2015 at 8:50 AM, Indunil Jayasooriya
 wrote:
> Hi list,
>
> I want to schedule a VM backup in ovirt 3.5. I read below URL.
>
> http://www.ovirt.org/Features/Backup-Restore_API_Integration#Full_VM_Backups
>
> It gives an below example of VM backup
>
>
> Example for VM Backup
>
> Use existing VM Snapshot/Create a vm snapshot (example):
>
>  URL = SERVER:PORT/api/vms/VM_ID/snapshots

/api is deprecated [1]. Please use /ovirt-engine/api in all URLs.

IIUC it should still work, though.

The page above links also to a complete example (check "External
references" near the end). Did you check it?

You might also want to play with the examples in [2].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=961677
[2] http://www.ovirt.org/Python-sdk

>  Method = POST
>  (with Content-Type:application/xml header)
>  Body =
>  
>  Virtual Machine 1 - Snapshot For Backup
>  
>
>
>
> But, How can I find the VM_ID of the VM that I want to backup?
>
> How can I write this below format?
>
>  URL = SERVER:PORT/api/vms/VM_ID/snapshots
>
> MY Ovirt Engine manager is running on another PC. (let's say
> engine.example.com ) i can access it by typing https://engine.example.com/
>
> is it https://engine.example.com/api/vms/VM_ID/snapshots ? I can't access it
> in firefox browser?

You should be able to. Can you access /ovirt-engine/api ?

>
>
> Should I write a script? is there any Youtube video or doc that makes me to
> understand this?

Not sure.

Adding Juan, the SDK maintainer.

Best regards,

>
> Hope to hear from you.
>
>
>
>
>
>
>
>
> --
> cat /etc/motd
>
> Thank you
> Indunil Jayasooriya
> http://www.theravadanet.net/
> http://www.siyabas.lk/sinhala_how_to_install.html   -  Download Sinhala
> Fonts
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>



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


Re: [ovirt-users] Testing self hosted engine in 3.6: hostname not resolved error

2015-10-22 Thread Simone Tiraboschi
On Thu, Oct 22, 2015 at 4:28 PM, Gianluca Cecchi 
wrote:

> On Thu, Oct 22, 2015 at 3:01 PM, Simone Tiraboschi 
> wrote:
>
>>
>>>
>>> Any particular file or section in log files to cross check?
>>> I can also start from scratch in case just to be sure that I don't
>>> get into same problem, so that it can be useful to find it before...
>>>
>>>
>> I suspect that that host-deploy fails cause you have in place a leftover
>> VDSM cert from the previous attempt which is still signed by your previous
>> attempt engine and so it fails to match this new engine: on the second
>> attempt hosted-engine-setup deployed again the engine appliance creating a
>> new instance with different certs.
>>
>>
> I decided to restart clean and in fact all went well.
> Last lines of output of "hosted-engine --deploy"
>
> ...
> [ INFO  ] Connecting to the Engine
> [ INFO  ] Waiting for the host to become operational in the engine. This
> may take several minutes...
> [ INFO  ] Still waiting for VDSM host to become operational...
> [ INFO  ] The VDSM Host is now operational
> [ INFO  ] Saving hosted-engine configuration on the shared storage domain
> [ INFO  ] Shutting down the engine VM
> [ INFO  ] Enabling and starting HA services
>   Hosted Engine successfully set up
> [ INFO  ] Stage: Clean up
> [ INFO  ] Generating answer file
> '/var/lib/ovirt-hosted-engine-setup/answers/answers-20151022160359.conf'
> [ INFO  ] Generating answer file '/etc/ovirt-hosted-engine/answers.conf'
> [ INFO  ] Stage: Pre-termination
> [ INFO  ] Stage: Termination
>
> engine is up and admin web portal accessible and host results up.
>
> I expected storage to be configured inside admin web portal but apparently
> I don't see anything already configured and also I don't see the sh engine
> VM listed... is it correct?
>

No, we have an open bug on that:
https://bugzilla.redhat.com/show_bug.cgi?id=1269768

You can try to manually import it in the mean time.

But hosted-engine storage domain can just contain the engine VM so you
still need to add a regular storage domain for other VMs.



>
> Filesystem layout at this time on the hypervisor is this:
> [root@ovc71 tmp]# df -h
> Filesystem   Size  Used Avail Use% Mounted on
> /dev/mapper/centos-root   27G  2.7G   24G  11% /
> devtmpfs 3.9G 0  3.9G   0% /dev
> tmpfs3.9G  4.0K  3.9G   1% /dev/shm
> tmpfs3.9G  8.7M  3.9G   1% /run
> tmpfs3.9G 0  3.9G   0% /sys/fs/cgroup
> /dev/sda1497M  130M  368M  27% /boot
> /dev/mapper/OVIRT_DOMAIN-ISO_DOMAIN  5.0G   33M  5.0G   1% /ISO_DOMAIN
> /dev/mapper/OVIRT_DOMAIN-NFS_DOMAIN   45G  2.7G   43G   6% /NFS_DOMAIN
> ovc71.localdomain.local:/NFS_DOMAIN   45G  2.7G   43G   6%
> /rhev/data-center/mnt/ovc71.localdomain.local:_NFS__DOMAIN
> /dev/loop1   2.0G  3.1M  1.9G   1%
> /rhev/data-center/mnt/_var_lib_ovirt-hosted-engine-setup_tmpUEso__Q
>
> BTW: what is the 2Gb file system on loop device?
>

It was used by hosted-engine-setup as a fake storage pool to bootstrap the
hosted-engine storage domain.
It shouldn't be there at the end.
Could you please attach hosted-engine-setup logs to let me check why it's
still there?


>
> I configured the storage domain part as NFS, pointing
> to ovc71.localdomain.local:/NFS_DOMAIN
> Reading page at
> http://www.ovirt.org/Features/Self_Hosted_Engine
>
> it is not clear to me what to do next if I want for example keep a single
> host with its sh engine as a replacement concept of what before was
> all-in-one... and start creating VMs
>

You have to setup your first regular data domain for other VMs: you can add
another NFS one.


>
> Output of my web admin page:
>
> https://drive.google.com/file/d/0BwoPbcrMv8mva3UyMTFDbHdsN3c/view?usp=sharing
>
> Also, I didn't restart my hypervisor yet.
> WHat should be the shutdown procedure? SImply run shutdown on hypervisor or
> 1) shutdwn engine vm
> 2) shutdown hypervisor
> ?
>
>
Put the host in global maintenance (otherwise the engine VM will be
restarted)
Shutdown the engine VM
Shutdown the host


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


Re: [ovirt-users] Testing self hosted engine in 3.6: hostname not resolved error

2015-10-22 Thread Simone Tiraboschi
On Thu, Oct 22, 2015 at 2:00 PM, Gianluca Cecchi 
wrote:

> On Thu, Oct 22, 2015 at 11:50 AM, Gianluca Cecchi <
> gianluca.cec...@gmail.com> wrote:
>
>> On Wed, Oct 21, 2015 at 6:15 PM, Simone Tiraboschi 
>> wrote:
>>
>>>
>>> It pools engine REST API checking the host status for 10 minutes till it
>>> become 'up' or 'non_operational'. In your case it reached the 10 minutes
>>> timeout.
>>> Please check engine and host-deploy logs on the engine VM.
>>>
>>
>> Ok.
>>
>>
> What I see inside ovirt-host-deploy log file
>
>  2015-10-21 17:20:26 DEBUG otopi.plugins.otopi.packagers.dnfpackager
> dnfpackager._boot:178 Cannot initialize minidnf
> Traceback (most recent call last):
>   File
> "/tmp/ovirt-xP0lq4KMou/otopi-plugins/otopi/packagers/dnfpackager.py", line
> 165, in _boot
> constants.PackEnv.DNF_DISABLED_PLUGINS
>   File
> "/tmp/ovirt-xP0lq4KMou/otopi-plugins/otopi/packagers/dnfpackager.py", line
> 75, in _getMiniDNF
> from otopi import minidnf
>   File "/tmp/ovirt-xP0lq4KMou/pythonlib/otopi/minidnf.py", line 9, in
> 
> import dnf
> ImportError: No module named dnf
>
> ...
>
> 2015-10-21 17:36:33 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:219 DIALOG:SEND   ### Please input VDSM certificate
> chain that matches certificate request, top is issuer
> 2015-10-21 17:36:33 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:219 DIALOG:SEND   ###
> 2015-10-21 17:36:33 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:219 DIALOG:SEND   ### type
> '--=451b80dc-996f-432e-9e4f-2b29ef6d1141=--' in own line to mark end,
> '--=451b80dc-996f-ABORT-9e4f-2b29ef6d1141=--' aborts
> 2015-10-21 17:36:33 DEBUG otopi.context context._executeMethod:156 method
> exception
> Traceback (most recent call last):
>   File "/tmp/ovirt-xP0lq4KMou/pythonlib/otopi/context.py", line 146, in
> _executeMethod
> method['method']()
>   File
> "/tmp/ovirt-xP0lq4KMou/otopi-plugins/ovirt-host-common/vdsm/pki.py", line
> 319, in _misc
> '\n\nPlease input VDSM certificate chain that '
>   File "/tmp/ovirt-xP0lq4KMou/otopi-plugins/otopi/dialog/machine.py", line
> 207, in queryMultiString
> v = self._readline()
>   File "/tmp/ovirt-xP0lq4KMou/pythonlib/otopi/dialog.py", line 263, in
> _readline
> raise IOError(_('End of file'))
> IOError: End of file
> 2015-10-21 17:36:33 ERROR otopi.context context._executeMethod:165 Failed
> to execute stage 'Misc configuration': End of file
> 2015-10-21 17:36:33 DEBUG otopi.transaction transaction.abort:134 aborting
> 'Yum Transaction'
> 2015-10-21 17:36:33 INFO otopi.plugins.otopi.packagers.yumpackager
> yumpackager.info:95 Yum Performing yum transaction rollback
> Loaded plugins: fastestmirror, langpacks
>

The issue seams to be there:
we have an input request on host-deploy to have somebody explicitly
trusting the VDSM cert chain but of course, being an automated process,
nobody will respond and so it failed.
Did you manually changed the engine cert or some others CA cert?



> And in engine.log
>
> 2015-10-21 15:19:11,061 INFO  [org.ovirt.engine.core.bll.Backend]
> (ServerService Thread Pool -- 43) []
> Started task scheduler
> org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl@7160a32a
> 2015-10-21 15:19:11,321 INFO  [org.ovirt.engine.core.bll.Backend]
> (ServerService Thread Pool -- 43) []
> Started task scheduler
> org.ovirt.engine.core.utils.timer.DBSchedulerUtilQuartzImpl@55760e6a
> 2015-10-21 15:19:11,746 INFO  [org.ovirt.engine.core.bll.Backend]
> (ServerService Thread Pool -- 43) []
> Start org.ovirt.engine.core.dal.utils.CacheManager@2a4c024b
> 2015-10-21 15:19:11,957 WARN
>  [org.ovirt.engine.core.utils.ConfigUtilsBase] (ServerService Thread Pool
> -- 43) [] Could not find enum value for option: 'MigrateDowntime'
> 2015-10-21 15:19:11,957 WARN
>  [org.ovirt.engine.core.utils.ConfigUtilsBase] (ServerService Thread Pool
> -- 43) [] Could not find enum value for option: 'MigrateDowntime'
> 2015-10-21 15:19:11,957 WARN
>  [org.ovirt.engine.core.utils.ConfigUtilsBase] (ServerService Thread Pool
> -- 43) [] Could not find enum value for option: 'MigrateDowntime'
> 2015-10-21 15:19:11,958 WARN
>  [org.ovirt.engine.core.utils.ConfigUtilsBase] (ServerService Thread Pool
> -- 43) [] Could not find enum value for option: 'MigrateDowntime'
> 2015-10-21 15:19:11,958 WARN
>  [org.ovirt.engine.core.utils.ConfigUtilsBase] (ServerService Thread Pool
> -- 43) [] Could not find enum value for option: 'MigrateDowntime'
> 2015-10-21 15:19:11,958 WARN
>  [org.ovirt.engine.core.utils.ConfigUtilsBase] (ServerService Thread Pool
> -- 43) [] Could not find enum value for option: 'MigrateDowntime'
> 2015-10-21 15:19:11,964 ERROR
> [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (ServerService
> Thread Pool -- 43) [] Error parsing option 'AutoRecoveryAllowedTypes'
> value: org.codehaus.jackson.JsonParseException: Unexpected character ('\'
> (code 92)): was expecting double-quote to 

Re: [ovirt-users] Testing self hosted engine in 3.6: hostname not resolved error

2015-10-22 Thread Gianluca Cecchi
On Wed, Oct 21, 2015 at 6:15 PM, Simone Tiraboschi 
wrote:

>
> It pools engine REST API checking the host status for 10 minutes till it
> become 'up' or 'non_operational'. In your case it reached the 10 minutes
> timeout.
> Please check engine and host-deploy logs on the engine VM.
>

Ok.

One note I did't specify, if it could influence my results.

I'm working on a laptop with Fedora 21.
The CentOS 7.1 hypervisor on which I'm working is a vm of this Fedora
system, where I enabled nested virtualization.

host-deploy on engine seems empty:

[root@shengine host-deploy]# pwd
/var/log/ovirt-engine/host-deploy
[root@shengine host-deploy]# ll
total 0
[root@shengine host-deploy]#

engine.log.gz of engine found here:
https://drive.google.com/file/d/0BwoPbcrMv8mvU0tsbXhEeHc2TlE/view?usp=sharing


timestamp to check against is between 17:15 and 17:40 of yesterday


>
>>
>> Can I simply restart the hypervisor and see what happens? I remember
>> similar thinigs in all-in-one setups where initial setup failed the vdsm
>> part but then a restart was ok.
>>
>
> It's better to understood what was wrong.
>
>

I couldn't agree more with you... ;-)

Anyway yesterday I had to poweroff my laptop and so my environment and
today I power on the hypervisor again.
The engine VM automatically starts inside it and I can access the web admin
portal, but the host of course results as down.
Datacenters and Clusters are not populated; I only have the "Default".
See screenshot of portal with yesterday and today events for the host here:
https://drive.google.com/file/d/0BwoPbcrMv8mvZWJwdUhEXzJ3Wjg/view?usp=sharing

BTW: I find from the events that actually yesterday host-deploy log file is
on the host itself under /tmp
--> perhaps a better place on host?

Anyway here it is the generated file
ovirt-host-deploy-20151021172025-gbtn0q.log:
https://drive.google.com/file/d/0BwoPbcrMv8mvQnhDTWRUQnhiOUU/view?usp=sharing

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


Re: [ovirt-users] How to change the hosted engine VM RAM size after deploying

2015-10-22 Thread Simone Tiraboschi
On Thu, Oct 22, 2015 at 2:01 AM, Bond, Darryl  wrote:

> When I try to change the RAM settings I get the following in a popup box.
>
> Cannot edit virtual machine disk. This VM is not managed by the engine.
>
>
> After some fiddling it seemed to accept the memory setting even though the
> dialog was showing the error.
>
> Restarting the via hosted-engine -vm-shutdown & --startup, the Vm still
> had the old memory settings even though the engine GUI shows the new
> setting.
>
>
OK, thanks for the report.
Could you please attach HA agent logs from the host where the engine VM is
running?


>
> Darryl
>
>
>
> 
> From: Simone Tiraboschi 
> Sent: Wednesday, 21 October 2015 10:06 PM
> To: Bond, Darryl
> Cc: users@ovirt.org
> Subject: Re: [ovirt-users] How to change the hosted engine VM RAM size
> after deploying
>
>
>
> On Wed, Oct 21, 2015 at 7:10 AM, Bond, Darryl > wrote:
> ?I am testing 3.6 and created the hosted engine with too little RAM.
>
> How can I increase the RAM for the VM without re-deploying it?
>
> Please try manually importing the hosted-engine storage domain into the
> engine (it should work automatically but currently it's still non there).
> At that point the engine VM should come up into the engine and you should
> be able to edit some parameters including its memory.
> When done shutdown the engine VM. The hosted-engine HA agent will bring it
> up for you with the new configuration.
>
>
>
> Regards
>
> Darryl
>
> ?
>
>
>
> 
>
> The contents of this electronic message and any attachments are intended
> only for the addressee and may contain legally privileged, personal,
> sensitive or confidential information. If you are not the intended
> addressee, and have received this email, any transmission, distribution,
> downloading, printing or photocopying of the contents of this message or
> attachments is strictly prohibited. Any legal privilege or confidentiality
> attached to this message and attachments is not waived, lost or destroyed
> by reason of delivery to any person other than intended addressee. If you
> have received this message and are not the intended addressee you should
> notify the sender by return email and destroy all copies of the message and
> any attachments. Unless expressly attributed, the views expressed in this
> email do not necessarily represent the views of the company.
> ___
> 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] Testing self hosted engine in 3.6: hostname not resolved error

2015-10-22 Thread Simone Tiraboschi
On Thu, Oct 22, 2015 at 2:29 PM, Gianluca Cecchi 
wrote:

> On Thu, Oct 22, 2015 at 2:15 PM, Simone Tiraboschi 
> wrote:
>
>>
>>> 2015-10-21 17:36:33 DEBUG otopi.plugins.otopi.dialog.machine
>>> dialog.__logString:219 DIALOG:SEND   ### Please input VDSM certificate
>>> chain that matches certificate request, top is issuer
>>> 2015-10-21 17:36:33 DEBUG otopi.plugins.otopi.dialog.machine
>>> dialog.__logString:219 DIALOG:SEND   ###
>>> 2015-10-21 17:36:33 DEBUG otopi.plugins.otopi.dialog.machine
>>> dialog.__logString:219 DIALOG:SEND   ### type
>>> '--=451b80dc-996f-432e-9e4f-2b29ef6d1141=--' in own line to mark end,
>>> '--=451b80dc-996f-ABORT-9e4f-2b29ef6d1141=--' aborts
>>> 2015-10-21 17:36:33 DEBUG otopi.context context._executeMethod:156
>>> method exception
>>> Traceback (most recent call last):
>>>   File "/tmp/ovirt-xP0lq4KMou/pythonlib/otopi/context.py", line 146, in
>>> _executeMethod
>>> method['method']()
>>>   File
>>> "/tmp/ovirt-xP0lq4KMou/otopi-plugins/ovirt-host-common/vdsm/pki.py", line
>>> 319, in _misc
>>> '\n\nPlease input VDSM certificate chain that '
>>>   File "/tmp/ovirt-xP0lq4KMou/otopi-plugins/otopi/dialog/machine.py",
>>> line 207, in queryMultiString
>>> v = self._readline()
>>>   File "/tmp/ovirt-xP0lq4KMou/pythonlib/otopi/dialog.py", line 263, in
>>> _readline
>>> raise IOError(_('End of file'))
>>> IOError: End of file
>>> 2015-10-21 17:36:33 ERROR otopi.context context._executeMethod:165
>>> Failed to execute stage 'Misc configuration': End of file
>>> 2015-10-21 17:36:33 DEBUG otopi.transaction transaction.abort:134
>>> aborting 'Yum Transaction'
>>> 2015-10-21 17:36:33 INFO otopi.plugins.otopi.packagers.yumpackager
>>> yumpackager.info:95 Yum Performing yum transaction rollback
>>> Loaded plugins: fastestmirror, langpacks
>>>
>>
>> The issue seams to be there:
>> we have an input request on host-deploy to have somebody explicitly
>> trusting the VDSM cert chain but of course, being an automated process,
>> nobody will respond and so it failed.
>> Did you manually changed the engine cert or some others CA cert?
>>
>> No.
> The only thing is that I first ran
>   hosted-engine --deploy
> without putting the hostname of engine inside /etc/hosts of hypervisor and
> it failed (see my first mail of the thread), I think without doing anything
> (at least at engine VM level, I don't know if it created a cert...), but
> generating an answer file.
>
> And then I ran, as you suggested (with the warning you noted)
> hosted-engine --deploy --config-append=answer_file
>
> Inside log of first run
> (ovirt-hosted-engine-setup-20151021151938-j4hy5g.log) I see
>
> 2015-10-21 15:20:13 DEBUG
> otopi.plugins.ovirt_hosted_engine_setup.pki.vdsmpki plugin.execute:936
> execut
> e-output: ('/bin/openssl', 'x509', '-noout', '-text', '-in',
> '/etc/pki/vdsm/libvirt-spice/server-cert.p
> em') stdout:
> Certificate:
> Data:
> Version: 1 (0x0)
> Serial Number: 1 (0x1)
> Signature Algorithm: sha1WithRSAEncryption
> Issuer: C=EN, L=Test, O=Test, CN=TestCA
> Validity
> Not Before: Oct 21 13:20:13 2015 GMT
> Not After : Oct 20 13:20:13 2018 GMT
> Subject: C=EN, L=Test, O=Test, CN=Test
> Subject Public Key Info:
> Public Key Algorithm: rsaEncryption
> Public-Key: (1024 bit)
> Modulus:
> 00:bd:f8:d4:a0:87:9e:20:7f:71:12:8d:8e:90:e0:
> ...
>
> Inside the run with answer file
> (ovirt-hosted-engine-setup-20151021170822-p1iv3y.log) I see
> 2015-10-21 17:08:22 DEBUG
> otopi.plugins.ovirt_hosted_engine_setup.pki.vdsmpki plugin.execute:936
> execute-output: ('/bin/openssl', 'x509', '-noout', '-text', '-in',
> '/etc/pki/vdsm/libvirt-spice/server-cert.pem') stdout:
> Certificate:
> Data:
> Version: 1 (0x0)
> Serial Number: 1 (0x1)
> Signature Algorithm: sha1WithRSAEncryption
> Issuer: C=EN, L=Test, O=Test, CN=TestCA
> Validity
> Not Before: Oct 21 13:20:13 2015 GMT
> Not After : Oct 20 13:20:13 2018 GMT
> Subject: C=EN, L=Test, O=Test, CN=Test
> Subject Public Key Info:
> Public Key Algorithm: rsaEncryption
> Public-Key: (1024 bit)
> Modulus:
> 00:bd:f8:d4:a0:87:9e:20:7f:71:12:8d:8e:90:e0:
>
>
> Any particular file or section in log files to cross check?
> I can also start from scratch in case just to be sure that I don't get
> into same problem, so that it can be useful to find it before...
>
>
I suspect that that host-deploy fails cause you have in place a leftover
VDSM cert from the previous attempt which is still signed by your previous
attempt engine and so it fails to match this new engine: on the second
attempt hosted-engine-setup deployed again the engine appliance creating a
new instance with different certs.

You could try to run on the host:


Re: [ovirt-users] Failed to connect Host test-host to the Storage Domains ISO_DOMAIN.

2015-10-22 Thread Johan Vermeulen
Hello All,

indeed, I made a subnet error.
I 've now changed the ip address of the host, that took me some searching.
Now I'm working on re-doing the nfs setup.

Greetings, J.

2015-10-20 16:14 GMT+02:00 Fred Rolland :

> Hi,
>
> Also can you check the log on the host for more information ?
> The VDSM log is here:  /var/log/vdsm/vdsm.log
>
> Are you sure you can connect to nfs server from your host ? Check for
> firewall/iptables configuration maybe...
>
> Regards,
>
> Fred
>
> On Tue, Oct 20, 2015 at 5:13 PM, Simone Tiraboschi 
> wrote:
>
>>
>>
>> On Tue, Oct 20, 2015 at 4:02 PM, Johan Vermeulen 
>> wrote:
>>
>>> Hello All,
>>>
>>> following the Ovirt quick start guide, I
>>> attached a host and configured nfs-storage.
>>> Now when trying to connect the ( standard ) iso-domain I get an EM:
>>>
>>> Failed to connect Host test-host to the Storage Domains ISO_DOMAIN.
>>>
>>> Here's more output from /var/log/ovirt-engine/server.log:
>>>
>>> 2015-10-20 15:44:23,606 INFO
>>> [org.ovirt.engine.core.bll.storage.AttachStorageDomainToPoolCommand]
>>> (org.ovirt.thread.pool-8-thread-17) [7939875a] Running command:
>>> AttachStorageDomainToPoolCommand internal: false. Entities affected :  ID:
>>> 72e753c8-26f9-4541-869e-f0cec2df80ea Type: StorageAction group
>>> MANIPULATE_STORAGE_DOMAIN with role type ADMIN
>>> 2015-10-20 15:44:23,837 INFO
>>> [org.ovirt.engine.core.bll.storage.ConnectStorageToVdsCommand]
>>> (org.ovirt.thread.pool-8-thread-18) [1b86ba2c] Running command:
>>> ConnectStorageToVdsCommand internal: true. Entities affected :  ID:
>>> aaa0----123456789aaa Type: SystemAction group
>>> CREATE_STORAGE_DOMAIN with role type ADMIN
>>> 2015-10-20 15:44:23,878 INFO
>>> [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand]
>>> (org.ovirt.thread.pool-8-thread-18) [1b86ba2c] START,
>>> ConnectStorageServerVDSCommand(HostName = test-host, HostId =
>>> 1a50a745-dc86-43a4-8de5-03cb0ccac613, storagePoolId =
>>> ----, storageType = NFS, connectionList =
>>> [{ id: 89dbf1eb-ec58-41af-894e-af55157ac972, connection:
>>> linux4all.dyndns.net:/var/lib/exports/iso, iqn: null, vfsType: null,
>>> mountOptions: null, nfsVersion: null, nfsRetrans: null, nfsTimeo: null
>>> };]), log id: 3e905822
>>> 2015-10-20 15:44:29,219 ERROR
>>> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
>>> (org.ovirt.thread.pool-8-thread-18) [1b86ba2c] Correlation ID: null, Call
>>> Stack: null, Custom Event ID: -1, Message: Failed to connect Host test-host
>>> to the Storage Domains ISO_DOMAIN.
>>> 2015-10-20 15:44:29,220 INFO
>>> [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand]
>>> (org.ovirt.thread.pool-8-thread-18) [1b86ba2c] FINISH,
>>> ConnectStorageServerVDSCommand, return:
>>> {89dbf1eb-ec58-41af-894e-af55157ac972=477}, log id: 3e905822
>>> 2015-10-20 15:44:29,223 ERROR
>>> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
>>> (org.ovirt.thread.pool-8-thread-18) [1b86ba2c] Correlation ID: null, Call
>>> Stack: null, Custom Event ID: -1, Message: The error message for connection
>>> linux4all.dyndns.net:/var/lib/exports/iso returned by VDSM was: Problem
>>> while trying to mount target
>>> 2015-10-20 15:44:29,224 ERROR
>>> [org.ovirt.engine.core.bll.storage.NFSStorageHelper]
>>> (org.ovirt.thread.pool-8-thread-18) [1b86ba2c] The connection with details
>>> linux4all.dyndns.net:/var/lib/exports/iso failed because of error code
>>> 477 and error message is: problem while trying to mount target
>>> 2015-10-20 15:44:29,235 ERROR
>>> [org.ovirt.engine.core.bll.storage.ConnectStorageToVdsCommand]
>>> (org.ovirt.thread.pool-8-thread-18) [1b86ba2c] Transaction rolled-back for
>>> command: org.ovirt.engine.core.bll.storage.ConnectStorageToVdsCommand.
>>> 2015-10-20 15:44:29,238 INFO
>>> [org.ovirt.engine.core.vdsbroker.irsbroker.AttachStorageDomainVDSCommand]
>>> (org.ovirt.thread.pool-8-thread-17) [7939875a] START,
>>> AttachStorageDomainVDSCommand( storagePoolId =
>>> 0002-0002-0002-0002-0371, ignoreFailoverLimit = false,
>>> storageDomainId = 72e753c8-26f9-4541-869e-f0cec2df80ea), log id: 4c5c13f9
>>> 2015-10-20 15:44:29,715 ERROR
>>> [org.ovirt.engine.core.vdsbroker.irsbroker.AttachStorageDomainVDSCommand]
>>> (org.ovirt.thread.pool-8-thread-17) [7939875a] Failed in
>>> AttachStorageDomainVDS method
>>> 2015-10-20 15:44:29,798 ERROR
>>> [org.ovirt.engine.core.vdsbroker.irsbroker.AttachStorageDomainVDSCommand]
>>> (org.ovirt.thread.pool-8-thread-17) [7939875a] Command
>>> AttachStorageDomainVDSCommand( storagePoolId =
>>> 0002-0002-0002-0002-0371, ignoreFailoverLimit = false,
>>> storageDomainId = 72e753c8-26f9-4541-869e-f0cec2df80ea) execution failed.
>>> Exception: IrsOperationFailedNoFailoverException: IRSGenericException:
>>> IRSErrorException: Failed to AttachStorageDomainVDS, error = Storage domain
>>> does not exist: 

Re: [ovirt-users] oVirt monitoring with libirt-snmp

2015-10-22 Thread Dan Kenigsberg
On Wed, Oct 21, 2015 at 05:48:17PM +0200, Roman Mohr wrote:
> Hi Kevin,
> 
> 
> you should not change auth_unix_rw=sasl. I never used libvirt-snmp but it
> is save to create another user like this:
> 
> > saslpasswd2 -a libvirt 
> 
> I did that several times on my hosts.
> 
> 
> On Mon, Oct 19, 2015 at 4:43 PM, Kevin COUSIN 
> wrote:
> 
> > Hi list,
> >
> > Is it safe to edit /etc/libvirt/libvirtd.conf? I need to change
> > auth_unix_rw="sasl" because I want to allow libvirt-snmp to acess to VM
> > informations. Perhaps I need to create a user in sasl instead ?

Would you share your use case for libvirt-snmp?

The supposed danger is that whatever uses snmp may modify VM state under
the feet of oVirt and surprise it.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Testing self hosted engine in 3.6: hostname not resolved error

2015-10-22 Thread Gianluca Cecchi
On Thu, Oct 22, 2015 at 11:50 AM, Gianluca Cecchi  wrote:

> On Wed, Oct 21, 2015 at 6:15 PM, Simone Tiraboschi 
> wrote:
>
>>
>> It pools engine REST API checking the host status for 10 minutes till it
>> become 'up' or 'non_operational'. In your case it reached the 10 minutes
>> timeout.
>> Please check engine and host-deploy logs on the engine VM.
>>
>
> Ok.
>
>
What I see inside ovirt-host-deploy log file

 2015-10-21 17:20:26 DEBUG otopi.plugins.otopi.packagers.dnfpackager
dnfpackager._boot:178 Cannot initialize minidnf
Traceback (most recent call last):
  File
"/tmp/ovirt-xP0lq4KMou/otopi-plugins/otopi/packagers/dnfpackager.py", line
165, in _boot
constants.PackEnv.DNF_DISABLED_PLUGINS
  File
"/tmp/ovirt-xP0lq4KMou/otopi-plugins/otopi/packagers/dnfpackager.py", line
75, in _getMiniDNF
from otopi import minidnf
  File "/tmp/ovirt-xP0lq4KMou/pythonlib/otopi/minidnf.py", line 9, in

import dnf
ImportError: No module named dnf

...

2015-10-21 17:36:33 DEBUG otopi.plugins.otopi.dialog.machine
dialog.__logString:219 DIALOG:SEND   ### Please input VDSM certificate
chain that matches certificate request, top is issuer
2015-10-21 17:36:33 DEBUG otopi.plugins.otopi.dialog.machine
dialog.__logString:219 DIALOG:SEND   ###
2015-10-21 17:36:33 DEBUG otopi.plugins.otopi.dialog.machine
dialog.__logString:219 DIALOG:SEND   ### type
'--=451b80dc-996f-432e-9e4f-2b29ef6d1141=--' in own line to mark end,
'--=451b80dc-996f-ABORT-9e4f-2b29ef6d1141=--' aborts
2015-10-21 17:36:33 DEBUG otopi.context context._executeMethod:156 method
exception
Traceback (most recent call last):
  File "/tmp/ovirt-xP0lq4KMou/pythonlib/otopi/context.py", line 146, in
_executeMethod
method['method']()
  File "/tmp/ovirt-xP0lq4KMou/otopi-plugins/ovirt-host-common/vdsm/pki.py",
line 319, in _misc
'\n\nPlease input VDSM certificate chain that '
  File "/tmp/ovirt-xP0lq4KMou/otopi-plugins/otopi/dialog/machine.py", line
207, in queryMultiString
v = self._readline()
  File "/tmp/ovirt-xP0lq4KMou/pythonlib/otopi/dialog.py", line 263, in
_readline
raise IOError(_('End of file'))
IOError: End of file
2015-10-21 17:36:33 ERROR otopi.context context._executeMethod:165 Failed
to execute stage 'Misc configuration': End of file
2015-10-21 17:36:33 DEBUG otopi.transaction transaction.abort:134 aborting
'Yum Transaction'
2015-10-21 17:36:33 INFO otopi.plugins.otopi.packagers.yumpackager
yumpackager.info:95 Yum Performing yum transaction rollback
Loaded plugins: fastestmirror, langpacks

And in engine.log

2015-10-21 15:19:11,061 INFO  [org.ovirt.engine.core.bll.Backend]
(ServerService Thread Pool -- 43) []
Started task scheduler
org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl@7160a32a
2015-10-21 15:19:11,321 INFO  [org.ovirt.engine.core.bll.Backend]
(ServerService Thread Pool -- 43) []
Started task scheduler
org.ovirt.engine.core.utils.timer.DBSchedulerUtilQuartzImpl@55760e6a
2015-10-21 15:19:11,746 INFO  [org.ovirt.engine.core.bll.Backend]
(ServerService Thread Pool -- 43) []
Start org.ovirt.engine.core.dal.utils.CacheManager@2a4c024b
2015-10-21 15:19:11,957 WARN  [org.ovirt.engine.core.utils.ConfigUtilsBase]
(ServerService Thread Pool
-- 43) [] Could not find enum value for option: 'MigrateDowntime'
2015-10-21 15:19:11,957 WARN  [org.ovirt.engine.core.utils.ConfigUtilsBase]
(ServerService Thread Pool
-- 43) [] Could not find enum value for option: 'MigrateDowntime'
2015-10-21 15:19:11,957 WARN  [org.ovirt.engine.core.utils.ConfigUtilsBase]
(ServerService Thread Pool
-- 43) [] Could not find enum value for option: 'MigrateDowntime'
2015-10-21 15:19:11,958 WARN  [org.ovirt.engine.core.utils.ConfigUtilsBase]
(ServerService Thread Pool
-- 43) [] Could not find enum value for option: 'MigrateDowntime'
2015-10-21 15:19:11,958 WARN  [org.ovirt.engine.core.utils.ConfigUtilsBase]
(ServerService Thread Pool
-- 43) [] Could not find enum value for option: 'MigrateDowntime'
2015-10-21 15:19:11,958 WARN  [org.ovirt.engine.core.utils.ConfigUtilsBase]
(ServerService Thread Pool
-- 43) [] Could not find enum value for option: 'MigrateDowntime'
2015-10-21 15:19:11,964 ERROR
[org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (ServerService
Thread Pool -- 43) [] Error parsing option 'AutoRecoveryAllowedTypes'
value: org.codehaus.jackson.JsonParseException: Unexpected character ('\'
(code 92)): was expecting double-quote to start field name
 at [Source: java.io.StringReader@21b12337; line: 1, column: 3]
2015-10-21 15:19:11,969 INFO
 [org.ovirt.engine.core.utils.osinfo.OsInfoPreferencesLoader]
(ServerService Thread Pool -- 43) [] Loading file
'/etc/ovirt-engine/osinfo.conf.d/00-defaults.properties'
2015-10-21 15:19:12,322 INFO  [org.ovirt.engine.core.bll.Backend]
(ServerService Thread Pool -- 43) [] Running ovirt-engine
3.6.0.1-1.el7.centos
2015-10-21 15:19:12,322 INFO
 [org.ovirt.engine.core.bll.CpuFlagsManagerHandler] (ServerService Thread
Pool -- 43) [] Start