Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Apr 19 17:56
    codecov[bot] commented #2601
  • Apr 19 17:51
    SchoolGuy synchronize #2601
  • Apr 17 06:02
    SchoolGuy closed #2618
  • Apr 17 06:02
    SchoolGuy labeled #2618
  • Apr 17 06:02
    SchoolGuy labeled #2618
  • Apr 17 06:02
    SchoolGuy labeled #2618
  • Apr 17 06:02
    SchoolGuy commented #2618
  • Apr 17 00:47
    asimat opened #2618
  • Apr 16 18:03
    SchoolGuy commented #2617
  • Apr 16 13:17
    crandalj commented #2617
  • Apr 16 07:52
    SchoolGuy commented #2613
  • Apr 16 07:49
    SchoolGuy review_requested #2613
  • Apr 16 07:49
    SchoolGuy review_requested #2613
  • Apr 16 07:49
    SchoolGuy labeled #2613
  • Apr 16 07:17
    SchoolGuy commented #2617
  • Apr 16 07:10
    SchoolGuy milestoned #2617
  • Apr 16 07:09
    SchoolGuy edited #2617
  • Apr 15 20:24
    crandalj reopened #2617
  • Apr 15 20:24
    crandalj commented #2617
  • Apr 15 20:11
    crandalj commented #2617
egotthold
@egotthold:matrix.org
[m]
(CentOS 8 is unfortunate required, or some other distro with a full Py3 stack)
priteshthakkar-code
@priteshthakkar-code
@egotthold:matrix.org I created that vm with cobbler new centos 8 template so thought somebody may ran into that issue before
bowlerct
@bowlerct
@priteshthakkar-code double check the mirror you are using. I ran into a similar issue and it was because the mirror wasn’t created properly. RH/ Cent 8 moved to a modular repo which can only be mirrored by module aware tools; i.e. createrepo using RH8. Cannot be mirrored by RH7 and below.
hagaluly
@hagaluly
question regarding 3.2.0
im copying files to /var/www/cobbler and running cobbler sync. prior to the sync i have 37 gb inside. after sync 304 mb
was the sync mechanism changed?
egotthold
@egotthold:matrix.org
[m]

It was always like the following:

  • Delete everything
  • Rebuilt from scratch
  • Start using it again.

Content needs to stay outside of Cobbler managed directories.

hagaluly
@hagaluly
i just tried to rsync /var/www/cobbler + /var/lib/cobbler
did not behave as expected
is there a way to export distros + profiles from old version to new 1?
or should i do the full import distro flow
egotthold
@egotthold:matrix.org
[m]
Yes there is a script which is explained in the docs.
And what do you mean you tried to rsync those two directories?
hagaluly
@hagaluly
copy -r old_server new_server copy files + sub directories
egotthold
@egotthold:matrix.org
[m]
That won't work...
I have an appointment at work. I will come back to you in an hour or two and write the rough method of doing it.
hagaluly
@hagaluly
thanks
xxedgexx
@xxedgexx
I'm trying to debug pxe_just_once not working after I upgraded to 3.2.1. Anyone experience this issue?
This message was deleted
egotthold
@egotthold:matrix.org
[m]
@xxedgexx: May I ask how many systems are in your installation. We have a performance bug which may lead to timeouts (and thus this functionallity not working) when having too much systems.
@hagaluly: Sorry I totally forgot you after the meeting. The process is as follows:
  1. Make backup you are sure you can restore
  2. Stop Cobbler
  3. Update the RPM/DEB you have on your system
  4. Before starting Cobbler execute this script: https://github.com/cobbler/cobbler/blob/master/scripts/migrate-data-v2-to-v3.py
  5. Use the following script if you are upgrading to a newer Cobbler version then 3.1.0: https://github.com/cobbler/cobbler/blob/master/scripts/settings-migration-v1-to-v2.sh
  6. Start Cobbler
  7. Check the log for errors. There should be none but in case they are you need to solve them one by one.
