r/openstack • u/firestorm_v1 • Jun 20 '24
Openstack Yoga - glance/0 juju unit can't run mount or dmesg as root, fstab missing?
In the process of troubleshooting my WAN port issue in another post, I decided to work on getting some more room in my glance unit's storage to match what the production cluster is doing. The production cluster mounts /var/lib/glance/images using NFS to a NetApp export (as defined in fstab) for more storage than the juju unit can provide. I noticed last night that in my MAAS/Juju testbed, that I can't run mount or dmesg as root and there's no fstab to edit to create the entry to auto-mount on instance boot.
Thinking that mount was being rejected by the NetApp, I built a NFS server instance and tested this from the MAAS instance and the NFS export mounted with no issue. I was able to make files, delete files, etc in the NFS mount as expected. When I try the same commands in the glance instance against the same test NFS server, I get a very generic "Operation not permitted" and because dmesg is locked out, I can't see if anything interesting shows up in the dmesg kernel log. I've tried searching online for a solution, but the the only thing I've found is a "wont-fix" bug about dmesg not working.
Juju glance version 24.2.1 from channel yoga/stable, revision 612.
Any ideas on how I can get mount working to expand the image datastore?
1
u/psycocyst Jun 20 '24
I'm guessing your glance/0 is an lxc container which runs as a unprivileged container so you have to mount the nfs on the host and then pass the folder in. Here is an example with proxmox https://forum.proxmox.com/threads/tutorial-mounting-nfs-share-to-an-unprivileged-lxc.138506/
1
u/lathiat Jun 21 '24
You’ll probably need to run the glance unit as KVM or a VM instead of an LXD container. As LXD containers can’t mount their own file systems. You also might be able to ask LXD on the host to mount the file system for you.
What’s your machine layout. Are these real machines or are all your MAAS machines a VM?
Can you share the full export bundle and a juju status?
Also you can run dmesg on the host. If you check juju status glance/0 it’s probably running on a machine like 2/lxd/5. If you juju ssh to the machine ID 2 (juju ssh 2) you’ll be able to see the dmesg there.