Project

General

Profile

Actions

Bug #50267

closed

rgw service can be deploy with realm and no zone or vise versa

Added by Daniel Pivonka about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
orchestrator
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

--realm and --zone both need to be supplied when doing 'orch apply rgw'

if just --realm is supplied the rgw service starts in default mode (non multisite)

[ceph: root@vm-00 /]# ceph orch apply rgw service_id --realm=test_realm 
Scheduled rgw.service_id update...
[ceph: root@vm-00 /]# 
[ceph: root@vm-00 /]# ceph orch ps
NAME                         HOST   PORTS          STATUS         REFRESHED  AGE  VERSION                IMAGE ID      CONTAINER ID  
alertmanager.vm-00           vm-00  *:9093 *:9094  running (2m)   1s ago     5m   0.20.0                 0881eb8f169f  9f31e4f3f365  
crash.vm-00                  vm-00  -              running (5m)   1s ago     5m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  06f3f7547dc8  
crash.vm-01                  vm-01  -              running (3m)   5s ago     3m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  e6b72ff098fd  
crash.vm-02                  vm-02  -              running (3m)   57s ago    3m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  31875a4606a2  
grafana.vm-00                vm-00  *:3000         running (2m)   1s ago     4m   6.7.4                  80728b29ad3f  4f708b3f3f87  
mgr.vm-00.tlevml             vm-00  *:9283         running (5m)   1s ago     5m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  25cc9cc842f5  
mgr.vm-01.opwgkn             vm-01  *:8443 *:9283  running (3m)   5s ago     3m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  b5679848bfd0  
mon.vm-00                    vm-00  -              running (5m)   1s ago     5m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  a46de779161b  
mon.vm-01                    vm-01  -              running (2m)   5s ago     2m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  48734e63d1ff  
mon.vm-02                    vm-02  -              running (2m)   57s ago    2m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  5788bb55eb46  
node-exporter.vm-00          vm-00  *:9100         running (4m)   1s ago     4m   0.18.1                 e5a616e4b9cf  2c3f608f9121  
node-exporter.vm-01          vm-01  *:9100         running (2m)   5s ago     2m   0.18.1                 e5a616e4b9cf  ad6c66b445b5  
node-exporter.vm-02          vm-02  *:9100         running (2m)   57s ago    2m   0.18.1                 e5a616e4b9cf  9e71ade67df0  
osd.0                        vm-01  -              running (2m)   5s ago     2m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  de25e84657f2  
osd.1                        vm-00  -              running (2m)   1s ago     2m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  3f83cb9b125d  
osd.2                        vm-02  -              running (2m)   57s ago    2m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  8d38622bf238  
prometheus.vm-00             vm-00  *:9095         running (2m)   1s ago     4m   2.18.1                 de242295e225  97d3b9ebbdc3  
rgw.service_id.vm-00.tanryt  vm-00  *:80           running (8s)   1s ago     7s   17.0.0-2956-g9d7a42e7  2a85b08e9f32  4a3195cfb42b  
rgw.service_id.vm-01.poxqal  vm-01  *:80           running (10s)  5s ago     10s  17.0.0-2956-g9d7a42e7  2a85b08e9f32  7bdcf373611a  
[ceph: root@vm-00 /]# 
[ceph: root@vm-00 /]# ceph osd pool ls 
device_health_metrics
.rgw.root
default.rgw.log
default.rgw.control
default.rgw.meta
[ceph: root@vm-00 /]#

you can see it created the default rgw pools

alternatively if only --zone is supplied the service fails

[ceph: root@vm-00 /]# ceph orch apply rgw service_id --zone=test_zone 
Scheduled rgw.service_id update...
[ceph: root@vm-00 /]#
[ceph: root@vm-00 /]# ceph orch ps
NAME                         HOST   PORTS          STATUS        REFRESHED  AGE  VERSION                IMAGE ID      CONTAINER ID  
alertmanager.vm-00           vm-00  *:9093 *:9094  running (3m)  7s ago     6m   0.20.0                 0881eb8f169f  9f31e4f3f365  
crash.vm-00                  vm-00  -              running (6m)  7s ago     6m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  06f3f7547dc8  
crash.vm-01                  vm-01  -              running (4m)  8s ago     4m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  e6b72ff098fd  
crash.vm-02                  vm-02  -              running (4m)  2m ago     4m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  31875a4606a2  
grafana.vm-00                vm-00  *:3000         running (3m)  7s ago     5m   6.7.4                  80728b29ad3f  4f708b3f3f87  
mgr.vm-00.tlevml             vm-00  *:9283         running (7m)  7s ago     7m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  25cc9cc842f5  
mgr.vm-01.opwgkn             vm-01  *:8443 *:9283  running (4m)  8s ago     4m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  b5679848bfd0  
mon.vm-00                    vm-00  -              running (7m)  7s ago     7m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  a46de779161b  
mon.vm-01                    vm-01  -              running (4m)  8s ago     4m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  48734e63d1ff  
mon.vm-02                    vm-02  -              running (4m)  2m ago     4m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  5788bb55eb46  
node-exporter.vm-00          vm-00  *:9100         running (5m)  7s ago     5m   0.18.1                 e5a616e4b9cf  2c3f608f9121  
node-exporter.vm-01          vm-01  *:9100         running (3m)  8s ago     3m   0.18.1                 e5a616e4b9cf  ad6c66b445b5  
node-exporter.vm-02          vm-02  *:9100         running (3m)  2m ago     3m   0.18.1                 e5a616e4b9cf  9e71ade67df0  
osd.0                        vm-01  -              running (3m)  8s ago     3m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  de25e84657f2  
osd.1                        vm-00  -              running (3m)  7s ago     3m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  3f83cb9b125d  
osd.2                        vm-02  -              running (3m)  2m ago     3m   17.0.0-2956-g9d7a42e7  2a85b08e9f32  8d38622bf238  
prometheus.vm-00             vm-00  *:9095         running (3m)  7s ago     5m   2.18.1                 de242295e225  97d3b9ebbdc3  
rgw.service_id.vm-00.gilldo  vm-00  *:80           unknown       7s ago     10s  <unknown>              <unknown>     <unknown>     
rgw.service_id.vm-01.ctthxk  vm-01  *:80           unknown       8s ago     12s  <unknown>              <unknown>     <unknown>     
[ceph: root@vm-00 /]#

journald logs from the rgw container show "cannot find zone id= (name=test_zone)"

both of these flags are required using one or the other causes unexpected behavior/failure

Actions #1

Updated by Daniel Pivonka about 3 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 40735
Actions #2

Updated by Sebastian Wagner about 3 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #3

Updated by Sebastian Wagner almost 3 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF