Unable to import new qcow2 image into Glance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MicroStack |
In Progress
|
Undecided
|
Unassigned |
Bug Description
# Microstack installation command
Here is how I installed microstack on my system:
$ sudo snap install microstack --beta
Since I did not pass the --devmode flag, microstack is running in strict confinement.
# The issue
When trying to import a new Ubuntu cloud image into Glance, I am receiving a permission denied errors when trying to read in the image:
$ microstack.
Reading the resulting stacktrace (in logs.tar.gz), it looks like OpenStack does not have permission to read the file.
# Probable cause and potential solution
Looking at the output of `sudo dmesg | grep 'apparmor=
$ snap connections microstack
Interface Plug Slot Notes
block-devices microstack:
firewall-control microstack:
hardware-observe microstack:
hugepages-control microstack:
kernel-
kvm microstack:kvm :kvm -
libvirt microstack:libvirt :libvirt -
log-observe microstack:
microstack-support microstack:
mount-observe microstack:
netlink-audit microstack:
netlink-connector microstack:
network microstack:network :network -
network-bind microstack:
network-control microstack:
network-observe microstack:
opengl microstack:opengl :opengl -
openvswitch-support microstack:
process-control microstack:
raw-usb microstack:raw-usb :raw-usb -
ssh-keys microstack:ssh-keys - -
system-observe microstack:
system-trace microstack:
From the looks of it, I am think that if we add the home and system-files interface to the snapcraft.yaml file, it should resolve the permission denied error received when trying to import a new image into Glance.
Changed in microstack: | |
status: | New → In Progress |
Adding --devmode fixes the permission denied error, so I am pretty certain that it is an issue with a missing interface in strict confinement.