** Description changed: + [ Impact ] + + When we deploy a machine using ironic, then the machine is not able to + grab the grub.cfg file, and hence not able to boot and deploy. + + The grub.cfg, the permissions have to be changed manually to allow this + to happen. + + The upload, which fixed upstream, will update the permissions as per the + rest of the PXE configuration, so that this is now world readable, and + hence the deployable machines can access the files, and hence boot up. + + [ Test Plan ] + + * We will deploy a minimal openstack environment wit ironic enabled + * On the ironic node we'll see that the permissions of /tftpboot/grub.cfg + + ``` + ubuntu@juju-054326-10-lxd-6:~$ ls -lh /tftpboot/grub + total 4.0K + -rw-r----- 1 ironic ironic 133 Dec 2 07:51 grub.cfg + ``` + + * Install the new package as part of this SRU + * We should see the permissions of the file changed + + ``` + ubuntu@juju-054326-10-lxd-6:~$ ls -lh /tftpboot/grub + total 4.0K + -rw-r--r-- 1 ironic ironic 133 Dec 2 11:53 grub.cfg + ``` + + [ Where problems could occur ] + + The fix only touches one file, and it's permission so that it is now + world readable. + + The only thing could be here, is that if the file has any credentials + that the grub.cfg could have (which is unlikely) + + + [ Other Info ] + + # original bug description + After deployment of the Ironic conductor find out that /tftpboot/brub/grub.cfg file is not world readable causing the pxe boot the baremetal server to goto grub pompt. After change permission to 644 of /tftpboot/brub/grub.cfg able to download grub and start pxe booting but charm reload it to 640 again. This request is to change the permission of grub.cfg to 644. The change [1] Fixed the permissions for all PXE files, then the code change to add templated [2] grub.cfg was added, but this was not changing the permissions. The changes happened in parallel, and hence the parallel changes did not happen. We need to make similar changes to the pxe files, as it was done in [1] to solve the problem. - [1] https://review.opendev.org/c/openstack/ironic/+/809295 [2] https://review.opendev.org/c/openstack/ironic/+/815580
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2176179 Title: grub.cfg installed with wrong permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ironic/+bug/2176179/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
