Calico throws an error when setting a `veth-mtu` value

Bug #2034736 reported by Mateo Florido
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Calico Charm
Fix Released
Medium
Mateo Florido

Bug Description

The charm fails when setting a value for the `veth-mtu` configuration value.

Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-calico-0/charm/venv/ops/manifests/manifest.py", line 313, in apply_resources
    self.client.apply(rsc.resource, force=True)
  File "/var/lib/juju/agents/unit-calico-0/charm/venv/lightkube/core/client.py", line 457, in apply
    return self.patch(type(obj), name, obj, namespace=namespace,
  File "/var/lib/juju/agents/unit-calico-0/charm/venv/lightkube/core/client.py", line 325, in patch
    return self._client.request("patch", res=res, name=name, namespace=namespace, obj=obj,
  File "/var/lib/juju/agents/unit-calico-0/charm/venv/lightkube/core/generic_client.py", line 245, in request
    return self.handle_response(method, resp, br)
  File "/var/lib/juju/agents/unit-calico-0/charm/venv/lightkube/core/generic_client.py", line 196, in handle_response
    self.raise_for_status(resp)
  File "/var/lib/juju/agents/unit-calico-0/charm/venv/lightkube/core/generic_client.py", line 190, in raise_for_status
    raise transform_exception(e)
lightkube.core.exceptions.ApiError: failed to create typed patch object (kube-system/calico-config; /v1, Kind=ConfigMap): .data.veth_mtu: expected string, got &value.valueUnstructured{Value:8750}

Revision history for this message
Mateo Florido (mateoflorido) wrote :
Changed in charm-calico:
importance: Undecided → Medium
status: New → Fix Committed
assignee: nobody → Mateo Florido (mateoflorido)
milestone: none → 1.28+ck1
Revision history for this message
Adam Dyess (addyess) wrote :

Backported to release_1.28 branch

Adam Dyess (addyess)
Changed in charm-calico:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.