Adding a Cube Storage node
#
Pre-task:- cluster1 - IP: 10.32.20.241
- New Cube Storage node - IP: 10.32.20.242
#
cluster1: CLI > cluster > checkcluster1:cluster> check Service Status Report ClusterLink ok [ link(v) ] ClusterSettings ok [ etcd(v) ] HaCluster ok [ hacluster(v) ] MsgQueue ok [ rabbitmq(v) ] IaasDb ok [ mysql(v) ] VirtualIp ok [ vip(v) haproxy_ha(v) ] Storage ok [ ceph(v) ceph_mon(v) ceph_mgr(v) ceph_mds(v) ceph_osd(v) ceph_rgw(v) rbd_target(v) ] ApiService ok [ haproxy(v) httpd(v) lmi(v) memcache(v) ] SingleSignOn ok [ keycloak(v) ] Compute ok [ nova(v) ] Baremetal ok [ ironic(v) ] Network ok [ neutron(v) ] Image ok [ glance(v) ] BlockStor ok [ cinder(v) ] FileStor ok [ manila(v) ] ObjectStor ok [ swift(v) ] Orchestration ok [ heat(v) ] LBaaS ok [ octavia(v) ] DNSaaS ok [ designate(v) ] K8SaaS ok [ k3s(v) rancher(v) ] InstanceHa ok [ masakari(v) ] DisasterRecovery ok [ freezer(v) ] BusinessLogic ok [ mistral(v) murano(v) cloudkitty(v) ] DataPipe ok [ zookeeper(v) kafka(v) ] Metrics ok [ monasca(v) telegraf(v) grafana(v) ] LogAnalytics ok [ filebeat(v) auditbeat(v) logstash(v) es(v) kibana(v) ] Notifications ok [ influxdb(v) kapacitor(v) ]
#
Check for availble tuningCLI > tuning > dump
cluster1:tuning> dump
Published Tunings----------------------------------------------------------------Name Description Default|Min|Maxcinder.external.%d.name Set cinder external storage rule name. ["" (Any)]cinder.external.%d.driver Set cinder external storage type name <cube|purestorage>. ["" (Any)]cinder.external.%d.endpoint Set cinder external storage endpoint. ["" (Any)]cinder.external.%d.pool Set cinder external storage pool. ["" (Any)]cinder.external.%d.account Set cinder external storage account. ["" (Any)]cinder.external.%d.secret Set cinder external storage account secret. ["" (Any)]
#
configure tuning - cinder.external.1.nameCLI > tuning > configure
cluster1:tuning> configure enabled name value------------------------------------------------------------------------------------------------------------------------------1: modify tunings2: apply3: exitEnter index: 1Select action:1: Add2: Delete3: UpdateEnter index: 1Enter tuning name: cinder.external.1.nameEnter tuning value: CubeStorage242Enable the tuning:1: Enabled2: DisabledEnter index: 1
Adding tuning: cinder.external.1.name = CubeStorage242 (Enabled) enabled name value--------------------------------------------------------------- [x] cinder.external.1.name CubeStorage242---------------------------------------------------------------
#
configure tuning - cinder.external.1.driver1: modify tunings2: apply3: exitEnter index: 1Select action:1: Add2: Delete3: UpdateEnter index: 1Enter tuning name: cinder.external.1.driverEnter tuning value: cubeEnable the tuning:1: Enabled2: DisabledEnter index: 1
Adding tuning: cinder.external.1.driver = cube (Enabled) enabled name value--------------------------------------------------------------- [x] cinder.external.1.name CubeStorage242 [x] cinder.external.1.driver cube---------------------------------------------------------------
#
configure tuning - cinder.external.1.endpoint1: modify tunings2: apply3: exitEnter index: 1Select action:1: Add2: Delete3: UpdateEnter index: 1Enter tuning name: cinder.external.1.endpointEnter tuning value: 10.32.20.242Enable the tuning:1: Enabled2: DisabledEnter index: 1
Adding tuning: cinder.external.1.endpoint = 10.32.20.242 (Enabled) enabled name value--------------------------------------------------------------- [x] cinder.external.1.name CubeStorage242 [x] cinder.external.1.driver cube [x] cinder.external.1.endpoint 10.32.20.242---------------------------------------------------------------
#
configure tuning - cinder.external.1.pool1: modify tunings2: apply3: exitEnter index: 1Select action:1: Add2: Delete3: UpdateEnter index: 1Enter tuning name: cinder.external.1.poolEnter tuning value: cinder-volumesEnable the tuning:1: Enabled2: DisabledEnter index: 1
Adding tuning: cinder.external.1.pool = cinder-volumes (Enabled) enabled name value--------------------------------------------------------------- [x] cinder.external.1.name CubeStorage242 [x] cinder.external.1.driver cube [x] cinder.external.1.endpoint 10.32.20.242 [x] cinder.external.1.pool cinder-volumes---------------------------------------------------------------
#
configure tuning - cinder.external.1.secret(secret is cube admin account password)
1: modify tunings2: apply3: exitEnter index: 1Select action:1: Add2: Delete3: UpdateEnter index: 1Enter tuning name: cinder.external.1.secretEnter tuning value: adminEnable the tuning:1: Enabled2: DisabledEnter index: 1
Adding tuning: cinder.external.1.secret = admin (Enabled) enabled name value--------------------------------------------------------------- [x] cinder.external.1.name CubeStorage242 [x] cinder.external.1.driver cube [x] cinder.external.1.endpoint 10.32.20.242 [x] cinder.external.1.pool cinder-volumes [x] cinder.external.1.secret admin---------------------------------------------------------------
#
apply tuning1: modify tunings2: apply3: exitEnter index: 2 enabled name value--------------------------------------------------------------- [x] cinder.external.1.name CubeStorage242 [x] cinder.external.1.driver cube [x] cinder.external.1.endpoint 10.32.20.242 [x] cinder.external.1.pool cinder-volumes [x] cinder.external.1.secret admin---------------------------------------------------------------Apply the changes?Enter 'YES' to confirm: YESApplying policy changes.Warning: Permanently added '10.32.20.242' (ECDSA) to the list of known hosts.Policy changes were successfully applied.
#
Create a volume using CubeStorage242 backend#
Verify the volume is created on the remote cube site❯ ssh [email protected] rbd ls cinder-volumesWarning: Permanently added '10.32.20.242' (ECDSA) to the list of known hosts.Password:volume-7761b349-7301-4fc4-b98f-6f4273bd8feb