Failed Charmed Worker Deployment Due To Tag Error on GCP

Bug #1827528 reported by Eslam Nawara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kubernetes Worker Charm
Fix Released
High
Cory Johns

Bug Description

The Juju GCP deployment fails for both of Kubernetes cluster core and Charmed distribution due to tagging error in GCP. The code tries to tag the instances using an incompatible syntax as it uses special character.

Here's the error that shows up on the worker and integrator node.
ERROR unit.gcp-integrator/0.juju-log Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-gcp-integrator-0/charm/reactive/gcp.py", line 68, in handle_requests
    request.instance_labels)
  File "lib/charms/layer/gcp.py", line 125, in label_instance
    '--labels', ','.join('='.join([k, v]) for k, v in labels.items()))
  File "lib/charms/layer/gcp.py", line 253, in _gcloud
    raise GCPError(stderr)
charms.layer.gcp.GCPError: ERROR: (gcloud.compute.instances.add-labels) HTTPError 400: Invalid value for field 'labels': ''. Label key 'juju.io/az' violates format constraints. The key must start with a lowercase character, can only contain lowercase letters, numeric characters, underscores and dashes. The key can be at most 63 characters long. International characters are allowed.

This the the GitHub commit that introduced this bug
https://github.com/charmed-kubernetes/charm-kubernetes-worker/commit/cb3d6a53c8e932b8a583587ea8abf3c6bee21a63

Cory Johns (johnsca)
Changed in charm-kubernetes-worker:
status: New → In Progress
Revision history for this message
Cory Johns (johnsca) wrote :
Changed in charm-kubernetes-worker:
status: In Progress → Fix Committed
Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :

Fix available in kubernetes-worker-527 or later.

Changed in charm-kubernetes-worker:
assignee: nobody → Cory Johns (johnsca)
importance: Undecided → High
Revision history for this message
George Kraft (cynerva) wrote :
George Kraft (cynerva)
Changed in charm-kubernetes-worker:
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.