Skip to main content
Version: 1.3

Control node Replacement Guide

Remove Control node from cluster#

This guide only work for non-master controller.

Connect to controller#

$ ssh [email protected]Warning: Permanently added '192.168.1.x' (ECDSA) to the list of known hosts.Password:

Remove node#

Removing control03 from the cluster

control01> clustercontrol01:cluster> remove_node1: compute012: control033: compute024: control015: control02Enter index: 2this command is only applicable for compute or storage nodesmake sure its running instances have been properly terminated or migratedshutdown the target host before proceedingEnter 'YES' to confirm: YES

Backup control03 policies#

From your local pc terminal

$ scp -r root@control03_IPADDRESS:/etc/policies Downloads/control03_policy

Shutdown control03#

$ ssh [email protected]Warning: Permanently added '192.168.1.103' (ECDSA) to the list of known hosts.Password:Welcome to the Cube ApplianceEnter "help" for a list of available commandscontrol03> shutdownEnter 'YES' to confirm: YESConnection to 192.168.1.103 closed by remote host.Connection to 192.168.1.103 closed.

Adding Control Host#

Prepare a new node with CubeOS installed

Configuration#

Reconfigure a new control03 node by following any options of the list below:

Connect to control03#

$ ssh [email protected]Warning: Permanently added '192.168.1.103' (ECDSA) to the list of known hosts.Password:

Check & Repair services#

Welcome to the Cube ApplianceEnter "help" for a list of available commandscontrol03> clustercontrol03:cluster> check_repair          Service  Status  Report      ClusterLink      ok  [ link(v) ]  ClusterSettings      ok  [ etcd(v) ]        HaCluster      ok  [ hacluster(v) ]         MsgQueue  FIXING  [ rabbitmq(2) ]Creating user "openstack" ...Setting permissions for user "openstack" in vhost "/" ...                       ok  [ rabbitmq(f) ]           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) ]       ApiService      ok  [ haproxy(v) apache2(v) lmi(v) memcache(v) ]          Compute      ok  [ nova(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) ]       InstanceHa      ok  [ masakari(v) ] DisasterRecovery      ok  [ freezer(v) es235(v) ]         DataPipe      ok  [ zookeeper(v) kafka(v) ]          Metrics      ok  [ ceilometer(v) monasca(v) telegraf(v) grafana(v) ]     LogAnalytics      ok  [ filebeat(v) auditbeat(v) logstash(v) es(v) kibana(v) ]    Notifications      ok  [ influxdb(v) kapacitor(v) ]control03:cluster>

Check HA status#

control03:cluster> health HaCluster
[ HaCluster ]hacluster:Last updated: Fri Aug  7 16:52:30 2020      Last change: Fri Aug  7 13:11:58 2020 by hacluster via crmd on control01Stack: corosyncCurrent DC: control01 (version 1.1.14-70404b0) - partition with quorum5 nodes and 3 resources configured
Online: [ compute01 compute02 control01 control02 control03 ]
Full list of resources:
 vip    (ocf::heartbeat:IPaddr2):   Started control03 haproxy    (systemd:haproxy-ha):   Started control03 cinder-volume  (systemd:cinder-volume):    Started control02
Last updated on by Roy Tan