Charm uses hostnamectl json format args which don't exist on focal
Bug #2046456 reported by
Adam Dyess
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kubernetes Control Plane Charm |
Fix Released
|
Critical
|
Adam Dyess | ||
Kubernetes Worker Charm |
Fix Released
|
Critical
|
Adam Dyess |
Bug Description
When detecting the underlying cloud
hostnamectl: unrecognized option '--json=short'
--- during this situation, the error handling code fails to log the error correctly.
try:
except CalledProcessError as e:
- log.warning(
+ log.warning(
return None
is the required minimum, but new logic must be employed to find the correct values from hostnamectl
Changed in charm-kubernetes-master: | |
status: | Fix Committed → Fix Released |
Changed in charm-kubernetes-worker: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Works fine in jammy, but fails in focal due to lack of arguments