Re: [ovirt-users] Getting SPICE connection parameters with Python-SDK

2016-06-05 Thread Fabrice Bacchella

> Le 5 juin 2016 à 12:37, nico...@devels.es a écrit :
> 
> Hi,
> 
> On user portal, when users click on the "Connect" link of a VM that is 
> configured to be run with "Native client" and SPICE protocol, a .vv file is 
> generated with the connection parameters so the SPICE client knows where to 
> connect: host, port, password, ...
> 
> Currently, is there a way to generate those parameters with the Python SDK? 
> Especially the session password so it's possible to connect to the VM 
> directly with a SPICE client.

You can have a look at my example :

https://github.com/fbacchella/ovirtcmd/blob/master/ovlib/vms/__init__.py#L45

It does not generate a full vv file, but an usable URL any way.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Documentation: Helper Utilities missing references

2016-06-05 Thread gregor
Thanks for the link. I tried to clean up with taskcleaner without any
luck but "engine-setup --offline" removes the tasks and unlocks my VM.

cheers
gregor

On 05/06/16 09:08, Yedidyah Bar David wrote:
> On Sat, Jun 4, 2016 at 1:02 PM, gregor  wrote:
>> Hi,
>>
>> I found the article to some "Helper Utilities" on the ovirt page [1] but
>> I can't find the mentioned helpers fkvalidaor.sh, taskcleaner.sh and
>> unlock_entity.sh.
>>
>> Does anybody where these are? Especially I need the taskcleaner.sh
>> because a task is stuck since many days.
> 
> Should be in /usr/share/ovirt-engine/setup/dbutils/ .
> 
> taskcleaner is normally ran also by engine-setup.
> 
> You can run 'engine-setup --offline' to prevent it from upgrading
> and still do its normal stuff.
> 
> Best,
> 
>>
>> cheers
>> gregor
>>
>> [1] https://www.ovirt.org/develop/developer-guide/db-issues/helperutilities/
>> ___
>> 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] Getting SPICE connection parameters with Python-SDK

2016-06-05 Thread Michal Skrivanek

> On 05 Jun 2016, at 12:37, nico...@devels.es wrote:
> 
> Hi,
> 
> On user portal, when users click on the "Connect" link of a VM that is 
> configured to be run with "Native client" and SPICE protocol, a .vv file is 
> generated with the connection parameters so the SPICE client knows where to 
> connect: host, port, password, ...
> 
> Currently, is there a way to generate those parameters with the Python SDK? 
> Especially the session password so it's possible to connect to the VM 
> directly with a SPICE client.

Yes, you can either get either only the password/ticket or the whole vv file, 
which was introduced by https://bugzilla.redhat.com/show_bug.cgi?id=1128763

Thanks,
michal

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

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


[ovirt-users] Getting SPICE connection parameters with Python-SDK

2016-06-05 Thread nicolas

Hi,

On user portal, when users click on the "Connect" link of a VM that is 
configured to be run with "Native client" and SPICE protocol, a .vv file 
is generated with the connection parameters so the SPICE client knows 
where to connect: host, port, password, ...


Currently, is there a way to generate those parameters with the Python 
SDK? Especially the session password so it's possible to connect to the 
VM directly with a SPICE client.


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