kata charm not installing - ASCII armor markers missing from GPG key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kata Containers Subordinate Charm |
Triaged
|
High
|
Unassigned |
Bug Description
# /var/log/
```
2022-12-20 11:10:33 ERROR juju.worker.
2022-12-20 11:10:33 INFO juju.worker.uniter resolver.go:145 awaiting error resolution for "install" hook
2022-12-20 11:12:51 INFO juju.worker.uniter resolver.go:145 awaiting error resolution for "install" hook
2022-12-20 11:15:33 INFO juju.worker.uniter resolver.go:145 awaiting error resolution for "install" hook
2022-12-20 11:15:34 INFO unit.kata/
2022-12-20 11:15:34 INFO unit.kata/
2022-12-20 11:15:35 INFO unit.kata/
2022-12-20 11:15:36 ERROR unit.kata/
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
import_
File "/var/lib/
raise GPGKeyError("ASCII armor markers missing from GPG key")
charmhelpers.
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 Traceback (most recent call last):
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 File "/var/lib/
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 main()
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 File "/var/lib/
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 bus.dispatch(
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 File "/var/lib/
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 _invoke(
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 File "/var/lib/
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 handler.invoke()
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 File "/var/lib/
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 self._action(*args)
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 File "/var/lib/
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 import_key(gpg_key)
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 File "/var/lib/
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 raise GPGKeyError("ASCII armor markers missing from GPG key")
2022-12-20 11:15:36 WARNING unit.kata/0.install logger.go:60 charmhelpers.
2022-12-20 11:15:36 ERROR juju.worker.
2022-12-20 11:15:36 INFO juju.worker.uniter resolver.go:145 awaiting error resolution for "install" hook
2022-12-20 11:18:12 INFO juju.worker.uniter resolver.go:145 awaiting error resolution for "install" hook
```
# Description of problem
I tried to deploy kata on charmed kubernetes following https:/
```
$ juju deploy cs:~containers/kata
Located charm "kata" in charm-store, revision 160
Deploying "kata" from charm-store charm "kata", revision 160 in channel stable on focal
$ juju add-relation kata kubernetes-
$ juju add-relation kata kubernetes-worker
$ juju add-relation kata:untrusted containerd:
```
status
```
$ watch juju status
Every 2.0s: juju status controller1: Tue Dec 20 11:20:32 2022
Model Controller Cloud/Region Version SLA Timestamp
k8s openstack-cloud openstack-
App Version Status Scale Charm Channel Rev Exposed Message
calico active 2 calico stable 54 no Calico is active
containerd go1.13.8 active 2 containerd stable 41 no Container runtime available
easyrsa 3.0.1 active 1 easyrsa stable 26 no Certificate Authority connected.
etcd 3.4.5 active 2 etcd stable 718 no Healthy with 2 known peers
kata error 2 kata stable 160 no hook failed: "install"
kubeapi-
kubernetes-
kubernetes-worker 1.25.5 active 1 kubernetes-worker stable 70 yes Kubernetes worker running.
openstack-
Unit Workload Agent Machine Public address Ports Message
easyrsa/0* active idle 0 192.168.122.56 Certificate Authority connected.
etcd/0* active idle 1 192.168.122.92 2379/tcp Healthy with 2 known peers
etcd/1 active idle 2 192.168.122.86 2379/tcp Healthy with 2 known peers
kubeapi-
kubernetes-
calico/1* active idle 192.168.122.68 Calico is active
containerd/1* active idle 192.168.122.68 Container runtime available
kata/0* error idle 192.168.122.68 hook failed: "install"
kubernetes-
calico/2 active idle 192.168.122.83 Calico is active
containerd/2 active idle 192.168.122.83 Container runtime available
kata/1 error idle 192.168.122.83 hook failed: "install"
openstack-
Machine State Address Inst id Series AZ Message
0 started 192.168.122.56 e13424db-
1 started 192.168.122.92 98196a15-
2 started 192.168.122.86 7d691ec0-
4 started 192.168.122.84 b0007809-
5 started 192.168.122.68 77f6cdde-
7 started 192.168.122.83 de383db9-
10 started 192.168.122.97 a79e5a07-
```
# Expected result
Install with no issues
# Actual result
Errors on install
```
kata error 2 kata stable 160 no hook failed: "install"
```
# Further information
I am using charmed Kubernetes on canonical OpenStack yoga version, bare metal.
I check the result of `/var/lib/
```
gpg_key = requests.get(
'http://
````
and its seems empty https:/
summary: |
- kata charm not installing missing gpg key + kata charm not installing - missing gpg key |
summary: |
- kata charm not installing - missing gpg key + kata charm not installing - ASCII armor markers missing from GPG key |
Thanks for the detailed report. Regarding this command:
$ juju deploy cs:~containers/kata
This is an old name for the kata charm that is no longer maintained. Running this command gives you an old revision of the charm. The correct command is:
$ juju deploy kata
However, it looks to me like the latest version of the charm still tries to get the GPG key from that opensuse.org URL. So I don't think using a newer charm will help you.
I think the charm is trying to use an old installation method (apt) that upstream no longer supports. To fix this, the charm may need to be updated to install kata via snap instead of apt.