Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 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
  • Feb 07 19:54
    codecov[bot] commented #3301
  • Feb 07 19:53
    codecov[bot] commented #3333
  • Feb 07 19:53
    SchoolGuy synchronize #3301
  • Feb 07 19:52
    codecov[bot] commented #3301
  • Feb 07 19:51
    codecov[bot] commented #3301
  • Feb 07 19:51
    codecov[bot] commented #3301
  • Feb 07 19:51
    codecov[bot] commented #3301
InterceptorF
@InterceptorF

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?
InterceptorF
@InterceptorF
ok well looks like a simple cobbler repo remove is doing it -
InterceptorF
@InterceptorF
so when I try and remove an old CentOS5 distro or profile I get a strange error about subprofiles... ? and recursive? How do I remove this without breaking Cobbler ? :
[root@cos-pxe-00 co5_11]# cobbler distro remove --name=co5_11-i386
exception on server: 'removal would orphan profile: co5_11-i386'
[root@cos-pxe-00 co5_11]# cobbler profile remove --name=co5_11-i386
exception on server: "Can't delete this profile there are 3 subprofiles and 'recursive' is set to 'False'"
liye-ac
@liye-ac
how will the install network enviroment is set, all machines connected to the same switch which the cobbler server is connected, and all the machines are connected with ipmi interface?
if i want to give the machines different ip address, machines are four interface connected to separate switch, forming two interface into bonding interface?
kjetilk1
@kjetilk1:matrix.org
[m]

I am currently setting up bonding a bonding interface, is there any reason why only the bond0 interface only pops up in the dhcpd.conf?

Running on cobbler 3.2.1 installed on rhel8
Commands used:
cobbler system add --name host --profile centos-7 --hostname host
cobbler system edit --name host --interface bond0 --interface-type bond --ip-address xxx.xxx.xxx.xxx --dns-name=bond0-host
cobbler system edit --name host --interface eth0 --mac AA:AA:AA:AA:AA:AA --interface-type bond_slave --interface-master bond0 --dns-name host
cobbler system edit --name host --interface eth1 --mac AA:AA:AA:AA:AA:AB --interface-type bond_slave --interface-master bond0 --dns-name host
cobbler system edit --name host --interface eth2 --mac AA:AA:AA:AA:AA:AC --interface-type bond_slave --interface-master bond0 --dns-name host
cobbler system edit --name host --interface eth3 --mac AA:AA:AA:AA:AA:AD --interface-type bond_slave --interface-master bond0 --dns-name host

1 reply
mazhihui1
@mazhihui1
when run "cobbler get-loaders", error is "No such command: get-loaders ” what should I do?
1 reply
egotthold
@egotthold:matrix.org
[m]
TLDR: Use cobbler mkloaders or cobbler mkgrub (depends on the version you are using how the command is named.
scook
@scook:matrix.org
[m]
Hi...I'm a first time user of this chat. I'm having trouble enabling a password to access the PXE boot menus. I've edited /etc/cobbler/boot_loader_conf/pxedefault.template and added "MENU MASTER PASSWD mypassword" underneath "MENU TITLE...". Afterwards I've run "cobbler sync" which seems to regenerate the boot images, but when I PXE boot afterwards I'm not prompted for a password to access the main menu. I've been able to find an answer to this question after much Googling. I'm running Cobbler 3.2.2 on RHEL 8.5.
That is...I haven't been able to find an answer...