You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[checks] wait for healthiness and termination (#16)
* [checks] add a status OK (healthiness) checker
Also removes extra minute of wait, inbetween EC2 start and SSM testing
* Use a terminateWaiter
* Log the AMI used for testing
* Log when we start terminating
* Log as we terminate
* Add some padding
* Wait 5m for healthiness (it takes 3m)
* Update docs
* fix syntax
Copy file name to clipboardExpand all lines: gitpod-network-check/README.md
+59-32Lines changed: 59 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,38 +55,65 @@ A CLI to check if your network setup is suitable for the installation of Gitpod.
55
55
56
56
```console
57
57
./gitpod-network-check diagnose
58
-
INFO[0000] ✅ Main Subnets are valid
59
-
INFO[0000] ✅ Pod Subnets are valid
60
-
INFO[0000] ℹ️ Checking prerequisites
61
-
INFO[0000] ✅ VPC endpoint com.amazonaws.eu-central-1.ec2messages is configured
62
-
INFO[0000] ✅ VPC endpoint com.amazonaws.eu-central-1.ssm is configured
63
-
INFO[0000] ✅ VPC endpoint com.amazonaws.eu-central-1.ssmmessages is configured
64
-
INFO[0001] ℹ️ Launching EC2 instance in a Main subnet
65
-
INFO[0007] ℹ️ Launching EC2 instance in a Pod subnet
66
-
INFO[0009] ℹ️ Waiting for EC2 instances to become ready (can take up to 2 minutes)
67
-
INFO[0167] ✅ EC2 Instances are now running successfully
68
-
INFO[0167] ℹ️ Connecting to SSM...
69
-
INFO[0175] ℹ️ Checking if the required AWS Services can be reached from the ec2 instances
70
-
INFO[0178] ✅ Autoscaling is available
71
-
INFO[0179] ✅ CloudFormation is available
72
-
INFO[0179] ✅ CloudWatch is available
73
-
INFO[0180] ✅ EC2 is available
74
-
INFO[0181] ✅ EC2messages is available
75
-
INFO[0182] ✅ ECR is available
76
-
INFO[0183] ✅ ECR Api is available
77
-
INFO[0184] ✅ EKS is available
78
-
INFO[0185] ✅ Elastic LoadBalancing is available
79
-
INFO[0185] ✅ KMS is available
80
-
INFO[0186] ✅ Kinesis Firehose is available
81
-
INFO[0187] ✅ SSM is available
82
-
INFO[0188] ✅ SSMmessages is available
83
-
INFO[0189] ✅ SecretsManager is available
84
-
INFO[0190] ✅ Sts is available
85
-
INFO[0190] ✅ DynamoDB is available
86
-
INFO[0191] ✅ S3 is available
87
-
INFO[0194] ✅ accounts.google.com is available
88
-
INFO[0194] ✅ github.com is available
89
-
INFO[0194] ✅ Instances terminated
58
+
INFO[0000] ℹ️ Running with region `eu-central-1`, main subnet `[subnet-0ed211f14362b224f subnet-041703e62a05d2024]`, pod subnet `[subnet-075c44edead3b062f subnet-06eb311c6b92e0f29]`, hosts `[accounts.google.com https://github.com]`, ami ``, and API endpoint ``
59
+
INFO[0000] ✅ Main Subnets are valid
60
+
INFO[0000] ✅ Pod Subnets are valid
61
+
INFO[0000] ℹ️ Checking prerequisites
62
+
INFO[0000] ℹ️ VPC endpoint com.amazonaws.eu-central-1.ec2messages is not configured, testing service connectivity...
63
+
INFO[0000] ✅ Service ec2messages.eu-central-1.amazonaws.com has connectivity
64
+
INFO[0000] ℹ️ VPC endpoint com.amazonaws.eu-central-1.ssm is not configured, testing service connectivity...
65
+
INFO[0000] ✅ Service ssm.eu-central-1.amazonaws.com has connectivity
66
+
INFO[0000] ℹ️ VPC endpoint com.amazonaws.eu-central-1.ssmmessages is not configured, testing service connectivity...
67
+
INFO[0000] ✅ Service ssmmessages.eu-central-1.amazonaws.com has connectivity
68
+
INFO[0000] ✅ VPC endpoint com.amazonaws.eu-central-1.execute-api is configured
69
+
INFO[0001] ✅ IAM role created and policy attached
70
+
INFO[0001] ℹ️ Launching EC2 instances in Main subnets
71
+
INFO[0001] ℹ️ Created security group with ID: sg-0784ba9ba1731f522
72
+
INFO[0002] ℹ️ Instance type t2.micro shall be used
73
+
INFO[0009] ℹ️ Created security group with ID: sg-088d7ea455ba271f5
74
+
INFO[0010] ℹ️ Instance type t2.micro shall be used
75
+
INFO[0011] ℹ️ Main EC2 instances: [i-00675f1d3d0162acb i-041d127c852b5c1ab]
76
+
INFO[0011] ℹ️ Launching EC2 instances in a Pod subnets
77
+
INFO[0012] ℹ️ Created security group with ID: sg-03575b98e15e8b184
78
+
INFO[0012] ℹ️ Instance type t2.micro shall be used
79
+
INFO[0014] ℹ️ Created security group with ID: sg-00d4a66a7840ebd67
80
+
INFO[0014] ℹ️ Instance type t2.micro shall be used
81
+
INFO[0016] ℹ️ Pod EC2 instances: [i-00e2b26e784c900c6 i-077cbced73ee64c1d]
82
+
INFO[0016] ℹ️ Waiting for EC2 instances to become Running (times out in 4 minutes)
83
+
INFO[0021] ℹ️ Waiting for EC2 instances to become Healthy (times out in 4 minutes)
84
+
INFO[0199] ✅ EC2 Instances are now running successfully
85
+
INFO[0199] ℹ️ Connecting to SSM...
86
+
INFO[0199] ℹ️ Checking if the required AWS Services can be reached from the ec2 instances in the pod subnet
87
+
INFO[0201] ✅ Autoscaling is available
88
+
INFO[0202] ✅ CloudFormation is available
89
+
INFO[0203] ✅ CloudWatch is available
90
+
INFO[0204] ✅ EC2 is available
91
+
INFO[0205] ✅ EC2messages is available
92
+
INFO[0206] ✅ ECR is available
93
+
INFO[0206] ✅ ECR Api is available
94
+
INFO[0207] ✅ EKS is available
95
+
INFO[0209] ✅ Elastic LoadBalancing is available
96
+
INFO[0210] ✅ KMS is available
97
+
INFO[0211] ✅ Kinesis Firehose is available
98
+
INFO[0212] ✅ SSM is available
99
+
INFO[0212] ✅ SSMmessages is available
100
+
INFO[0214] ✅ SecretsManager is available
101
+
INFO[0215] ✅ Sts is available
102
+
INFO[0215] ℹ️ Checking if certain AWS Services can be reached from ec2 instances in the main subnet
103
+
INFO[0216] ✅ DynamoDB is available
104
+
INFO[0217] ✅ S3 is available
105
+
INFO[0217] ℹ️ Checking if hosts can be reached with HTTPS from ec2 instances in the main subnets
106
+
INFO[0218] ✅ accounts.google.com is available
107
+
INFO[0219] ✅ https://github.com is available
108
+
INFO[0219] ℹ️ Terminating EC2 instances
109
+
INFO[0219] ℹ️ Waiting for EC2 instances to Terminate (times out in 4 minutes)
110
+
INFO[0304] ✅ Instances terminated
111
+
INFO[0305] ✅ Role 'GitpodNetworkCheck' deleted
112
+
INFO[0305] ✅ Instance profile deleted
113
+
INFO[0305] ✅ Security group 'sg-0784ba9ba1731f522' deleted
114
+
INFO[0306] ✅ Security group 'sg-088d7ea455ba271f5' deleted
115
+
INFO[0306] ✅ Security group 'sg-03575b98e15e8b184' deleted
116
+
INFO[0306] ✅ Security group 'sg-00d4a66a7840ebd67' deleted
Copy file name to clipboardExpand all lines: gitpod-network-check/cmd/root.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ func init() {
93
93
networkCheckCmd.PersistentFlags().StringVar(&networkConfig.InstanceAMI, "instance-ami", "", "Custom ec2 instance AMI id, if not set will use latest ubuntu")
94
94
networkCheckCmd.PersistentFlags().StringVar(&networkConfig.ApiEndpoint, "api-endpoint", "", "The Gitpod Enterprise control plane's regional API endpoint subdomain")
95
95
bindFlags(networkCheckCmd, v)
96
-
log.Infof("ℹ️ Running with region `%s`, main subnet `%v`, pod subnet `%v`, hosts `%v`, and api endpoint `%v`", networkConfig.AwsRegion, networkConfig.MainSubnets, networkConfig.PodSubnets, networkConfig.HttpsHosts, networkConfig.ApiEndpoint)
96
+
log.Infof("ℹ️ Running with region `%s`, main subnet `%v`, pod subnet `%v`, hosts `%v`, ami `%v`, and API endpoint `%v`", networkConfig.AwsRegion, networkConfig.MainSubnets, networkConfig.PodSubnets, networkConfig.HttpsHosts, networkConfig.InstanceAMI, networkConfig.ApiEndpoint)
0 commit comments