Applying new Network profile fails with error " Error: Error processing update parameters: field X has conflict"
search cancel

Applying new Network profile fails with error " Error: Error processing update parameters: field X has conflict"

book

Article ID: 340504

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:

New Network profile application fails with "Error: Error processing update parameters: field x has conflict " similar to the below error showing  that  field ingress_ip has conflict .

fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["tkgi", "update-cluster", "pks-k8s-dev01-int06", "--network-profile", "pks-k8s-dev01-int06-np-nodesdns", "--kubernetes-profile", "k8s-profile-dev01-int06", "--non-interactive", "--wait"], "delta": "0   06.064700", "end": "2023-06-30 20:39:19.274304", "msg": "non-zero return code", "rc": 1, "start": "2023-06-30 20:39:13.209604", "stderr": "Error: Error processing update parameters: field ingress_ip has conflict", "stderr_lines": ["Error: Error processing update parameters: field ingress_ip has conflict"], "stdout": "", "stdout_lines": []}
 

 

 


Environment

VMware Tanzu Kubernetes Grid Integrated Edition 1.x

Cause

The error "Error processing update parameters: field x has conflict "when applying a network profile to a cluster should be due to an inconsistency of this non-updatable parameter configuration between the original network profile already applied to the cluster and the new network profile.

In this case, the ingress_ip parameter is not an updatable parameter, and it was not configured in the original Network profile. However, the Operator added it in the new Network profile that he is trying to apply to the cluster to update the cluster DNS configuration.

 

Resolution

1.Check the Network profile TKGI docs to know if the specified parameter in the error is updatable or not.

https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid-Integrated-Edition/1.15/tkgi/GUID-network-profiles-define.html#change-pod-ips ( Network profile docs for TKGI v.1.15)

Note : Parameter "node_ip_block_ids" started to be updatable in TKGI v.1.16 and should not be updatable in the older versions.

 

2.Check the already applied network profile to the cluster using the below commands and compare it with the new network profile that you want to apply and ensure that for the problematic parameter reported in the error  , the new network profile configuration matches exactly the original network profile already applied to the cluster in case this parameter is not updatable.

- First run the below command to show the original network profile already applied to the cluster .

tkgi cluster <cluster_name>

 

- Take a note of the New Network profile name applied on the cluster, then view its details and configured parameters using the below command.

tkgi network-profile <NW_profile_Name>



Where NW_profile_Name is the Network profile spotted from the above command output