Q: Can't connect to oVirt shell

Hi ! I'm trying to connect via Bash from same machine where oVirt engine installed ovirt-shell --url=http://node00.mydomain.com/api -u admin After entering password I've got: === ERROR === [404] - Not Found What is wrong here? Thanks in advance. Andrei

This is a multi-part message in MIME format. --------------8D7A5D43ADB7998D90AB1440 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Thanks,=C2=A0 corrected URL accepted. However, I've run into SSL certificate issue: ovirt-shell -l https://node00.mydomain.com/ovirt-engine/api --cert-file /etc/pki/ovirt-engine/certs/engine.cer -u "admin@internal" =3D=3D=3D=3D ERROR =3D=3D=3D=3D server CA certificate file must be specified for SSL secured connection. certificate file exists, verified /etc/pki/ovirt-engine/certs/engine.cer without specifying SSL cert file its not possible to connect at all =3D=3D=3D=3D ERROR =3D=3D=3D=3D No response returned from server. If you're using HTTP protocol against a SSL secured server, then try using HTTPS instead. Or I should use another certificate from same directory ? Thanks. On 03/05/2018 06:46 AM, Karli Sj=C3=B6berg wrote:
Den 4 mars 2018 23:39 skrev Andrei Verovski <andreil1@starlett.lv>:
Hi !
I'm trying to connect via Bash from same machine where oVirt engine installed ovirt-shell --url=3Dhttp://node00.mydomain.com/api -u admin
Hi!
You've forgotten 'ovirt-engine' before 'api': http://node00.mydomain.com/ovirt-engine/api
/K
After entering password I've got: =3D=3D=3D ERROR =3D=3D=3D [404] - Not Found
What is wrong here? Thanks in advance. Andrei _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Hi !
I'm trying to connect via Bash from same machine where oVirt engine installed ovirt-shell --url=3Dhttp://node00.mydomain.com/api -u admin After entering password I've got: =3D=3D=3D ERROR =3D=3D=3D [404] - Not Found
What is wrong here? Thanks in advance. Andrei _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--------------8D7A5D43ADB7998D90AB1440 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf= -8"> </head> <body bgcolor=3D"#FFFFFF" text=3D"#000000"> <div class=3D"moz-cite-prefix">Hi,<br> <br> Thanks,=C2=A0 corrected URL accepted.<br> <br> However, I've run into SSL certificate issue:<br> ovirt-shell -l <a class=3D"moz-txt-link-freetext" href=3D"https://n= ode00.mydomain.com/ovirt-engine/api">https://node00.mydomain.com/ovirt-en= gine/api</a> --cert-file /etc/pki/ovirt-engine/certs/engine.cer -u "admin@internal"<br> <br> =3D=3D=3D=3D ERROR =3D=3D=3D=3D<br> server CA certificate file must be specified for SSL secured connection.<br> <br> certificate file exists, verified<br> /etc/pki/ovirt-engine/certs/engine.cer<br> <br> without specifying SSL cert file its not possible to connect at all<br> =3D=3D=3D=3D ERROR =3D=3D=3D=3D<br> No response returned from server. If you're using HTTP protocol<br> against a SSL secured server, then try using HTTPS instead.<br> <br> Or I should use another certificate from same directory ?<br> <br> Thanks.<br> <br> <br> On 03/05/2018 06:46 AM, Karli Sj=C3=B6berg wrote:<br> </div> <blockquote type=3D"cite" cite=3D"mid:f612d38d-e4fd-43b1-b147-5f6f1eee28cf@email.android.com"=
<meta name=3D"Generator" content=3D"Z-Push"> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Du= tf-8"> <span style=3D"font-size: 11pt"> <div dir=3D"auto"> <div><br> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">Den 4 mars 2018 23:39 skrev Andrei Verovski <a class=3D"moz-txt-link-rfc2396E" href=3D= "mailto:andreil1@starlett.lv"><andreil1@starlett.lv></a>:<br type=3D"attribution"> <blockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div>Hi !<br> <br> I'm trying to connect via Bash from same machine where oVirt engine<br> installed<br> ovirt-shell --url=3D<a class=3D"moz-txt-link-freetext= " href=3D"http://node00.mydomain.com/api">http://node00.mydomain.com/api<= /a> -u admin<br> </div> </blockquote> </div> </div> </div> <div dir=3D"auto"><br> </div> <div dir=3D"auto">Hi!</div> <div dir=3D"auto"><br> </div> <div dir=3D"auto">You've forgotten 'ovirt-engine' before 'api':= </div> <div dir=3D"auto"><a class=3D"moz-txt-link-freetext" href=3D"ht= tp://node00.mydomain.com/ovirt-engine/api">http://node00.mydomain.com/ovi= rt-engine/api</a></div> <div dir=3D"auto"><br> </div> <div dir=3D"auto">/K</div> <div dir=3D"auto"><br> </div> <div dir=3D"auto"> <div class=3D"gmail_extra"> <div class=3D"gmail_quote"> <blockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div>After entering password I've got:<br> =3D=3D=3D ERROR =3D=3D=3D<br> [404] - Not Found<br> <br> What is wrong here?<br> Thanks in advance.<br> Andrei<br> _______________________________________________<br> Users mailing list<br> <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:= Users@ovirt.org">Users@ovirt.org</a><br> <a class=3D"moz-txt-link-freetext" href=3D"http://lis= ts.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listi= nfo/users</a><br> </div> </blockquote> </div> <br> </div> </div> </div> </span>Hi !<br> <br> I'm trying to connect via Bash from same machine where oVirt engine<br> installed<br> ovirt-shell --url=3D<a class=3D"moz-txt-link-freetext" href=3D"http= ://node00.mydomain.com/api">http://node00.mydomain.com/api</a> -u admin<b= r> After entering password I've got:<br> =3D=3D=3D ERROR =3D=3D=3D<br> [404] - Not Found<br> <br> What is wrong here?<br> Thanks in advance.<br> Andrei<br> _______________________________________________<br> Users mailing list<br> <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:Users@ovirt.or= g">Users@ovirt.org</a><br> <a class=3D"moz-txt-link-freetext" href=3D"http://lists.ovirt.org/m= ailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a><= br> </blockquote> <p><br> </p> </body> </html> --------------8D7A5D43ADB7998D90AB1440--

