Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Feb 08 14:42
    SchoolGuy commented #2667
  • Feb 08 14:42
    SchoolGuy commented #2667
  • Feb 08 14:42
    SchoolGuy updated the wiki
  • Feb 08 14:39
    codecov[bot] commented #3315
  • Feb 08 14:38
    SchoolGuy synchronize #3315
  • Feb 08 14:38

    SchoolGuy on add-typing

    CI: Add pyright Due to numerou… Setup: Add specific linter vers… pyright: Fulfill strict typing … and 2 more (compare)

  • Feb 08 14:16

    SchoolGuy on main

    CI: Use OBS for package builds (compare)

  • Feb 07 20:01
    codecov[bot] commented #3301
  • Feb 07 19:56
    codecov[bot] commented #3301
  • Feb 07 19:56
    codecov[bot] commented #3301
  • Feb 07 19:56
    codecov[bot] commented #3301
  • Feb 07 19:56
    codecov[bot] commented #3301
  • Feb 07 19:56
    codecov[bot] commented #3301
  • Feb 07 19:56
    codecov[bot] commented #3301
  • Feb 07 19:56
    codecov[bot] commented #3301
  • Feb 07 19:56
    codecov[bot] commented #3301
  • Feb 07 19:56
    codecov[bot] commented #3301
  • Feb 07 19:55
    codecov[bot] commented #3301
  • Feb 07 19:55
    codecov[bot] commented #3301
  • Feb 07 19:54
    SchoolGuy commented #3301
dondster56
@dondster56
set serial_console=true
set serial_baud=0
set serial_line=0
set system="test"
set timeout=1
set default='test'
menuentry 'rmsds' --class gnu-linux --class gnu --class os {
echo 'Loading kernel ...'
clinux /images/RHEL79-x86_64/vmlinuz kssendmac inst.ks=http://xx.xx.xx.xx/cblr/svc/op/autoinstall/system/t
est
echo 'Loading initial ramdisk ...'
cinitrd /images/RHEL79-x86_64/initrd.img
echo '...done'
}
egotthold
@egotthold:matrix.org
[m]
I believe we have a discussion or issue for that one on GitHub. Maybe you find something interesting there.
dondster56
@dondster56
ok I will have a look around on there, thanks
dondster56
@dondster56
since 3.3.1 has no web interface, how do I add the autoinstall-meta to handle the inst.repo like was automatically done for you in previous version. Such as tree: 'tree': 'http://@@http_server@@/cblr/links/RHEL79-x86_64'
dondster56
@dondster56
I now have Uefi network booting working and got past the grub> prompt but the $tree variable isn't set as to why I need help with the above question
dondster56
@dondster56
sorry, that was my bad, I had autoinstall-meta instead of --autoinstall-meta for the cobbler distro edit command.
egotthold
@egotthold:matrix.org
[m]
Good news! I finally got time to work a littlebit on the WebUI this weekend. A few moments ago I was able to do a successfull login on the WebUI to a real Cobbler server. Progress is very slow and the code is definitly not production ready but we are slowly getting somewhere.
InterceptorF
@InterceptorF
Somehow in editing an ISO I have broken Cobbler:

