Bug 1144106
Summary: | ppc grub2 changed config location | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | andrew <alemay> |
Component: | lab controller | Assignee: | Amit Saha <asaha> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Dan Callaghan <dcallagh> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 0.17 | CC: | aigao, asaha, blc, dcallagh, ebaak, emcnabb, jburke, jstancek, mgahagan, peterm, pjones, rmancy, sbest |
Target Milestone: | 0.18.2 | Keywords: | FutureFeature, Patch |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-07 07:19:53 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
andrew
2014-09-18 16:34:30 UTC
So it was actually a grub bug that it was previously hardcoding /boot/grub2/ as the config directory instead of looking relative to the image location, which is what /ppc/ is. On the other arches grub already always looks relative to the image directory. Evidently they have fixed the ppc port to do the same. I should have kicked up a stink about it when I first noticed it, then we might have found out sooner, but I just shrugged it off as another random boot loader inconsistency. Sigh... (In reply to andrew from comment #0) > Description of problem: > > Right now beaker is not creating the grub(hexip).cfg config files in the > correct directory for the latests version of grub2. > > Version-Release number of selected component (if applicable): > > > How reproducible: 100% > > > Steps to Reproduce: > 1. install system with grub2-2.02-0.8 configured on the LC > 2. beaker creates symlink for core.elf in /ppc/{hexip-grub2) > 3. beaker creates grub2 config in /boot/grub2/grub.cfg-0A1043F9 just a note to avoid confusion: The above paths are actually, <tftp_root>/ppc/ .. and <tftp_root>/grub2/.. Patch: http://gerrit.beaker-project.org/#/c/3343/ (In reply to andrew from comment #0) > Description of problem: > > Right now beaker is not creating the grub(hexip).cfg config files in the > correct directory for the latests version of grub2. > > Version-Release number of selected component (if applicable): > > > How reproducible: 100% > > > Steps to Reproduce: > 1. install system with grub2-2.02-0.8 configured on the LC > 2. beaker creates symlink for core.elf in /ppc/{hexip-grub2) > 3. beaker creates grub2 config in /boot/grub2/grub.cfg-0A1043F9 > > Actual results: > > > Expected results: > > 3. Beaker needs to create grub2 config in /ppc/(grub.cfg-0A1043F9) > for the network boot to be successful Andrew: Does this look right? http://gerrit.beaker-project.org/#/c/3343/2/documentation/admin-guide/tftp.rst There is a short-term workaround for this problem. You can create a symlink in the new config location pointing at the old one, which Beaker 0.17.3 writes. ln -s ../boot/grub2/grub.cfg-0A1043F9 /var/lib/tftpboot/ppc/grub2.cfg-0A1043F9 The downside is of course that you have to do that for every system manually. We'd like to start provisioning ppc64le guests ASAP so even a short term solution in advance of the Beaker 19 release is very desirable. (In reply to Dan Callaghan from comment #6) > ln -s ../boot/grub2/grub.cfg-0A1043F9 /var/lib/tftpboot/ppc/grub2.cfg-0A1043F9 This was a typo, should be: ln -s ../boot/grub2/grub.cfg-0A1043F9 /var/lib/tftpboot/ppc/grub.cfg-0A1043F9 Adding grub2 maintainer for comment on pathname changes. Peter, Any thoughts about Comment 13. We are blocked from getting systems running in Beaker until this is fixed or we get a workaround. Regards, Jeff (In reply to Jeff Burke from comment #16) > Peter, > Any thoughts about Comment 13. We are blocked from getting systems running > in Beaker until this is fixed or we get a workaround. Workaround is to *also* create the grub config in <tftp_root>..but i am not sure how good that idea is. Hey guys, we're the providers of grub2. Do we really need a workaround or should we be updating the grub2 package itself? I'd really like to get beaker.engineering.redhat.com up and running on ppc64le right away, so if grub2 is in error let's fix grub2. If this is an eng-ops specific path we can perhaps spin out a special grub2 for you. What do you prefer? Okay, I guess I was taking a very fatalistic view of the GRUB2 issues because every boot loader we have to deal with in Beaker has random implementation-defined behaviour that we have to just continually work around. But yes, if we can actually fix GRUB itself that is much better than just working around it in Beaker. So I have filed some bugs about these problems: Firstly, we still have no idea what the expected behaviour is because it is not documented anywhere: https://bugzilla.redhat.com/show_bug.cgi?id=1148650 More importantly, this bug is for the inconsistency noted in comment 13: https://bugzilla.redhat.com/show_bug.cgi?id=1148652 The ideal solution is for someone (Peter Jones? IBM?) to tell us where the config file is *supposed* to be, and then fix GRUB to *actually* look in the right place, and then we can make sure Beaker is writing it to the correct location. The expedient solution is to make Beaker write the config file to every possible location we have seen GRUB use, just to get it working... Amit has a patch for that. I think the soonest we could have that released is Monday. > > The expedient solution is to make Beaker write the config file to every > possible location we have seen GRUB use, just to get it working... Amit has > a patch for that. I think the soonest we could have that released is Monday. http://gerrit.beaker-project.org/#/c/3365/ Answering for Peter, The config files should be stored in the same directory the grub binary is stored. That is the correct behavior for grub2. I've added more information at https://bugzilla.redhat.com/show_bug.cgi?id=1148652#c4 Beaker 0.18.2 has been released. |