Bug 2265331 - [Dashboard] [Cpehfs] Volume Creation with hosts throwing internal server error
Summary: [Dashboard] [Cpehfs] Volume Creation with hosts throwing internal server error
Keywords:
Status: CLOSED DUPLICATE of bug 2241056
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 7.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 7.1
Assignee: Nizamudeen
QA Contact: Vinayak Papnoi
Anjana Suparna Sriram
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-21 14:30 UTC by Amarnath
Modified: 2024-02-22 05:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-02-22 05:19:58 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-8358 0 None None None 2024-02-21 14:35:25 UTC
Red Hat Issue Tracker RHCSDASH-1267 0 None None None 2024-02-21 14:35:28 UTC

Description Amarnath 2024-02-21 14:30:21 UTC
Description of problem:
Created volume with hosts and it is throwing error 

Log Trace in MGR : 
2024-02-21T14:23:05.149+0000 7fce0a7b2640  0 [volumes ERROR volumes.module] Failed _cmd_fs_volume_create(name:cephfs_4, placement:1 ceph-amk-clients-oz1nfc-node2,ceph-amk-clients-oz1nfc-node6) < "None":
Traceback (most recent call last):
  File "/lib/python3.9/site-packages/ceph/deployment/hostspec.py", line 14, in assert_valid_host
    assert p.match(part), 'name component must include only a-z, 0-9, and -'
AssertionError: name component must include only a-z, 0-9, and -

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/ceph/mgr/volumes/module.py", line 38, in wrap
    return f(self, inbuf, cmd)
  File "/usr/share/ceph/mgr/volumes/module.py", line 562, in _cmd_fs_volume_create
    return self.vc.create_fs_volume(vol_id, placement)
  File "/usr/share/ceph/mgr/volumes/fs/volume.py", line 117, in create_fs_volume
    return create_volume(self.mgr, volname, placement)
  File "/usr/share/ceph/mgr/volumes/fs/operations/volume.py", line 98, in create_volume
    return create_mds(mgr, volname, placement)
  File "/usr/share/ceph/mgr/volumes/fs/fs_util.py", line 52, in create_mds
    placement=PlacementSpec.from_string(placement))
  File "/lib/python3.9/site-packages/ceph/deployment/service_spec.py", line 413, in from_string
    ps = PlacementSpec(count=count,
  File "/lib/python3.9/site-packages/ceph/deployment/service_spec.py", line 155, in __init__
    self.validate()
  File "/lib/python3.9/site-packages/ceph/deployment/service_spec.py", line 311, in validate
    h.validate()
  File "/lib/python3.9/site-packages/ceph/deployment/service_spec.py", line 127, in validate
    assert_valid_host(self.hostname)
  File "/lib/python3.9/site-packages/ceph/deployment/hostspec.py", line 16, in assert_valid_host
    raise SpecValidationError(str(e) + f'. Got "{name}"')
ceph.deployment.hostspec.SpecValidationError: name component must include only a-z, 0-9, and -. Got "ceph-amk-clients-oz1nfc-node2,ceph-amk-clients-oz1nfc-node6"

But in volumes page we are able to see the FS 
when we try to go to the FS it is again throwing 500 Internal error

Mgr Logs : http://magna002.ceph.redhat.com/ceph-qe-logs/amar/volume_create/

ScreenShots : https://docs.google.com/document/d/1vBD-udE4ZJMiBw03V-VMJRcG9mmfYuTnCpc-levwbFI/edit

Version-Release number of selected component (if applicable):
Version18.2.1-33.el9cp
Release
7
Ceph Manager
10.0.208.106:8443
User
admin
User Role
administrator
Browser
chrome
Browser Version
121.0.0
Browser OS
Linux

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Amarnath 2024-02-22 05:19:58 UTC
Sure Nizamudeen,

Marking this as duplicate of 2241056

Regards,
Amarnath

*** This bug has been marked as a duplicate of bug 2241056 ***


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