Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 14:58
    SchoolGuy commented #3257
  • 14:53
    SchoolGuy milestoned #3253
  • 14:53
    SchoolGuy commented #3253
  • 14:47
    tpw56j commented #3257
  • 14:29
    SchoolGuy commented #3257
  • 14:28
    SchoolGuy labeled #3257
  • 14:28
    SchoolGuy commented #3256
  • 14:24
    SchoolGuy milestoned #3256
  • 14:24
    SchoolGuy milestoned #3256
  • 14:24
    SchoolGuy milestoned #3255
  • 14:23
    SchoolGuy assigned #3255
  • 14:23
    SchoolGuy review_requested #3256
  • 14:22
    SchoolGuy labeled #3255
  • 14:22
    SchoolGuy edited #3257
  • 14:21
    SchoolGuy commented #3257
  • 11:56
    codecov[bot] commented #3250
  • 11:56
    codecov[bot] commented #3252
  • 11:56
    codecov[bot] commented #3245
  • 11:56
    codecov[bot] commented #3244
  • 11:56
    codecov[bot] commented #3213
Xavier Bachelot
@xavierba
@holmesb I now see get-loaders has been patched out of the latest EPEL 8 package. But still I need to investigate/document how to properly set this up from the distro supplied loaders. And get the Fedora/EPEL package fixed if possible. Thanks for the links, it'll be useful.
@holmesb , I don't know what your own issues are, but here is a first try at it for my own purpose: https://github.com/xavierba/cobbler/tree/32_backport
completely untested
egotthold
@egotthold:matrix.org
[m]
@holmesb: Could you please create a bugreport in the terraform repository for this?
egotthold
@egotthold:matrix.org
[m]
Exactly this is what I am saying. And if that is the case we can very quickly change the client in a way that it doesn't leverage web-API endpoints...
munmeet
@munmeet
that's mint
Eric Chambers
@ericchambers1940
Hey Cobbler community. I believe I mentioned this back in September, but I finally got around to developing a Chef cookbook for setting up a Cobbler server using the latest version available in EPEL (flexibility may be added in the future allowing people to use their own Cobbler rpms). In it's current state, it can build a basic Cobbler server and make it ready to add and deploy systems. Future state is outlined under "To-do" in the repo's README. There's much to do and I'm enjoying working on this. https://github.com/ericchambers1940/cobbler3-cookbook
Eric Chambers
@ericchambers1940
Chef Infra is a CM tool I develop with on a daily basis. Prior to this, Cobbler cookbook development has been idle for several years. All existing Chef code was written for Cobbler 2.x.x
egotthold
@egotthold:matrix.org
[m]
@ericchambers1940: Thanks for contributing this! If you deem this production ready I would glady add it to our documentation and if you are interested in donating it to the Cobbler Namespace under a license of choice I would be very happy. But even the fact that you made it open source is superb! :)
Eric Chambers
@ericchambers1940
Absolutely! I would not deem it production ready, but will gladly keep you up to date when it is. As of now, this is a good foundation for others wanting to write their own Chef cobbler cookbook.
holmesb
@holmesb
FYI @egotthold, Terraform works fine with Cobbler v3.3.x :-) Hopefully my PRs that make the provider compatible will be merged: cobbler/terraform-provider-cobbler#10 & cobbler/cobblerclient#6
egotthold
@egotthold:matrix.org
[m]
@holmesb: Saw it. Left a comment on the first PR. Thanks a lot for both PRs! :)
Atul Yadav
@atulyadavtech
Hi Team , Sorry for the basic question, how to update the setting in Cobbler 3.2.2, as "/etc/cobbler/settings" not present ...
holmesb
@holmesb
Try /etc/cobbler/settings.yaml instead @atulyadavtech
dondster56
@dondster56
Using a freshly check out of 3.3.1, having issues with cobbler system add. The error is : cobbler system add --name=test --profile=rhel79-test
Traceback (most recent call last):
File "/usr/bin/cobbler", line 35, in <module>
sys.exit(app.main())
File "/usr/lib/python3.6/site-packages/cobbler/cli.py", line 1344, in main
rc = cli.run(sys.argv)
File "/usr/lib/python3.6/site-packages/cobbler/cli.py", line 892, in run
self.object_command(object_type, object_action)
File "/usr/lib/python3.6/site-packages/cobbler/cli.py", line 977, in object_command
network_interface_fields, settings, object_action)
File "/usr/lib/python3.6/site-packages/cobbler/cli.py", line 724, in add_options_from_fields
_add_parser_option_from_field(parser, field, settings)
File "/usr/lib/python3.6/site-packages/cobbler/cli.py", line 695, in _add_parser_option_from_field
raise Exception("field %s default value (%s) is not listed in choices (%s)" % (name, default, str(choices)))
Exception: field power_type default value (ipmilanplus) is not listed in choices (['amt_ws', 'apc', 'apc_snmp', 'bladecenter', 'brocade', 'cisco_mds', 'cisco_ucs', 'compute', 'drac5', 'eaton_snmp', 'emerson', 'eps', 'evacuate', 'heuristics_ping', 'hpblade', 'ibmblade', 'idrac', 'ifmib', 'ilo', 'ilo2', 'ilo3', 'ilo3_ssh', 'ilo4', 'ilo4_ssh', 'ilo5', 'ilo5_ssh', 'ilo_moonshot', 'ilo_mp', 'ilo_ssh', 'imm', 'intelmodular', 'ipdu', 'ipmilan', 'kdump', 'mpath', 'redfish', 'rhevm', 'rsa', 'rsb', 'sbd', 'scsi', 'virt', 'vmware_rest', 'vmware_soap', 'wti', 'xvm'])
The error will also happen just doing "cobbler system add --help"
Forgot to mention this cobbler install is on rhel 8.4
dondster56
@dondster56
I got around the issue by changing the setting in settings.yaml but still needs to be fixed
holmesb
@holmesb

