Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1178104 - It is not possible to create NFS data domain via rehvm-shell
It is not possible to create NFS data domain via rehvm-shell
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: Documentation (Show other bugs)
3.4.4
All Linux
medium Severity medium
: ---
: 3.6.0
Assigned To: Julie
Andrew Burden
infra
:
Depends On:
Blocks: 1207472
  Show dependency treegraph
 
Reported: 2015-01-02 05:29 EST by Roman Hodain
Modified: 2016-02-10 14:04 EST (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-04-29 01:27:44 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Infra
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
juwu: needinfo-


Attachments (Terms of Use)

  None (edit)
Description Roman Hodain 2015-01-02 05:29:36 EST
Description of problem:
The following command fails with error message:


add storagedomain --host-name x.x.x.x --type data --storage-type nfs --format v3 --storage-address x.x.x.x --storage-path /exports/data03 --datacenter-identifier  Default --name  NFS03  ====================================================== ERROR ====================================================
  status: 404
  reason: Not Found
  detail: Entity not found: Storage: name=NFS03
  =================================================================================================================

Version-Release number of selected component (if applicable):


How reproducible:
100%

Actual results:
====================================================== ERROR ====================================================
  status: 404
  reason: Not Found
  detail: Entity not found: Storage: name=NFS03
  =================================================================================================================


Expected results:
Storage domain is created

Additional info:
The command is taken from the documentation:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html/Technical_Guide/chap-Quick_Start_Example.html
Comment 1 Juan Hernández 2015-01-02 12:37:00 EST
What this action is actually doing is attaching an existing storage domain to the data center. The storage domain needs to be previously created using the top level "storagedomains" collections, thus omitting the "--datacenter-identifier". For example:

  # add storagedomain --host-name x.x.x.x --type data --storage-type nfs --storage_format v3 --storage-address x.x.x.x --storage-path /exports/data03 --name NFS03

Note also that the "--format" option is used to indicate if the storage should be "formatted", and that it is only applicable when deleting a storage domain, and that it must be a boolean. The option used to specify the storage format version is "--storage_format".

The storage domain may take a long time to be created, so it is advisable to wait till it is "unattached", repeating the following command:

  # show storagedomain --name NFS03
  id             : 1c79af3c-8df4-4a7c-897a-fef72bb41a2e
  name           : NFS03
  master         : False
  status-state   : unattached <-- It is ok to continue when this is "unattached"
  ...

Once the storage domain is created with the above command it can be attached to the data center:

  # add storagedomain --datacenter-identifier Default --name NFS03

I believe that this bug should be closed as NOTABUG, or moved to the documentation component, as the documentation referenced in the description isn't correct.
Comment 2 Roman Hodain 2015-01-05 04:38:44 EST
(In reply to Juan Hernández from comment #1)
> What this action is actually doing is attaching an existing storage domain
> to the data center. The storage domain needs to be previously created using
> the top level "storagedomains" collections, thus omitting the
> "--datacenter-identifier". For example:
> 
>   # add storagedomain --host-name x.x.x.x --type data --storage-type nfs
> --storage_format v3 --storage-address x.x.x.x --storage-path /exports/data03
> --name NFS03
> 
> Note also that the "--format" option is used to indicate if the storage
> should be "formatted", and that it is only applicable when deleting a
> storage domain, and that it must be a boolean. The option used to specify
> the storage format version is "--storage_format".
> 
> The storage domain may take a long time to be created, so it is advisable to
> wait till it is "unattached", repeating the following command:
> 
>   # show storagedomain --name NFS03
>   id             : 1c79af3c-8df4-4a7c-897a-fef72bb41a2e
>   name           : NFS03
>   master         : False
>   status-state   : unattached <-- It is ok to continue when this is
> "unattached"
>   ...
> 
> Once the storage domain is created with the above command it can be attached
> to the data center:
> 
>   # add storagedomain --datacenter-identifier Default --name NFS03
> 
> I believe that this bug should be closed as NOTABUG, or moved to the
> documentation component, as the documentation referenced in the description
> isn't correct.

Hi, 
thank you. I am moving it to the documentation team.
Comment 3 Roman Hodain 2015-01-05 04:41:09 EST
Can we fix the documentation and properly document how to create, attach and activate the SD?

At lease this chapter is not correct.
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html/Technical_Guide/chap-Quick_Start_Example.html
Comment 7 Julie 2015-04-24 00:43:37 EDT
Checked all command again. Cannot verify step17.
Comment 8 Julie 2015-04-24 01:49:59 EDT
Hey guys,
   I keep getting this error for step17 'show event --id 60'
============================= UNKNOWN ERROR =============================
       cannot convert dictionary update sequence element #0 to a sequence
============================================================================

Anyone has a fix?

Cheers,
Julie
Comment 9 Andrew Burden 2015-04-26 02:48:29 EDT
Hey Julie
The command should be:
show event --id '60' 

QA:
I've updated step 17 accordingly and made some line changes to the topic. 
Revision History also updated.
Comment 10 Julie 2015-04-26 20:40:28 EDT
(In reply to Andrew Burden from comment #9)
> Hey Julie
> The command should be:
> show event --id '60' 
> 
> QA:
> I've updated step 17 accordingly and made some line changes to the topic. 
> Revision History also updated.

Thanks Andrew.

Note You need to log in before you can comment on or make changes to this bug.