Skip to content

MCIS WeaveScope deployment

Seokho Son edited this page Jun 18, 2021 · 2 revisions

How to use. https://github.com/cloud-barista/cb-tumblebug/pull/419

Output

son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/src/testclient/scripts/sequentialFullTest$ ./deploy-weavescope-to-mcis.sh all 1 shson ../testSetAws.env 
[Check jq package (if not, install)]
install ok installed

MASTERIP: 13.212.254.59
MASTERVM: aws-ap-se-1-0
VMARRAY: [
  {
    "id": "aws-ap-se-1-0",
    "name": "aws-ap-se-1-0",
    "cspVmId": "tb01-mc-shson-aws-ap-se-1-0",
    "status": "Running",
    "targetStatus": "None",
    "targetAction": "None",
    "nativeStatus": "Running",
    "monAgentStatus": "notInstalled",
    "systemMessage": "",
    "createdTime": "2021-06-18 15:14:30",
    "publicIp": "13.212.254.xx",
    "privateIp": "192.168.2.96",
    "sshPort": "22",
    "location": {
      "latitude": "1.3700",
      "longitude": "103.8000",
      "briefAddr": "Singapore",
      "cloudType": "aws",
      "nativeRegion": "ap-southeast-1"
    }
  },
  {
    "id": "aws-us-west-1-0",
    "name": "aws-us-west-1-0",
    "cspVmId": "tb01-mc-shson-aws-us-west-1-0",
    "status": "Running",
    "targetStatus": "None",
    "targetAction": "None",
    "nativeStatus": "Running",
    "monAgentStatus": "notInstalled",
    "systemMessage": "",
    "createdTime": "2021-06-18 15:15:03",
    "publicIp": "54.177.115.174",
    "privateIp": "192.168.6.108",
    "sshPort": "22",
    "location": {
      "latitude": "37.3500",
      "longitude": "-121.9600",
      "briefAddr": "California",
      "cloudType": "aws",
      "nativeRegion": "us-west-1"
    }
  },
  {
    "id": "aws-ca-ct-1-0",
    "name": "aws-ca-ct-1-0",
    "cspVmId": "tb01-mc-shson-aws-ca-ct-1-0",
    "status": "Running",
    "targetStatus": "None",
    "targetAction": "None",
    "nativeStatus": "Running",
    "monAgentStatus": "notInstalled",
    "systemMessage": "",
    "createdTime": "2021-06-18 15:14:57",
    "publicIp": "35.182.30.37",
    "privateIp": "192.168.4.178",
    "sshPort": "22",
    "location": {
      "latitude": "45.5000",
      "longitude": "-73.6000",
      "briefAddr": "Canada Central",
      "cloudType": "aws",
      "nativeRegion": "ca-central-1"
    }
  }
]
IPLIST: 13.212.254.xx 54.177.115.174 35.182.30.37
PRIVIPLIST: 192.168.2.96 192.168.6.108 192.168.4.178

Installing Weavescope to MCIS...

{
  "result_array": [
    {
      "mcisId": "mc-shson",
      "vmId": "aws-ap-se-1-0",
      "vmIp": "13.212.254.xx",
...
    }
  ]
}

Launching Weavescope for master node...
{"result":"54e08177338425bde5e398759cbcc13c15a162ade06b7e2ab58005126133e0fc\nScope probe started"}

[MCIS Weavescope: master node only] Access to
 13.212.254.xx:4040/#!/state/{"contrastMode":true,"topologyId":"containers-by-hostname"}

Working on clustring...
Launching Weavescope for the other nodes...
{"result_array":[{"mcisId":"mc-shson","vmId":"aws-ap-se-1-0","vmIp":"13.212.254.xx","result":"Process exited with status 1"},{"mcisId":"mc-shson","vmId":"aws-ca-ct-1-0","vmIp":"35.182.30.37","result":"adc2fdd6ada4bf8c12112ba42bfe445d47ae3f59f92e54c92ac6e19b4a604b7a\nScope probe started"},{"mcisId":"mc-shson","vmId":"aws-us-west-1-0","vmIp":"54.177.115.174","result":"e3fdb5927a26d638fcb5580207c07533379acf411e75bfa525ee7d66d24503aa\nScope probe started"}]}
Done!

[DATE: 18/06/2021 15:25:56] [ElapsedTime: 79s (1m:19s)] [Command: ./deploy-weavescope-to-mcis.sh all 1 shson ../testSetAws.env]

[MCIS Weavescope: complete cluster] Access to
 13.212.254.xx:4040/#!/state/{"contrastMode":true,"topologyId":"containers-by-hostname"}
Clone this wiki locally