1 import { HttpParams } from '@angular/common/http';
2 import { Component, Input, OnInit, ViewChild } from '@angular/core';
3 import { AbstractControl, Validators } from '@angular/forms';
4 import { ActivatedRoute, Router } from '@angular/router';
6 import { NgbActiveModal, NgbModalRef, NgbTypeahead } from '@ng-bootstrap/ng-bootstrap';
7 import _ from 'lodash';
8 import { forkJoin, merge, Observable, Subject, Subscription } from 'rxjs';
9 import { debounceTime, distinctUntilChanged, filter, map } from 'rxjs/operators';
10 import { CreateRgwServiceEntitiesComponent } from '~/app/ceph/rgw/create-rgw-service-entities/create-rgw-service-entities.component';
11 import { RgwRealm, RgwZonegroup, RgwZone } from '~/app/ceph/rgw/models/rgw-multisite';
13 import { CephServiceService } from '~/app/shared/api/ceph-service.service';
14 import { HostService } from '~/app/shared/api/host.service';
15 import { PoolService } from '~/app/shared/api/pool.service';
16 import { RgwMultisiteService } from '~/app/shared/api/rgw-multisite.service';
17 import { RgwRealmService } from '~/app/shared/api/rgw-realm.service';
18 import { RgwZoneService } from '~/app/shared/api/rgw-zone.service';
19 import { RgwZonegroupService } from '~/app/shared/api/rgw-zonegroup.service';
20 import { SelectMessages } from '~/app/shared/components/select/select-messages.model';
21 import { SelectOption } from '~/app/shared/components/select/select-option.model';
26 } from '~/app/shared/constants/app.constants';
27 import { CdForm } from '~/app/shared/forms/cd-form';
28 import { CdFormBuilder } from '~/app/shared/forms/cd-form-builder';
29 import { CdFormGroup } from '~/app/shared/forms/cd-form-group';
30 import { CdValidators } from '~/app/shared/forms/cd-validators';
31 import { FinishedTask } from '~/app/shared/models/finished-task';
32 import { CephServiceSpec } from '~/app/shared/models/service.interface';
33 import { ModalService } from '~/app/shared/services/modal.service';
34 import { TaskWrapperService } from '~/app/shared/services/task-wrapper.service';
35 import { TimerService } from '~/app/shared/services/timer.service';
38 selector: 'cd-service-form',
39 templateUrl: './service-form.component.html',
40 styleUrls: ['./service-form.component.scss']
42 export class ServiceFormComponent extends CdForm implements OnInit {
43 public sub = new Subscription();
45 readonly MDS_SVC_ID_PATTERN = /^[a-zA-Z_.-][a-zA-Z0-9_.-]*$/;
46 readonly SNMP_DESTINATION_PATTERN = /^[^\:]+:[0-9]/;
47 readonly SNMP_ENGINE_ID_PATTERN = /^[0-9A-Fa-f]{10,64}/g;
48 readonly INGRESS_SUPPORTED_SERVICE_TYPES = ['rgw', 'nfs'];
49 @ViewChild(NgbTypeahead, { static: false })
50 typeahead: NgbTypeahead;
52 @Input() hiddenServices: string[] = [];
54 @Input() editing = false;
56 @Input() serviceName: string;
58 @Input() serviceType: string;
60 serviceForm: CdFormGroup;
63 serviceTypes: string[] = [];
64 serviceIds: string[] = [];
67 labelClick = new Subject<string>();
68 labelFocus = new Subject<string>();
70 services: Array<CephServiceSpec> = [];
72 serviceList: CephServiceSpec[];
73 multisiteInfo: object[] = [];
75 defaultZonegroupId = '';
77 realmList: RgwRealm[] = [];
78 zonegroupList: RgwZonegroup[] = [];
79 zoneList: RgwZone[] = [];
80 bsModalRef: NgbModalRef;
81 defaultZonegroup: RgwZonegroup;
82 showRealmCreationForm = false;
83 defaultsInfo: { defaultRealmName: string; defaultZonegroupName: string; defaultZoneName: string };
85 zonegroupNames: string[];
89 public actionLabels: ActionLabelsI18n,
90 private cephServiceService: CephServiceService,
91 private formBuilder: CdFormBuilder,
92 private hostService: HostService,
93 private poolService: PoolService,
94 private router: Router,
95 private taskWrapperService: TaskWrapperService,
96 public timerService: TimerService,
97 public timerServiceVariable: TimerServiceInterval,
98 public rgwRealmService: RgwRealmService,
99 public rgwZonegroupService: RgwZonegroupService,
100 public rgwZoneService: RgwZoneService,
101 public rgwMultisiteService: RgwMultisiteService,
102 private route: ActivatedRoute,
103 public activeModal: NgbActiveModal,
104 public modalService: ModalService
107 this.resource = $localize`service`;
110 messages: new SelectMessages({
111 empty: $localize`There are no hosts.`,
112 filter: $localize`Filter hosts`
119 this.serviceForm = this.formBuilder.group({
121 service_type: [null, [Validators.required]],
125 CdValidators.composeIf(
131 CdValidators.custom('mdsPattern', (value: string) => {
132 if (_.isEmpty(value)) {
135 return !this.MDS_SVC_ID_PATTERN.test(value);
139 CdValidators.requiredIf({
142 CdValidators.requiredIf({
143 service_type: 'iscsi'
145 CdValidators.requiredIf({
146 service_type: 'ingress'
148 CdValidators.composeIf(
152 [Validators.required]
154 CdValidators.custom('uniqueName', (service_id: string) => {
155 return this.serviceIds && this.serviceIds.includes(service_id);
159 placement: ['hosts'],
163 CdValidators.requiredIf({
170 count: [null, [CdValidators.number(false)]],
176 CdValidators.requiredIf({
177 service_type: 'iscsi'
182 rgw_frontend_port: [null, [CdValidators.number(false)]],
184 zonegroup_name: [null],
187 trusted_ip_list: [null],
188 api_port: [null, [CdValidators.number(false)]],
192 CdValidators.requiredIf({
193 service_type: 'iscsi',
201 CdValidators.requiredIf({
202 service_type: 'iscsi',
211 CdValidators.requiredIf({
212 service_type: 'ingress'
219 CdValidators.requiredIf({
220 service_type: 'ingress'
227 CdValidators.number(false),
228 CdValidators.requiredIf({
229 service_type: 'ingress'
236 CdValidators.number(false),
237 CdValidators.requiredIf({
238 service_type: 'ingress'
242 virtual_interface_networks: [null],
243 // RGW, Ingress & iSCSI
248 CdValidators.composeIf(
254 [Validators.required, CdValidators.pemCert()]
256 CdValidators.composeIf(
258 service_type: 'iscsi',
262 [Validators.required, CdValidators.sslCert()]
264 CdValidators.composeIf(
266 service_type: 'ingress',
270 [Validators.required, CdValidators.pemCert()]
277 CdValidators.composeIf(
279 service_type: 'iscsi',
283 [Validators.required, CdValidators.sslPrivKey()]
291 CdValidators.requiredIf({
292 service_type: 'snmp-gateway'
300 CdValidators.requiredIf({
301 service_type: 'snmp-gateway'
303 CdValidators.custom('snmpDestinationPattern', (value: string) => {
304 if (_.isEmpty(value)) {
307 return !this.SNMP_DESTINATION_PATTERN.test(value);
315 CdValidators.requiredIf({
316 service_type: 'snmp-gateway'
318 CdValidators.custom('snmpEngineIdPattern', (value: string) => {
319 if (_.isEmpty(value)) {
322 return !this.SNMP_ENGINE_ID_PATTERN.test(value);
329 CdValidators.requiredIf({
330 service_type: 'snmp-gateway'
334 privacy_protocol: [null],
338 CdValidators.requiredIf({
343 snmp_v3_auth_username: [
346 CdValidators.requiredIf({
347 service_type: 'snmp-gateway'
351 snmp_v3_auth_password: [
354 CdValidators.requiredIf({
355 service_type: 'snmp-gateway'
359 snmp_v3_priv_password: [
362 CdValidators.requiredIf({
363 privacy_protocol: { op: '!empty' }
367 grafana_port: [null, [CdValidators.number(false)]],
368 grafana_admin_password: [null]
373 this.action = this.actionLabels.CREATE;
374 if (this.router.url.includes('services/(modal:create')) {
375 this.pageURL = 'services';
376 } else if (this.router.url.includes('services/(modal:edit')) {
378 this.pageURL = 'services';
379 this.route.params.subscribe((params: { type: string; name: string }) => {
380 this.serviceName = params.name;
381 this.serviceType = params.type;
385 this.cephServiceService
386 .list(new HttpParams({ fromObject: { limit: -1, offset: 0 } }))
387 .observable.subscribe((services: CephServiceSpec[]) => {
388 this.serviceList = services;
389 this.services = services.filter((service: any) =>
390 this.INGRESS_SUPPORTED_SERVICE_TYPES.includes(service.service_type)
394 this.cephServiceService.getKnownTypes().subscribe((resp: Array<string>) => {
395 // Remove service types:
396 // osd - This is deployed a different way.
397 // container - This should only be used in the CLI.
398 this.hiddenServices.push('osd', 'container');
400 this.serviceTypes = _.difference(resp, this.hiddenServices).sort();
402 this.hostService.getAllHosts().subscribe((resp: object[]) => {
403 const options: SelectOption[] = [];
404 _.forEach(resp, (host: object) => {
405 if (_.get(host, 'sources.orchestrator', false)) {
406 const option = new SelectOption(false, _.get(host, 'hostname'), '');
407 options.push(option);
410 this.hosts.options = [...options];
412 this.hostService.getLabels().subscribe((resp: string[]) => {
415 this.poolService.getList().subscribe((resp: Array<object>) => {
420 this.action = this.actionLabels.EDIT;
421 this.disableForEditing(this.serviceType);
422 this.cephServiceService
423 .list(new HttpParams({ fromObject: { limit: -1, offset: 0 } }), this.serviceName)
424 .observable.subscribe((response: CephServiceSpec[]) => {
425 const formKeys = ['service_type', 'service_id', 'unmanaged'];
426 formKeys.forEach((keys) => {
427 this.serviceForm.get(keys).setValue(response[0][keys]);
429 if (!response[0]['unmanaged']) {
430 const placementKey = Object.keys(response[0]['placement'])[0];
431 let placementValue: string;
432 ['hosts', 'label'].indexOf(placementKey) >= 0
433 ? (placementValue = placementKey)
434 : (placementValue = 'hosts');
435 this.serviceForm.get('placement').setValue(placementValue);
436 this.serviceForm.get('count').setValue(response[0]['placement']['count']);
437 if (response[0]?.placement[placementValue]) {
438 this.serviceForm.get(placementValue).setValue(response[0]?.placement[placementValue]);
441 switch (this.serviceType) {
443 const specKeys = ['pool', 'api_password', 'api_user', 'trusted_ip_list', 'api_port'];
444 specKeys.forEach((key) => {
445 this.serviceForm.get(key).setValue(response[0].spec[key]);
447 this.serviceForm.get('ssl').setValue(response[0].spec?.api_secure);
448 if (response[0].spec?.api_secure) {
449 this.serviceForm.get('ssl_cert').setValue(response[0].spec?.ssl_cert);
450 this.serviceForm.get('ssl_key').setValue(response[0].spec?.ssl_key);
455 .get('rgw_frontend_port')
456 .setValue(response[0].spec?.rgw_frontend_port);
459 response[0].spec?.rgw_realm,
460 response[0].spec?.rgw_zonegroup,
461 response[0].spec?.rgw_zone
463 this.serviceForm.get('ssl').setValue(response[0].spec?.ssl);
464 if (response[0].spec?.ssl) {
467 .setValue(response[0].spec?.rgw_frontend_ssl_certificate);
471 const ingressSpecKeys = [
476 'virtual_interface_networks',
479 ingressSpecKeys.forEach((key) => {
480 this.serviceForm.get(key).setValue(response[0].spec[key]);
482 if (response[0].spec?.ssl) {
483 this.serviceForm.get('ssl_cert').setValue(response[0].spec?.ssl_cert);
484 this.serviceForm.get('ssl_key').setValue(response[0].spec?.ssl_key);
488 const snmpCommonSpecKeys = ['snmp_version', 'snmp_destination'];
489 snmpCommonSpecKeys.forEach((key) => {
490 this.serviceForm.get(key).setValue(response[0].spec[key]);
492 if (this.serviceForm.getValue('snmp_version') === 'V3') {
493 const snmpV3SpecKeys = [
497 'snmp_v3_auth_username',
498 'snmp_v3_auth_password',
499 'snmp_v3_priv_password'
501 snmpV3SpecKeys.forEach((key) => {
504 key === 'snmp_v3_auth_username' ||
505 key === 'snmp_v3_auth_password' ||
506 key === 'snmp_v3_priv_password'
508 this.serviceForm.get(key).setValue(response[0].spec['credentials'][key]);
510 this.serviceForm.get(key).setValue(response[0].spec[key]);
516 .get('snmp_community')
517 .setValue(response[0].spec['credentials']['snmp_community']);
521 this.serviceForm.get('grafana_port').setValue(response[0].spec.port);
523 .get('grafana_admin_password')
524 .setValue(response[0].spec.initial_admin_password);
532 defaultRealmId: string,
533 defaultZonegroupId: string,
534 defaultZoneId: string
535 ): { defaultRealmName: string; defaultZonegroupName: string; defaultZoneName: string } {
536 const defaultRealm = this.realmList.find((x: { id: string }) => x.id === defaultRealmId);
537 const defaultZonegroup = this.zonegroupList.find(
538 (x: { id: string }) => x.id === defaultZonegroupId
540 const defaultZone = this.zoneList.find((x: { id: string }) => x.id === defaultZoneId);
541 const defaultRealmName = defaultRealm !== undefined ? defaultRealm.name : null;
542 const defaultZonegroupName = defaultZonegroup !== undefined ? defaultZonegroup.name : 'default';
543 const defaultZoneName = defaultZone !== undefined ? defaultZone.name : 'default';
544 if (defaultZonegroupName === 'default' && !this.zonegroupNames.includes(defaultZonegroupName)) {
545 const defaultZonegroup = new RgwZonegroup();
546 defaultZonegroup.name = 'default';
547 this.zonegroupList.push(defaultZonegroup);
549 if (defaultZoneName === 'default' && !this.zoneNames.includes(defaultZoneName)) {
550 const defaultZone = new RgwZone();
551 defaultZone.name = 'default';
552 this.zoneList.push(defaultZone);
555 defaultRealmName: defaultRealmName,
556 defaultZonegroupName: defaultZonegroupName,
557 defaultZoneName: defaultZoneName
562 selectedServiceType: string,
564 zonegroup_name?: string,
567 this.serviceIds = this.serviceList
568 ?.filter((service) => service['service_type'] === selectedServiceType)
569 .map((service) => service['service_id']);
571 if (selectedServiceType === 'rgw') {
572 const observables = [
573 this.rgwRealmService.getAllRealmsInfo(),
574 this.rgwZonegroupService.getAllZonegroupsInfo(),
575 this.rgwZoneService.getAllZonesInfo()
577 this.sub = forkJoin(observables).subscribe(
578 (multisiteInfo: [object, object, object]) => {
579 this.multisiteInfo = multisiteInfo;
581 this.multisiteInfo[0] !== undefined && this.multisiteInfo[0].hasOwnProperty('realms')
582 ? this.multisiteInfo[0]['realms']
585 this.multisiteInfo[1] !== undefined &&
586 this.multisiteInfo[1].hasOwnProperty('zonegroups')
587 ? this.multisiteInfo[1]['zonegroups']
590 this.multisiteInfo[2] !== undefined && this.multisiteInfo[2].hasOwnProperty('zones')
591 ? this.multisiteInfo[2]['zones']
593 this.realmNames = this.realmList.map((realm) => {
594 return realm['name'];
596 this.zonegroupNames = this.zonegroupList.map((zonegroup) => {
597 return zonegroup['name'];
599 this.zoneNames = this.zoneList.map((zone) => {
602 this.defaultRealmId = multisiteInfo[0]['default_realm'];
603 this.defaultZonegroupId = multisiteInfo[1]['default_zonegroup'];
604 this.defaultZoneId = multisiteInfo[2]['default_zone'];
605 this.defaultsInfo = this.getDefaultsEntities(
607 this.defaultZonegroupId,
611 this.serviceForm.get('realm_name').setValue(this.defaultsInfo['defaultRealmName']);
613 .get('zonegroup_name')
614 .setValue(this.defaultsInfo['defaultZonegroupName']);
615 this.serviceForm.get('zone_name').setValue(this.defaultsInfo['defaultZoneName']);
617 if (realm_name && !this.realmNames.includes(realm_name)) {
618 const realm = new RgwRealm();
619 realm.name = realm_name;
620 this.realmList.push(realm);
622 if (zonegroup_name && !this.zonegroupNames.includes(zonegroup_name)) {
623 const zonegroup = new RgwZonegroup();
624 zonegroup.name = zonegroup_name;
625 this.zonegroupList.push(zonegroup);
627 if (zone_name && !this.zoneNames.includes(zone_name)) {
628 const zone = new RgwZone();
629 zone.name = zone_name;
630 this.zoneList.push(zone);
632 if (zonegroup_name === undefined && zone_name === undefined) {
633 zonegroup_name = 'default';
634 zone_name = 'default';
636 this.serviceForm.get('realm_name').setValue(realm_name);
637 this.serviceForm.get('zonegroup_name').setValue(zonegroup_name);
638 this.serviceForm.get('zone_name').setValue(zone_name);
640 if (this.realmList.length === 0) {
641 this.showRealmCreationForm = true;
643 this.showRealmCreationForm = false;
647 const defaultZone = new RgwZone();
648 defaultZone.name = 'default';
649 const defaultZonegroup = new RgwZonegroup();
650 defaultZonegroup.name = 'default';
651 this.zoneList.push(defaultZone);
652 this.zonegroupList.push(defaultZonegroup);
658 disableForEditing(serviceType: string) {
659 const disableForEditKeys = ['service_type', 'service_id'];
660 disableForEditKeys.forEach((key) => {
661 this.serviceForm.get(key).disable();
663 switch (serviceType) {
665 this.serviceForm.get('backend_service').disable();
669 searchLabels = (text$: Observable<string>) => {
671 text$.pipe(debounceTime(200), distinctUntilChanged()),
673 this.labelClick.pipe(filter(() => !this.typeahead.isPopupOpen()))
677 .filter((label: string) => label.toLowerCase().indexOf(value.toLowerCase()) > -1)
683 fileUpload(files: FileList, controlName: string) {
684 const file: File = files[0];
685 const reader = new FileReader();
686 reader.addEventListener('load', (event: ProgressEvent<FileReader>) => {
687 const control: AbstractControl = this.serviceForm.get(controlName);
688 control.setValue(event.target.result);
689 control.markAsDirty();
690 control.markAsTouched();
691 control.updateValueAndValidity();
693 reader.readAsText(file, 'utf8');
697 const control: AbstractControl = this.serviceForm.get('service_id');
698 const backendService = this.serviceForm.getValue('backend_service');
699 // Set Id as read-only
700 control.reset({ value: backendService, disabled: true });
705 const values: object = this.serviceForm.getRawValue();
706 const serviceType: string = values['service_type'];
707 let taskUrl = `service/${URLVerbs.CREATE}`;
709 taskUrl = `service/${URLVerbs.EDIT}`;
711 const serviceSpec: object = {
712 service_type: serviceType,
714 unmanaged: values['unmanaged']
717 if (serviceType === 'rgw') {
718 serviceSpec['rgw_realm'] = values['realm_name'] ? values['realm_name'] : null;
719 serviceSpec['rgw_zonegroup'] =
720 values['zonegroup_name'] !== 'default' ? values['zonegroup_name'] : null;
721 serviceSpec['rgw_zone'] = values['zone_name'] !== 'default' ? values['zone_name'] : null;
722 svcId = values['service_id'];
724 svcId = values['service_id'];
726 const serviceId: string = svcId;
727 let serviceName: string = serviceType;
728 if (_.isString(serviceId) && !_.isEmpty(serviceId)) {
729 serviceName = `${serviceType}.${serviceId}`;
730 serviceSpec['service_id'] = serviceId;
733 // These services has some fields to be
734 // filled out even if unmanaged is true
735 switch (serviceType) {
737 serviceSpec['backend_service'] = values['backend_service'];
738 serviceSpec['service_id'] = values['backend_service'];
739 if (_.isNumber(values['frontend_port']) && values['frontend_port'] > 0) {
740 serviceSpec['frontend_port'] = values['frontend_port'];
742 if (_.isString(values['virtual_ip']) && !_.isEmpty(values['virtual_ip'])) {
743 serviceSpec['virtual_ip'] = values['virtual_ip'].trim();
745 if (_.isNumber(values['monitor_port']) && values['monitor_port'] > 0) {
746 serviceSpec['monitor_port'] = values['monitor_port'];
751 serviceSpec['pool'] = values['pool'];
755 serviceSpec['credentials'] = {};
756 serviceSpec['snmp_version'] = values['snmp_version'];
757 serviceSpec['snmp_destination'] = values['snmp_destination'];
758 if (values['snmp_version'] === 'V3') {
759 serviceSpec['engine_id'] = values['engine_id'];
760 serviceSpec['auth_protocol'] = values['auth_protocol'];
761 serviceSpec['credentials']['snmp_v3_auth_username'] = values['snmp_v3_auth_username'];
762 serviceSpec['credentials']['snmp_v3_auth_password'] = values['snmp_v3_auth_password'];
763 if (values['privacy_protocol'] !== null) {
764 serviceSpec['privacy_protocol'] = values['privacy_protocol'];
765 serviceSpec['credentials']['snmp_v3_priv_password'] = values['snmp_v3_priv_password'];
768 serviceSpec['credentials']['snmp_community'] = values['snmp_community'];
773 if (!values['unmanaged']) {
774 switch (values['placement']) {
776 if (values['hosts'].length > 0) {
777 serviceSpec['placement']['hosts'] = values['hosts'];
781 serviceSpec['placement']['label'] = values['label'];
784 if (_.isNumber(values['count']) && values['count'] > 0) {
785 serviceSpec['placement']['count'] = values['count'];
787 switch (serviceType) {
789 if (_.isNumber(values['rgw_frontend_port']) && values['rgw_frontend_port'] > 0) {
790 serviceSpec['rgw_frontend_port'] = values['rgw_frontend_port'];
792 serviceSpec['ssl'] = values['ssl'];
794 serviceSpec['rgw_frontend_ssl_certificate'] = values['ssl_cert']?.trim();
798 if (_.isString(values['trusted_ip_list']) && !_.isEmpty(values['trusted_ip_list'])) {
799 serviceSpec['trusted_ip_list'] = values['trusted_ip_list'].trim();
801 if (_.isNumber(values['api_port']) && values['api_port'] > 0) {
802 serviceSpec['api_port'] = values['api_port'];
804 serviceSpec['api_user'] = values['api_user'];
805 serviceSpec['api_password'] = values['api_password'];
806 serviceSpec['api_secure'] = values['ssl'];
808 serviceSpec['ssl_cert'] = values['ssl_cert']?.trim();
809 serviceSpec['ssl_key'] = values['ssl_key']?.trim();
813 serviceSpec['ssl'] = values['ssl'];
815 serviceSpec['ssl_cert'] = values['ssl_cert']?.trim();
816 serviceSpec['ssl_key'] = values['ssl_key']?.trim();
818 serviceSpec['virtual_interface_networks'] = values['virtual_interface_networks'];
821 serviceSpec['port'] = values['grafana_port'];
822 serviceSpec['initial_admin_password'] = values['grafana_admin_password'];
826 this.taskWrapperService
827 .wrapTaskAroundCall({
828 task: new FinishedTask(taskUrl, {
829 service_name: serviceName
832 ? this.cephServiceService.update(serviceSpec)
833 : this.cephServiceService.create(serviceSpec)
837 self.serviceForm.setErrors({ cdSubmitButton: true });
840 this.pageURL === 'services'
841 ? this.router.navigate([this.pageURL, { outlets: { modal: null } }])
842 : this.activeModal.close();
848 const snmpVersion = this.serviceForm.getValue('snmp_version');
849 const privacyProtocol = this.serviceForm.getValue('privacy_protocol');
850 if (snmpVersion === 'V3') {
851 this.serviceForm.get('snmp_community').clearValidators();
853 this.serviceForm.get('engine_id').clearValidators();
854 this.serviceForm.get('auth_protocol').clearValidators();
855 this.serviceForm.get('privacy_protocol').clearValidators();
856 this.serviceForm.get('snmp_v3_auth_username').clearValidators();
857 this.serviceForm.get('snmp_v3_auth_password').clearValidators();
859 if (privacyProtocol === null) {
860 this.serviceForm.get('snmp_v3_priv_password').clearValidators();
864 createMultisiteSetup() {
865 this.bsModalRef = this.modalService.show(CreateRgwServiceEntitiesComponent, {
868 this.bsModalRef.componentInstance.submitAction.subscribe(() => {
869 this.getServiceIds('rgw');