[Users] CLI: can't attach storagedomain

Omer Frenkel ofrenkel at redhat.com
Sun Mar 25 10:03:59 UTC 2012



----- Original Message -----
> From: "David Li" <david_li at sbcglobal.net>
> To: "Omer Frenkel" <ofrenkel at redhat.com>
> Cc: users at 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 at redhat.com>
> > To: David Li <david_li at sbcglobal.net>
> > Cc: users at 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 at sbcglobal.net>
> > > To:  "Omer Frenkel" <ofrenkel at redhat.com>
> > > Cc: users at 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 at redhat.com>
> > > To: David  Li <david_li at sbcglobal.net>
> > > Cc: users at 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 at sbcglobal.net>
> > > >  To: "Omer Frenkel" <ofrenkel at redhat.com>
> > > > Cc: users at 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 at redhat.com>
> > > > To:  David Li <david_li at sbcglobal.net>
> > > >  Cc: users at 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 at sbcglobal.net>
> > > >  > To: users at 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 at ovirt.org
> > > > > http://lists.ovirt.org/mailman/listinfo/users
> > > > > 
> > >  > 
> > > > 
> > > 
> > > 
> > 
> 



More information about the Users mailing list