[Users] ovirt-shell failes to connect

Starting ovirt-shell failes to connect: ovirt-shell -c -l localhost:8080/api -u admin -p xxxx -c error: 'NoneType' object has no attribute 'rfind' ++++++++++++++++++++++++++++++++++++++++++ Welcome to oVirt shell ++++++++++++++++++++++++++++++++++++++++++ rpm -qi ovirt-engine-cli Name : ovirt-engine-cli Version : 2.0 Release : 2.fc16 Architecture: noarch Install Date: Tue 28 Feb 2012 12:33:23 PM CET Group : Development/Libraries Size : 639525 License : ASL 2.0 Signature : (none) Source RPM : ovirt-engine-cli-2.0-2.fc16.src.rpm Build Date : Sun 19 Feb 2012 02:04:05 PM CET Build Host : nott16.eng.lab.tlv.redhat.com Relocations : (not relocatable) URL : http://ovirt.org Summary : oVirt Engine Command Line Interface Description : The command line interface for oVirt-Engine. Anyone?

On 02/28/2012 01:40 PM, wdh@dds.nl wrote:
Starting ovirt-shell failes to connect:
ovirt-shell -c -l localhost:8080/api -u admin -p xxxx -c
error: 'NoneType' object has no attribute 'rfind'
++++++++++++++++++++++++++++++++++++++++++ Welcome to oVirt shell ++++++++++++++++++++++++++++++++++++++++++
rpm -qi ovirt-engine-cli Name : ovirt-engine-cli Version : 2.0 Release : 2.fc16 Architecture: noarch Install Date: Tue 28 Feb 2012 12:33:23 PM CET Group : Development/Libraries Size : 639525 License : ASL 2.0 Signature : (none) Source RPM : ovirt-engine-cli-2.0-2.fc16.src.rpm Build Date : Sun 19 Feb 2012 02:04:05 PM CET Build Host : nott16.eng.lab.tlv.redhat.com Relocations : (not relocatable) URL : http://ovirt.org Summary : oVirt Engine Command Line Interface Description : The command line interface for oVirt-Engine.
Anyone?
michael?

i just closed bug reporting similar issue, i was not able to reproduce it, can you please try ovirt-engine-cli-2.0-3 On 02/28/2012 01:40 PM, wdh@dds.nl wrote:
Starting ovirt-shell failes to connect:
ovirt-shell -c -l localhost:8080/api -u admin -p xxxx -c
error: 'NoneType' object has no attribute 'rfind'
++++++++++++++++++++++++++++++++++++++++++ Welcome to oVirt shell ++++++++++++++++++++++++++++++++++++++++++
rpm -qi ovirt-engine-cli Name : ovirt-engine-cli Version : 2.0 Release : 2.fc16 Architecture: noarch Install Date: Tue 28 Feb 2012 12:33:23 PM CET Group : Development/Libraries Size : 639525 License : ASL 2.0 Signature : (none) Source RPM : ovirt-engine-cli-2.0-2.fc16.src.rpm Build Date : Sun 19 Feb 2012 02:04:05 PM CET Build Host : nott16.eng.lab.tlv.redhat.com Relocations : (not relocatable) URL : http://ovirt.org Summary : oVirt Engine Command Line Interface Description : The command line interface for oVirt-Engine.
Anyone?
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Michael Pasternak RedHat, ENG-Virtualization R&D

okay, i can see it now, the reason for that is lack of protocol in your URL: it has to be http(s)://localhost:8080/api also i suggest you trying ovirt-engine-cli-2.0-3 anyway as it have few cool features (attached - in case it yet not available at release/nightly repos) On 02/28/2012 03:26 PM, Michael Pasternak wrote:
i just closed bug reporting similar issue, i was not able to reproduce it, can you please try ovirt-engine-cli-2.0-3
On 02/28/2012 01:40 PM, wdh@dds.nl wrote:
Starting ovirt-shell failes to connect:
ovirt-shell -c -l localhost:8080/api -u admin -p xxxx -c
error: 'NoneType' object has no attribute 'rfind'
++++++++++++++++++++++++++++++++++++++++++ Welcome to oVirt shell ++++++++++++++++++++++++++++++++++++++++++
rpm -qi ovirt-engine-cli Name : ovirt-engine-cli Version : 2.0 Release : 2.fc16 Architecture: noarch Install Date: Tue 28 Feb 2012 12:33:23 PM CET Group : Development/Libraries Size : 639525 License : ASL 2.0 Signature : (none) Source RPM : ovirt-engine-cli-2.0-2.fc16.src.rpm Build Date : Sun 19 Feb 2012 02:04:05 PM CET Build Host : nott16.eng.lab.tlv.redhat.com Relocations : (not relocatable) URL : http://ovirt.org Summary : oVirt Engine Command Line Interface Description : The command line interface for oVirt-Engine.
Anyone?
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Michael Pasternak RedHat, ENG-Virtualization R&D