You should use CA certificate if you use default one it's: /etc/pki/ovirt-engine/ca.pem You can find more information about oVirt PKI here: https://www.ovirt.org/develop/release-management/features/infra/pki/ On 03/05/2018 11:51 AM, Andrei Verovski wrote:
Hi,
Thanks, corrected URL accepted.
However, I've run into SSL certificate issue: ovirt-shell -l https://node00.mydomain.com/ovirt-engine/api --cert-file /etc/pki/ovirt-engine/certs/engine.cer -u "admin@internal"
==== ERROR ==== server CA certificate file must be specified for SSL secured connection.
certificate file exists, verified /etc/pki/ovirt-engine/certs/engine.cer
without specifying SSL cert file its not possible to connect at all ==== ERROR ==== No response returned from server. If you're using HTTP protocol against a SSL secured server, then try using HTTPS instead.
Or I should use another certificate from same directory ?
Thanks.
On 03/05/2018 06:46 AM, Karli Sjöberg wrote:
Den 4 mars 2018 23:39 skrev Andrei Verovski <andreil1@starlett.lv>:
Hi !
I'm trying to connect via Bash from same machine where oVirt engine installed ovirt-shell --url=http://node00.mydomain.com/api -u admin
Hi!
You've forgotten 'ovirt-engine' before 'api': http://node00.mydomain.com/ovirt-engine/api
/K
After entering password I've got: === ERROR === [404] - Not Found
What is wrong here? Thanks in advance. Andrei _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Hi !
I'm trying to connect via Bash from same machine where oVirt engine installed ovirt-shell --url=http://node00.mydomain.com/api -u admin After entering password I've got: === ERROR === [404] - Not Found
What is wrong here? Thanks in advance. Andrei _______________________________________________ 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