andrewm659
@andrewm659
Hello i'm having some difficulty getting CentOS8-Stream to install. I can get it to do stage 1 of pxe/kickstart but it constantly dies here - https://imgur.com/a/QJ7rzys However CentOS 7 installs just fine. I can paste my kickstart file somewhere so you can see it if need be. I'm running Cobbler on Fedora 33 btw.
egotthold
@egotthold:matrix.org
[m]
@andrewm659: So sadly I can't view the picture for whatever reason. I don't get an error message. But normally when stage 1 of the pxe/kickstart installation is done the basic tasks of Cobbler worked just fine. Sadly we are not at a stage currently where we can test such things by ourselves as a project. I will check the picture later again and see if imgur works then.
xxedgexx
@xxedgexx

@xxedgexx: May I ask how many systems are in your installation. We have a performance bug which may lead to timeouts (and thus this functionallity not working) when having too much systems.

This is a very small cluster of machines. cobbler system list shows 51 entries. What's the best place to get debug info so I can see where it's actually failing? Anamon for some reason never writes logs and I haven't really figured out why.

allow_duplicate_hostnames: false
allow_duplicate_ips: false
allow_duplicate_macs: false
allow_dynamic_settings: false
anamon_enabled: false
authn_pam_service: "login"
auth_token_expiration: 3600
autoinstall_snippets_dir: /var/lib/cobbler/snippets
autoinstall_templates_dir: /var/lib/cobbler/templates
boot_loader_conf_template_dir: "/etc/cobbler/boot_loader_conf"
build_reporting_enabled: true
build_reporting_sender: "cobbler@blah.net"
build_reporting_email: [ 'cobbler@blah.net' ]
build_reporting_smtp_server: "mail.blah.net"
build_reporting_subject: "Cobbler Build"
build_reporting_ignorelist: []
cache_enabled: true
cheetah_import_whitelist:
 - "random"
 - "re"
 - "time"
 - "netaddr"
createrepo_flags: "-c cache -s sha"
default_autoinstall: /var/lib/cobbler/templates/sample.ks
default_name_servers: []
default_name_servers_search: []
default_ownership:
 - "admin"
default_password_crypted: "$1$BLAH"
default_template_type: "cheetah"
default_virt_bridge: xenbr0
default_virt_file_size: 5
default_virt_ram: 512
default_virt_type: xenpv
enable_gpxe: false
enable_menu: true
http_port: 80
kernel_options: {}
ldap_server: "ldap.example.com"
ldap_base_dn: "DC=example,DC=com"
ldap_port: 389
ldap_tls: true
ldap_anonymous_bind: true
ldap_search_bind_dn: ''
ldap_search_passwd: ''
ldap_search_prefix: 'uid='
ldap_tls_cacertfile: ''
ldap_tls_keyfile: ''
ldap_tls_certfile: ''
mgmt_classes: []
mgmt_parameters:
 from_cobbler: true
puppet_auto_setup: false
sign_puppet_certs_automatically: false
puppetca_path: "/usr/bin/puppet"
remove_old_puppet_certs_automatically: false
puppet_parameterized_classes: true
manage_dhcp: true
manage_dns: true
bind_chroot_path: ""
bind_master: 127.0.0.1
manage_tftpd: true
tftpboot_location: "/var/lib/tftpboot"
manage_rsync: true
manage_forward_zones: ['blah.intra']
manage_reverse_zones: ['192.168']
next_server: 192.168.10.10
power_management_default_type: 'ipmilan'
pxe_just_once: true
nopxe_with_triggers: true
redhat_management_server: "xmlrpc.rhn.redhat.com"
redhat_management_permissive: false
redhat_management_key: ""
register_new_installs: true
reposync_flags: "-l -n -d"
reposync_rsync_flags: "-rltDv --copy-unsafe-links"
restart_dns: true
restart_dhcp: true
run_install_triggers: true
scm_track_enabled: false
scm_track_mode: "git"
scm_track_author: "cobbler <cobbler@localhost>"
scm_push_script: "/bin/true"
server: 192.168.10.10
client_use_localhost: false
client_use_https: false
virt_auto_boot: true
webdir: "/var/www/cobbler"
webdir_whitelist:
  - misc
  - web
  - webui
  - localmirror
  - repo_mirror
  - distro_mirror
  - images
  - links
  - pub
  - repo_profile
  - repo_system
  - svc
  - rendered
  - .link_cache
