-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Azure Arc Diagnostic #5025
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
Azure Arc Diagnostic #5025
Changes from 67 commits
bb966c0
c68227a
5fba5c1
5cf400b
046b4ce
00c36d8
806e557
fbd4f10
a136ae4
a024972
7310cfa
0ec86e8
a69ca58
76697e0
cb91e2c
6e7c320
9b28cb5
25e07b1
e6efe35
6ed328b
4ee6418
ef010a7
ae037c6
ec1e6da
9ad541d
4fd69b3
4700b1a
260341b
a7123f2
c6e713d
4f476ca
2f9d895
9e13c0d
d6e2904
295c0f6
f82180d
649d213
6eb6083
78ff3d1
e560116
912fe12
01e3970
e0b1f59
2491aec
24f1bf9
f4f0ae1
e6ed83d
0c8fa90
e90e9ab
04a318b
2948119
567092e
d32e61a
1fb8434
2dc46e1
af4b2c5
b688290
68f0ec8
e08b762
91cd6ed
40f3d25
5b66e25
ab11adc
b6fcfc0
3421ee1
2080b2d
e2d9b64
2ef3dd3
3eebb1d
d1f2c34
470da05
f0ca8cc
c2ce76d
faf15f9
bcb1232
4c490c9
72b584f
a59490c
63e6eea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,8 @@ | |
| Azure_ChinaCloudName = 'AZURECHINACLOUD' | ||
| Azure_DogfoodCloudName = 'AZUREDOGFOOD' | ||
| PublicCloud_OriginalName = 'AZURECLOUD' | ||
| MSI_Certificate_Secret_Name = 'azure-identity-certificate' | ||
| KAP_Certificate_Secret_Name = 'kube-aad-proxy-certificate' | ||
| USGovCloud_OriginalName = 'AZUREUSGOVERNMENT' | ||
| Dogfood_RMEndpoint = 'https://api-dogfood.resources.windows-int.net/' | ||
| Helm_Environment_File_Fault_Type = 'helm-environment-file-error' | ||
|
|
@@ -118,6 +120,58 @@ | |
| Get_PublicKey_Info_Fault_Type = 'Error while fetching the PoP publickey information from client proxy' | ||
| PoP_Public_Key_Expried_Fault_Type = 'The PoP public key used to generate the at has expired' | ||
| Post_AT_To_ClientProxy_Failed_Fault_Type = 'Failed to post access token to client proxy' | ||
| Kubectl_Get_Events_Failed_Fault_Type = "Error while doing kubectl get events" | ||
| Fetch_Arc_Agent_Logs_Failed_Fault_Type = "Error occured in arc agents logger" | ||
| Fetch_Arc_Agents_Events_Logs_Failed_Fault_Type = "Error occured in arc agents events logger" | ||
| Fetch_Arc_Deployment_Logs_Failed_Fault_Type = "Error occured in deployments logger" | ||
| Agent_State_Check_Fault_Type = "Error occured while performing the agent state check" | ||
| Agent_Version_Check_Fault_Type = "Error occured while performing the agent version check" | ||
| Diagnoser_Job_Failed_Fault_Type = "Error while executing Diagnoser Job" | ||
| Diagnoser_Container_Check_Failed_Fault_Type = "Error occured while performing the diagnoser container checks" | ||
| Cluster_DNS_Check_Fault_Type = "Error occured while performing cluster DNS check" | ||
| Outbound_Connectivity_Check_Fault_Type = "Error occured while performing outbound connectivity check in the cluster" | ||
| MSI_Cert_Check_Fault_Type = "Error occurred while trying to perform MSI ceritificate presence check" | ||
| Cluster_Security_Policy_Check_Fault_Type = "Error occured while performing cluster security policy check" | ||
| KAP_Cert_Check_Fault_Type = "Error occurred while trying to perform KAP ceritificate presence check" | ||
| MSI_Cert_Expiry_Check_Fault_Type = "Error occured while trying to perform the MSI cert expiry check" | ||
| Diagnostics_Folder_Creation_Failed_Fault_Type = "Error while trying to create diagnostic logs folder" | ||
| Describe_Stuck_Agents_Fault_Type = "Error occured while storing the description of non running agents" | ||
| No_Storage_Space_Available_Fault_Type = "No space left on device" | ||
| Connected_Cluster_Resource_Fetch_Fault_Type = "Error occured while fetching the Get output of connected cluster" | ||
| Diagnoser_Result_Fault_Type = "Error while storing the diagnoser results" | ||
| Kubectl_Cluster_Info_Failed_Fault_Type = "Error while doing kubectl cluster-info" | ||
| Fetch_Kubectl_Cluster_Info_Fault_Type = "Error occured while fetching cluster-info" | ||
| Fetch_Kubectl_Cluster_Info = "kubectl_cluster_info" | ||
| Diagnostic_Check_Passed = "Passed" | ||
| Diagnostic_Check_Failed = "Failed" | ||
| Diagnostic_Check_Incomplete = "Incomplete" | ||
| # Name of the checks and operations | ||
| Retrieve_Arc_Agents_Event_Logs = "retrieved_arc_agents_event_logs" | ||
| Retrieve_Arc_Agents_Logs = "retrieved_arc_agents_logs" | ||
| Retrieve_Deployments_Logs = "retrieved_deployments_logs" | ||
| Fetch_Connected_Cluster_Resource = "fetch_connected_cluster_resource" | ||
| Storing_Diagnoser_Results_Logs = "storing_diagnoser_results_logs" | ||
| MSI_Cert_Expiry_Check = "msi_cert_expiry_check" | ||
| KAP_Security_Policy_Check = "kap_security_policy_check" | ||
| KAP_Cert_Check = "kap_cert_check" | ||
| Diagnoser_Check = "diagnoser_check" | ||
| MSI_Cert_Check = "msi_cert_check" | ||
| Agent_Version_Check = "agent_version_check" | ||
| Arc_Agent_State_Check = "arc_agent_state_check" | ||
| # Diagnoser files name | ||
| Arc_Diagnostic_Logs = "arc_diagnostic_logs" | ||
| Agent_State = "Agent_State.txt" | ||
|
||
| Arc_Agents_Events = "Arc_Agents_Events.txt" | ||
svagadia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Diagnoser_Results = "Diagnoser_Results.txt" | ||
svagadia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Connected_Cluster_Resource = "Connected_cluster_resource.txt" | ||
svagadia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| DNS_Check = "DNS_Check.txt" | ||
| K8s_Cluster_Info = "K8s_Cluster_Info.txt" | ||
| Outbound_Network_Connectivity_Check = "Outbound_Network_Connectivity_Check.txt" | ||
| Events_of_Incomplete_Diagnoser_Job = "Events_of_Incomplete_Diagnoser_Job.txt" | ||
svagadia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # Diagnostic Results Name | ||
| Outbound_Connectivity_Check_Result_String = "Outbound Network Connectivity Result:" | ||
| DNS_Check_Result_String = "DNS Result:" | ||
| AZ_CLI_ADAL_TO_MSAL_MIGRATE_VERSION = '2.30.0' | ||
| CLIENT_PROXY_VERSION = '1.3.019103' | ||
| API_SERVER_PORT = 47011 | ||
|
|
@@ -133,3 +187,4 @@ | |
| CSP_Storage_Url_Mooncake = "https://k8sconnectcsp.blob.core.chinacloudapi.cn" | ||
| HELM_STORAGE_URL = "https://k8connecthelm.azureedge.net" | ||
| HELM_VERSION = 'v3.6.3' | ||
| Download_And_Install_Kubectl_Fault_Type = "Failed to download and install kubectl" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,3 +121,11 @@ | |
| - name: Disable multiple features. | ||
| text: az connectedk8s disable-features -n clusterName -g resourceGroupName --features custom-locations azure-rbac | ||
| """ | ||
|
|
||
| helps['connectedk8s troubleshoot'] = """ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @anraghun to review the help section There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. short-summary: Performs diagnostic checks on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| type: command | ||
| short-summary: Performs diagnostic checks on the arc-enabled kubernetes cluster. | ||
| examples: | ||
| - name: Executes diagnostic checks on an arc enabled kubernetes cluster | ||
| text: az connectedk8s troubleshoot -n clusterName -g resourceGroupName | ||
| """ | ||
Uh oh!
There was an error while loading. Please reload this page.