Unable to deploy jammy K8s charms on non-Ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Unassigned |
Bug Description
There is a conversation on MM with more context/debugging than can reasonably explain, found here - https:/
tl;dr:
When building and deploying K8s charm locally, when switching to ensure charm deployment on Ubuntu 22.04, it fails with error logs:
```
juju deploy ./*.charm -n 1 --resource kafka-image=
15:39:31 INFO juju.cmd supercommand.go:56 running juju [2.9.37 51672c0e4243f0d
15:39:31 DEBUG juju.cmd supercommand.go:57 args: []string{
15:39:31 INFO juju.juju api.go:86 connecting to API addresses: [10.152.
15:39:31 DEBUG juju.api apiclient.go:626 starting proxier for connection
15:39:31 DEBUG juju.api apiclient.go:630 tunnel proxy in use at localhost on port 36407
15:39:31 DEBUG juju.api apiclient.go:1153 successfully dialed "wss://
15:39:31 INFO jju.api apiclient.go:688 connection established to "wss://
15:39:31 INFO juju.juju api.go:86 connecting to API addresses: [10.152.
15:39:31 DEBUG juju.api apiclient.go:626 starting proxier for connection
15:39:31 DEBUG juju.api apiclient.go:630 tunnel proxy in use at localhost on port 45365
15:39:31 DEBUG juju.api apiclient.go:1153 successfully dialed "wss://
15:39:31 INFO juju.api apiclient.go:688 connection established to "wss://
15:39:31 DEBUG juju.core.charm computedseries.
15:39:31 DEBUG juju.core.charm computedseries.
15:39:31 DEBUG juju.api monitor.go:35 RPC connection died
15:39:31 DEBUG juju.api monitor.go:35 RPC connection died
ERROR kafka-k8s_
15:39:31 DEBUG cmd supercommand.go:537 error stack:
github.
github.
github.
github.
```
When deploying on an LXD container running MicroK8s with Ubuntu 22.04, it builds+deploys fine.
When switching `charmcraft.yaml` back to Ubuntu 20.04, it builds+deploys fine.
- Juju Client+Model version: `version 2.9.37-
- Cloud: Microk8s
- /proc/version: Linux version 6.1.1-zen1-1-zen (linux-
- Commit hash of code used: https:/
- metadata.yaml:
```yaml
maintainers:
- Marc Oppenheimer <email address hidden>
containers:
kafka:
resource: kafka-image
mounts:
- storage: log-data
location: /logs/kafka
resources:
kafka-image:
type: oci-image
description: OCI Image for Apache Kafka
upstream-
peers:
cluster:
interface: cluster
restart:
interface: rolling_op
requires:
zookeeper:
interface: zookeeper
certificates:
interface: tls-certificates
limit: 1
optional: true
provides:
kafka-client:
interface: kafka_client
storage:
log-data:
type: filesystem
description: Directories where the log data is stored
minimum-size: 10G
assumes:
- k8s-api
```
- charmcraft.yaml:
```yaml
type: charm
parts:
charm:
charm-
- setuptools
build-packages:
- libffi-dev
- libssl-dev
- rustc
- cargo
bases:
- build-on:
- name: "ubuntu"
channel: "22.04"
run-on:
- name: "ubuntu"
channel: "22.04"
```
- To reproduce: `charmcraft clean && charmcraft pack && juju deploy ./*.charm -n 1 --resource kafka-image=
Changed in juju: | |
milestone: | none → 2.9-next |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in juju: | |
milestone: | 2.9-next → none |