Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
337382b
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Aug 26, 2022
e275558
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 26, 2022
8c89fc3
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 26, 2022
11c2f90
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Aug 29, 2022
fb57d0c
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Aug 29, 2022
9d2317c
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 29, 2022
d684639
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 29, 2022
866e916
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 29, 2022
2202cd3
Merge branch 'Azure:main' into force_delete_add
rohan-dassani Aug 29, 2022
76800dd
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 29, 2022
cd46fbc
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 29, 2022
b46d055
modified: src/connectedk8s/azext_connectedk8s/_utils.py
rohan-dassani Aug 29, 2022
474e2ec
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 29, 2022
a1c1093
modified: src/connectedk8s/azext_connectedk8s/_params.py
rohan-dassani Sep 1, 2022
a33c7d7
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Sep 2, 2022
0190574
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 2, 2022
6e893c4
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 2, 2022
a639010
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 2, 2022
ba70771
modified: src/connectedk8s/azext_connectedk8s/_params.py
rohan-dassani Sep 2, 2022
fda625c
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Sep 5, 2022
088d5e9
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Sep 5, 2022
3062720
Merge branch 'main' of https://github.com/rohan-dassani/azure-cli-ext…
rohan-dassani Sep 5, 2022
944c706
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 12, 2022
6aa9077
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 12, 2022
238de24
Merge branch 'timeout_in_crd_deletion_force_delete' of https://github…
rohan-dassani Sep 12, 2022
7ff4202
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 12, 2022
d4ea462
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 12, 2022
810dd10
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 12, 2022
2110301
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Sep 12, 2022
7741186
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Sep 12, 2022
dac1e88
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Nov 21, 2022
df16fe6
new file: src/connectedk8s/azext_connectedk8s/tests/latest/recordi…
rohan-dassani Nov 21, 2022
4f28b57
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani Nov 21, 2022
cc482a3
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Nov 21, 2022
f8d8ab6
modified: src/connectedk8s/azext_connectedk8s/tests/latest/recordi…
rohan-dassani Nov 21, 2022
4f9bdce
modified: src/connectedk8s/azext_connectedk8s/tests/latest/recordi…
rohan-dassani Nov 21, 2022
26797a1
deleted: src/connectedk8s/azext_connectedk8s/tests/latest/recordi…
rohan-dassani Nov 23, 2022
3082aff
Delete test_connectedk8s.yaml
wangzelin007 Nov 24, 2022
12e83b6
Update test_connectedk8s_scenario.py
wangzelin007 Nov 24, 2022
cd7b659
deleted: src/connectedk8s/azext_connectedk8s/tests/latest/recordi…
rohan-dassani Nov 24, 2022
5556147
Merge branch 'connectedk8s_nightly_testing' of https://github.com/roh…
rohan-dassani Nov 24, 2022
59686ad
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Nov 24, 2022
40c5611
modified: src/connectedk8s/azext_connectedk8s/tests/latest/recordi…
rohan-dassani Nov 24, 2022
0e727c7
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani Feb 3, 2023
96a6b6a
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 3, 2023
ace2e02
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 3, 2023
a87383e
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 6, 2023
cab4ba4
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 6, 2023
eddbae2
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 6, 2023
1298879
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 6, 2023
b25217e
Merge branch 'Azure:main' into connectedk8s_nightly_testing
rohan-dassani Feb 13, 2023
3d519f9
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 14, 2023
e43b6cb
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 14, 2023
f19a3ad
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 14, 2023
c2fb835
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 14, 2023
910e916
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 15, 2023
a1ed9dd
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
be6739f
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
d94836e
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
7891b9b
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
ee818ad
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
f7e18ea
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
1b34589
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
37177cf
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
1a22f1b
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
dbed4ab
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Feb 28, 2023
6d628d8
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani Feb 28, 2023
3f6e841
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Feb 28, 2023
9e8e8ba
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Feb 28, 2023
df369d8
modified: src/connectedk8s/azext_connectedk8s/_precheckutils.py
rohan-dassani Feb 28, 2023
6f04cea
modified: src/connectedk8s/azext_connectedk8s/_precheckutils.py
rohan-dassani Feb 28, 2023
a0f180a
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Mar 1, 2023
c5d508b
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Mar 8, 2023
202a216
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Mar 8, 2023
b327eee
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani Mar 8, 2023
7224044
modified: src/connectedk8s/azext_connectedk8s/_troubleshootutils.py
rohan-dassani Mar 8, 2023
e80e14b
modified: src/connectedk8s/azext_connectedk8s/_troubleshootutils.py
rohan-dassani Mar 8, 2023
e022773
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Mar 9, 2023
e5ee706
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Mar 9, 2023
cc7a545
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Mar 21, 2023
49642a0
modified: src/connectedk8s/azext_connectedk8s/_precheckutils.py
rohan-dassani Mar 21, 2023
9da438b
modified: src/connectedk8s/azext_connectedk8s/_utils.py
rohan-dassani Mar 23, 2023
818a530
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Mar 23, 2023
6efefd1
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Mar 23, 2023
9390ff5
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Mar 24, 2023
70f9c84
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Mar 24, 2023
60fba05
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Mar 24, 2023
84d0b06
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani Mar 27, 2023
7d94fae
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Apr 4, 2023
beb0fcc
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Apr 4, 2023
15dc881
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Apr 10, 2023
cb96347
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Apr 10, 2023
9daef22
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Apr 10, 2023
1886ed3
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Apr 10, 2023
708ee01
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Apr 10, 2023
904d6d8
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Apr 10, 2023
6a10b16
Remove connectedk8s version 1.3.0 from index.json
rohan-dassani Apr 19, 2023
f9b8a4f
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani Apr 19, 2023
743a80e
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani May 10, 2023
a2671b0
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani May 10, 2023
cca344a
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani May 14, 2023
195c253
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani May 16, 2023
426ec20
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani May 16, 2023
f615f6c
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani May 16, 2023
df5c2d8
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani May 16, 2023
5b897e6
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani May 16, 2023
5768727
modified: src/connectedk8s/HISTORY.rst
rohan-dassani May 16, 2023
b7294f1
modified: src/connectedk8s/azext_connectedk8s/_precheckutils.py
rohan-dassani May 17, 2023
5984a7d
modified: src/connectedk8s/HISTORY.rst
rohan-dassani May 18, 2023
b2e2c3a
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani May 18, 2023
109b8ad
modified: src/connectedk8s/azext_connectedk8s/_utils.py
rohan-dassani May 19, 2023
e888a00
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani May 19, 2023
8240c57
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani May 19, 2023
64cd63e
modified: src/connectedk8s/HISTORY.rst
rohan-dassani May 19, 2023
aa87e3f
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani May 19, 2023
612d96b
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani May 22, 2023
d8ee4d5
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani May 22, 2023
ea44ac4
modified: src/connectedk8s/HISTORY.rst
rohan-dassani May 22, 2023
c3b20b7
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani May 22, 2023
660330e
modified: src/connectedk8s/azext_connectedk8s/_utils.py
rohan-dassani May 22, 2023
12e589f
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani May 23, 2023
2d381b4
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani May 23, 2023
350ed64
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani May 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/connectedk8s/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