Problem solved; use the correct URL, domain and double \\....: ovirt-shell -u internal\\admin -p xxxxxxx -l http://localhost:8080/api -c ========================================== >>> connected to oVirt manager 3.0.0.0 <<< ========================================== ++++++++++++++++++++++++++++++++++++++++++ Welcome to oVirt shell ++++++++++++++++++++++++++++++++++++++++++ Winfried Michael Pasternak <mpastern@redhat.com> schreef:
okay, i can see it now, the reason for that is lack of protocol in your URL: it has to be http(s)://localhost:8080/api
also i suggest you trying ovirt-engine-cli-2.0-3 anyway as it have few cool features (attached - in case it yet not available at release/nightly repos)
On 02/28/2012 03:26 PM, Michael Pasternak wrote: > i just closed bug reporting similar issue,
i was not able to reproduce it, can you please try ovirt-engine-cli-2.0-3
On 02/28/2012 01:40 PM, wdh@dds.nl wrote: > Starting ovirt-shell failes to connect:
ovirt-shell -c -l localhost:8080/api -u admin -p xxxx -c
error: 'NoneType' object has no attribute 'rfind'
++++++++++++++++++++++++++++++++++++++++++ Welcome to oVirt shell ++++++++++++++++++++++++++++++++++++++++++
rpm -qi ovirt-engine-cli Name : ovirt-engine-cli Version : 2.0 Release : 2.fc16 Architecture: noarch Install Date: Tue 28 Feb 2012 12:33:23 PM CET Group : Development/Libraries Size : 639525 License : ASL 2.0 Signature : (none) Source RPM : ovirt-engine-cli-2.0-2.fc16.src.rpm Build Date : Sun 19 Feb 2012 02:04:05 PM CET Build Host : nott16.eng.lab.tlv.redhat.com Relocations : (not relocatable) URL : http://ovirt.org Summary : oVirt Engine Command Line Interface Description : The command line interface for oVirt-Engine.
Anyone?
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--
Michael PasternakRedHat, ENG-Virtualization R&D
Met vriendelijke groet, Winfried de Heiden

Winfried, i see that your backend version is 3.0, the thing is that all arguments in CLI indirectly learned from the RSDL (via ovirt-engine-sdk), so parameters construction may not work properly on 3.0 as ovirt-engine-sdk build against latest oVirt engine, also to enjoy new features such as auto-completion and many other benefits of new CLI, API (i.e oVirt engine) should be latest/greatest. On 02/28/2012 04:36 PM, Winfried de Heiden wrote:
Problem solved; use the correct URL, domain and double \\....:
ovirt-shell -u internal\\admin -p xxxxxxx -l http://localhost:8080/api -c
==========================================
connected to oVirt manager 3.0.0.0 <<< ==========================================
++++++++++++++++++++++++++++++++++++++++++
Welcome to oVirt shell
++++++++++++++++++++++++++++++++++++++++++
Winfried
-- Michael Pasternak RedHat, ENG-Virtualization R&D

Hi, I would like to try. However: it is nog available at http://ovirt.org/releases/nightly/fedora/16/ Version 2..0-2 is the most recent. Winfried Michael Pasternak <mpastern@redhat.com> schreef:
i just closed bug reporting similar issue, i was not able to reproduce it, can you please try ovirt-engine-cli-2.0-3
On 02/28/2012 01:40 PM, wdh@dds.nl wrote: > Starting ovirt-shell failes to connect:
ovirt-shell -c -l localhost:8080/api -u admin -p xxxx -c
error: 'NoneType' object has no attribute 'rfind'
++++++++++++++++++++++++++++++++++++++++++ Welcome to oVirt shell ++++++++++++++++++++++++++++++++++++++++++
rpm -qi ovirt-engine-cli Name : ovirt-engine-cli Version : 2.0 Release : 2.fc16 Architecture: noarch Install Date: Tue 28 Feb 2012 12:33:23 PM CET Group : Development/Libraries Size : 639525 License : ASL 2.0 Signature : (none) Source RPM : ovirt-engine-cli-2.0-2.fc16.src.rpm Build Date : Sun 19 Feb 2012 02:04:05 PM CET Build Host : nott16.eng.lab.tlv.redhat.com Relocations : (not relocatable) URL : http://ovirt.org Summary : oVirt Engine Command Line Interface Description : The command line interface for oVirt-Engine.
Anyone?
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--
Michael PasternakRedHat, ENG-Virtualization R&D
participants (4)
-
Itamar Heim
-
Michael Pasternak
-
wdh@dds.nl
-
Winfried de Heiden