[Users] export domain issues with latest nightly/GIT Master

2012-11-06 Thread Dead Horse
I have noted some export domain issues with builds from the latest GIT
Master.

1) When importing a VM, the disks subtab of the VM to import will not show
the disks. Instead it shows the blinking progress squares. This is
persistent and will it will not show information on the disks to be
imported. This stopped working about 2 weeks back. Expected is to show the
disks to import as well as set provisioning type and destination storage
domain.

2) The import process does does not respect thin provisioning. Importing a
VM without checking the collapse snapshots box (there are actually no
snapshots to collapse...) results in the imported disks being imported
thickly provisioned. If the collapse snapshots box is checked thin
provisioning is respected and the disks import thin provisioned. This may
be intertwined with the prior issue.

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


Re: [Users] [Spice-devel] Unable to establish spice session

2012-11-06 Thread Alex Leonhardt

I think this post I just found is related to my issue :

http://www.mail-archive.com/users@ovirt.org/msg03010.html

at the bottom it explains how changing the "display network" can break 
spice ...


i'll try the removal of the host and re-adding (hopefully my VMs are safe!)

Alex

On 11/06/2012 11:55 PM, Alex Leonhardt wrote:

Yep, found it - and it's related to this site / update to spice here :

http://spice-space.org/page/SSLConnection

but now i get :

$ spicec -h 192.168.1.21 -s 5901
Error: failed to connect w/SSL, ssl_error 
error:0001:lib(0):func(0):reason(1)
140370158261576:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong 
version number:s3_pkt.c:338:

Warning: SSL Error:

I belive that's got something to do with trying to use ssl3 (as the ca 
cert is ssl v3) instead of ssl v2 ...


Alex


On 11/06/2012 11:42 PM, Alon Bar-Lev wrote:

- Original Message -

From: "Alex Leonhardt"
To: "Alon Levy"
Cc:spice-de...@lists.freedesktop.org,users@ovirt.org
Sent: Wednesday, November 7, 2012 1:35:09 AM
Subject: Re: [Users] [Spice-devel]  Unable to establish spice session


This is what i receive when trying to launch it manually :

$ spicec -h 192.168.1.21 -p 5901 -s 5901

Error: SSL_CTX_load_verify_locations failed
CA_file=/home/user/.spicec/spice_truststore.pem
140141786060104:error:02001002:system library:fopen:No such file or
directory:bss_file.c:126:fopen('/home/user/.spicec/spice_truststore.pem','r')
140141786060104:error:2006D080:BIO routines:BIO_new_file:no  such
file:bss_file.c:129  :
140141786060104:error:0B084002:x509 certificate
routines:X509_load_cert_crl_file:system  lib:by_file.c:279:
Warning: SSL Error:

Alex


You need --ca-file parameter.
Download the certificate usinghttp://engine/ca.crt

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


Re: [Users] [Spice-devel] Unable to establish spice session

2012-11-06 Thread Alex Leonhardt

Yep, found it - and it's related to this site / update to spice here :

http://spice-space.org/page/SSLConnection

but now i get :

$ spicec -h 192.168.1.21 -s 5901
Error: failed to connect w/SSL, ssl_error 
error:0001:lib(0):func(0):reason(1)
140370158261576:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong 
version number:s3_pkt.c:338:

Warning: SSL Error:

I belive that's got something to do with trying to use ssl3 (as the ca 
cert is ssl v3) instead of ssl v2 ...


Alex


On 11/06/2012 11:42 PM, Alon Bar-Lev wrote:


- Original Message -

From: "Alex Leonhardt"
To: "Alon Levy"
Cc: spice-de...@lists.freedesktop.org, users@ovirt.org
Sent: Wednesday, November 7, 2012 1:35:09 AM
Subject: Re: [Users] [Spice-devel]  Unable to establish spice session


This is what i receive when trying to launch it manually :

$ spicec -h 192.168.1.21 -p 5901 -s 5901

