Bug 1963019 - [DOC][ISCSI] - dashboard cli changes for RHCS5
Summary: [DOC][ISCSI] - dashboard cli changes for RHCS5
Keywords:
Status: CLOSED DUPLICATE of bug 1956172
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Documentation
Version: 5.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 5.0
Assignee: Amrita
QA Contact: Harish Munjulur
URL:
Whiteboard:
Depends On:
Blocks: 1966486
TreeView+ depends on / blocked
 
Reported: 2021-05-21 06:34 UTC by Harish Munjulur
Modified: 2021-06-16 08:11 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-16 08:11:38 UTC
Embargoed:


Attachments (Terms of Use)

Description Harish Munjulur 2021-05-21 06:34:06 UTC
Describe the issue: New CLI for adding gateways to dashboard


Reference Document URL: https://docs.ceph.com/en/latest/mgr/dashboard/#enabling-iscsi-management


Product Version: RHCS 5


More information: 

using this doc for reference: https://docs.ceph.com/en/latest/mgr/dashboard/#enabling-iscsi-management

step1 : Add iscsi nodes and deploy containers. 

iscsi.yaml content
service_type: iscsi
service_id: iscsi
placement:
  hosts:
  - magna007
  - magna010
spec:
  pool: iscsi_pool
  trusted_ip_list: "10.8.128.10, 10.8.128.7, 2620:52:0:880:225:90ff:fefc:2538, 2620:52:0:880:225:90ff:fefc:252c"
  api_user: admin
  api_password: admin

 ceph orch apply -i iscsi.yaml   //successfully the containers are deployed


Step2: $ ceph dashboard set-iscsi-api-ssl-verification false  //To disable API SSL verification 

step3: ceph dashboard iscsi-gateway-list
[ceph: root@magna007 ~]# ceph dashboard iscsi-gateway-list
{"gateways": {"magna007": {"service_url": "http://admin:admin@[2620:52:0:880:225:90ff:fefc:2538]:5000"}, "magna010": {"service_url": "http://admin:admin@[2620:52:0:880:225:90ff:fefc:252c]:5000"}}}

step4: created 2 files gatewayurl and gatewayurl2 with "http://admin:admin@[2620:52:0:880:225:90ff:fefc:2538]:5000" and "http://admin:admin@[2620:52:0:880:225:90ff:fefc:252c]:5000" as content respectively. 
[ceph: root@magna007 ~]# cat gatewayurl
http://admin:admin@[2620:52:0:880:225:90ff:fefc:2538]:5000
[ceph: root@magna007 ~]# cat gatewayurl2
http://admin:admin@[2620:52:0:880:225:90ff:fefc:252c]:5000

step5: 
add 1st gateway 
[ceph: root@magna007 ~]# ceph dashboard iscsi-gateway-add -i gatewayurl magna007                                                  
Success
add 2nd gateway
[ceph: root@magna007 ~]# ceph dashboard iscsi-gateway-add -i gatewayurl2 magna010
Success

Expected results: Both the targets should be up in the dashboard


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