Wrong path to .gpg file

Bug #2007854 reported by Kyrylo Sypko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Triaged
Low
Unassigned
3.3
Triaged
Low
Unassigned

Bug Description

I'm using Package version/build 3.1.0-10901-g.f1f8f1505

I try to sync images from maas.io but get an error:

 maasserver.bootresources: [critical] Importing boot resources failed.
        Traceback (most recent call last):
          File "/usr/lib/python3.8/threading.py", line 870, in run
            self._target(*self._args, **self._kwargs)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 835, in worker
            return target()
          File "/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 46, in work
            task()
          File "/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 190, in doWork
            task()
        ...
 File "/usr/lib/python3/dist-packages/maasserver/models/bootsource.py", line 68, in to_dict_without_selections
            with open(self.keyring_filename, "rb") as keyring_file:
        builtins.FileNotFoundError: [Errno 2] No such file or directory: '/snap/maas/current/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg'

It looks like wrong path for Package version of maas.

To workaround it I just created dir /snap/maas/current/usr/share/keyrings/ and copy /usr/share/keyrings/ubuntu-cloudimage-keyring.gpg there.

Bill Wear (billwear)
Changed in maas:
status: New → Triaged
importance: Undecided → Low
Bill Wear (billwear)
Changed in maas:
milestone: none → 3.4.0
Alberto Donato (ack)
Changed in maas:
milestone: 3.4.0 → 3.4.x
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.