[Engine-devel] Added support for POSIX and GNU long parameters to engine-manage-domains
by Martin Perina
Hi,
I've created a patch that adds support for POSIX and GNU long paramaters.
Patch is using argparse4j library (argparse4j.sourceforge.net), which suites
our needs in my opinion better than other libraries I've tested (JCommander,
commons-cli, args4j).
Patch includes these changes:
1) "-action" parameter has been removed, each action is specified
directly, for example "engine-manage-domains list"
2) "-interactive" parameter has been removed, if "--passwordFile"
parameter is not specified, then the password will be read
interactively
3) "-addPermissions" parameter has been rename to "--superuser" with
"-s" short version
4) Each parameter has POSIX variant ("-p PROVIDER") and corresponding
GNU long variant ("--provider=PROVIDER")
5) Commands and parameters names can be abbreviated as long as
the abbreviation is unambiguous (for example "list" command can be
specified like "engine-manage-domains l")
So for example command to create a domain now may look like this:
engine-manage-domains add -d xyz.com -p IPA -u admin
engine-manage-domains add --domain=xyz.com --provider=IPA --user=admin
engine-manage-domains a -d xyz.com -p ipa --user=admin
All variants do the same.
If you're interested, please review the patch:
http://gerrit.ovirt.org/#/c/13776/
Regards
Martin Perina
11 years, 7 months
[Engine-devel] compilation stuck on RemoveSnapshotCommandTest?
by Einav Cohen
Hi,
When trying to compile oVirt (with tests - see [1]), my compilation seems to get stuck on
RemoveSnapshotCommandTest (see [2] for test file full path, [3] for output).
When eliminating this test (e.g. I removed [2] locally from my file-system), compilation
(including tests) is completed successfully.
Anyone else encountered this problem / any idea what the problem might be?
----
Thanks,
Einav
[1] performed the following on the latest upstream:
mvn clean
mvn install -Pgwt-user,gwt-admin,all-langs -Dgwt.userAgent=gecko1_8
[2] ../backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/RemoveSnapshotCommandTest.java
[3] last lines in compilation output:
...
[INFO] ------------------------------------------------------------------------
[INFO] Building Backend Logic @Service bean 3.3.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
...
Running org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest
Tests run: 56, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.74 sec
Running org.ovirt.engine.core.bll.network.cluster.GetAllNetworksByClusterIdQueryTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 sec
Running org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommandTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
Running org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running org.ovirt.engine.core.bll.network.cluster.GetVdsGroupsAndNetworksByNetworkIdQueryTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 sec
Running org.ovirt.engine.core.bll.network.vm.GetVmInterfacesByVmIdQueryTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.042 sec
Running org.ovirt.engine.core.bll.network.vm.GetVmsAndNetworkInterfacesByNetworkIdQueryTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.056 sec
Running org.ovirt.engine.core.bll.network.VmInterfaceManagerTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.321 sec
Running org.ovirt.engine.core.bll.network.template.GetTemplateInterfacesByTemplateIdQueryTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
Running org.ovirt.engine.core.bll.network.template.GetVmTemplatesAndNetworkInterfacesByNetworkIdQueryTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec
Running org.ovirt.engine.core.bll.GetCommandsCompatibilityVersionsQueryTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.09 sec
Running org.ovirt.engine.core.bll.GetClustersWithPermittedActionQueryTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec
Running org.ovirt.engine.core.bll.RemoveSnapshotCommandTest
[no more output after this point; waited ~20 minutes in this state before hitting "Ctrl+C"]
11 years, 7 months
[Engine-devel] Java 7, revisited again
by Allon Mureinik
Hola,
A couple of weeks (months?) ago we discussed upgrading to Java 7.[1]
Generally, there was a positive vibe about moving forward with technology,
although we noted that this should not be done for common, compat and the GWT modules,
under the limitation of the current GWT version we're using.
Here's an initial suggestion for this upgrade:
http://gerrit.ovirt.org/#/c/13519/
Areas handled and checked:
1. compilation (including GWT compilation)[2]
2. animal-sniffer validations for to makes sure that modules that aren't supposed to use JDK7 features really don't[2]
3. Running and making sure the UI still works :-)
(checkstyle issues which Laslo pointed out in the original discussion were already solved in a different patch merged long ago)
Sincerely,
Allon and Alissa
[1] http://lists.ovirt.org/pipermail/engine-devel/2012-December/003139.html
[2] This includes, of course, purposely introducing Java 7 syntax and JDK 7 features to modules that aren't supposed to have them,
and making sure that the build fails early, as expected, without having to add the -Pgwt-admin or -Pgwt-user profiles.
11 years, 7 months
[Engine-devel] RFC: is it possible to configure hosts in cluster to be NTP peers
by David Jaša
Hi,
ovirt still doesn't configure NTP on host installation and relies on
administrator not forgetting to set it up correctly, mainly because it
is quite hard to configure it correctly automatically.
There is one thing IMO that could be configured automatically and that
could alleviate situation somewhat: make hosts in the cluster NTP peers
so that when clocks go wrong in the cluster for any reason, the error is
the same on all hosts in the cluster.
The files could be stored in /etc/{ntp,chrony}/vdsm.conf for instance
and referenced with includefile or include ..." in /etc/ntp.conf
or /etc/chrony.conf respectively.
What seems tricky though is that non-Up hosts should be excluded from
peer list because there are higher chances that their clocks are not
configured properly, so engine (or some host?) should trigger changes to
NTP configuration pretty frequently.
What do you think about these issues? I don't want to report bugs/RFEs
on topic before I'll see your reply.
David
--
David Jaša, RHCE
SPICE QE based in Brno
GPG Key: 22C33E24
Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24
11 years, 7 months
Re: [Engine-devel] 答复: about ca-file
by Alon Bar-Lev
Please reply to list...
You should put ca.crt at /home/leaboy/.spicec/spice_truststore.pem or specify --ca-file ca.crt at spicec command-line.
Alon
----- Original Message -----
> From: "leaboy@126" <wlbleaboy(a)126.com>
> To: "Alon Bar-Lev" <alonbl(a)redhat.com>
> Sent: Monday, April 8, 2013 2:55:00 PM
> Subject: 答复: [Engine-devel] about ca-file
>
> Thinks! Question 1 is resolved.
> But, when I connected, I must assigned the --ca-file
> /home/leaboy/overt_ca/ca.crt.
> How can I connect just use --url --user --password without assigned
> --ca-file, I mean
> which directory I put the ca.crt
>
> in Question 2, when I connect vm use spicec directly , how can spicec to find
> the ca.crt
>
> Leaboy Beijing
> Thinks to abarlev
>
> -----邮件原件-----
> 发件人: abarlev(a)redhat.com [mailto:abarlev@redhat.com] 代表 Alon Bar-Lev
> 发送时间: 2013年4月8日 19:01
> 收件人: leaboy@126
> 抄送: engine-devel(a)ovirt.org
> 主题: Re: [Engine-devel] about ca-file
>
>
> $ wget -o ca-cert.pem http://192.168.1.181/ca.crt
>
> ----- Original Message -----
> > From: "leaboy@126" <wlbleaboy(a)126.com>
> > To: engine-devel(a)ovirt.org
> > Sent: Monday, April 8, 2013 1:09:03 PM
> > Subject: [Engine-devel] about ca-file
> >
> >
> >
> > Question 1:
> >
> > Hi,all:
> >
> > I’m in troubling with ca-file, who can tell me which the direction assigned
> > to CA_FILE
> >
> > On the webpage
> > http://www.ovirt.org/How_to_Connect_to_SPICE_Console_Without_Portal
> >
> > saided from the web: wget -O ${CA_FILE} http://${OVIRT}/ca.crt
> >
> > When I use overt-shell, I get ca.pem like this :
> >
> >
> >
> > [leaboy@Leaboy ovirt_ca]$ pwd
> >
> > /home/leaboy/ovirt_ca
> >
> > [leaboy@Leaboy ovirt_ca]$ wget -o ca-cert.pem http://192.168.1.181/ca.pem
> >
> > [leaboy@Leaboy ovirt_ca]$ ls
> >
> > ca-cert.pem
> >
> > [leaboy@Leaboy ovirt_ca]$
> >
> >
> >
> > And then, I launched overt-shell and connect to overt-engine like this:
> >
> >
> >
> > ++++++++++++++++++++++++++++++++++++++++++
> >
> >
> >
> > Welcome to oVirt shell
> >
> >
> >
> > ++++++++++++++++++++++++++++++++++++++++++
> >
> >
> >
> >
> >
> > [oVirt shell (disconnected)]# connect --url https://192.168.1.181 --user
> > admin@internal --password 111111 --ca-file
> > /home/leaboy/ovirt_ca/ca_cear.pem
> >
> >
> >
> >
> >
> > error: [ERROR]::oVirt API connection failure, [Errno 185090050] _ssl.c:340:
> > error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
> >
> >
> >
> >
> >
> > [oVirt shell (disconnected)]#
> >
> >
> >
> > Questioin 2:
> >
> > When I connect the vm use spicec , get a error message like this:
> >
> > leaboy@leaboy:~/.spicec$ spicec -h 192.168.1.219 -p 5900 -s 5901
> >
> > Error: SSL_CTX_load_verify_locations failed
> > CA_file=/home/leaboy/.spicec/spice_truststore.pem
> >
> > Warning: SSL Error:
> >
> > leaboy@leaboy:~/.spicec$
> >
> > _______________________________________________
> > Engine-devel mailing list
> > Engine-devel(a)ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/engine-devel
> >
>
>
>
11 years, 7 months
[Engine-devel] about ca-file
by leaboy@126
ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£
------=_NextPart_000_0011_01CE3484.27DE98B0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Question 1:
Hi,all:
I'm in troubling with ca-file, who can tell me which the direction
assigned to CA_FILE
On the webpage
http://www.ovirt.org/How_to_Connect_to_SPICE_Console_Without_Portal
saided from the web: wget -O ${CA_FILE} <http://%24%7Bovirt%7D/ca.crt>
http://${OVIRT}/ca.crt
When I use overt-shell, I get ca.pem like this :
[leaboy@Leaboy ovirt_ca]$ pwd
/home/leaboy/ovirt_ca
[leaboy@Leaboy ovirt_ca]$ wget -o ca-cert.pem http://192.168.1.181/ca.pem
[leaboy@Leaboy ovirt_ca]$ ls
ca-cert.pem
[leaboy@Leaboy ovirt_ca]$
And then, I launched overt-shell and connect to overt-engine like this:
++++++++++++++++++++++++++++++++++++++++++
Welcome to oVirt shell
++++++++++++++++++++++++++++++++++++++++++
[oVirt shell (disconnected)]# connect --url https://192.168.1.181 --user
admin@internal --password 111111 --ca-file /home/leaboy/ovirt_ca/ca_cear.pem
error: [ERROR]::oVirt API connection failure, [Errno 185090050] _ssl.c:340:
error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
[oVirt shell (disconnected)]#
Questioin 2:
When I connect the vm use spicec , get a error message like this:
leaboy@leaboy:~/.spicec$ spicec -h 192.168.1.219 -p 5900 -s 5901
Error: SSL_CTX_load_verify_locations failed
CA_file=/home/leaboy/.spicec/spice_truststore.pem
Warning: SSL Error:
leaboy@leaboy:~/.spicec$
------=_NextPart_000_0011_01CE3484.27DE98B0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:\5B8B\4F53;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"\@\5B8B\4F53";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:\5B8B\4F53;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DZH-CN link=3Dblue vlink=3Dpurple =
style=3D'text-justify-trim:punctuation'>
<div class=3DSection1>
<p class=3DMsoNormal><span lang=3DEN-US>Question =
1:<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Hi,all:<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US>
I’m in troubling with ca-file, who can tell me which the direction =
assigned to </span><span
lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Consolas;color:#DD1144;
background:#F7F7F9'> CA_FILE </span><span =
lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>On the webpage <a
href=3D"http://www.ovirt.org/How_to_Connect_to_SPICE_Console_Without_Port=
al">http://www.ovirt.org/How_to_Connect_to_SPICE_Console_Without_Portal</=
a>
<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>saided </span><span =
lang=3DEN-US
style=3D'font-family:"Arial","sans-serif";color:#2E3436;background:white'=
>from
the web:<span =
class=3Dapple-converted-space> </span></span><code><span
lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Consolas;color:#DD1144;
border:solid #E1E1E8 1.0pt;padding:2.0pt;background:#F7F7F9'>wget -O =
${CA_FILE}</span></code><span
class=3Dapple-converted-space><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:
Consolas;color:#DD1144;border:solid #E1E1E8 =
1.0pt;padding:2.0pt;background:
#F7F7F9'> </span></span><code><span lang=3DEN-US =
style=3D'font-size:9.0pt;
font-family:Consolas;color:#DD1144;border:solid #E1E1E8 =
1.0pt;padding:2.0pt;
background:#F7F7F9'><a href=3D"http://%24%7Bovirt%7D/ca.crt"><b><span
style=3D'color:#4E9A06'>http://${OVIRT}/ca.crt</span></b></a></span></cod=
e><span
lang=3DEN-US><o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>When I use overt-shell, I get =
ca.pem like
this :<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US>
[leaboy@Leaboy ovirt_ca]$ pwd<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>/home/leaboy/ovirt_ca<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[leaboy@Leaboy ovirt_ca]$ wget -o ca-cert.pem <a
href=3D"http://192.168.1.181/ca.pem">http://192.168.1.181/ca.pem</a><o:p>=
</o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[leaboy@Leaboy ovirt_ca]$ ls<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>ca-cert.pem<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[leaboy@Leaboy ovirt_ca]$<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>And then, I launched overt-shell =
and
connect to overt-engine like this:<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US>
++++++++++++++++++++++++++++++++++++++++++<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> =
Welcome
to oVirt shell<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> ++++++++++++++++++++++++++++++++++++++++++<o:p></o:p><=
/span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> =
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[oVirt shell (disconnected)]# <b>connect --url <a
href=3D"https://192.168.1.181">https://192.168.1.181</a> --user =
admin@internal
--password 111111 --ca-file =
/home/leaboy/ovirt_ca/ca_cear.pem</b><o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>error: [ERROR]::oVirt API connection failure, [Errno =
185090050]
_ssl.c:340: error:0B084002:x509 certificate =
routines:X509_load_cert_crl_file:system
lib<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[oVirt shell (disconnected)]#<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Questioin =
2:<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>When I connect the vm use spicec =
, get a
error message like this:<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>leaboy@leaboy:~/.spicec$<b> spicec -h 192.168.1.219 -p 5900 =
-s 5901</b><o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>Error: SSL_CTX_load_verify_locations failed
CA_file=3D/home/leaboy/.spicec/spice_truststore.pem<o:p></o:p></span></p>=
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>Warning: SSL Error:<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>leaboy@leaboy:~/.spicec$<o:p></o:p></span></p>
</div>
</body>
</html>
------=_NextPart_000_0011_01CE3484.27DE98B0--
11 years, 7 months
[Engine-devel] about ca-file
by wanglibo
ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£
------=_NextPart_000_000C_01CE3483.4438DB20
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi,all:
I'm in troubling with ca-file, who can tell me which the direction
assigned to CA_FILE
On the webpage
http://www.ovirt.org/How_to_Connect_to_SPICE_Console_Without_Portal
saided from the web: wget -O ${CA_FILE} <http://%24%7Bovirt%7D/ca.crt>
http://${OVIRT}/ca.crt
When I use overt-shell, I get ca.pem like this :
[leaboy@Leaboy ovirt_ca]$ pwd
/home/leaboy/ovirt_ca
[leaboy@Leaboy ovirt_ca]$ wget -o ca-cert.pem http://192.168.1.181/ca.pem
[leaboy@Leaboy ovirt_ca]$ ls
ca-cert.pem
[leaboy@Leaboy ovirt_ca]$
And then, I launched overt-shell and connect to overt-engine like this:
++++++++++++++++++++++++++++++++++++++++++
Welcome to oVirt shell
++++++++++++++++++++++++++++++++++++++++++
[oVirt shell (disconnected)]# connect --url https://192.168.1.181 --user
admin@internal --password 111111 --ca-file /home/leaboy/ovirt_ca/ca_cear.pem
error: [ERROR]::oVirt API connection failure, [Errno 185090050] _ssl.c:340:
error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
[oVirt shell (disconnected)]#
------=_NextPart_000_000C_01CE3483.4438DB20
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:SimSun;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DZH-CN link=3Dblue vlink=3Dpurple =
style=3D'text-justify-trim:punctuation'>
<div class=3DSection1>
<p class=3DMsoNormal><span lang=3DEN-US>Hi,all:<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> I’m
in troubling with ca-file, who can tell me which the direction assigned =
to </span><span
lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Consolas;color:#DD1144;
background:#F7F7F9'> CA_FILE </span><span =
lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>On the webpage <a
href=3D"http://www.ovirt.org/How_to_Connect_to_SPICE_Console_Without_Port=
al">http://www.ovirt.org/How_to_Connect_to_SPICE_Console_Without_Portal</=
a>
<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>saided </span><span =
lang=3DEN-US
style=3D'font-family:"Arial","sans-serif";color:#2E3436;background:white'=
>from the
web:<span class=3Dapple-converted-space> </span></span><code><span
lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Consolas;color:#DD1144;
border:solid #E1E1E8 1.0pt;padding:2.0pt;background:#F7F7F9'>wget -O =
${CA_FILE}</span></code><span
class=3Dapple-converted-space><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:
Consolas;color:#DD1144;border:solid #E1E1E8 =
1.0pt;padding:2.0pt;background:
#F7F7F9'> </span></span><code><span lang=3DEN-US =
style=3D'font-size:9.0pt;
font-family:Consolas;color:#DD1144;border:solid #E1E1E8 =
1.0pt;padding:2.0pt;
background:#F7F7F9'><a href=3D"http://%24%7Bovirt%7D/ca.crt"><b><span
style=3D'color:#4E9A06'>http://${OVIRT}/ca.crt</span></b></a></span></cod=
e><span
lang=3DEN-US><o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>When I use overt-shell, I get =
ca.pem like
this :<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
[leaboy@Leaboy
ovirt_ca]$ pwd<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>/home/leaboy/ovirt_ca<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[leaboy@Leaboy ovirt_ca]$ wget -o ca-cert.pem
http://192.168.1.181/ca.pem<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[leaboy@Leaboy ovirt_ca]$ ls<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>ca-cert.pem<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[leaboy@Leaboy ovirt_ca]$<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>And then, I launched overt-shell =
and
connect to overt-engine like this:<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
++++++++++++++++++++++++++++++++++++++++++<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> =
Welcome
to oVirt shell<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> ++++++++++++++++++++++++++++++++++++++++++<o:p></o:p><=
/span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> =
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[oVirt shell (disconnected)]# <b>connect --url =
https://192.168.1.181
--user admin@internal --password 111111 --ca-file
/home/leaboy/ovirt_ca/ca_cear.pem</b><o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>error: [ERROR]::oVirt API connection failure, [Errno =
185090050]
_ssl.c:340: error:0B084002:x509 certificate
routines:X509_load_cert_crl_file:system lib<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[oVirt shell (disconnected)]#<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
</div>
</body>
</html>
------=_NextPart_000_000C_01CE3483.4438DB20--
11 years, 7 months
[Engine-devel] about ca-file
by wanglibo
ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£
------=_NextPart_000_0002_01CE3482.E93858E0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi,all:
I'm in troubling with ca-file, who can tell me which the direction
assigned to CA_FILE
On the webpage
http://www.ovirt.org/How_to_Connect_to_SPICE_Console_Without_Portal
saided from the web: wget -O ${CA_FILE} <http://%24%7Bovirt%7D/ca.crt>
http://${OVIRT}/ca.crt
When I use overt-shell, I get ca.pem like this :
[leaboy@Leaboy ovirt_ca]$ pwd
/home/leaboy/ovirt_ca
[leaboy@Leaboy ovirt_ca]$ wget -o ca-cert.pem http://192.168.1.181/ca.pem
[leaboy@Leaboy ovirt_ca]$ ls
ca-cert.pem
[leaboy@Leaboy ovirt_ca]$
And then, I launched overt-shell and connect to overt-engine like this:
++++++++++++++++++++++++++++++++++++++++++
Welcome to oVirt shell
++++++++++++++++++++++++++++++++++++++++++
[oVirt shell (disconnected)]# connect --url https://192.168.1.181 --user
admin@internal --password 111111 --ca-file /home/leaboy/ovirt_ca/ca_cear.pem
error: [ERROR]::oVirt API connection failure, [Errno 185090050] _ssl.c:340:
error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
[oVirt shell (disconnected)]#
------=_NextPart_000_0002_01CE3482.E93858E0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:SimSun;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DZH-CN link=3Dblue vlink=3Dpurple =
style=3D'text-justify-trim:punctuation'>
<div class=3DSection1>
<p class=3DMsoNormal><span lang=3DEN-US>Hi,all:<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> I’m
in troubling with ca-file, who can tell me which the direction assigned =
to </span><span
lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Consolas;color:#DD1144;
background:#F7F7F9'> CA_FILE </span><span =
lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>On the webpage <a
href=3D"http://www.ovirt.org/How_to_Connect_to_SPICE_Console_Without_Port=
al">http://www.ovirt.org/How_to_Connect_to_SPICE_Console_Without_Portal</=
a>
<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>saided </span><span =
lang=3DEN-US
style=3D'font-family:"Arial","sans-serif";color:#2E3436;background:white'=
>from the
web:<span class=3Dapple-converted-space> </span></span><code><span
lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Consolas;color:#DD1144;
border:solid #E1E1E8 1.0pt;padding:2.0pt;background:#F7F7F9'>wget -O =
${CA_FILE}</span></code><span
class=3Dapple-converted-space><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:
Consolas;color:#DD1144;border:solid #E1E1E8 =
1.0pt;padding:2.0pt;background:
#F7F7F9'> </span></span><code><span lang=3DEN-US =
style=3D'font-size:9.0pt;
font-family:Consolas;color:#DD1144;border:solid #E1E1E8 =
1.0pt;padding:2.0pt;
background:#F7F7F9'><a href=3D"http://%24%7Bovirt%7D/ca.crt"><b><span
style=3D'color:#4E9A06'>http://${OVIRT}/ca.crt</span></b></a></span></cod=
e><span
lang=3DEN-US><o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>When I use overt-shell, I get =
ca.pem like
this :<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
[leaboy@Leaboy
ovirt_ca]$ pwd<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>/home/leaboy/ovirt_ca<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[leaboy@Leaboy ovirt_ca]$ wget -o ca-cert.pem
http://192.168.1.181/ca.pem<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[leaboy@Leaboy ovirt_ca]$ ls<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>ca-cert.pem<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[leaboy@Leaboy ovirt_ca]$<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>And then, I launched overt-shell =
and
connect to overt-engine like this:<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
++++++++++++++++++++++++++++++++++++++++++<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> =
Welcome
to oVirt shell<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> ++++++++++++++++++++++++++++++++++++++++++<o:p></o:p><=
/span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> =
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[oVirt shell (disconnected)]# <b>connect --url =
https://192.168.1.181
--user admin@internal --password 111111 --ca-file
/home/leaboy/ovirt_ca/ca_cear.pem</b><o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>error: [ERROR]::oVirt API connection failure, [Errno =
185090050]
_ssl.c:340: error:0B084002:x509 certificate
routines:X509_load_cert_crl_file:system lib<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;mso-para-margin-left:2.0gd'><span
lang=3DEN-US>[oVirt shell (disconnected)]#<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
</div>
</body>
</html>
------=_NextPart_000_0002_01CE3482.E93858E0--
11 years, 7 months
[Engine-devel] How to map the oVirt engine version to VDSM version by git tags?
by Shu Ming
Hi,
I am looking for a way to map the oVirt version to VDSM version
and engine version by git tags. I can run "git tag -l" under
engine git workspace and vdsm git workspace. Here are the output
from these two "git tag -l" command.
Under oVirt engine workspace:
-bash-4.1$ git tag -l
ovirt-engine-3.0.0_0001
ovirt-engine-3.1.0
ovirt-engine-3.2.0
ovirt-engine-3.2.1
Under vdsm workspace:
-bash-4.1$ git tag -l
v4.10.0
v4.10.1
v4.10.2
v4.10.3
v4.9.0
v4.9.1
v4.9.2
v4.9.3
v4.9.3.1
v4.9.3.2
v4.9.3.3
v4.9.4
v4.9.5
v4.9.6
I can checkout the oVirt 3.2.1 snapshot in engine workspace by
"git checkout ovirt-engine-3.2.1". But how can I get the VDSM snapshot
by the tags in VDSM workspace? How can I know which change-set is for
oVirt 3.2.1 in VDSM workspace?
--
---
舒明 Shu Ming
Open Virtualization Engineerning; CSTL, IBM Corp.
Tel: 86-10-82451626 Tieline: 9051626 E-mail: shuming(a)cn.ibm.com or shuming(a)linux.vnet.ibm.com
Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC
11 years, 7 months
[Engine-devel] UI Plugin API improvements
by Vojtech Szocs
Hi guys,
I've just merged some UI Plugin patches that improve existing API functions, as well as add some new API functions. Please read on to learn what's new.
Modal dialog API
================
Function improved: showDialog
New signature:
showDialog(title, dialogToken, contentUrl, width, height [, options])
Example usage:
showDialog('My Dialog', 'my-dialog', 'http://www.foobar.com/', '800px', '600px', {
// Default value = empty array (no buttons)
buttons: [
{
label: 'Do stuff',
onClick: function() {
alert('Bump!');
}
}
],
// Default value = false
resizeEnabled: true,
// Default value = true
closeIconVisible: true,
// Default value = true
closeOnEscKey: true
});
Notable changes:
* modal dialogs now look & feel the same as standard WebAdmin dialogs
* width & height are strings containing CSS units
* the reason why buttons default to empty array is to give plugin authors the choice to provide custom buttons (or similar input elements) via dialog content (iframe), and use HTML5 window.postMessage to call the plugin (coming soon!)
--
New function: setDialogContentUrl
New signature:
setDialogContentUrl(dialogToken, contentUrl)
Example usage:
setDialogContentUrl('my-dialog', 'http://www.example.com/')
--
New function: closeDialog
New signature:
closeDialog(dialogToken)
Example usage:
closeDialog('my-dialog')
Tab API
=======
Functions improved: addMainTab & addSubTab
New signatures:
addMainTab(label, historyToken, contentUrl [, options])
addSubTab(entityTypeName, label, historyToken, contentUrl [, options])
Example usage:
// Tab is left-aligned by default
addMainTab('Foo Tab', 'foo-tab', 'http://www.foo.com/');
// Tab is right-aligned via options object
addSubTab('VirtualMachine', 'Bar Tab', 'bar-tab', 'http://www.bar.com/', {
alignRight: true
});
--
Regards,
Vojtech
11 years, 7 months