Error: SSL_CTX_load_verify_locations failed
CA_file=/home/user/.spicec/spice_truststore.pem
140141786060104:error:02001002:system library:fopen:No such file or
directory:bss_file.c:126:fopen('/home/user/.spicec/spice_truststore.pem','r')
140141786060104:error:2006D080:BIO routines:BIO_new_ file:no such
file:bss_file.c:129 :
140141786060104:error:0B084002:x509 certificate
routines:X509_load_cert_crl_ file:system lib:by_file.c:279:
Warning: SSL Error:

Alex


You need --ca-file parameter.
Download the certificate using http://engine/ca.crt

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


Re: [Users] [Spice-devel] Unable to establish spice session

2012-11-06 Thread Alon Bar-Lev


- Original Message -
> From: "Alex Leonhardt" 
> To: "Alon Levy" 
> Cc: spice-de...@lists.freedesktop.org, users@ovirt.org
> Sent: Wednesday, November 7, 2012 1:35:09 AM
> Subject: Re: [Users] [Spice-devel]  Unable to establish spice session
> 
> 
> This is what i receive when trying to launch it manually :
> 
> $ spicec -h 192.168.1.21 -p 5901 -s 5901
> 
> Error: SSL_CTX_load_verify_locations failed
> CA_file=/home/user/.spicec/spice_truststore.pem
> 140141786060104:error:02001002:system library:fopen:No such file or
> directory:bss_file.c:126:fopen('/home/user/.spicec/spice_truststore.pem','r')
> 140141786060104:error:2006D080:BIO routines:BIO_new_ file:no such
> file:bss_file.c:129 :
> 140141786060104:error:0B084002:x509 certificate
> routines:X509_load_cert_crl_ file:system lib:by_file.c:279:
> Warning: SSL Error:
> 
> Alex
> 

You need --ca-file parameter.
Download the certificate using http://engine/ca.crt

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


Re: [Users] [Spice-devel] Unable to establish spice session

2012-11-06 Thread Alex Leonhardt

This is what i receive when trying to launch it manually :

$ spicec -h 192.168.1.21 -p 5901 -s 5901

Error: SSL_CTX_load_verify_locations failed 
CA_file=/home/user/.spicec/spice_truststore.pem
140141786060104:error:02001002:system library:fopen:No such file or 
directory:bss_file.c:126:fopen('/home/user/.spicec/spice_truststore.pem','r')
140141786060104:error:2006D080:BIO routines:BIO_new_file:no such 
file:bss_file.c:129:
140141786060104:error:0B084002:x509 certificate 
routines:X509_load_cert_crl_file:system lib:by_file.c:279:

Warning: SSL Error:

Alex


On 11/05/2012 09:22 PM, Alex Leonhardt wrote:

Here it is.

BTW, thought I update to Firefox 16 with Spice XPI 2.7 (as was before) 
- but no luck either. Still getting the same issues.


Thanks
Alex


On 11/04/2012 11:44 AM, Alon Levy wrote:

On 11/02/2012 01:35 AM, Alex Leonhardt wrote:

Hi,

Since today I'm unable to establish a spice session to any/all VMs
- the
ony thing I see in the (local) logs is this :

did you make any change?


Nov  1 23:29:02 ale spice: _=/usr/bin/env
Nov  1 23:29:03 ale spice: (remote-viewer:5231):
GSpiceController-DEBUG:
controller.vala:187: new socket client, reading init header
Nov  1 23:29:05 ale spice: ** (remote-viewer:5231): DEBUG:
unimplemented
property: send-cad=FALSE
Nov  1 23:29:05 ale spice: ** (remote-viewer:5231): DEBUG:
unimplemented
property: secure-channels=((GStrv*) 0x1e83270)
Nov  1 23:29:06 ale spice: remote-viewer execution failed

Is this the full log? can you export the following environment variables and 
capture the stdout/stderr?

export G_MESSAGES_DEBUG=all
export SPICE_DEBUG=1


