----- Original Message -----
From: "David Li" <LiD(a)cloudshield.com>
To: "Omer Frenkel" <ofrenkel(a)redhat.com>
Cc: users(a)ovirt.org
Sent: Tuesday, March 27, 2012 2:23:53 AM
Subject: Re: CLI: can't attach storagedomain
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
Hi,
sorry for the late response, somehow missed this one.
the error above seems like the first error we were talking about:
when the DC is in uninitialized, you have to use a 'Data' storage domain (and not
ISO at it seems here).
i asked you for the vdsm log for the second error you got:
"error code 453 and error message is: the specified path does not exist or cannot be
reached..."
i believe its not the same flow, right?
________________________________________
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
> > > > >
> > > >
> > > >
> > >
> > >
> >
>