
--_000_A0D5581BE022624487D06FF31DA39EAC46DC29969Acsmailcloudsh_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable yeah, I am a little confused by the CLI syntax. maybe that's the problem. s= o 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-000c29bf47= ca" --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. ----- Original Message ---- From: Omer Frenkel <ofrenkel@redhat.com> To: David Li <david_li@sbcglobal.net> Cc: users@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@sbcglobal.net> To: "Omer Frenkel" <ofrenkel@redhat.com> Cc: users@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@redhat.com> To: David Li <david_li@sbcglobal.net> Cc: users@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@sbcglobal.net> To: users@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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
</p><p class=3DMsoNormal>unknown error:<o:p></o:p></p><p class=3DMsoNormal= status: 400<o:p></o:p></p><p class=3DMsoNormal>reason: Bad Request<o:p></o= :p></p><p class=3DMsoNormal>detail: [Cannot connect server to Storage. = ; ]<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoN= ormal>No luck here either.<o:p></o:p></p><p class=3DMsoNormal><o:p> </= o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal><o:p= </o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNo= rmal><o:p> </o:p></p><p class=3DMsoNormal>----- Original Message ----<= o:p></o:p></p><p class=3DMsoNormal>From: Omer Frenkel <ofrenkel@redhat.c= om><o:p></o:p></p><p class=3DMsoNormal>To: David Li <david_li@sbcglob= al.net><o:p></o:p></p><p class=3DMsoNormal>Cc: users@ovirt.org<o:p></o:p= </p><p class=3DMsoNormal>Sent: Wed, March 21, 2012 8:22:59 AM<o:p></o:p></=
</o:p></p><p class=3DMsoNormal>> Sent: Wednesday, March 21, 2012 5:10:2= 6 PM<o:p></o:p></p><p class=3DMsoNormal>> Subject: Re: [Users] CLI: can'= t attach storagedomain<o:p></o:p></p><p class=3DMsoNormal>><o:p> </= o:p></p><p class=3DMsoNormal>> Omer,<o:p></o:p></p><p class=3DMsoNormal>= ><o:p> </o:p></p><p class=3DMsoNormal>> Here is my storagedomain= and datacenter info.<o:p></o:p></p><p class=3DMsoNormal>><o:p> </o= :p></p><p class=3DMsoNormal>> [oVirt shell (connected)]# list datacenter= s --show-all<o:p></o:p></p><p class=3DMsoNormal>><o:p> </o:p></p><p= class=3DMsoNormal>> id &= nbsp; &nbs=
</o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>&= gt; storage_type  = ; : nfs<o:p></o:p></p= <p class=3DMsoNormal>> supported_versions-version-major: 3<o:p></o:p></=
</p><p class=3DMsoNormal>> [oVirt shell (connected)]# list storagedomai= ns --show-all<o:p></o:p></p><p class=3DMsoNormal>><o:p> </o:p></p><=
<p class=3DMsoNormal>> Sent: Wed, March 21, 2012 7:44:28 AM<o:p></o:p><= /p><p class=3DMsoNormal>> Subject: Re: [Users] CLI: can't attach storage= domain<o:p></o:p></p><p class=3DMsoNormal>><o:p> </o:p></p><p class= =3DMsoNormal>><o:p> </o:p></p><p class=3DMsoNormal>><o:p> <= /o:p></p><p class=3DMsoNormal>> ----- Original Message -----<o:p></o:p><= /p><p class=3DMsoNormal>> > From: "David Li" <david_li@s= bcglobal.net><o:p></o:p></p><p class=3DMsoNormal>> > To: users@ovi= rt.org<o:p></o:p></p><p class=3DMsoNormal>> > Sent: Wednesday, March = 21, 2012 4:14:11 PM<o:p></o:p></p><p class=3DMsoNormal>> > Subject: [= Users] CLI: can't attach storagedomain<o:p></o:p></p><p class=3DMsoNormal>&= gt; ><o:p></o:p></p><p class=3DMsoNormal>> > Hi,<o:p></o:p></p><p = class=3DMsoNormal>> > I have an iso domain created during engine setu=
--_000_A0D5581BE022624487D06FF31DA39EAC46DC29969Acsmailcloudsh_ 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=3DContent-Type content= =3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros= oft Word 14 (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:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* 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;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri","sans-serif";} @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>yeah, I am a lit= tle confused by the CLI syntax. maybe that's the problem. so i<o:p></o:p></= p><p class=3DMsoNormal>tried to create a new data domain like the following= s:<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNo= rmal>[oVirt shell (connected)]# create storagedomain --name<o:p></o:p></p><= p class=3DMsoNormal>"fc16-lid-engine_data-domain" --host-id "= ;bcb946e8-72b9-11e1-8c2b-000c29bf47ca"<o:p></o:p></p><p class=3DMsoNor= mal>--type "data" --storage-type "nfs" --storage-addres= s "10.10.2.187"<o:p></o:p></p><p class=3DMsoNormal>--storage-path= "/home/lid2/workspace/ovirt/storagedomain/data-domain"<o:p></o:p= p><p class=3DMsoNormal>Subject: Re: [Users] CLI: can't attach storagedomain= <o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNorm= al><o:p> </o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p class= =3DMsoNormal>----- Original Message -----<o:p></o:p></p><p class=3DMsoNorma= l>> From: "David Li" <david_li@sbcglobal.net><o:p></o:p>= </p><p class=3DMsoNormal>> To: "Omer Frenkel" <ofrenkel@red= hat.com><o:p></o:p></p><p class=3DMsoNormal>> Cc: users@ovirt.org<o:p= p; :<o:p></o:p></p><p class= =3DMsoNormal>> ac2690e4-72b2-11e1-882d-000c29bf47ca<o:p></o:p></p><p cla= ss=3DMsoNormal>> name &nb= sp; = : Default<o:p></o:p></p><p class=3DMso= Normal>> description &nbs= p; : The defaul= t Data Center<o:p></o:p></p><p class=3DMsoNormal>> status-state &nb= sp; = : uninitialized<o:p></o:p></p><p class=3DMso= Normal><o:p> </o:p></p><p class=3DMsoNormal>the DC is in 'uninitialize= d' status, means no domains are attached to it.<o:p></o:p></p><p class=3DMs= oNormal>you first need to attach a Data storage domain, only then you can a= ttach<o:p></o:p></p><p class=3DMsoNormal>non-data domains (ISO, export)<o:p= p><p class=3DMsoNormal>> supported_versions-version-minor: 0<o:p></o:p><= /p><p class=3DMsoNormal>> version-major &nb= sp; : 3<o= :p></o:p></p><p class=3DMsoNormal>> version-minor  = ; &n= bsp; : 0<o:p></o:p></p><p class=3DMsoNormal>><o:p> </o:p></p><p cla= ss=3DMsoNormal>><o:p> </o:p></p><p class=3DMsoNormal>> [oVirt sh= ell (connected)]# list storagedomains<o:p></o:p></p><p class=3DMsoNormal>&g= t; datacenter kwargs show-all<o:p></o:p= p class=3DMsoNormal>> id = : 27dfd13e-aec4-4708-b0e3-a7f4143a118b<o:p></o:p></p><p = class=3DMsoNormal>> name = : fc16-lid-engine_iso-domain<o:p></o:p></p><p class=3DMsoNormal>>= available : 0<o:p></o:p></p><p class=3DMsoNo= rmal>> committed : 0<o:p></o:p></p><p clas= s=3DMsoNormal>> master : False= <o:p></o:p></p><p class=3DMsoNormal>> status-state : unattached<o:= p></o:p></p><p class=3DMsoNormal>> storage-address: fc16-lid-engine.srv.= cloudshield.com<o:p></o:p></p><p class=3DMsoNormal>> storage-path = : /home/lid2/workspace/ovirt/storagedomain/iso-domain<o:p></o:p></p><p clas= s=3DMsoNormal>> storage-type : nfs<o:p></o:p></p><p class=3DMsoNor= mal>> storage_format : v1<o:p></o:p></p><p class=3DMsoNormal>> type&n= bsp; : iso<o:p></o:p></p><p= class=3DMsoNormal>> used  = ; : 0<o:p></o:p></p><p class=3DMsoNormal>><o:p> </o:p></p><p = class=3DMsoNormal>><o:p> </o:p></p><p class=3DMsoNormal>><o:p>&n= bsp;</o:p></p><p class=3DMsoNormal>><o:p> </o:p></p><p class=3DMsoN= ormal>><o:p> </o:p></p><p class=3DMsoNormal>><o:p> </o:p></= p><p class=3DMsoNormal>> ----- Original Message ----<o:p></o:p></p><p cl= ass=3DMsoNormal>> From: Omer Frenkel <ofrenkel@redhat.com><o:p></o= :p></p><p class=3DMsoNormal>> To: David Li <david_li@sbcglobal.net>= ;<o:p></o:p></p><p class=3DMsoNormal>> Cc: users@ovirt.org<o:p></o:p></p= p. But I can't<o:p></o:p></p><p class=3DMsoNormal>> > attach<o:p></o:= p></p><p class=3DMsoNormal>> > it to the<o:p></o:p></p><p class=3DMso= Normal>> > datacenter in cli.<o:p></o:p></p><p class=3DMsoNormal>>= ><o:p></o:p></p><p class=3DMsoNormal>> > oVirt shell (connected)]= # create storagedomain --name<o:p></o:p></p><p class=3DMsoNormal>> > = "fc16-lid-engine_iso-domain" --datacenter-identifier<o:p></o:p></= p><p class=3DMsoNormal>> > "ac2690e4-72b2-11e1-882d-000c29bf47ca= "<o:p></o:p></p><p class=3DMsoNormal>> > unknown error:<o:p></o:= p></p><p class=3DMsoNormal>> > status: 400<o:p></o:p></p><p class=3DM= soNormal>> > reason: Bad Request<o:p></o:p></p><p class=3DMsoNormal>&= gt; > detail: [Cannot attach Storage Domain.]<o:p></o:p></p><p class=3DM= soNormal>> ><o:p></o:p></p><p class=3DMsoNormal>> ><o:p></o:p><= /p><p class=3DMsoNormal>> > Any ideas?<o:p></o:p></p><p class=3DMsoNo= rmal>><o:p> </o:p></p><p class=3DMsoNormal>> what is the status = of the DC you are trying to attach this domain?<o:p></o:p></p><p class=3DMs= oNormal>> first domain attached to a DC should be data domain, to functi= on as<o:p></o:p></p><p class=3DMsoNormal>> master<o:p></o:p></p><p class= =3DMsoNormal>> storage domain.<o:p></o:p></p><p class=3DMsoNormal>><o= :p> </o:p></p><p class=3DMsoNormal>> > _________________________= ______________________<o:p></o:p></p><p class=3DMsoNormal>> > Users m= ailing list<o:p></o:p></p><p class=3DMsoNormal>> > Users@ovirt.org<o:= p></o:p></p><p class=3DMsoNormal>> > http://lists.ovirt.org/mailman/l= istinfo/users<o:p></o:p></p><p class=3DMsoNormal>> ><o:p></o:p></p><p= class=3DMsoNormal>><o:p> </o:p></p><p class=3DMsoNormal>><o:p>&= nbsp;</o:p></p></div></body></html>= --_000_A0D5581BE022624487D06FF31DA39EAC46DC29969Acsmailcloudsh_--