On 03/05/2018 12:58 PM, Ondra Machacek wrote:
You should use CA certificate if you use default one it's:
/etc/pki/ovirt-engine/ca.pem
Executed as root ovirt-shell -l https://node00.mydomain.com/ovirt-engine/api --cert-file /etc/pki/ovirt-engine/ca.pem -u "admin@internal" === ERROR === server CA certificate file must be specified for SSL secured connection. ca.pem exists in specified location.
You can find more information about oVirt PKI here:
https://www.ovirt.org/develop/release-management/features/infra/pki/
On 03/05/2018 11:51 AM, Andrei Verovski wrote:
Hi,
Thanks, corrected URL accepted.
However, I've run into SSL certificate issue: ovirt-shell -l https://node00.mydomain.com/ovirt-engine/api --cert-file /etc/pki/ovirt-engine/certs/engine.cer -u "admin@internal"
==== ERROR ==== server CA certificate file must be specified for SSL secured connection.
certificate file exists, verified /etc/pki/ovirt-engine/certs/engine.cer
without specifying SSL cert file its not possible to connect at all ==== ERROR ==== No response returned from server. If you're using HTTP protocol against a SSL secured server, then try using HTTPS instead.
Or I should use another certificate from same directory ?
Thanks.
On 03/05/2018 06:46 AM, Karli Sjöberg wrote:
Den 4 mars 2018 23:39 skrev Andrei Verovski <andreil1@starlett.lv>:
Hi !
I'm trying to connect via Bash from same machine where oVirt engine installed ovirt-shell --url=http://node00.mydomain.com/api -u admin
Hi!
You've forgotten 'ovirt-engine' before 'api': http://node00.mydomain.com/ovirt-engine/api
/K
After entering password I've got: === ERROR === [404] - Not Found
What is wrong here? Thanks in advance. Andrei _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Hi !
I'm trying to connect via Bash from same machine where oVirt engine installed ovirt-shell --url=http://node00.mydomain.com/api -u admin After entering password I've got: === ERROR === [404] - Not Found
What is wrong here? Thanks in advance. Andrei _______________________________________________ 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

On 03/05/2018 01:28 PM, Andrei Verovski wrote:
On 03/05/2018 12:58 PM, Ondra Machacek wrote:
You should use CA certificate if you use default one it's:
/etc/pki/ovirt-engine/ca.pem
Executed as root ovirt-shell -l https://node00.mydomain.com/ovirt-engine/api --cert-file /etc/pki/ovirt-engine/ca.pem -u "admin@internal"
Right, there should be '--ca-file /etc/pki/ovirt-engine/ca.pem', not --cert-file /etc/pki/ovirt-engine/ca.pem
=== ERROR === server CA certificate file must be specified for SSL secured connection.
ca.pem exists in specified location.
You can find more information about oVirt PKI here:
https://www.ovirt.org/develop/release-management/features/infra/pki/
On 03/05/2018 11:51 AM, Andrei Verovski wrote:
Hi,
Thanks, corrected URL accepted.
However, I've run into SSL certificate issue: ovirt-shell -l https://node00.mydomain.com/ovirt-engine/api --cert-file /etc/pki/ovirt-engine/certs/engine.cer -u "admin@internal"
==== ERROR ==== server CA certificate file must be specified for SSL secured connection.
certificate file exists, verified /etc/pki/ovirt-engine/certs/engine.cer
without specifying SSL cert file its not possible to connect at all ==== ERROR ==== No response returned from server. If you're using HTTP protocol against a SSL secured server, then try using HTTPS instead.
Or I should use another certificate from same directory ?
Thanks.
On 03/05/2018 06:46 AM, Karli Sjöberg wrote:
Den 4 mars 2018 23:39 skrev Andrei Verovski <andreil1@starlett.lv>:
Hi !
I'm trying to connect via Bash from same machine where oVirt engine installed ovirt-shell --url=http://node00.mydomain.com/api -u admin
Hi!
You've forgotten 'ovirt-engine' before 'api': http://node00.mydomain.com/ovirt-engine/api
/K
After entering password I've got: === ERROR === [404] - Not Found
What is wrong here? Thanks in advance. Andrei _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Hi !
I'm trying to connect via Bash from same machine where oVirt engine installed ovirt-shell --url=http://node00.mydomain.com/api -u admin After entering password I've got: === ERROR === [404] - Not Found
What is wrong here? Thanks in advance. Andrei _______________________________________________ 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
participants (3)
-
Andrei Verovski
-
Karli Sjöberg
-
Ondra Machacek