New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cobbler get-loaders --force failing with Exception value: 'str' object has no attribute 'get' #2587
Comments
Could you please provide a partial output of the cobbler log ( |
We will remove the I tested the command with a fresh Cobbler installation on openSUSE Leap 15.2 and was not able to reproduce it. $ cobbler version
Cobbler 3.2.1
source: c7fc767c, Thu Mar 4 20:07:10 2021 +0100
build time: Mon Mar 8 17:29:25 2021
$ cobbler get-loaders
task started: 2021-03-08_172949_get_loaders
task started (id=Download Bootloader Content, time=Mon Mar 8 17:29:49 2021)
running python triggers from /var/lib/cobbler/triggers/task/get_loaders/pre/*
running shell triggers from /var/lib/cobbler/triggers/task/get_loaders/pre/*
shell triggers finished successfully
downloading https://cobbler.github.io/loaders/README to /var/lib/cobbler/loaders/README
downloading https://cobbler.github.io/loaders/COPYING.yaboot to /var/lib/cobbler/loaders/COPYING.yaboot
downloading https://cobbler.github.io/loaders/COPYING.syslinux to /var/lib/cobbler/loaders/COPYING.syslinux
downloading https://cobbler.github.io/loaders/yaboot-1.3.17 to /var/lib/cobbler/loaders/yaboot
downloading https://cobbler.github.io/loaders/pxelinux.0-3.86 to /var/lib/cobbler/loaders/pxelinux.0
downloading https://cobbler.github.io/loaders/menu.c32-3.86 to /var/lib/cobbler/loaders/menu.c32
downloading https://cobbler.github.io/loaders/grub-0.97-x86.efi to /var/lib/cobbler/loaders/grub-x86.efi
downloading https://cobbler.github.io/loaders/grub-0.97-x86_64.efi to /var/lib/cobbler/loaders/grub-x86_64.efi
*** TASK COMPLETE ***
$ cobbler get-loaders --force
task started: 2021-03-08_173220_get_loaders
task started (id=Download Bootloader Content, time=Mon Mar 8 17:32:20 2021)
running python triggers from /var/lib/cobbler/triggers/task/get_loaders/pre/*
running shell triggers from /var/lib/cobbler/triggers/task/get_loaders/pre/*
shell triggers finished successfully
downloading https://cobbler.github.io/loaders/README to /var/lib/cobbler/loaders/README
downloading https://cobbler.github.io/loaders/COPYING.yaboot to /var/lib/cobbler/loaders/COPYING.yaboot
downloading https://cobbler.github.io/loaders/COPYING.syslinux to /var/lib/cobbler/loaders/COPYING.syslinux
downloading https://cobbler.github.io/loaders/yaboot-1.3.17 to /var/lib/cobbler/loaders/yaboot
downloading https://cobbler.github.io/loaders/pxelinux.0-3.86 to /var/lib/cobbler/loaders/pxelinux.0
downloading https://cobbler.github.io/loaders/menu.c32-3.86 to /var/lib/cobbler/loaders/menu.c32
downloading https://cobbler.github.io/loaders/grub-0.97-x86.efi to /var/lib/cobbler/loaders/grub-x86.efi
downloading https://cobbler.github.io/loaders/grub-0.97-x86_64.efi to /var/lib/cobbler/loaders/grub-x86_64.efi
*** TASK COMPLETE *** |
After removing get-loaders in version 3.2.1, I cannot boot pxe at all, I am Ubuntu 20.04 version. It's not that I don't approve of deletion, At least version 3.2 can also guide pxe to start, and I haven't found any solution in the update log and documentation. |
@tim1670 There is the |
@SchoolGuy I try to run the script, the log prompts: mkgrub.sh: 5: [[: not found Seems not compatible with Ubuntu 20.04? In fact, I just hope that the LAN machine pxe netboot can guide other machine in the LAN to automatically install ubuntu 16 or 18 unattended, and download the installation files from the LAN machine without using the Internet or only a few update files are downloaded from the Internet.Just like installing the system to the virtual machine in VirtualBox with the iso file, I tried for 2 weeks, but there was no progress and I was very frustrated. |
@tim1670 Ubuntu uses Dash and the script is written in Bash. Thus try to execute with |
Some background information about the change in Ubuntu: https://wiki.ubuntu.com/DashAsBinSh Maybe we find some time to make our Bash scripts POSIX compliant. |
logs: when we run cobbler check:
Mandatory arguments to long options are mandatory for short options too. Startup: Logging and input file: Download: When we run cobbler get-loaders
|
@mohantnr What is your question now? And is it even related to this Question? |
You have requested to provide cobbler.log output. so i have updated case. |
Were you able to run the |
Since for almost two weeks there was no response, I will close this. The functionality is discouraged for a long time and has been removed on |
@SchoolGuy Are you saying that "cobbler get-loaders" will be deprecated in Cobbler 3.3 ? |
@sujit-jadhav Yes it is removed already on Cobbler 3.3.0 is expected to be released end of June but since we have two major PRs open, I expect the version to be deleyed until we have them in and Cobbler is stable again. An update from version 2.8.5 was described here and in the Gitter Chat multiple times roughly. For completness sake I will repeat it:
In case of errors during and after the migration look at Please note that if you are on RHEL 7 you will be on your own as RHEL 7 has not all required dependencies in Python 3 available via |
@SchoolGuy Can you please let me know probable release date for |
@sujit-jadhav The roadmap is the following:
BUT you will then lose the webinterface which is developed separately and is not yet done. So Cobbler itself will - if everything goes according to plan - be released by the end of July now. On the webinterface I can't put a date yet but I will do my best. But since 80% of the work is done in my private free time, I can't promise that this plan will go as I wrote it down here. |
@SchoolGuy, Is Cobbler 3.3.0 available now? We are ok to consume it without webinterface. |
@sujit-jadhav Sadly not. We have found that the amount of manual migration steps are not accaptable for V3.3.0 and are thus writing logic to automate that now. This sadly is more complicated then thought but it is on the way. Because of internal deadlines at my company I am required to deliver V3.3.0 by the end of this month. The error you linked was never reproduced by us or the reporter so if you are running into it, I think you should reopen it with more details how we can reproduce it. |
@SchoolGuy , we are able to resolve the error #2614. Looks like we need boot loaders for Cobbler 3.2.1, if that is the case can you please let me know from where I can pick it up. |
@sujit-jadhav As an interim quickfix you can use this: #2660 (comment) Otherwise if you want to do it properly: #2660 (comment) |
@SchoolGuy both links are same: Quickfix and proper fix. Is there any typo? |
@sujit-jadhav Nope they link to different comments in the issue. What hbokh describes is a quickfix and what I describe further down is the propper fix. |
@SchoolGuy Quickfix link has boot loaders for Cobbler 2.8.5, it doesn't work for our scenario.
|
@sujit-jadhav So that error message clearly says that one of the modules you are trying to use is not existing. Please adjust the list of included GRUB modules so |
Hey folks, I ran into the "cobbler get-loaders" issue on CentOS 8 with Cobbler 3.2.0, and I gotta say i'm a bit frustrated by the changes and the lack of documentation to go with it. It even talks about "cobbler get-loaders" at https://cobbler.readthedocs.io/en/release32/cobbler.html I'm reading over here about "mkgrub.sh" and confused about how to use it... I opened up and looked through it and was hard to make sense of it... and as I was going through it and comparing the directories on my filesystem, I knew it was going to fail... I'm running it to show you:
There should at least be instructions on how to get a distro provisioning! Anyways, what I had to do to get things to work was copy all the files in the directory /var/lib/cobbler/loaders from my CentOS 7 Cobbler 2.8.5 installation to the directory /var/lib/tftpboot/ in my CentOS 8 Cobbler 3.2.0 installation. Just some background:
I'm really hoping this could get smoothed out soon... I'm sure people less techical than myself would probably get lost... |
Having the same issue as @zparihar. Sadly, I don't have the files from a previous installation to get around this. |
Hi @zparihar and @mariohackandglitch, we faced these same issues but we were able to solve them. Perform the following steps after installing cobbler:
After this everything else remains the same. For more info, you can view our project Omnia |
Describe the bug
Steps to reproduce
Expected behavior
Cobbler version
Operating system
Cobbler log
Screenshots
Additional information
The text was updated successfully, but these errors were encountered: