Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CB-Tumblebug API calls to the test-client #187

Conversation

yunkon-kim
Copy link
Member

  • Test CB-Tumblebug APIs by test-cb-tumblebug-apis.go
  • Apply needed sections to test-client.go
  • Reorder build sequence by execution order in Makefile
  • Update gitignore

@yunkon-kim yunkon-kim self-assigned this Nov 16, 2021
@yunkon-kim yunkon-kim linked an issue Nov 16, 2021 that may be closed by this pull request
@yunkon-kim yunkon-kim force-pushed the patch-test-client-to-integrate-MCIS branch from ff3e28d to dabf6f0 Compare November 16, 2021 10:44
@yunkon-kim
Copy link
Member Author

The cb-network agent is successfully deployed on MCIS and run as a Linux service 😎

But, there is an issue on the host IP network and address like the following figure: 😭
image

- Test CB-Tumblebug APIs by test-cb-tumblebug-apis.go
- Apply needed sections to test-client.go
- Encode `\"` to `\\\"` additionally for json messag passing
- Reorder build sequence by execution order in Makefile
- Update gitignore
@yunkon-kim yunkon-kim force-pushed the patch-test-client-to-integrate-MCIS branch from 0ce7315 to 5643386 Compare November 17, 2021 05:09
@yunkon-kim yunkon-kim marked this pull request as ready for review November 17, 2021 05:10
@yunkon-kim
Copy link
Member Author

