1 <cd-modal [modalRef]="activeModal">
2 <ng-container i18n="form title"
3 class="modal-title">Migrate Single Site to Multi-site
5 <span>Migrate from a single-site deployment with a default zone group and zone to a multi-site system</span>
9 <ng-container class="modal-content">
10 <form name="multisiteMigrateForm"
12 [formGroup]="multisiteMigrateForm"
14 <div class="modal-body">
15 <div class="form-group row">
16 <label class="cd-col-form-label required"
18 i18n>Realm Name</label>
19 <div class="cd-col-form-input">
20 <input class="form-control"
22 placeholder="Realm name..."
25 formControlName="realmName">
26 <span class="invalid-feedback"
27 *ngIf="multisiteMigrateForm.showError('realmName', formDir, 'required')"
28 i18n>This field is required.</span>
29 <span class="invalid-feedback"
30 *ngIf="multisiteMigrateForm.showError('realmName', formDir, 'uniqueName')"
31 i18n>The chosen realm name is already in use.</span>
34 <div class="form-group row">
35 <label class="cd-col-form-label required"
37 i18n>Rename default zone group</label>
38 <div class="cd-col-form-input">
39 <input class="form-control"
41 placeholder="Zone group name..."
44 formControlName="zonegroupName">
45 <span class="invalid-feedback"
46 *ngIf="multisiteMigrateForm.showError('zonegroupName', formDir, 'required')"
47 i18n>This field is required.</span>
48 <span class="invalid-feedback"
49 *ngIf="multisiteMigrateForm.showError('zonegroupName', formDir, 'uniqueName')"
50 i18n>The chosen zone group name is already in use.</span>
53 <div class="form-group row">
54 <label class="cd-col-form-label required"
55 for="zonegroup_endpoints"
56 i18n>Zone group Endpoints
58 <div class="cd-col-form-input">
59 <input class="form-control"
61 placeholder="e.g, http://ceph-node-00.com:80"
62 id="zonegroup_endpoints"
63 name="zonegroup_endpoints"
64 formControlName="zonegroup_endpoints">
65 <span class="invalid-feedback"
66 *ngIf="multisiteMigrateForm.showError('zonegroup_endpoints', formDir, 'required')"
67 i18n>This field is required.</span>
68 <span class="invalid-feedback"
69 *ngIf="multisiteMigrateForm.showError('zonegroup_endpoints', formDir, 'endpoint')"
70 i18n>Please enter a valid IP address.</span>
73 <div class="form-group row">
74 <label class="cd-col-form-label required"
76 i18n>Rename default zone</label>
77 <div class="cd-col-form-input">
78 <input class="form-control"
80 placeholder="Zone name..."
83 formControlName="zoneName">
84 <span class="invalid-feedback"
85 *ngIf="multisiteMigrateForm.showError('zoneName', formDir, 'required')"
86 i18n>This field is required.</span>
87 <span class="invalid-feedback"
88 *ngIf="multisiteMigrateForm.showError('zoneName', formDir, 'uniqueName')"
89 i18n>The chosen zone name is already in use.</span>
92 <div class="form-group row">
93 <label class="cd-col-form-label required"
97 <div class="cd-col-form-input">
98 <input class="form-control"
100 placeholder="e.g, http://ceph-node-00.com:80"
102 name="zone_endpoints"
103 formControlName="zone_endpoints">
104 <span class="invalid-feedback"
105 *ngIf="multisiteMigrateForm.showError('zone_endpoints', formDir, 'required')"
106 i18n>This field is required.</span>
107 <span class="invalid-feedback"
108 *ngIf="multisiteMigrateForm.showError('zone_endpoints', formDir, 'endpoint')"
109 i18n>Please enter a valid IP address.</span>
112 <div class="form-group row">
113 <label class="cd-col-form-label required"
117 <span>To see or copy your S3 access key, go to <b>Object Gateway > Users</b> and click on your user name. In <b>Keys</b>, click <b>Show</b>. View the access key by clicking Show and copy the key by clicking <b>Copy to Clipboard</b>.</span>
120 <div class="cd-col-form-input">
121 <input class="form-control"
126 formControlName="access_key">
129 <div class="form-group row">
130 <label class="cd-col-form-label required"
134 <span>To see or copy your S3 access key, go to <b>Object Gateway > Users</b> and click on your user name. In <b>Keys</b>, click <b>Show</b>. View the secret key by clicking Show and copy the key by clicking <b>Copy to Clipboard</b>.</span>
137 <div class="cd-col-form-input">
138 <input class="form-control"
143 formControlName="secret_key">
147 <div class="modal-footer">
148 <cd-form-button-panel (submitActionEvent)="submit()"
149 [submitText]="actionLabels.MIGRATE + ' ' + 'to Multi-site'"
150 [form]="multisiteMigrateForm"></cd-form-button-panel>