Re: [Users] Questions about oVirt and possible API bug
by Andrey Falko
--_000_62CD604BB12CB045864DDF2DA6C3C9CAD70F20706AEXSFMMB02inte_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I figured out the problem with the ovirt-shell. I forgot to inject the stor=
age-path parameter...not sure if that is supposed to be required or not.
From: Andrey Falko
Sent: Tuesday, April 03, 2012 7:15 PM
To: users(a)oVirt.org
Subject: Questions about oVirt and possible API bug
Hi everyone,
One of the requirements behind the system that I am attempting to build is =
that there should be no local storage. I've noticed that I cannot add local=
storage hosts to the same datacenter and cluster. It seems awkward to have=
a 1:1:1 ratio of datacenter to cluster to host. Is there anything that I a=
m missing or is there a reason for why this is the design in ovirt?
I plan to use the system to provide a service where end-users will make API=
calls to create and delete VMs. It will be critical that oVirt-engine not =
be a single-point of failure. I can't seem to find much information about w=
hether oVirt-engine is designed with redundancy in mind. Is oVirt capable o=
f a failover or an active-active configuration?
Finally, I am attempting to automate registration of hosts to oVirt and am =
hitting this when I try to add a local storage domain:
[oVirt shell (connected)]# create storagedomain --host test1 --type "Data (=
Master)" --storage-type "Local on host"
unknown error: 'str' object has no attribute 'export'
Is this a bug with ovirt-shell that I should file or am I doing something w=
rong? The host is in maintenance mode, I do not see anything in the engine =
logs after I run the command.
Thanks,
Andrey
--_000_62CD604BB12CB045864DDF2DA6C3C9CAD70F20706AEXSFMMB02inte_
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-micr=
osoft-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"Micros=
oft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@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:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></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=3DEN-US link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span style=3D'c=
olor:#1F497D'>I figured out the problem with the ovirt-shell. I forgot to i=
nject the storage-path parameter…not sure if that is supposed to be r=
equired or not. <o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'c=
olor:#1F497D'><o:p> </o:p></span></p><div><div style=3D'border:none;bo=
rder-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=3DMsoNorma=
l><b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Fro=
m:</span></b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-ser=
if"'> Andrey Falko <br><b>Sent:</b> Tuesday, April 03, 2012 7:15 PM<br><b>T=
o:</b> users(a)oVirt.org<br><b>Subject:</b> Questions about oVirt and possibl=
e API bug<o:p></o:p></span></p></div></div><p class=3DMsoNormal><o:p> =
</o:p></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>Hi everyone,<o=
:p></o:p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p=
> </o:p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>=
One of the requirements behind the system that I am attempting to build is =
that there should be no local storage. I’ve noticed that I cannot add=
local storage hosts to the same datacenter and cluster. It seems awkward t=
o have a 1:1:1 ratio of datacenter to cluster to host. Is there anything th=
at I am missing or is there a reason for why this is the design in ovirt? <=
o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:=
p> </o:p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'=
>I plan to use the system to provide a service where end-users will make AP=
I calls to create and delete VMs. It will be critical that oVirt-engine not=
be a single-point of failure. I can’t seem to find much information =
about whether oVirt-engine is designed with redundancy in mind. Is oVirt ca=
pable of a failover or an active-active configuration?<o:p></o:p></span></p=
><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p> </o:p></span=
></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>Finally, I am attem=
pting to automate registration of hosts to oVirt and am hitting this when I=
try to add a local storage domain: <o:p></o:p></span></p><p class=3DMsoNor=
mal><span style=3D'color:#1F497D'><o:p> </o:p></span></p><p class=3DMs=
oNormal><span style=3D'color:#1F497D'>[oVirt shell (connected)]# create sto=
ragedomain --host test1 --type "Data (Master)" --storage-type &qu=
ot;Local on host"<o:p></o:p></span></p><p class=3DMsoNormal><span styl=
e=3D'color:#1F497D'>unknown error: 'str' object has no attribute 'export'<o=
:p></o:p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p=
> </o:p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>=
Is this a bug with ovirt-shell that I should file or am I doing something w=
rong? The host is in maintenance mode, I do not see anything in the engine =
logs after I run the command.<o:p></o:p></span></p><p class=3DMsoNormal><sp=
an style=3D'color:#1F497D'><o:p> </o:p></span></p><p class=3DMsoNormal=
><span style=3D'color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=3DMsoN=
ormal><span style=3D'color:#1F497D'>Andrey<o:p></o:p></span></p></div></bod=
y></html>=
--_000_62CD604BB12CB045864DDF2DA6C3C9CAD70F20706AEXSFMMB02inte_--
12 years, 8 months
[Users] permanent vnc password and custom properties
by Michal Kopacki
Any thoughts how to set vnc password permanently (without any scripts
outside ovirt). ?
Now I use cli command such:
vdsClient -s 0 setVmTicket 75c42e2e-ac28-45ae-9c78-2e4f68ee9c07 <pass>
3600 keep
But it's not so convenient.
Second question is how to use "Custom properties" box - how should
command/value looks like ?
--
Michal
12 years, 9 months
Re: [Users] CLI: can't attach storagedomain
by Li, David
Omer,
My storage domain was in "unattached" stage. So I ran the following CLI to attach it to the data center:
[oVirt shell (connected)]# create storagedomain --name "fc16-lid-engine_iso-domain" --datacenter-identifier "ac2690e4-72b2-11e1-882d-000c29bf47ca"
unknown error:
status: 400
reason: Bad Request
detail: [Cannot attach Storage Domain.]
The vdsm.log shows nothing specific to this but periodically spits out the following. I am not sure if this is relevant.
Thread-1025::DEBUG::2012-03-27 00:20:16,952::task::588::TaskManager.Task::(_updateState) Task=`2ede9ab5-f184-4f98-af9b-ac292285cc14`::moving from state init -> state preparing
Thread-1025::INFO::2012-03-27 00:20:16,953::logUtils::37::dispatcher::(wrapper) Run and protect: repoStats(options=None)
Thread-1025::INFO::2012-03-27 00:20:16,953::logUtils::39::dispatcher::(wrapper) Run and protect: repoStats, Return response: {}
Thread-1025::DEBUG::2012-03-27 00:20:16,953::task::1174::TaskManager.Task::(prepare) Task=`2ede9ab5-f184-4f98-af9b-ac292285cc14`::finished: {}
Thread-1025::DEBUG::2012-03-27 00:20:16,954::task::588::TaskManager.Task::(_updateState) Task=`2ede9ab5-f184-4f98-af9b-ac292285cc14`::moving from state preparing -> state finished
Thread-1025::DEBUG::2012-03-27 00:20:16,954::resourceManager::806::ResourceManager.Owner::(releaseAll) Owner.releaseAll requests {} resources {}
Thread-1025::DEBUG::2012-03-27 00:20:16,954::resourceManager::841::ResourceManager.Owner::(cancelAll) Owner.cancelAll requests {}
Thread-1025::DEBUG::2012-03-27 00:20:16,955::task::980::TaskManager.Task::(_decref) Task=`2ede9ab5-f184-4f98-af9b-ac292285cc14`::ref 0 aborting False
- David
________________________________________
Date: Sun, 25 Mar 2012 06:03:59 -0400 (EDT)
From: Omer Frenkel <ofrenkel(a)redhat.com>
To: David Li <david_li(a)sbcglobal.net>
Cc: users(a)ovirt.org
Subject: Re: [Users] CLI: can't attach storagedomain
Message-ID: <323fb20e-c89d-45f7-945c-c70bfb2ec201(a)ofrenkel.csb>
Content-Type: text/plain; charset=utf-8
----- Original Message -----
> From: "David Li" <david_li(a)sbcglobal.net>
> To: "Omer Frenkel" <ofrenkel(a)redhat.com>
> Cc: users(a)ovirt.org
> Sent: Thursday, March 22, 2012 7:18:45 PM
> Subject: Re: [Users] CLI: can't attach storagedomain
>
> Omer,
>
> Here the engine.log after the CLI cmd execution.
>
>
> 2012-03-22 09:48:27,629 INFO
> [org.ovirt.engine.core.bll.LoginAdminUserCommand]
> (http--0.0.0.0-8080-2) Running command: LoginAdminUserCommand
> internal: false.
> 2012-03-22 09:48:27,655 INFO
> [org.ovirt.engine.core.vdsbroker.vdsbroker.ValidateStorageServerConnectionVDSCommand]
> (http--0.0.0.0-8080-2) START,
> ValidateStorageServerConnectionVDSCommand(vdsId =
> bcb946e8-72b9-11e1-8c2b-000c29bf47ca, storagePoolId =
> 00000000-0000-0000-0000-000000000000, storageType = NFS,
> connectionList = [{ id:
> null, connection:
> 10.10.2.187:/home/lid2/workspace/ovirt/storagedomain/data-domain
> };]), log id:
> 323927f6
> 2012-03-22 09:48:27,761 INFO
> [org.ovirt.engine.core.vdsbroker.vdsbroker.ValidateStorageServerConnectionVDSCommand]
> (http--0.0.0.0-8080-2) FINISH,
> ValidateStorageServerConnectionVDSCommand,
> return: {00000000-0000-0000-0000-000000000000=453}, log id: 323927f6
> 2012-03-22 09:48:27,764 ERROR
> [org.ovirt.engine.core.bll.storage.NFSStorageHelper]
> (http--0.0.0.0-8080-2) The
> connection with details
> 10.10.2.187:/home/lid2/workspace/ovirt/storagedomain/data-domain
> failed because
> of error code 453 and error message is: the specified path does not
> exist or
> cannot be reached.
> verify the path is correct, and for remote storage,
> check the connection to your storage
> 2012-03-22 09:48:27,764 WARN
> [org.ovirt.engine.core.bll.storage.AddStorageServerConnectionCommand]
> (http--0.0.0.0-8080-2) CanDoAction of action
> AddStorageServerConnection failed.
> Reasons:ACTION_TYPE_FAILED_STORAGE_CONNECTION
> 2012-03-22 09:48:27,765 ERROR
> [org.ovirt.engine.api.restapi.resource.AbstractBackendResource]
> (http--0.0.0.0-8080-2) Operation Failed: [Cannot connect server to
> Storage. ]
> 2012-03-22 09:48:27,768 INFO
> [org.ovirt.engine.core.bll.LogoutUserCommand]
> (http--0.0.0.0-8080-2) Running command: LogoutUserCommand internal:
> false.
>
>
> The path /home/lid2/workspace/ovirt/storagedomain/data-domain is
> definitely real
> and accessible:
>
> drwxrwxr-x 2 vdsm kvm 4096 Mar 21 09:34 data-domain
>
>
> The CLI was run on the same machine as the engine. Could that be a
> problem?
i dont think so,
looks like the problem is with your host, which fails to mount this dir.
maybe attach the vdsm.log for this host and for that action (look for the validateStorageServerConnection that fails.)
>
>
> David
>
>
>
>
> ----- Original Message ----
> > From: Omer Frenkel <ofrenkel(a)redhat.com>
> > To: David Li <david_li(a)sbcglobal.net>
> > Cc: users(a)ovirt.org
> > Sent: Thu, March 22, 2012 4:42:56 AM
> > Subject: Re: [Users] CLI: can't attach storagedomain
> >
> >
> >
> > ----- Original Message -----
> > > From: "David Li" <david_li(a)sbcglobal.net>
> > > To: "Omer Frenkel" <ofrenkel(a)redhat.com>
> > > Cc: users(a)ovirt.org
> > > Sent: Wednesday, March 21, 2012 6:39:23 PM
> > > Subject: Re: [Users] CLI: can't attach storagedomain
> > >
> > > yeah, I am a little confused by the CLI syntax. maybe that's the
> > > problem. so i
> > > tried to create a new data domain like the followings:
> > >
> > > [oVirt shell (connected)]# create storagedomain --name
> > > "fc16-lid-engine_data-domain" --host-id
> > > "bcb946e8-72b9-11e1-8c2b-000c29bf47ca"
> > > --type "data" --storage-type "nfs" --storage-address
> > > "10.10.2.187"
> > > --storage-path
> > > "/home/lid2/workspace/ovirt/storagedomain/data-domain"
> > > unknown error:
> > > status: 400
> > > reason: Bad Request
> > > detail: [Cannot connect server to Storage. ]
> > >
> > > No luck here either.
> > >
> >
> > can you paste the relevant lines from engine.log?
> > my guess is problem with the permissions on this directory (should
> > be for
> >vdsm:kvm), but not sure.
> >
> > >
> > >
> > >
> > >
> > > ----- Original Message ----
> > > From: Omer Frenkel <ofrenkel(a)redhat.com>
> > > To: David Li <david_li(a)sbcglobal.net>
> > > Cc: users(a)ovirt.org
> > > Sent: Wed, March 21, 2012 8:22:59 AM
> > > Subject: Re: [Users] CLI: can't attach storagedomain
> > >
> > >
> > >
> > > ----- Original Message -----
> > > > From: "David Li" <david_li(a)sbcglobal.net>
> > > > To: "Omer Frenkel" <ofrenkel(a)redhat.com>
> > > > Cc: users(a)ovirt.org
> > > > Sent: Wednesday, March 21, 2012 5:10:26 PM
> > > > Subject: Re: [Users] CLI: can't attach storagedomain
> > > >
> > > > Omer,
> > > >
> > > > Here is my storagedomain and datacenter info.
> > > >
> > > > [oVirt shell (connected)]# list datacenters --show-all
> > > >
> > > > id :
> > > > ac2690e4-72b2-11e1-882d-000c29bf47ca
> > > > name : Default
> > > > description : The default Data Center
> > > > status-state : uninitialized
> > >
> > > the DC is in 'uninitialized' status, means no domains are
> > > attached to
> > > it.
> > > you first need to attach a Data storage domain, only then you
> > > can
> > > attach
> > > non-data domains (ISO, export)
> > >
> > > > storage_type : nfs
> > > > supported_versions-version-major: 3
> > > > supported_versions-version-minor: 0
> > > > version-major : 3
> > > > version-minor : 0
> > > >
> > > >
> > > > [oVirt shell (connected)]# list storagedomains
> > > > datacenter kwargs show-all
> > > > [oVirt shell (connected)]# list storagedomains --show-all
> > > >
> > > > id : 27dfd13e-aec4-4708-b0e3-a7f4143a118b
> > > > name : fc16-lid-engine_iso-domain
> > > > available : 0
> > > > committed : 0
> > > > master : False
> > > > status-state : unattached
> > > > storage-address: fc16-lid-engine.srv.cloudshield.com
> > > > storage-path :
> > > > /home/lid2/workspace/ovirt/storagedomain/iso-domain
> > > > storage-type : nfs
> > > > storage_format : v1
> > > > type : iso
> > > > used : 0
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ----- Original Message ----
> > > > From: Omer Frenkel <ofrenkel(a)redhat.com>
> > > > To: David Li <david_li(a)sbcglobal.net>
> > > > Cc: users(a)ovirt.org
> > > > Sent: Wed, March 21, 2012 7:44:28 AM
> > > > Subject: Re: [Users] CLI: can't attach storagedomain
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > > From: "David Li" <david_li(a)sbcglobal.net>
> > > > > To: users(a)ovirt.org
> > > > > Sent: Wednesday, March 21, 2012 4:14:11 PM
> > > > > Subject: [Users] CLI: can't attach storagedomain
> > > > >
> > > > > Hi,
> > > > > I have an iso domain created during engine setup. But I
> > > > > can't
> > > > > attach
> > > > > it to the
> > > > > datacenter in cli.
> > > > >
> > > > > oVirt shell (connected)]# create storagedomain --name
> > > > > "fc16-lid-engine_iso-domain" --datacenter-identifier
> > > > > "ac2690e4-72b2-11e1-882d-000c29bf47ca"
> > > > > unknown error:
> > > > > status: 400
> > > > > reason: Bad Request
> > > > > detail: [Cannot attach Storage Domain.]
> > > > >
> > > > >
> > > > > Any ideas?
> > > >
> > > > what is the status of the DC you are trying to attach this
> > > > domain?
> > > > first domain attached to a DC should be data domain, to
> > > > function as
> > > > master
> > > > storage domain.
> > > >
> > > > > _______________________________________________
> > > > > Users mailing list
> > > > > Users(a)ovirt.org
> > > > > http://lists.ovirt.org/mailman/listinfo/users
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
12 years, 9 months
[Users] Configuring MTU
by Nathan Stratton
Is there a way to configure MTU on a guest by guest basis? All our bond
interfaces are configured as 9000 byte MTU, but we have a few guests that
don't support that and need 1500 byte setting.
-Nathan
12 years, 9 months