Re: [foreman-users] Provisioning a host fails with interface errors
Lukas Zapletal schrieb: > So this is solved, is it? Yes. -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: ka...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
Re: [foreman-users] Provisioning a host fails with interface errors
So this is solved, is it? LZ On Fri, Mar 24, 2017 at 11:24 AM, Johannes Kastlwrote: > Johannes Kastl schrieb: > >> This is rendering foreman unusable for my usecase, so it is kind of >> urgent that I get this running. > > I just set up a new instance of foreman, which also has working > discovery, but shows this error. And no, I do not get any more specific > error messages. > > Please, can someone help solving this? > > Johannes > > -- > Johannes Kastl > Linux Consultant & Trainer > Tel.: +49 (0) 151 2372 5802 > Mail: ka...@b1-systems.de > > B1 Systems GmbH > Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de > GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-users+unsubscr...@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout. -- Later, Lukas @lzap Zapletal -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
Solved (was: [foreman-users] Provisioning a host fails with interface errors)
Johannes Kastl schrieb: > When hitting the SUBMIT button in the Provision-Step, I get some > errors regarding the templates, that seems to be cause by an error > with the interface: > > "Some of the interfaces are invalid. Please check the table below." I could solve this issue. My foreman instance is installed on CentOS 7. So I automatically got a CentOS 7.3.x Operation System in Foreman. I had made my tests with a Ubuntu OS that I had clicked together in the GUI. And with it I run into this error. I tried the provisioning with CentOS, and it tried to install CentOS without any interface errors. So it had to be an error with my put-together Ubuntu. I deleted it and added it again, and I think I was using the wrong template for "PXELinux template". Now it is set to "Preseed Default PXELinux" and I can provision without getting an error. So, for the next one running into this: Check your templates! ;-) Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: ka...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
Re: [foreman-users] Provisioning a host fails with interface errors
Johannes Kastl schrieb: > This is rendering foreman unusable for my usecase, so it is kind of > urgent that I get this running. I just set up a new instance of foreman, which also has working discovery, but shows this error. And no, I do not get any more specific error messages. Please, can someone help solving this? Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: ka...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
Re: [foreman-users] Provisioning a host fails with interface errors
Johannes Kastl schrieb: > Johannes Kastl schrieb: >> It is the step after that, when provisioning the host, that fails. > > I am attaching a screen shot of the error (I hope it gets through to > the list). Is there anything I can do to debug this further? Any more logs? Anything in the settings I should have a look at? Is there a way to get foreman to actually say, what the problem is with the interface? What exactly it is, that is disturbing foreman? This is rendering foreman unusable for my usecase, so it is kind of urgent that I get this running. Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: ka...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
Re: [foreman-users] Provisioning a host fails with interface errors
Hi there, Lukas Zapletal schrieb: > Have you changed the template PXELinux global default? Compare against > > https://github.com/theforeman/community-templates/blob/develop/provisioning_templates/PXELinux/pxelinux_global_default.erb The only change I made was to set ONTIMEOUT to discovery, which is set to "local" in the link you gave. But that should only affect auto-discovery, which works fine in my case. It is the step after that, when provisioning the host, that fails. Or am I misunderstanding something? Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: ka...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout. signature.asc Description: OpenPGP digital signature
Re: [foreman-users] Provisioning a host fails with interface errors
Have you changed the template PXELinux global default? Compare against https://github.com/theforeman/community-templates/blob/develop/provisioning_templates/PXELinux/pxelinux_global_default.erb LZ On Wed, Mar 22, 2017 at 12:42 PM, Johannes Kastlwrote: > Hi guys, > > I have foreman with auto-discovery running fine, but am now running into > problems when trying to provision the discovered host. > > When hitting the SUBMIT button in the Provision-Step, I get some errors > regarding the templates, that seems to be cause by an error with the > interface: > > "Some of the interfaces are invalid. Please check the table below." > > I do not find any error in the settings, and no error is shown/marked. > > I get no direct error in the logs, just lots of tracebacks. Seems to be > after a DHCP reservation is/should be made. I can provide the full log, > if necessary. > >> 2017-03-22 12:34:48 34998ab8 [app] [I] Create DHCP reservation for >> mac5254006a460b.kvm-52:54:00:6a:46:0b/192.168.125.22 >> 2017-03-22 12:34:48 34998ab8 [app] [I] Add DNS A record for >> mac5254006a460b.kvm/192.168.125.22 >> 2017-03-22 12:34:48 34998ab8 [app] [I] Add DNS PTR record for >> 192.168.125.22/mac5254006a460b.kvm >> 2017-03-22 12:34:49 34998ab8 [templates] [I] Rendering template 'PXELinux >> global default' >> 2017-03-22 12:34:49 34998ab8 [templates] [I] Rendering template >> 'pxelinux_chainload' >> 2017-03-22 12:34:49 34998ab8 [templates] [I] Rendering template >> 'pxelinux_discovery' >> 2017-03-22 12:34:49 34998ab8 [app] [W] Unable to render PXELinux template >> 'PXELinux global default': undefined method `each' for nil:NilClass >> | NoMethodError: undefined method `each' for nil:NilClass >> | >> /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:58:in >> `bind' >> | >> /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:51:in >> `eval' >> | >> /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:51:in >> `eval' >> [...] > > Is this a known error in 1.14.2? Anything I can do to debug this? Any > information I can supply to help look for the root cause? > > Thanks in advance. > > Johannes > > -- > Johannes Kastl > Linux Consultant & Trainer > Tel.: +49 (0) 151 2372 5802 > Mail: ka...@b1-systems.de > > B1 Systems GmbH > Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de > GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-users+unsubscr...@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout. -- Later, Lukas @lzap Zapletal -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
[foreman-users] Provisioning a host fails with interface errors
Hi guys, I have foreman with auto-discovery running fine, but am now running into problems when trying to provision the discovered host. When hitting the SUBMIT button in the Provision-Step, I get some errors regarding the templates, that seems to be cause by an error with the interface: "Some of the interfaces are invalid. Please check the table below." I do not find any error in the settings, and no error is shown/marked. I get no direct error in the logs, just lots of tracebacks. Seems to be after a DHCP reservation is/should be made. I can provide the full log, if necessary. > 2017-03-22 12:34:48 34998ab8 [app] [I] Create DHCP reservation for > mac5254006a460b.kvm-52:54:00:6a:46:0b/192.168.125.22 > 2017-03-22 12:34:48 34998ab8 [app] [I] Add DNS A record for > mac5254006a460b.kvm/192.168.125.22 > 2017-03-22 12:34:48 34998ab8 [app] [I] Add DNS PTR record for > 192.168.125.22/mac5254006a460b.kvm > 2017-03-22 12:34:49 34998ab8 [templates] [I] Rendering template 'PXELinux > global default' > 2017-03-22 12:34:49 34998ab8 [templates] [I] Rendering template > 'pxelinux_chainload' > 2017-03-22 12:34:49 34998ab8 [templates] [I] Rendering template > 'pxelinux_discovery' > 2017-03-22 12:34:49 34998ab8 [app] [W] Unable to render PXELinux template > 'PXELinux global default': undefined method `each' for nil:NilClass > | NoMethodError: undefined method `each' for nil:NilClass > | > /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:58:in > `bind' > | > /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:51:in > `eval' > | > /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:51:in > `eval' > [...] Is this a known error in 1.14.2? Anything I can do to debug this? Any information I can supply to help look for the root cause? Thanks in advance. Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: ka...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout. signature.asc Description: OpenPGP digital signature