Release History

1.3.19
++++++

* Adding outbound network connectivity check for Cluster Connect (OBO endpoint)

1.3.18
++++++

Expand Down
10 changes: 6 additions & 4 deletions src/connectedk8s/azext_connectedk8s/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,24 +195,26 @@
Connected_Cluster_Resource = "connected_cluster_resource_snapshot.txt"
DNS_Check = "dns_check.txt"
K8s_Cluster_Info = "k8s_cluster_info.txt"
Outbound_Network_Connectivity_Check = "outbound_network_connectivity_check.txt"
Outbound_Network_Connectivity_Check_for_onboarding = "outbound_network_connectivity_check_for_onboarding.txt"
Outbound_Network_Connectivity_Check_for_cluster_connect = "outbound_network_connectivity_check_for_cluster_connect.txt"
Events_of_Incomplete_Diagnoser_Job = "diagnoser_failure_events.txt"
# Connect Precheck Diagnoser constants
Cluster_Diagnostic_Checks_Job_Registry_Path = "mcr.microsoft.com/azurearck8s/helmchart/stable/clusterdiagnosticchecks:0.1.1"
Cluster_Diagnostic_Checks_Job_Registry_Path = "mcr.microsoft.com/azurearck8s/helmchart/stable/clusterdiagnosticchecks:0.1.2"
Cluster_Diagnostic_Checks_Helm_Install_Failed_Fault_Type = "Error while installing cluster diagnostic checks helm release"
Cluster_Diagnostic_Checks_Execution_Failed_Fault_Type = "Error occured while executing cluster diagnostic checks"
Cluster_Diagnostic_Checks_Release_Cleanup_Failed = "Error occured while cleaning up the cluster diagnostic checks helm release"
Cluster_Diagnostic_Checks_Job_Not_Scheduled = 'Unable to schedule cluster-diagnostic-checks job'
Cluster_Diagnostic_Checks_Job_Not_Complete = 'Unable to complete cluster-diagnostic-checks job after scheduling'
Pre_Onboarding_Diagnostic_Checks_Execution_Failed = 'Exception occured while trying to execute pre-onboarding diagnostic checks'
Outbound_Connectivity_Check_Failed = "Outbound network connectivity check failed"
Outbound_Connectivity_Check_Failed_For_Onboarding = "Outbound network connectivity check failed for onboarding"
DNS_Check_Failed = "DNS Resolution failed"
Cluster_Diagnostic_Prechecks_Failed = "Cluster diagnostic prechecks failed"
Cluster_Diagnostic_Prechecks_Incomplete = "Cluster diagnostic prechecks failed to complete"
Cluster_Diagnostic_Checks_Pod_Description_Save_Failed = 'Failed to save cluster diagnostic checks pod description'
Cluster_Diagnostic_Checks_Job_Log_Save_Failed = 'Failed to save cluster diagnostic checks job log'
# Diagnostic Results Name
Outbound_Connectivity_Check_Result_String = "Outbound Network Connectivity Result:"
Outbound_Connectivity_Check_Check_String = "Outbound Network Connectivity Check"
Outbound_Connectivity_Check_Failed_For_Cluster_Connect = "Outbound network connectivity check failed for Cluster Connect"
DNS_Check_Result_String = "DNS Result:"
AZ_CLI_ADAL_TO_MSAL_MIGRATE_VERSION = '2.30.0'
CLIENT_PROXY_VERSION = '1.3.022011'
Expand Down
9 changes: 7 additions & 2 deletions src/connectedk8s/azext_connectedk8s/_precheckutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,23 @@ def fetch_diagnostic_checks_results(corev1_api_instance, batchv1_api_instance, h
cluster_diagnostic_checks_container_log_list = cluster_diagnostic_checks_container_log.split("\n")
cluster_diagnostic_checks_container_log_list.pop(-1)
dns_check_log = ""
outbound_connectivity_check_log = ""
counter_container_logs = 1
# For retrieving only cluster_diagnostic_checks logs from the output
for outputs in cluster_diagnostic_checks_container_log_list:
if consts.Outbound_Connectivity_Check_Result_String in outputs:
if consts.Outbound_Connectivity_Check_Check_String in outputs:
counter_container_logs = 1
if outbound_connectivity_check_log == "":
outbound_connectivity_check_log += outputs
else:
outbound_connectivity_check_log += " " + outputs
elif consts.DNS_Check_Result_String in outputs:
dns_check_log += outputs
counter_container_logs = 0
elif counter_container_logs == 0:
dns_check_log += " " + outputs
dns_check, storage_space_available = azext_utils.check_cluster_DNS(dns_check_log, filepath_with_timestamp, storage_space_available, diagnoser_output)
outbound_connectivity_check, storage_space_available = azext_utils.check_cluster_outbound_connectivity(cluster_diagnostic_checks_container_log_list[-1], filepath_with_timestamp, storage_space_available, diagnoser_output)
outbound_connectivity_check, storage_space_available = azext_utils.check_cluster_outbound_connectivity(outbound_connectivity_check_log, filepath_with_timestamp, storage_space_available, diagnoser_output)
else:
return consts.Diagnostic_Check_Incomplete, storage_space_available

Expand Down
43 changes: 32 additions & 11 deletions src/connectedk8s/azext_connectedk8s/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,25 +234,46 @@ def check_cluster_DNS(dns_check_log, filepath_with_timestamp, storage_space_avai
def check_cluster_outbound_connectivity(outbound_connectivity_check_log, filepath_with_timestamp, storage_space_available, diagnoser_output):

try:
outbound_connectivity_response = outbound_connectivity_check_log[-1:-4:-1]
outbound_connectivity_response = outbound_connectivity_response[::-1]
if consts.Outbound_Connectivity_Check_Result_String not in outbound_connectivity_check_log:
if consts.Outbound_Connectivity_Check_Check_String not in outbound_connectivity_check_log:
return consts.Diagnostic_Check_Incomplete, storage_space_available

Outbound_Connectivity_Log_For_Cluster_Connect = outbound_connectivity_check_log.split(' ')[0]
# extracting the endpoints for cluster connect feature
Cluster_Connect_Precheck_Endpoint_Url = Outbound_Connectivity_Log_For_Cluster_Connect.split(" : ")[1]
# extracting the obo endpoint response code from outbound connectivity check
Cluster_Connect_Precheck_Endpoint_response_code = Outbound_Connectivity_Log_For_Cluster_Connect.split(" : ")[2]

if(Cluster_Connect_Precheck_Endpoint_response_code != "000"):
if storage_space_available:
cluster_connect_outbound_connectivity_check_path = os.path.join(filepath_with_timestamp, consts.Outbound_Network_Connectivity_Check_for_cluster_connect)
with open(cluster_connect_outbound_connectivity_check_path, 'w+') as outbound:
outbound.write("Response code " + Cluster_Connect_Precheck_Endpoint_response_code + "\nOutbound network connectivity check to cluster connect precheck endpoints passed successfully.")
else:
logger.warning("The outbound network connectivity check has failed for the endpoint - " + Cluster_Connect_Precheck_Endpoint_Url + "\nThis will affect the \"cluster-connect\" feature. If you are planning to use \"cluster-connect\" functionality , please ensure outbound connectivity to the above endpoint.\n")
telemetry.set_exception(exception='Outbound network connectivity check failed for the Cluster Connect endpoint', fault_type=consts.Outbound_Connectivity_Check_Failed_For_Cluster_Connect, summary="Outbound network connectivity check failed for the Cluster Connect precheck endpoint")
if storage_space_available:
cluster_connect_outbound_connectivity_check_path = os.path.join(filepath_with_timestamp, consts.Outbound_Network_Connectivity_Check_for_cluster_connect)
with open(cluster_connect_outbound_connectivity_check_path, 'w+') as outbound:
outbound.write("Response code " + Cluster_Connect_Precheck_Endpoint_response_code + "\nOutbound connectivity failed for the endpoint:" + Cluster_Connect_Precheck_Endpoint_Url + " ,this is an optional endpoint needed for cluster-connect feature.")

Onboarding_Precheck_Endpoint_outbound_connectivity_response = outbound_connectivity_check_log[-1:-4:-1]
Onboarding_Precheck_Endpoint_outbound_connectivity_response = Onboarding_Precheck_Endpoint_outbound_connectivity_response[::-1]

# Validating if outbound connectiivty is working or not and displaying proper result
if(outbound_connectivity_response != "000"):
if(Onboarding_Precheck_Endpoint_outbound_connectivity_response != "000"):
if storage_space_available:
outbound_connectivity_check_path = os.path.join(filepath_with_timestamp, consts.Outbound_Network_Connectivity_Check)
outbound_connectivity_check_path = os.path.join(filepath_with_timestamp, consts.Outbound_Network_Connectivity_Check_for_onboarding)
with open(outbound_connectivity_check_path, 'w+') as outbound:
outbound.write("Response code " + outbound_connectivity_response + "\nOutbound network connectivity check passed successfully.")
outbound.write("Response code " + Onboarding_Precheck_Endpoint_outbound_connectivity_response + "\nOutbound network connectivity check to the onboarding precheck endpoint passed successfully.")
return consts.Diagnostic_Check_Passed, storage_space_available
else:
logger.warning("Error: We found an issue with outbound network connectivity from the cluster.\nPlease ensure to meet the following network requirements 'https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/quickstart-connect-cluster?tabs=azure-cli#meet-network-requirements' \nIf your cluster is behind an outbound proxy server, please ensure that you have passed proxy parameters during the onboarding of your cluster.\nFor more details visit 'https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/quickstart-connect-cluster?tabs=azure-cli#connect-using-an-outbound-proxy-server' \n")
diagnoser_output.append("Error: We found an issue with outbound network connectivity from the cluster.\nPlease ensure to meet the following network requirements 'https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/quickstart-connect-cluster?tabs=azure-cli#meet-network-requirements' \nIf your cluster is behind an outbound proxy server, please ensure that you have passed proxy parameters during the onboarding of your cluster.\nFor more details visit 'https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/quickstart-connect-cluster?tabs=azure-cli#connect-using-an-outbound-proxy-server' \n")
logger.warning("Error: We found an issue with outbound network connectivity from the cluster to the endpoints required for onboarding.\nPlease ensure to meet the following network requirements 'https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/quickstart-connect-cluster?tabs=azure-cli#meet-network-requirements' \nIf your cluster is behind an outbound proxy server, please ensure that you have passed proxy parameters during the onboarding of your cluster.\nFor more details visit 'https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/quickstart-connect-cluster?tabs=azure-cli#connect-using-an-outbound-proxy-server' \n")
diagnoser_output.append("Error: We found an issue with outbound network connectivity from the cluster to the endpoints required for onboarding.\nPlease ensure to meet the following network requirements 'https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/quickstart-connect-cluster?tabs=azure-cli#meet-network-requirements' \nIf your cluster is behind an outbound proxy server, please ensure that you have passed proxy parameters during the onboarding of your cluster.\nFor more details visit 'https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/quickstart-connect-cluster?tabs=azure-cli#connect-using-an-outbound-proxy-server' \n")
if storage_space_available:
outbound_connectivity_check_path = os.path.join(filepath_with_timestamp, consts.Outbound_Network_Connectivity_Check)
outbound_connectivity_check_path = os.path.join(filepath_with_timestamp, consts.Outbound_Network_Connectivity_Check_for_onboarding)
with open(outbound_connectivity_check_path, 'w+') as outbound:
outbound.write("Response code " + outbound_connectivity_response + "\nWe found an issue with Outbound network connectivity from the cluster.")
telemetry.set_exception(exception='Outbound network connectivity check failed', fault_type=consts.Outbound_Connectivity_Check_Failed, summary="Outbound network connectivity check failed in the cluster")
outbound.write("Response code " + Onboarding_Precheck_Endpoint_outbound_connectivity_response + "\nWe found an issue with Outbound network connectivity from the cluster required for onboarding.")
telemetry.set_exception(exception='Outbound network connectivity check failed for onboarding', fault_type=consts.Outbound_Connectivity_Check_Failed_For_Onboarding, summary="Outbound network connectivity check for onboarding failed in the cluster")
return consts.Diagnostic_Check_Failed, storage_space_available

# For handling storage or OS exception that may occur during the execution
Expand Down
2 changes: 1 addition & 1 deletion src/connectedk8s/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# TODO: Confirm this is the right version number you want and it matches your
# HISTORY.rst entry.

VERSION = '1.3.18'
VERSION = '1.3.19'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down