My cobblerd (latest) is failing to start. Not much indication why, just exits with error code 0. Last few lines in cobbler.log:
[2022-01-28_102438_sync] 2022-01-28T10:24:41 - DEBUG | received on stderr:
[2022-01-28_102438_sync] 2022-01-28T10:24:41 - DEBUG | shell trigger /var/lib/cobbler/triggers/sync/post/restart-dhcp.sh finished successfully
[2022-01-28_102438_sync] 2022-01-28T10:24:41 - DEBUG | shell triggers finished successfully
[2022-01-28_102438_sync] 2022-01-28T10:24:41 - DEBUG | running python triggers from /var/lib/cobbler/triggers/change/
[2022-01-28_102438_sync] 2022-01-28T10:24:41 - DEBUG | running python trigger cobbler.modules.scm_track
[2022-01-28_102438_sync] 2022-01-28T10:24:41 - DEBUG | running python trigger cobbler.modules.managers.genders
[2022-01-28_102438_sync] 2022-01-28T10:24:41 - DEBUG | running shell triggers from /var/lib/cobbler/triggers/change/

[2022-01-28_102438_sync] 2022-01-28T10:24:41 - DEBUG | shell triggers finished successfully
[2022-01-28_102438_sync] 2022-01-28T10:24:41 - INFO | ### TASK COMPLETE ###
[2022-01-28_102438_sync] 2022-01-28T10:24:41 - DEBUG | running python triggers from /var/lib/cobbler/triggers/task/sync/post/
[2022-01-28_102438_sync] 2022-01-28T10:24:41 - DEBUG | running shell triggers from /var/lib/cobbler/triggers/task/sync/post/

[2022-01-28_102438_sync] 2022-01-28T10:24:41 - DEBUG | shell triggers finished successfully

I have some values in settings.yaml that are bookended by @ symbols. Eg "bootloaders_ipxe_folder: '@@ipxe_folder@@'". Should these be rendered to actual values? In the case of bootloaders_ipxe_folder, a directory?

egotthold
@egotthold:matrix.org
[m]
@holmesb: Yes they should be. The tests I did also replace the values, however if that is not working we need a bug report for this...
egotthold
@egotthold:matrix.org
[m]
@holmesb: Looking at the interface add problem now. :)
holmesb
@holmesb
cool, be a great one to nail @egotthold:matrix.org
egotthold
@egotthold:matrix.org
[m]
@holmesb: Mentioned you on the PR. Please have a look if time allows. :)
holmesb
@holmesb
I've responded @egotthold. Response to XMLRPC commands looks good now, but interface still doesn't actually get added
egotthold
@egotthold:matrix.org
[m]
@holmesb: Will answer on GH.
dondster56
@dondster56
Does anyone have a working Uefi network install of a RedHat 7.9 or 8.x working on cobbler 3.3.1? My virtual machine is able to load the BOOTX64.EFI just fine, but then just end up with a grub> prompt.
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.