[root@cos-pxe-00 rendered]# cobbler sync
cobblerd does not appear to be running/accessible: error(111, 'Connection refused')
[root@cos-pxe-00 rendered]# systemctl stop cobbler
Failed to stop cobbler.service: Unit cobbler.service not loaded.
[root@cos-pxe-00 rendered]# systemctl stop cobblerd
[root@cos-pxe-00 rendered]# systemctl status cobblerd
● cobblerd.service - Cobbler Helper Daemon
Loaded: loaded (/usr/lib/systemd/system/cobblerd.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Mon 2022-01-31 11:27:04 MST; 6min ago
Process: 7437 ExecStartPost=/usr/bin/touch /usr/share/cobbler/web/cobbler.wsgi (code=exited, status=0/SUCCESS)
Process: 7436 ExecStart=/usr/bin/cobblerd -F --log-level=INFO (code=exited, status=0/SUCCESS)
Main PID: 7436 (code=exited, status=0/SUCCESS)

Jan 31 11:27:03 cos-pxe-00.colorado.datadirectnet.com cobblerd[7436]: Traceback (most recent call last):
Jan 31 11:27:03 cos-pxe-00.colorado.datadirectnet.com cobblerd[7436]: File "/usr/bin/cobblerd", line 75, in main
Jan 31 11:27:03 cos-pxe-00.colorado.datadirectnet.com cobblerd[7436]: api = cobbler_api.BootAPI(is_cobblerd=True)
Jan 31 11:27:03 cos-pxe-00.colorado.datadirectnet.com cobblerd[7436]: File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 119, in init
Jan 31 11:27:03 cos-pxe-00.colorado.datadirectnet.com cobblerd[7436]: self.deserialize()
Jan 31 11:27:03 cos-pxe-00.colorado.datadirectnet.com cobblerd[7436]: File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 953, in deserialize
Jan 31 11:27:03 cos-pxe-00.colorado.datadirectnet.com cobblerd[7436]: return self._config.deserialize()
Jan 31 11:27:03 cos-pxe-00.colorado.datadirectnet.com cobblerd[7436]: File "/usr/lib/python2.7/site-packages/cobbler/config.py", line 262, in deserialize
Jan 31 11:27:03 cos-pxe-00.colorado.datadirectnet.com cobblerd[7436]: raise CX("serializer: error loading collection %s. Check /etc/cobbler/modules.conf" % item.collection_type())
Jan 31 11:27:03 cos-pxe-00.colorado.datadirectnet.com cobblerd[7436]: CX: 'serializer: error loading collection profile. Check /etc/cobbler/modules.conf'

I removed what I edited but it will not start: [root@cos-pxe-00 cobbler]# cat cobbler.log
Mon Jan 31 11:08:18 2022 - INFO | mkdir: /var/www/cobbler/rendered
Mon Jan 31 11:08:18 2022 - INFO | Exception occured: <type 'exceptions.OSError'>
Mon Jan 31 11:08:18 2022 - INFO | Exception value: [Errno 2] No such file or directory: '/var/www/cobbler/rendered'
Mon Jan 31 11:08:18 2022 - INFO | Exception Info:
File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 1277, in mkdir
return os.makedirs(path,mode)
File "/usr/lib64/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)

Mon Jan 31 11:21:10 2022 - INFO | mkdir: /var/www/cobbler/rendered
Mon Jan 31 11:21:10 2022 - INFO | Exception occured: <type 'exceptions.OSError'>
Mon Jan 31 11:21:10 2022 - INFO | Exception value: [Errno 2] No such file or directory: '/var/www/cobbler/rendered'
Mon Jan 31 11:21:10 2022 - INFO | Exception Info:
File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 1277, in mkdir
return os.makedirs(path,mode)
File "/usr/lib64/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)

ANy thoughts on how to get my cobbler server to start?
egotthold
@egotthold:matrix.org
[m]
Sooo.... No. This is a too old Cobbler version and additionally the error messages are very unfamiliar. No idea what to do. Sorry.
But it appears one of your profile jsons at least is borked.
And the mkdir may be a permission issue.
InterceptorF
@InterceptorF
profiles - hm that makes sense - let me look into that
InterceptorF
@InterceptorF
without being able to start cobbler, can I remove the profile(s) from /var/lib/cobber/config/profiles.d or how would I clean that up?
egotthold
@egotthold:matrix.org
[m]
Exactly. However remember to back them up to not loose the content.
InterceptorF
@InterceptorF
so removing the profiles did not change the failures. so I retraced my history and put everything back to what it was as best I could and that also did not help.
InterceptorF
@InterceptorF
If I could somehow get cobbler sync to run - would that possibly clean this up?
I can reboot and start cobblerd but if I try and run any cobbler command it error (111) "Connection refused'
II've moved all the profiles and distros that I have touched out of cobbler as well as from the web folders - still no change.

[root@cos-pxe-00 ~]# systemctl status cobblerd
● cobblerd.service - Cobbler Helper Daemon
Loaded: loaded (/usr/lib/systemd/system/cobblerd.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Mon 2022-01-31 14:10:10 MST; 15s ago
Process: 1969 ExecStartPost=/usr/bin/touch /usr/share/cobbler/web/cobbler.wsgi (code=exited, status=0/SUCCESS)
Process: 1968 ExecStart=/usr/bin/cobblerd -F --log-level=INFO (code=exited, status=0/SUCCESS)
Main PID: 1968 (code=exited, status=0/SUCCESS)

Jan 31 14:10:10 cos-pxe-00.colorado.datadirectnet.com cobblerd[1968]: Traceback (most recent call last):
Jan 31 14:10:10 cos-pxe-00.colorado.datadirectnet.com cobblerd[1968]: File "/usr/bin/cobblerd", line 75, in main
Jan 31 14:10:10 cos-pxe-00.colorado.datadirectnet.com cobblerd[1968]: api = cobbler_api.BootAPI(is_cobblerd=True)
Jan 31 14:10:10 cos-pxe-00.colorado.datadirectnet.com cobblerd[1968]: File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 119, in init
Jan 31 14:10:10 cos-pxe-00.colorado.datadirectnet.com cobblerd[1968]: self.deserialize()
Jan 31 14:10:10 cos-pxe-00.colorado.datadirectnet.com cobblerd[1968]: File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 953, in deserialize
Jan 31 14:10:10 cos-pxe-00.colorado.datadirectnet.com cobblerd[1968]: return self._config.deserialize()
Jan 31 14:10:10 cos-pxe-00.colorado.datadirectnet.com cobblerd[1968]: File "/usr/lib/python2.7/site-packages/cobbler/config.py", line 262, in deserialize
Jan 31 14:10:10 cos-pxe-00.colorado.datadirectnet.com cobblerd[1968]: raise CX("serializer: error loading collection %s. Check /etc/cobbler/modules.conf" % item.collection_type())
Jan 31 14:10:10 cos-pxe-00.colorado.datadirectnet.com cobblerd[1968]: CX: 'serializer: error loading collection repo. Check /etc/cobbler/modules.conf'
[root@cos-pxe-00 ~]# systemctl start cobblerd
[root@cos-pxe-00 ~]# systemctl status cobblerd
● cobblerd.service - Cobbler Helper Daemon
Loaded: loaded (/usr/lib/systemd/system/cobblerd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2022-01-31 14:10:35 MST; 2s ago
Process: 4899 ExecStartPost=/usr/bin/touch /usr/share/cobbler/web/cobbler.wsgi (code=exited, status=0/SUCCESS)
Main PID: 4898 (cobblerd)
Tasks: 1
CGroup: /system.slice/cobblerd.service
└─4898 /usr/bin/python2 -s /usr/bin/cobblerd -F --log-level=INFO

Jan 31 14:10:35 cos-pxe-00.colorado.datadirectnet.com systemd[1]: Starting Cobbler Helper Daemon...
Jan 31 14:10:35 cos-pxe-00.colorado.datadirectnet.com systemd[1]: Started Cobbler Helper Daemon.
[root@cos-pxe-00 ~]# cobbler sync
cobblerd does not appear to be running/accessible: error(111, 'Connection refused')
[root@cos-pxe-00 ~]# systemctl status cobblerd
● cobblerd.service - Cobbler Helper Daemon
Loaded: loaded (/usr/lib/systemd/system/cobblerd.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Mon 2022-01-31 14:10:40 MST; 3min 56s ago
Process: 4899 ExecStartPost=/usr/bin/touch /usr/share/cobbler/web/cobbler.wsgi (code=exited, status=0/SUCCESS)
Process: 4898 ExecStart=/usr/bin/cobblerd -F --log-level=INFO (code=exited, status=0/SUCCESS)
Main PID: 4898 (code=exited, status=0/SUCCESS)

Jan 31 14:10:40 cos-pxe-00.colorado.datadirectnet.com cobblerd[4898]: Traceback (most recent call last):
Jan 31 14:10:40 cos-pxe-00.colorado.datadirectnet.com cobblerd[4898]: File "/usr/bin/cobblerd", line 75, in main
Jan 31 14:10:40 cos-pxe-00.colorado.datadirectnet.com cobblerd[4898]: api = cobbler_api.BootAPI(is_cobblerd=True)
Jan 31 14:10:40 cos-pxe-00.colorado.datadirectnet.com cobblerd[4898]: File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 119, in init
Jan 31 14:10:40 cos-pxe-00.colorado.datadirectnet.com cobblerd[4898]: self.deserialize()
Jan 31 14:10:40 cos-pxe-00.colorado.datadirectnet.com cobblerd[4898]: File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 953, in deserialize
Jan 31 14:10:40 cos-pxe-00.colorado.datadirectnet.com cobblerd[4898]: return self._config.deserialize()
Jan 31 14:10:40 cos-pxe-00.colorado.datadire

egotthold
@egotthold:matrix.org
[m]
Well now your repos are broken.
It feels like something messed up almost everything in your instance. I would start from scratch tbh.
InterceptorF
@InterceptorF
restart from scratch - as in re- install Cobbler?
egotthold
@egotthold:matrix.org
[m]
Shouldn't be too hard since you can script filling it up via the API. We do it internally the same.
Jup.
Hopefully on a more recent version but whatever you need.
InterceptorF
@InterceptorF
Will it remove all the systems, distros, profiles, etc?
egotthold
@egotthold:matrix.org
[m]
However the assumption is that you know your setup in and out. If you don't do that it will be very hard just to start from scratch...
And yes I mean that.
I mean a few reposyncs and distro, profile, system adds are quickly written down in a Python Script.
InterceptorF
@InterceptorF
I need a version that has a GUI for the users. I already have a second cobbler system Cobbler 3.2.2 but its not production because there is no GUI for it
dondster56
@dondster56

cobbler 3.3.1 having issue import Windows 10 Pro from ISo. I have installed python3-hivex, python3-pefile, and installed wimtools-1.13.5 because I am running on RHEL 8.4 The wintools binaries are installed in /usr/bin and I get the following error: [2022-01-31_154653_import] 2022-01-31T15:47:05 - DEBUG | received on stderr:
[2022-01-31_154653_import] 2022-01-31T15:47:05 - DEBUG | Found a candidate signature: breed=windows, version=10
[2022-01-31_154653_import] 2022-01-31T15:47:05 - INFO | Could not detect the filetype and read the content of file "/var/www/cobbler/distro_mirror/WIN10PRO-x86_64/sources/install.wim". Returning nothing.
[2022-01-31_154653_import] 2022-01-31T15:47:05 - DEBUG | Found a candidate signature: breed=windows, version=10
[2022-01-31_154653_import] 2022-01-31T15:47:05 - INFO | Could not detect the filetype and read the content of file "/var/www/cobbler/distro_mirror/WIN10PRO-x86_64/sources/install.wim". Returning nothing.
[2022-01-31_154653_import] 2022-01-31T15:47:05 - ERROR | No signature matched in /var/www/cobbler/distro_mirror/WIN10PRO-x86_64
[2022-01-31_154653_import] 2022-01-31T15:47:05 - INFO | Exception occurred: <class 'cobbler.cexceptions.CX'>
[2022-01-31_154653_import] 2022-01-31T15:47:05 - INFO | Exception value: 'No signature matched in /var/www/cobbler/distro_mirror/WIN10PRO-x86_64'
[2022-01-31_154653_import] 2022-01-31T15:47:05 - INFO | Exception Info:
File "/usr/lib/python3.6/site-packages/cobbler/remote.py", line 99, in run
rc = self._run(self)

File "/usr/lib/python3.6/site-packages/cobbler/remote.py", line 313, in runner
self.options.get("os_version", None),

File "/usr/lib/python3.6/site-packages/cobbler/api.py", line 1609, in import_tree
import_module.run(path, mirror_name, network_root, autoinstall_file, arch, breed, os_version)

File "/usr/lib/python3.6/site-packages/cobbler/modules/managers/import_signatures.py", line 193, in run
raise CX(error_msg)

[2022-01-31_154653_import] 2022-01-31T15:47:05 - ERROR | ### TASK FAILED ###

InterceptorF
@InterceptorF
to trouble shoot this is there a way to start cobbler without the webUI portion?
egotthold
@egotthold:matrix.org
[m]
@dondster56: 3.3.1 is not yet released, so you are on master. Thus please file a bug report with the information. (And please use a Markdown codeblock for formatting the stacktrace)
@InterceptorF: No that is the reason why I removed it and I am writing a new one. For SUSE Manager there is a special build which separates the files but that is obviously not available for Cent OS.
s/SUSE Manager/Uyuni/g
InterceptorF
@InterceptorF
@egotthold:matrix.org at this point I've changed so much trying to fix it that it's definitely in a bad place. I've got an rsync backup of the pxe/cobbler server and am discussing with my IT dept. today on using that to get it back to where it was before it stopped working. I'll let you know how that goes.
InterceptorF
@InterceptorF
So I hacked the config.py and got rid of the try block in the serializer which helped me discover there was a missing profile. I found which one it was in a backup and slapped it back in the /var/lib/cobbler/config/profile.d directory and now cobbler starts.. THANK GOD. - cobbler sync was complaining about profiles for two systems so I did a cobbler system edit on those two systems and changed the profiles. Now cobbler sync completes. I now see the cobbler web GUI screen but my password is not working to get in. I tried to change the password in the settings but that still doesn't let me log into the GUI. Is there anything else that would keep me from getting past the login screen besides the default_password_crypted in the settings?
InterceptorF
@InterceptorF
ah ha...>> Feb 01 16:08:39 cos-pxe-00.colorado.datadirectnet.com systemd[1]: Starting Cobbler Helper Daemon...
Feb 01 16:08:39 cos-pxe-00.colorado.datadirectnet.com systemd[1]: Started Cobbler Helper Daemon.
Feb 01 16:53:21 cos-pxe-00.colorado.datadirectnet.com dhcpd[19234]: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Feb 01 16:57:59 cos-pxe-00.colorado.datadirectnet.com dhcpd[22074]: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
[root@cos-pxe-00 ks_mirror]#
I'm in -
Forgot I changed that setting in modules.conf during trouibleshooting.
egotthold
@egotthold:matrix.org
[m]
Great that it is working again! 🥳
holmesb
@holmesb
This question has been asked on github without any firm answer: where can I get grub.0? Even after running cobbler mkloaders, it doesn't exist in /var/lib/cobbler/loaders/
I'm running opensuse leap and latest Cobbler from master
holmesb
@holmesb
image.png
holmesb
@holmesb
I have syslinux installed: v4.04-15.1
InterceptorF
@InterceptorF
I have ran out of space on my root directory and want to remove some of my repo_mirrors, specifically in this directory structure: '/mnt/cobbler_bu/var_www_cobbler/repo_mirror/ubuntu-16.04.2-server-x86' and there are a few other older ubuntu repo mirrors as well to reclaim some space. I don't see the syntax in the doc's to do such a removal. Can someone show me the syntax I'd need to remove these repo_mirrors? Thanks
InterceptorF
@InterceptorF
I suppose I could rm -rf these repos in the /var/www/cobbelr/repo_mirror directory without issue?