Anyone any idea ?

adding spice-devel
___
Spice-devel mailing list
spice-de...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

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


Re: [Users] ovirt cli - starting vm with special options

2012-11-06 Thread Alex Leonhardt

aha! sorry - found it :) .. it works now :)



On 11/06/2012 07:10 AM, Michael Pasternak wrote:

Hi Alex,

Your syntax is incorrect,

1. /action syntax is:
'action  [parent-object identifiers] [attribute 
options]'

2.  to see detailed help for this action do:
'help action vm vm2 start' or 'help action'

3. in your case /action syntax should be:
'action vm vm2 start ...'

4. also --host-identifier option is not available in this action,
please use auto-completion or /help to see available options,
for more details, see [1]

[1] http://wiki.ovirt.org/wiki/CLI

On 11/06/2012 12:46 AM, Alex Leonhardt wrote:

hi,

to make it easier for me to play with VMs, I thought of using the ovirt cli to 
start a VM whenever I want to rebuild it, however, the CLI command below keeps 
failing - any
pointers ?

action vm start --vm-os-kernel 
/var/www/html/repo/centos/6/os/x86_64/images/pxeboot/vmlinuz --vm-os-initRd 
/var/www/html/repo/centos/6/os/x86_64/images/pxeboot/initrd.img
--vm-os-boot "ks=http://172.30.0.1/ks/dev/solrm01-dev.ks ksdevice=eth0 
ip=172.30.0.249 netmask=255.255.255.0" --host-identifier vm2


alex




___
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] How to start VM without ovirt

2012-11-06 Thread EricD
Hi,

Im really concern about the ovirt-engine.
I do db & config files backup but is there a way to stop|start VM with
virsh directly in the hypervisors via CLI if the ovirt-engine ain't
working, crashed,  ?

I tried with `*virsh start `* with the '*vdsm@rhevh*' account but
didn't work. Seems like this user as restricted privileges.

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


Re: [Users] Ovirt Backup

2012-11-06 Thread Allon Mureinik
Hi Eric, 

AFAIK, backing up the database should do the trick: 
http://wiki.ovirt.org/wiki/Backup_engine_db 

- Original Message -

> From: "EricD" 
> To: users@ovirt.org
> Sent: Tuesday, November 6, 2012 2:46:32 AM
> Subject: [Users] Ovirt Backup

> Hi,

> How do you backup your ovirt-engine ? and what's the backup recovery
> procedure ?
> I'm concern about recovering my ovirt-engine if it crashed due to
> hardware issue, ...

> I need your suggestion about that.

> Regards,

> ___
> 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: [Users] Bug related to Rhevm/Ovirt auto update or refresh !!

2012-11-06 Thread Michael Pasternak

Also i'd suggest using iso-uploader utility instead of manually copying files.
(you may not copy iso to the right directory or your file has wrong permissions)

On 11/06/2012 02:11 PM, Michael Pasternak wrote:
> On 11/06/2012 11:01 AM, Romil Gupta wrote:
>>
>> Hello, 
>>
>> I upload ISO image using this script *upload.py*:
>>
>> ==
>> import os
>>
>> os.system('mkdir mount_dir')
>>
>> os.system('mount -t nfs 15.15.158.2:/iso/rhevmisonfs mount_dir')
>>
>> print 'mounted'
>> print 'start copying'
>>
>> os.system('cp -f  CentOS-6.2-x86_64-LiveDVD.iso  
>> mount_dir/e3e3b0cd-48a4-4bb8-a75b-07813f2c165e/images/----/')
>> print 'file copied'
>>
>> os.system('umount -a nfs 15.15.158.2:/iso/rhevmisonfs mount_dir')
>> print 'unmounted'
>>
>> os.system('rmdir mount_dir')
>> print 'dir removed'
>>
>> ==
>>
>> and I created a *rhevm_test.py *
>>
>> api.vms.add(params.VM(name=VM_NAME, 
>> memory=2*GB,os=params.OperatingSystem(boot=[params.Boot(dev='cdrom'), 
>> params.Boot(dev='hd')]),cluster=api.clusters.get(name='Default'),
>> template=api.templates.get('Blank')))
>> print 'VM created'
>>
>> domain=api.storagedomains.list()
>> for d in domain:
>> print ' domain name : %s ' %d.name 
>>
>> api.storagedomains.get(name='rhevmiso').update()
>>
>> rhevmiso=api.storagedomains.get(name='rhevmiso').files.list()
>> for iso  in rhevmiso:
>> print ' iso --> %s \n' % iso.name 
>> 
>> image =  api.storagedomains.get(name='rhevmiso').files.get(name=' 
>> CentOS-6.2-x86_64-LiveDVD.iso ')
>> print 'image found %s' %image
>>
>> api.vms.get(VM_NAME).cdroms.add(params.CdRom(name='cdrom',file=image))
>> print 'image added to VM'
>>
>> ==
>>
>> now i got the following exception : 
>> image found none 
>>
>> *Note* : the reason is image is copied to "rhevmiso"  storage domain but it 
>> not reflected in RHEVM user interface unless and untill I refresh it !
>> whenever listing files in api should force iso-refresh but its not working :(
>>
>> *Do we have any refresh or update function in ovirt sdk  so that after 
>> coping the image  RHEVM ISO domain will get refresh automatically ?? *
> 
> no, listing files on storagedomian should do that.
> 


-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Bug related to Rhevm/Ovirt auto update or refresh !!

2012-11-06 Thread Michael Pasternak
On 11/06/2012 11:01 AM, Romil Gupta wrote:
> 
> Hello, 
> 
> I upload ISO image using this script *upload.py*:
> 
> ==
> import os
> 
> os.system('mkdir mount_dir')
> 
> os.system('mount -t nfs 15.15.158.2:/iso/rhevmisonfs mount_dir')
> 
> print 'mounted'
> print 'start copying'
> 
> os.system('cp -f  CentOS-6.2-x86_64-LiveDVD.iso  
> mount_dir/e3e3b0cd-48a4-4bb8-a75b-07813f2c165e/images/----/')
> print 'file copied'
> 
> os.system('umount -a nfs 15.15.158.2:/iso/rhevmisonfs mount_dir')
> print 'unmounted'
> 
> os.system('rmdir mount_dir')
> print 'dir removed'
> 
> ==
> 
> and I created a *rhevm_test.py *
> 
> api.vms.add(params.VM(name=VM_NAME, 
> memory=2*GB,os=params.OperatingSystem(boot=[params.Boot(dev='cdrom'), 
> params.Boot(dev='hd')]),cluster=api.clusters.get(name='Default'),
> template=api.templates.get('Blank')))
> print 'VM created'
>
> domain=api.storagedomains.list()
> for d in domain:
> print ' domain name : %s ' %d.name 
> 
> api.storagedomains.get(name='rhevmiso').update()
> 
> rhevmiso=api.storagedomains.get(name='rhevmiso').files.list()
> for iso  in rhevmiso:
> print ' iso --> %s \n' % iso.name 
> 
> image =  api.storagedomains.get(name='rhevmiso').files.get(name=' 
> CentOS-6.2-x86_64-LiveDVD.iso ')
> print 'image found %s' %image
> 
> api.vms.get(VM_NAME).cdroms.add(params.CdRom(name='cdrom',file=image))
> print 'image added to VM'
> 
> ==
> 
> now i got the following exception : 
> image found none 
> 
> *Note* : the reason is image is copied to "rhevmiso"  storage domain but it 
> not reflected in RHEVM user interface unless and untill I refresh it !
> whenever listing files in api should force iso-refresh but its not working :(
> 
> *Do we have any refresh or update function in ovirt sdk  so that after coping 
> the image  RHEVM ISO domain will get refresh automatically ?? *

no, listing files on storagedomian should do that.

-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users