xmlrpc_port: 25151
yum_post_install_mirror: true
yum_distro_priority: 1
yumdownloader_flags: "--resolve"
serializer_pretty_json: false
replicate_rsync_options: "-avzH"
replicate_repo_rsync_options: "-avzH"
always_write_dhcp_entries: false
proxy_url_ext: ""
proxy_url_int: ""
jinja2_includedir: "/var/lib/cobbler/jinja2"
convert_server_to_ip: true
bootloaders_dir: "/var/lib/cobbler/loaders"
buildisodir: "/var/cache/cobbler/buildiso"
cobbler_master: ""
default_virt_disk_driver: "raw"
grubconfig_dir: "/var/lib/cobbler/grub_config"
iso_template_dir: "/etc/cobbler/iso"
puppet_server: ""
puppet_version: 2
signature_path: "/var/lib/cobbler/distro_signatures.json"
signature_url: "https://cobbler.github.io/signatures/3.0.x/latest.json"
include: [ "/etc/cobbler/settings.d/*.settings" ]
egotthold
@egotthold:matrix.org
[m]
@xxedgexx: The best place is either /var/log/cobbler/cobbler.log or as an alternative you can watch the DHCP log to see what happens.
hagay
@hagay_bar_gitlab
regarding the timeouts i had the same issue with tftp timeouts and i ended up creating a script that sends all systems with 5 sec lag between them to restart so not all servers would address the tftp at once. after this iwas able to increase from 20 to 500 batches
egotthold
@egotthold:matrix.org
[m]
I do want to stress that with 3.3.0 I will do optimize as much as possible that things like this don't happen. They are annoying and definitively not straight forward to solve.
hagaluly
@hagaluly
@egotthold:matrix.org do you have dhcp template that is able to switch between uefi and legacy? default template always return to pxelinux.0
even if i declare only 1 file for specific vlan it defualt to pxelinux.0
egotthold
@egotthold:matrix.org
[m]
Let me look at work tomorrow. Maybe we have something there.
hagaluly
@hagaluly
another question. i installed 3.2.0 and saw that it didnt install dhcpd service...
should i install it manually?
egotthold
@egotthold:matrix.org
[m]
Yes. Please do so. Redhat based distros don't have the concept of a soft dependency (recommends is too strong), so please install it yourself.
hagaluly
@hagaluly
do you have a copy of /etc/cobbler/dhcpd.template ?
4 replies
somthing in the files logic is not working for me
hagaluly
@hagaluly
ok so i understand what the issue is
in /etc/cobbler/dhcp.template there is a line at the bottom... filename "$iface.filename";
1 reply
its not resolving to the correct filename
when i set it statically its working
hagaluly
@hagaluly
i took dhcp.template from original source code ran cobbler sync and got errors
hagaluly
@hagaluly
question :-)
why is my dhcp.template can only take "pxe-system-type" and not system-arch?
3 replies
egotthold
@egotthold:matrix.org
[m]
That is short for interface
hagay
@hagay_bar_gitlab
im trying to fix filename per subnet. have you any idea how to acomplish?
xxedgexx
@xxedgexx

@xxedgexx: The best place is either /var/log/cobbler/cobbler.log or as an alternative you can watch the DHCP log to see what happens.

Yep. I've checked logs. Nothing interesting that I can see. Is there a debug mode for the %post section in a kickstart config? I'd like to see why it fails on that post snippet specifically.

1 reply
hagaluly
@hagaluly
is there a way to use variables within /etc/cobbler/shcpd.template?
hagaluly
@hagaluly
1 reply

set $x = 2 or #set $x = "koko_melon"

egotthold
@egotthold:matrix.org
[m]
@hagaluly: So I compared our templates to the ones we are handing out from upstream. All five templates I compared, are identicall to upstream with the exception to static includes for machines which are Non-Cobbler, our NIS Setup and the timezone. But everything in regard to the filename is identical to upstream.