[ test-client.go's running log]
: Elapsed time: 3m17.9465081s

Start......... init() of networking-rule.go
exePath: /mnt/d/Dev/Cloud-Barista/cb-larva/poc-cb-net/cmd/test-client
logConfPath: /mnt/d/Dev/Cloud-Barista/cb-larva/poc-cb-net/cmd/test-client/config/log_conf.yaml
[cb-network].[DEBUG]: 2021-11-17 13:51:47 networking-rule.go:39, github.com/cloud-barista/cb-larva/poc-cb-net/internal/cb-network/model.init.0() - Load /mnt/d/Dev/Cloud-Barista/cb-larva/poc-cb-net/config/log_conf.yaml
End......... init() of networking-rule.go
Start......... init() of test-client.go
exePath: /mnt/d/Dev/Cloud-Barista/cb-larva/poc-cb-net/cmd/test-client
configPath: /mnt/d/Dev/Cloud-Barista/cb-larva/poc-cb-net/cmd/test-client/config/config.yaml
Load /mnt/d/Dev/Cloud-Barista/cb-larva/poc-cb-net/cmd/test-client/config/config.yaml
End......... init() of test-client.go


##### Start ---------- Health-check CB-Tumblebug
2021/11/17 13:51:47.558088 WARN RESTY Using Basic Auth in HTTP mode is not secure, use HTTPS

Error: <nil>
Time: 678µs
Body: {"message":"API server of CB-Tumblebug is alive"}
##### End ---------- Health-check CB-Tumblebug
Sleep 5 sec ( _ _ )zZ


##### Start ---------- Create MCIS
2021/11/17 13:51:52.560061 WARN RESTY Using Basic Auth in HTTP mode is not secure, use HTTPS

Error: <nil>
Time: 2m31.5934302s
Body: {"id":"mcis01","name":"mcis01","status":"Running-4(4/4)","statusCount":{"countTotal":4,"countCreating":0,"countRunning":4,"countFailed":0,"countSuspended":0,"countRebooting":0,"countTerminated":0,"countSuspending":0,"countResuming":0,"countTerminating":0,"countUndefined":0},"targetStatus":"Running","targetAction":"Create","installMonAgent":"no","label":"custom tag","description":"Made in CB-TB","vm":[{"id":"c6a8kqitiahu99vutfv0","name":"c6a8kqitiahu99vutfv0","vmGroupId":"","location":{"latitude":"37.3600","longitude":"126.7800","briefAddr":"Seoul","cloudType":"aws","nativeRegion":"ap-northeast-2"},"status":"Running","targetStatus":"None","targetAction":"None","monAgentStatus":"notInstalled","systemMessage":"","createdTime":"2021-11-17 13:53:28","label":"","description":"","region":{"Region":"ap-northeast-2","Zone":"ap-northeast-2a"},"publicIP":"52.78.6.128","sshPort":"22","publicDNS":"","privateIP":"192.168.20.58","privateDNS":"ip-192-168-20-58.ap-northeast-2.compute.internal","vmBootDisk":"/dev/sda1","vmBlockDisk":"/dev/sda1","connectionName":"aws-ap-northeast-2","specId":"aws-ap-northeast-2-t2-large","imageId":"aws-ap-northeast-2-ubuntu18-04","vNetId":"ns01-systemdefault-aws-ap-northeast-2","subnetId":"ns01-systemdefault-aws-ap-northeast-2","securityGroupIds":["ns01-systemdefault-aws-ap-northeast-2"],"sshKeyId":"ns01-systemdefault-aws-ap-northeast-2","cspViewVmDetail":{"Name":"","ImageName":"","VPCName":"","SubnetName":"","SecurityGroupNames":null,"KeyPairName":"","VMSpecName":"t2.large","VMUserId":"","VMUserPasswd":"","IId":{"NameId":"ns01-mcis01-c6a8kqitiahu99vutfv0","SystemId":"i-06da215a404f647fb"},"ImageIId":{"NameId":"ami-00379ec40a3e30f87","SystemId":"ami-00379ec40a3e30f87"},"VpcIID":{"NameId":"ns01-ns01-systemdefault-aws-ap-northeast-2","SystemId":"vpc-060020b443baa066e"},"SubnetIID":{"NameId":"ns01-systemdefault-aws-ap-northeast-2","SystemId":"subnet-07dcd9fc951a0ed4c"},"SecurityGroupIIds":[{"NameId":"ns01-systemdefault-aws-ap-northeast-2","SystemId":"sg-08067d1b5d12f5869"}],"KeyPairIId":{"NameId":"ns01-ns01-systemdefault-aws-ap-northeast-2","SystemId":"ns01-ns01-c6a8kq9p3rsrfjqlfif0"},"StartTime":"2021-11-17T04:53:13Z","Region":{"Region":"ap-northeast-2","Zone":"ap-northeast-2a"},"NetworkInterface":"eni-attach-0d261277622f5c85c","PublicIP":"52.78.6.128","PublicDNS":"","PrivateIP":"192.168.20.58","PrivateDNS":"ip-192-168-20-58.ap-northeast-2.compute.internal","VMBootDisk":"/dev/sda1","VMBlockDisk":"/dev/sda1","SSHAccessPoint":"52.78.6.128:22","KeyValueList":[{"Key":"State","Value":"running"},{"Key":"Architecture","Value":"x86_64"},{"Key":"VpcId","Value":"vpc-060020b443baa066e"},{"Key":"SubnetId","Value":"subnet-07dcd9fc951a0ed4c"},{"Key":"KeyName","Value":"ns01-ns01-c6a8kq9p3rsrfjqlfif0"}]}},{"id":"c6a8l0qtiahu99vutfvg","name":"c6a8l0qtiahu99vutfvg","vmGroupId":"","location":{"latitude":"37.7830","longitude":"-122.4170","briefAddr":"West US","cloudType":"azure","nativeRegion":"westus"},"status":"Running","targetStatus":"None","targetAction":"None","monAgentStatus":"notInstalled","systemMessage":"","createdTime":"2021-11-17 13:54:22","label":"","description":"","region":{"Region":"westus","Zone":""},"publicIP":"40.118.164.185","sshPort":"22","publicDNS":"","privateIP":"192.168.25.4","privateDNS":"","vmBootDisk":"ns01-mcis-c6a8lgpp3rsrfjqlfimg_OsDisk_1_17c98a29a1314b89aa57a9cbc5c96dc4","vmBlockDisk":"","connectionName":"azure-westus","specId":"azure-westus-standard-b2s","imageId":"azure-westus-ubuntu18-04","vNetId":"ns01-systemdefault-azure-westus","subnetId":"ns01-systemdefault-azure-westus","securityGroupIds":["ns01-systemdefault-azure-westus"],"sshKeyId":"ns01-systemdefault-azure-westus","vmUserAccount":"cb-user","cspViewVmDetail":{"Name":"","ImageName":"","VPCName":"","SubnetName":"","SecurityGroupNames":null,"KeyPairName":"","VMSpecName":"Standard_B2s","VMUserId":"cb-user","VMUserPasswd":"","IId":{"NameId":"ns01-mcis01-c6a8l0qtiahu99vutfvg","SystemId":"/subscriptions/a20fed83-96bd-4480-92a9-140b8e3b7c3a/resourceGroups/cb-tumblebug-azure-westus-tb/providers/Microsoft.Compute/virtualMachines/ns01-mcis-c6a8lgpp3rsrfjqlfimg"},"ImageIId":{"NameId":"Canonical:UbuntuServer:18.04-LTS:18.04.202106220","SystemId":"Canonical:UbuntuServer:18.04-LTS:18.04.202106220"},"VpcIID":{"NameId":"ns01-ns01-systemdefault-azure-westus","SystemId":"/subscriptions/a20fed83-96bd-4480-92a9-140b8e3b7c3a/resourceGroups/cb-tumblebug-azure-westus-tb/providers/Microsoft.Network/virtualNetworks/ns01-ns01-c6a8kqpp3rsrfjqlfig0"},"SubnetIID":{"NameId":"ns01-systemdefault-azure-westus","SystemId":"/subscriptions/a20fed83-96bd-4480-92a9-140b8e3b7c3a/resourceGroups/cb-tumblebug-azure-westus-tb/providers/Microsoft.Network/virtualNetworks/ns01-ns01-c6a8kqpp3rsrfjqlfig0/subnets/ns01-syst-c6a8kqpp3rsrfjqlfigg"},"SecurityGroupIIds":[{"NameId":"ns01-systemdefault-azure-westus","SystemId":"/subscriptions/a20fed83-96bd-4480-92a9-140b8e3b7c3a/resourceGroups/cb-tumblebug-azure-westus-tb/providers/Microsoft.Network/networkSecurityGroups/ns01-syst-c6a8kv9p3rsrfjqlfihg"}],"KeyPairIId":{"NameId":"ns01-ns01-systemdefault-azure-westus","SystemId":"/subscriptions/a20fed83-96bd-4480-92a9-140b8e3b7c3a/resourceGroups/cb-tumblebug-azure-westus-tb/providers/Microsoft.Compute/sshPublicKeys/ns01-ns01-c6a8ku9p3rsrfjqlfih0"},"StartTime":"2021-11-17T04:54:05.3992923Z","Region":{"Region":"westus","Zone":""},"NetworkInterface":"ns01-mcis-c6a8lgpp3rsrfjqlfimg-VNic","PublicIP":"40.118.164.185","PublicDNS":"","PrivateIP":"192.168.25.4","PrivateDNS":"","VMBootDisk":"ns01-mcis-c6a8lgpp3rsrfjqlfimg_OsDisk_1_17c98a29a1314b89aa57a9cbc5c96dc4","VMBlockDisk":"","SSHAccessPoint":"40.118.164.185:22","KeyValueList":[{"Key":"publicip","Value":"ns01-mcis-c6a8lgpp3rsrfjqlfimg-PublicIP"}]}},{"id":"c6a8l9atiahu99vutg00","name":"c6a8l9atiahu99vutg00","vmGroupId":"","location":{"latitude":"24.0756","longitude":"120.5451","briefAddr":"Changhua County Taiwan","cloudType":"gcp","nativeRegion":"asia-east1"},"status":"Running","targetStatus":"None","targetAction":"None","monAgentStatus":"notInstalled","systemMessage":"","createdTime":"2021-11-17 13:53:40","label":"","description":"","region":{"Region":"asia-east1","Zone":"asia-east1-a"},"publicIP":"35.229.166.101","sshPort":"22","publicDNS":"","privateIP":"192.168.65.2","privateDNS":"","vmBootDisk":"","vmBlockDisk":"","connectionName":"gcp-asia-east1","specId":"gcp-asia-east1-e2-standard-2","imageId":"gcp-asia-east1-ubuntu18-04","vNetId":"ns01-systemdefault-gcp-asia-east1","subnetId":"ns01-systemdefault-gcp-asia-east1","securityGroupIds":["ns01-systemdefault-gcp-asia-east1"],"sshKeyId":"ns01-systemdefault-gcp-asia-east1","vmUserAccount":"cb-user","cspViewVmDetail":{"Name":"","ImageName":"","VPCName":"","SubnetName":"","SecurityGroupNames":null,"KeyPairName":"","VMSpecName":"e2-standard-2","VMUserId":"cb-user","VMUserPasswd":"","IId":{"NameId":"ns01-mcis01-c6a8l9atiahu99vutg00","SystemId":"ns01-mcis-c6a8lhpp3rsrfjqlfing"},"ImageIId":{"NameId":"https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-minimal-1804-bionic-v20191024","SystemId":"https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-minimal-1804-bionic-v20191024"},"VpcIID":{"NameId":"ns01-ns01-systemdefault-gcp-asia-east1","SystemId":"ns01-ns01-c6a8l0pp3rsrfjqlfii0"},"SubnetIID":{"NameId":"ns01-systemdefault-gcp-asia-east1","SystemId":"ns01-syst-c6a8l0pp3rsrfjqlfiig"},"SecurityGroupIIds":[{"NameId":"ns01-systemdefault-gcp-asia-east1","SystemId":"ns01-syst-c6a8l81p3rsrfjqlfijg"}],"KeyPairIId":{"NameId":"ns01-ns01-systemdefault-gcp-asia-east1","SystemId":"ns01-ns01-c6a8l7pp3rsrfjqlfij0"},"StartTime":"2021-11-16T20:53:28.839-08:00","Region":{"Region":"asia-east1","Zone":"asia-east1-a"},"NetworkInterface":"nic0","PublicIP":"35.229.166.101","PublicDNS":"","PrivateIP":"192.168.65.2","PrivateDNS":"","VMBootDisk":"","VMBlockDisk":"","SSHAccessPoint":"35.229.166.101:22","KeyValueList":[{"Key":"SubNetwork","Value":"https://www.googleapis.com/compute/v1/projects/ykkim-etri/regions/asia-east1/subnetworks/ns01-syst-c6a8l0pp3rsrfjqlfiig"},{"Key":"AccessConfigName","Value":"External NAT"},{"Key":"NetworkTier","Value":"PREMIUM"},{"Key":"DiskDeviceName","Value":"persistent-disk-0"},{"Key":"DiskName","Value":"https://www.googleapis.com/compute/v1/projects/ykkim-etri/zones/asia-east1-a/disks/ns01-mcis-c6a8lhpp3rsrfjqlfing-asia-east1-a"}]}},{"id":"c6a8lb2tiahu99vutg0g","name":"c6a8lb2tiahu99vutg0g","vmGroupId":"","location":{"latitude":"34.6895","longitude":"139.9917","briefAddr":"Japan (Tokyo)","cloudType":"alibaba","nativeRegion":"ap-northeast-1"},"status":"Running","targetStatus":"None","targetAction":"None","monAgentStatus":"notInstalled","systemMessage":"","createdTime":"2021-11-17 13:53:40","label":"","description":"","region":{"Region":"ap-northeast-1","Zone":"ap-northeast-1a"},"publicIP":"47.245.14.203","sshPort":"22","publicDNS":"","privateIP":"192.168.90.63","privateDNS":"","vmBootDisk":"","vmBlockDisk":"","connectionName":"alibaba-ap-northeast-1","specId":"alibaba-ap-northeast-1-ecs-t5-lc1m2-large","imageId":"alibaba-ap-northeast-1-ubuntu18-04","vNetId":"ns01-systemdefault-alibaba-ap-northeast-1","subnetId":"ns01-systemdefault-alibaba-ap-northeast-1","securityGroupIds":["ns01-systemdefault-alibaba-ap-northeast-1"],"sshKeyId":"ns01-systemdefault-alibaba-ap-northeast-1","vmUserAccount":"cb-user","cspViewVmDetail":{"Name":"","ImageName":"","VPCName":"","SubnetName":"","SecurityGroupNames":null,"KeyPairName":"","VMSpecName":"ecs.t5-lc1m2.large","VMUserId":"cb-user","VMUserPasswd":"","IId":{"NameId":"ns01-mcis01-c6a8lb2tiahu99vutg0g","SystemId":"i-6wehjaqy1tvuye3y4wqu"},"ImageIId":{"NameId":"ubuntu_18_04_x64_20G_alibase_20210927.vhd","SystemId":"ubuntu_18_04_x64_20G_alibase_20210927.vhd"},"VpcIID":{"NameId":"ns01-ns01-systemdefault-alibaba-ap-northeast-1","SystemId":"vpc-6wee4am7r6ma7mumf8hpn"},"SubnetIID":{"NameId":"ns01-systemdefault-alibaba-ap-northeast-1","SystemId":"vsw-6weg9rigygsitg7le929u"},"SecurityGroupIIds":[{"NameId":"ns01-systemdefault-alibaba-ap-northeast-1","SystemId":"sg-6wedqwpa53saouo23zus"}],"KeyPairIId":{"NameId":"ns01-ns01-systemdefault-alibaba-ap-northeast-1","SystemId":"ns01-ns01-c6a8lahp3rsrfjqlfil0"},"StartTime":"2021-11-17T04:53:00Z","Region":{"Region":"ap-northeast-1","Zone":"ap-northeast-1a"},"NetworkInterface":"eni-6wefed6tm2jfbvfgt067","PublicIP":"47.245.14.203","PublicDNS":"","PrivateIP":"192.168.90.63","PrivateDNS":"","VMBootDisk":"","VMBlockDisk":"","SSHAccessPoint":"47.245.14.203:22","KeyValueList":[{"Key":"","Value":""}]}}]}
##### End ---------- Create MCIS
Sleep 10 sec ( _ _ )zZ


##### Start ---------- Get VM address spaces
vNetIds: []string{"ns01-systemdefault-aws-ap-northeast-2", "ns01-systemdefault-azure-westus", "ns01-systemdefault-gcp-asia-east1", "ns01-systemdefault-alibaba-ap-northeast-1"}

vNetId: ns01-systemdefault-aws-ap-northeast-2
2021/11/17 13:54:34.155317 WARN RESTY Using Basic Auth in HTTP mode is not secure, use HTTPS

Error: <nil>
Time: 1.0289ms
Body: {"id":"ns01-systemdefault-aws-ap-northeast-2","name":"ns01-systemdefault-aws-ap-northeast-2","connectionName":"aws-ap-northeast-2","cidrBlock":"192.168.20.0/24","subnetInfoList":[{"Id":"ns01-systemdefault-aws-ap-northeast-2","Name":"ns01-systemdefault-aws-ap-northeast-2","IPv4_CIDR":"192.168.20.0/24","KeyValueList":[{"Key":"VpcId","Value":"vpc-060020b443baa066e"},{"Key":"MapPublicIpOnLaunch","Value":"false"},{"Key":"AvailableIpAddressCount","Value":"251"},{"Key":"AvailabilityZone","Value":"ap-northeast-2a"},{"Key":"Status","Value":"available"}],"Description":""}],"description":"Generated Default Resource","cspVNetId":"vpc-060020b443baa066e","cspVNetName":"ns01-ns01-systemdefault-aws-ap-northeast-2","status":"","keyValueList":null,"associatedObjectList":["/ns/ns01/mcis/mcis01/vm/c6a8kqitiahu99vutfv0"],"isAutoGenerated":false}

vNetId: ns01-systemdefault-azure-westus
2021/11/17 13:54:34.156503 WARN RESTY Using Basic Auth in HTTP mode is not secure, use HTTPS

Error: <nil>
Time: 1.0649ms
Body: {"id":"ns01-systemdefault-azure-westus","name":"ns01-systemdefault-azure-westus","connectionName":"azure-westus","cidrBlock":"192.168.25.0/24","subnetInfoList":[{"Id":"ns01-systemdefault-azure-westus","Name":"ns01-systemdefault-azure-westus","IPv4_CIDR":"192.168.25.0/24","KeyValueList":[{"Key":"ResourceGroup","Value":"cb-tumblebug-azure-westus-tb"}],"Description":""}],"description":"Generated Default Resource","cspVNetId":"/subscriptions/a20fed83-96bd-4480-92a9-140b8e3b7c3a/resourceGroups/cb-tumblebug-azure-westus-tb/providers/Microsoft.Network/virtualNetworks/ns01-ns01-c6a8kqpp3rsrfjqlfig0","cspVNetName":"ns01-ns01-systemdefault-azure-westus","status":"","keyValueList":[{"Key":"ResourceGroup","Value":"cb-tumblebug-azure-westus-tb"}],"associatedObjectList":["/ns/ns01/mcis/mcis01/vm/c6a8l0qtiahu99vutfvg"],"isAutoGenerated":false}

vNetId: ns01-systemdefault-gcp-asia-east1
2021/11/17 13:54:34.157740 WARN RESTY Using Basic Auth in HTTP mode is not secure, use HTTPS

Error: <nil>
Time: 1.0698ms
Body: {"id":"ns01-systemdefault-gcp-asia-east1","name":"ns01-systemdefault-gcp-asia-east1","connectionName":"gcp-asia-east1","cidrBlock":"Not support IPv4_CIDR at GCP VPC","subnetInfoList":[{"Id":"ns01-systemdefault-gcp-asia-east1","Name":"ns01-systemdefault-gcp-asia-east1","IPv4_CIDR":"192.168.65.0/24","KeyValueList":[{"Key":"region","Value":"asia-east1"},{"Key":"subnet","Value":"ns01-syst-c6a8l0pp3rsrfjqlfiig"}],"Description":""}],"description":"Generated Default Resource","cspVNetId":"ns01-ns01-c6a8l0pp3rsrfjqlfii0","cspVNetName":"ns01-ns01-systemdefault-gcp-asia-east1","status":"","keyValueList":[{"Key":"RoutingMode","Value":"REGIONAL"},{"Key":"Description","Value":""},{"Key":"SelfLink","Value":"https://www.googleapis.com/compute/v1/projects/ykkim-etri/global/networks/ns01-ns01-c6a8l0pp3rsrfjqlfii0"}],"associatedObjectList":["/ns/ns01/mcis/mcis01/vm/c6a8l9atiahu99vutg00"],"isAutoGenerated":false}

vNetId: ns01-systemdefault-alibaba-ap-northeast-1
2021/11/17 13:54:34.158993 WARN RESTY Using Basic Auth in HTTP mode is not secure, use HTTPS

Error: <nil>
Time: 1.1133ms
Body: {"id":"ns01-systemdefault-alibaba-ap-northeast-1","name":"ns01-systemdefault-alibaba-ap-northeast-1","connectionName":"alibaba-ap-northeast-1","cidrBlock":"192.168.90.0/24","subnetInfoList":[{"Id":"ns01-systemdefault-alibaba-ap-northeast-1","Name":"ns01-systemdefault-alibaba-ap-northeast-1","IPv4_CIDR":"192.168.90.0/24","KeyValueList":[{"Key":"Status","Value":"Pending"},{"Key":"IsDefault","Value":"false"},{"Key":"ZoneId","Value":"ap-northeast-1a"}],"Description":""}],"description":"Generated Default Resource","cspVNetId":"vpc-6wee4am7r6ma7mumf8hpn","cspVNetName":"ns01-ns01-systemdefault-alibaba-ap-northeast-1","status":"","keyValueList":[{"Key":"IsDefault","Value":"false"},{"Key":"Status","Value":"Available"},{"Key":"VRouterId","Value":"vrt-6wefyobgcg2eux2euhw30"},{"Key":"RegionId","Value":"ap-northeast-1"}],"associatedObjectList":["/ns/ns01/mcis/mcis01/vm/c6a8lb2tiahu99vutg0g"],"isAutoGenerated":false}
IPNetsInMCIS: []string{"192.168.20.0/24", "192.168.25.0/24", "192.168.65.0/24", "192.168.90.0/24"}
##### End ---------- Get VM address spaces
Sleep 10 sec ( _ _ )zZ
2021/11/17 13:54:44 RecommendedIpv4PrivateAddressSpace: "192.168.0.0/29"
2021/11/17 13:54:44 Struct: &cb_larva.CLADNetSpecification{state:impl.MessageState{NoUnkeyedLiterals:pragma.NoUnkeyedLiterals{}, DoNotCompare:pragma.DoNotCompare{}, DoNotCopy:pragma.DoNotCopy{}, atomicMessageInfo:(*impl.MessageInfo)(0xc0001fc800)}, sizeCache:0, unknownFields:[]uint8(nil), Id:"c6a8m52tiahv25i47qbg", Name:"CLADNet01", Ipv4AddressSpace:"192.168.0.0/29", Description:"Alvin's CLADNet01"}
2021/11/17 13:54:44 Struct: cbnet.CLADNetSpecification{ID:"c6a8m52tiahv25i47qbg", Name:"CLADNet01", Ipv4AddressSpace:"192.168.0.0/29", Description:"Alvin's CLADNet01"}


##### Start ---------- Install the cb-network agent by sending a command to specified MCIS
etcdEndpointsString: "[\"13.250.161.2:2379\",\"52.231.25.49:2379\",\"35.216.55.222:2379\"]"
additionalEncodedString: "[\\\"13.250.161.2:2379\\\",\\\"52.231.25.49:2379\\\",\\\"35.216.55.222:2379\\\"]"
command: "wget https://raw.githubusercontent.com/cloud-barista/cb-larva/develop/poc-cb-net/scripts/1.deploy-cb-network-agent.sh -O ~/1.deploy-cb-network-agent.sh; chmod +x ~/1.deploy-cb-network-agent.sh; source ~/1.deploy-cb-network-agent.sh '[\\\"13.250.161.2:2379\\\",\\\"52.231.25.49:2379\\\",\\\"35.216.55.222:2379\\\"]' c6a8m52tiahv25i47qbg"
body: "{\"command\": \"wget https://raw.githubusercontent.com/cloud-barista/cb-larva/develop/poc-cb-net/scripts/1.deploy-cb-network-agent.sh -O ~/1.deploy-cb-network-agent.sh; chmod +x ~/1.deploy-cb-network-agent.sh; source ~/1.deploy-cb-network-agent.sh '[\\\"13.250.161.2:2379\\\",\\\"52.231.25.49:2379\\\",\\\"35.216.55.222:2379\\\"]' c6a8m52tiahv25i47qbg\", \"userName\": \"cb-user\"}"
2021/11/17 13:54:44.186887 WARN RESTY Using Basic Auth in HTTP mode is not secure, use HTTPS

Error: <nil>
Time: 16.3154721s
Body: {"resultArray":[{"mcisId":"mcis01","vmId":"c6a8kqitiahu99vutfv0","vmIp":"52.78.6.128","result":"Did you set the target repo and branch? IF NOT, quit within 5sec by ctrl+c\nNo input host_id(no). The hostname of node is used.\nStep 1: Get the execution file of cb-network agent to /home/cb-user/cb-network-agent\n-rw-rw-r-- 1 cb-user cb-user 14299136 Oct 25 10:56 agent\nStep 2: Generate config.yaml\nStep 3: Generate log_conf.yaml\nStep 4: Create a script to run a cb-network agent\nStep 5: Create a service file of the cb-network agent\n[Unit]\nDescription=Service of cb-network agent\n\n[Service]\nType=simple\nExecStart=/home/cb-user/cb-network-agent/run-cb-network-agent.sh\nRestart=on-failure\n\n[Install]\nWantedBy=multi-user.target\nStep 6: Start the cb-network agent service\nStep 7: enable start on boot of the cb-network agent service"},{"mcisId":"mcis01","vmId":"c6a8l0qtiahu99vutfvg","vmIp":"40.118.164.185","result":"Did you set the target repo and branch? IF NOT, quit within 5sec by ctrl+c\nNo input host_id(no). The hostname of node is used.\nStep 1: Get the execution file of cb-network agent to /home/cb-user/cb-network-agent\n-rw-rw-r-- 1 cb-user cb-user 14299136 Oct 25 10:56 agent\nStep 2: Generate config.yaml\nStep 3: Generate log_conf.yaml\nStep 4: Create a script to run a cb-network agent\nStep 5: Create a service file of the cb-network agent\n[Unit]\nDescription=Service of cb-network agent\n\n[Service]\nType=simple\nExecStart=/home/cb-user/cb-network-agent/run-cb-network-agent.sh\nRestart=on-failure\n\n[Install]\nWantedBy=multi-user.target\nStep 6: Start the cb-network agent service\nStep 7: enable start on boot of the cb-network agent service"},{"mcisId":"mcis01","vmId":"c6a8l9atiahu99vutg00","vmIp":"35.229.166.101","result":"Did you set the target repo and branch? IF NOT, quit within 5sec by ctrl+c\nNo input host_id(no). The hostname of node is used.\nStep 1: Get the execution file of cb-network agent to /home/cb-user/cb-network-agent\n-rw-rw-r-- 1 cb-user cb-user 14299136 Oct 25 10:56 agent\nStep 2: Generate config.yaml\nStep 3: Generate log_conf.yaml\nStep 4: Create a script to run a cb-network agent\nStep 5: Create a service file of the cb-network agent\n[Unit]\nDescription=Service of cb-network agent\n\n[Service]\nType=simple\nExecStart=/home/cb-user/cb-network-agent/run-cb-network-agent.sh\nRestart=on-failure\n\n[Install]\nWantedBy=multi-user.target\nStep 6: Start the cb-network agent service\nStep 7: enable start on boot of the cb-network agent service"},{"mcisId":"mcis01","vmId":"c6a8lb2tiahu99vutg0g","vmIp":"47.245.14.203","result":"Did you set the target repo and branch? IF NOT, quit within 5sec by ctrl+c\nNo input host_id(no). The hostname of node is used.\nStep 1: Get the execution file of cb-network agent to /home/cb-user/cb-network-agent\n-rw-rw-r-- 1 cb-user cb-user 14299136 Oct 25 18:56 agent\nStep 2: Generate config.yaml\nStep 3: Generate log_conf.yaml\nStep 4: Create a script to run a cb-network agent\nStep 5: Create a service file of the cb-network agent\n[Unit]\nDescription=Service of cb-network agent\n\n[Service]\nType=simple\nExecStart=/home/cb-user/cb-network-agent/run-cb-network-agent.sh\nRestart=on-failure\n\n[Install]\nWantedBy=multi-user.target\nStep 6: Start the cb-network agent service\nStep 7: enable start on boot of the cb-network agent service"}]}
##### End ---------- Install the cb-network agent by sending a command to specified MCIS
Sleep 5 sec ( _ _ )zZ
Elapsed time: 3m17.9465081s

@yunkon-kim
Copy link
Member Author

image

@yunkon-kim yunkon-kim merged commit 450e724 into cloud-barista:develop Nov 18, 2021
@yunkon-kim yunkon-kim deleted the patch-test-client-to-integrate-MCIS branch November 18, 2021 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate cb-network agent to CB-Tumblebug
1 participant