Bug 2069977 - [cephadm] - ISCSI deployment is successful and not throwing error/warning when pool name provided which do not exists
Summary: [cephadm] - ISCSI deployment is successful and not throwing error/warning whe...
Keywords:
Status: CLOSED DUPLICATE of bug 2006771
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 5.0
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
: 6.1
Assignee: Adam King
QA Contact: Sunil Kumar Nagaraju
Anjana Suparna Sriram
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-30 07:58 UTC by Preethi
Modified: 2022-06-13 15:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-13 15:36:12 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-3891 0 None None None 2022-03-30 07:59:30 UTC

Description Preethi 2022-03-30 07:58:26 UTC
Description of problem:[cephadm] - ISCSI deployment is successful and not throwing error/warning when pool name provided which do not exists 


Version-Release number of selected component (if applicable):
[ceph: root@magna031 /]# ceph version
ceph version 16.2.7-67.el8cp (2ff107c73e8642c55c83296928b5102b785ff4e2) pacific (stable)
[ceph: root@magna031 /]# 


How reproducible:


Steps to Reproduce:
1.Have 5.1 cluster with mon,mgr,osds
2. Deploy iscsi service and gateways using the below command 

[ceph: root@magna031 /]# ceph orch apply iscsi iscsi123 --placement="depressa004.ceph.redhat.com,depressa005.ceph.redhat.com" --trusted_ip_list="10.1.172.205,10.1.172.206" admin admin
3. Observe the behaviour


Actual results: ISCSI deployment is successful when pool name iscsi123 is given where the pool do not exist in the cluster



Expected results: We should get an error/warning msg for the pool do not exist




Additional info:magna031



Output:
[ceph: root@magna031 /]# ceph orch apply iscsi iscsi123 --placement="depressa004.ceph.redhat.com,depressa005.ceph.redhat.com" --trusted_ip_list="10.1.172.205,10.1.172.206" admin admin
Scheduled iscsi.iscsi123 update...
[ceph: root@magna031 /]# ceph osd lspools | grep iscsi123
[ceph: root@magna031 /]# ceph osd lspools | grep iscsi*  
42 iscsi_pool
43 iscsi
49 iscsipool
[ceph: root@magna031 /]# cpeh orch ls
bash: cpeh: command not found
[ceph: root@magna031 /]# ceph orch ls
NAME               PORTS        RUNNING  REFRESHED  AGE  PLACEMENT                                                        
alertmanager       ?:9093,9094      0/1  12m ago    6M   count:1                                                          
crash                               8/9  12m ago    6M   *                                                                
grafana            ?:3000           0/1  12m ago    6M   count:1                                                          
iscsi.iscsi123                      0/2  -          34s  depressa004.ceph.redhat.com;depressa005.ceph.redhat.com          
mds.remote                          2/2  5m ago     6w   depressa004.ceph.redhat.com;depressa005.ceph.redhat.com;count:2  
mgr                                 2/3  12m ago    6M   magna031;magna032;magna006;count:3                               
mon                                 2/3  12m ago    6M   magna031;magna032;magna006;count:3                               
node-exporter      ?:9100           8/9  12m ago    6M   *                                                                
osd                                  15  5m ago     -    <unmanaged>                                                      
osd.osd_with_nvme                    12  5m ago     5M   depressa00[4-6].ceph.redhat.com                                  
prometheus         ?:9095           0/1  12m ago    6M   count:1                                                          
rbd-mirror                          0/1  12m ago    6M   magna031                                                         
rgw.foo            ?:80             2/2  4m ago     5M   count:2                                                          


NOTE: We get the expected message with the below but not in the command execution
[ceph: root@magna031 /]# ceph orch ls --service-name iscsi.iscsi123 -f yaml
service_type: iscsi
service_id: iscsi123
service_name: iscsi.iscsi123
placement:
  hosts:
  - depressa004.ceph.redhat.com
  - depressa005.ceph.redhat.com
spec:
  api_password: admin
  api_user: admin
  pool: iscsi123
  trusted_ip_list: 10.1.172.205,10.1.172.206
status:
  created: '2022-03-29T17:50:57.748075Z'
  running: 0
  size: 2
events:
- 2022-03-29T17:50:57.998309Z service:iscsi.iscsi123 [INFO] "service was created"
- '2022-03-29T17:50:58.205549Z service:iscsi.iscsi123 [ERROR] "Failed to apply: Cannot
  find pool "iscsi123" for service iscsi.iscsi123"'
[ceph: root@magna031 /]# ceph version
ceph version 16.2.7-67.el8cp (2ff107c73e8642c55c83296928b5102b785ff4e2) pacific (stable)

Comment 4 Preethi 2022-06-13 15:33:47 UTC
Yes Adam, This BZ is the duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2006771. Difference, same behaviour with orch command and the previous BZ was with spec deployment. Both are working as expected in 5.2 builds.

Comment 5 Preethi 2022-06-13 15:36:12 UTC

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


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