Only this line is relevant and fixes the issue, all the rest is improving
tests:
This is not relevant to if subnet is or is not set. Test it please and
comment in the github or issue.
···
On Mon, May 15, 2017 at 11:47 AM, Jacek Mierzwa wrote:
This is for my case:
subnet assigned to the host group
- discovered host has primary NIC in the subnet (it’s the only subnet I
have defined)
however, ‘subnet’ field is indeed clear:
On Sun, May 14, 2017 at 10:14 PM, Lukas Zapletal lzap@redhat.com wrote:
Chad, one more question - what subnet the primary interface of your
discovered node is connected to, what IP address it was assigned and what
subnet have you set in the hostgroup?
These three must match, can you check this?
LZ
On Sun, May 14, 2017 at 8:43 PM, Lukas Zapletal lzap@redhat.com wrote:
Chad,
when a host is discovered, it should be discovered in a subnet. This is
shown on the list of discovered hosts. Do you see those set correctly?
Workaround is to have such a subnet defined so it is assigned during
discovery.
On Wednesday, May 3, 2017 at 4:07:46 AM UTC-5, Lukas Zapletal wrote:
Nah I cannot reproduce it in my libvirt environment, I guess this has
something to do with IPMI. Could you try to add “ipmi_*” facts into ignored
facts so IPMI NIC is not created during discovery? Does it help?
On Wed, May 3, 2017 at 10:54 AM, Lukas Zapletal lz...@redhat.com >>>>> wrote:
Jacek, for 1.15 there is another bug for autoprovisioning that has
been fixed in RC2:
Maybe if you are able to break up the tftp_ready? method into
multiple lines and do some debug logger outputs of all individual
statements in there to see which does not trigger TFTP orchestration.
Strange is we should see DHCP orchestration but that does not
happen as well. Are NICs created correctly? Is there a subnet set?
Unfortunately I have engagement at customer site for whole week, I
will carry on the week after. We need to solve this.
Chad, it looks like setting (a fake) domain did not help to
Jacek, can you try it? Did it help in your case? Associate Subnet with a
Domain and then set it in the Hostgroup.
LZ
On Wed, Apr 19, 2017 at 2:51 PM, Jacek Mierzwa < >>>>>>>>>>> jmie...@lbisa.com> wrote:
And here is Foreman app debug-level log from ‘successful’
auto-provision (no PXE file appears).
On Wed, Apr 19, 2017 at 2:13 PM, Jacek Mierzwa < >>>>>>>>>>>> jmie...@lbisa.com> wrote:
Here’s the SQL debug log from ‘successful’ auto-provision (no
PXE file appears).
Please find attached.
Thanks/Regards
On Wed, Apr 19, 2017 at 1:21 PM, Lukas Zapletal < >>>>>>>>>>>>> lz...@redhat.com> wrote:
Ok I finally reproduced.
When domain is blank, autoprovisioning fails for no apparent
reason,
logs are empty, something fails during orchestration and
hosts are
getting discovered again (which fails since managed host
already
exists).
I will do my best to fix it this week, but I am on travel the
week
after, crossing my fingers.
LZ
On Thu, Apr 13, 2017 at 4:28 PM, Garreat jmie...@fgtsa.com >>>>>>>>>>>>>> wrote:
I experience this issue.
After clicking ‘auto-provisioning’ on a discovered host,
the host entry is
created, the host reboots - but only to enter Foreman
Discovery Image PXE
loop.
My TFTP proxy is in healthy status as I can recreate PXE
default no prob.
Now answering your checklist:
host is managed - yes - OK
provision method is “build” and not “image” - how to
check this? I can’t
see the ‘build mode’ checkbox for the newly created host
host has operating system set - yes (inherited from host
group) - OK
host has pxe loader flag present (not set to blank or
None) - how to check
this?
host has one provisioning NIC with valid MAC address -
yes it does - OK
a subnet is associated with the provisioning NIC - it is,
but it’s a
subnet different than the one declared in machine’s host
group
the subnet has TFTP feature turned on - it does, and it’s
the same TFTP
proxy as in the subnet that I wanted
Also, the ‘domain’ is blank for the fresh created host.
The OS assigned to this host group has a valid PXElinux
template selected.
Assume I’m not making any manual changes:
‘Build host’ does nothing
‘Rebuild config’ creates a PXE mac-template on TFTP
immediatly
facter -j output attached
Thanks / Regards / Greetings
W dniu wtorek, 11 kwietnia 2017 10:28:17 UTC+2 użytkownik
Lukas Zapletal
napisał:
TFTP orchestration is not being triggered. It can be only
performed
when all of these conditions are met:
host is managed
provision method is “build” and not “image”
host has operating system set
host has pxe loader flag present (not set to blank or
None)
host has one provisioning NIC with valid MAC address
a subnet is associated with the provisioning NIC
the subnet has TFTP feature turned on
Visit a host which failed provisioning and do this
checklist please.
Thank you Lukas, that looks promising.
I would test straight away, however… I don't even have this file!
/usr/share/foreman/app/controllers/concerns/foreman/controller/
discovered_extensions.rb
Discovery plugin installed with 'apt-get install ruby-foreman-discovery'.
Here's what I got:
foreman@4ed717663fc1:~/app/controllers/concerns/foreman/controller$ ls -la
total 92
drwxr-xr-x. 4 foreman foreman 4096 May 12 15:28 .
drwxr-xr-x. 3 foreman foreman 24 May 12 15:28 …
-rw-r–r--. 4 foreman foreman 502 May 9 12:29 action_permission_dsl.rb
-rw-r–r--. 4 foreman foreman 2946 May 9 12:29 authentication.rb
-rw-r–r--. 4 foreman foreman 1280 May 9 12:29 auto_complete_search.rb
-rw-r–r--. 4 foreman foreman 154 May 9 12:29 bookmark_common.rb
-rw-r–r--. 4 foreman foreman 363 May 9 12:29 compute_resources_common.rb
-rw-r–r--. 4 foreman foreman 497 May 9 12:29 csv_responder.rb
-rw-r–r--. 4 foreman foreman 2197 May 9 12:29 environments.rb
-rw-r–r--. 4 foreman foreman 752 May 9 12:29 filter_parameters.rb
-rw-r–r--. 4 foreman foreman 2154 May 9 12:29 host_details.rb
-rw-r–r--. 4 foreman foreman 512 May 9 12:29 migration_checker.rb
drwxr-xr-x. 2 foreman foreman 4096 May 12 15:28 parameters
-rw-r–r--. 4 foreman foreman 1368 May 9 12:29 provisioning_templates.rb
drwxr-xr-x. 2 foreman foreman 44 May 12 15:28 puppet
-rw-r–r--. 4 foreman foreman 1801 May 9 12:29 session.rb
-rw-r–r--. 4 foreman foreman 4867 May 9 12:29 smart_proxy_auth.rb
-rw-r–r--. 4 foreman foreman 470 May 9 12:29 ssh_keys_common.rb
-rw-r–r--. 4 foreman foreman 6405 May 9 12:29 taxonomies_controller.rb
-rw-r–r--. 4 foreman foreman 1672 May 9 12:29 taxonomy_multiple.rb
-rw-r–r--. 4 foreman foreman 375 May 9 12:29 topbar_sweeper.rb
-rw-r–r--. 4 foreman foreman 267 May 9 12:29 user_self_editing.rb
-rw-r–r--. 4 foreman foreman 1350 May 9 12:29 users_mixin.rb
Any clue on that? :S
···
On Mon, May 15, 2017 at 3:30 PM, Lukas Zapletal wrote:
I found the root cause today, here is the patch: https://github.com/
theforeman/foreman_discovery/pull/346
Only this line is relevant and fixes the issue, all the rest is improving
tests:
This is not relevant to if subnet is or is not set. Test it please and
comment in the github or issue.
On Mon, May 15, 2017 at 11:47 AM, Jacek Mierzwa jmierzwa@lbisa.com > wrote:
This is for my case:
subnet assigned to the host group
- discovered host has primary NIC in the subnet (it’s the only subnet I
have defined)
however, ‘subnet’ field is indeed clear:
On Sun, May 14, 2017 at 10:14 PM, Lukas Zapletal lzap@redhat.com wrote:
Chad, one more question - what subnet the primary interface of your
discovered node is connected to, what IP address it was assigned and what
subnet have you set in the hostgroup?
These three must match, can you check this?
LZ
On Sun, May 14, 2017 at 8:43 PM, Lukas Zapletal lzap@redhat.com wrote:
Chad,
when a host is discovered, it should be discovered in a subnet. This is
shown on the list of discovered hosts. Do you see those set correctly?
Workaround is to have such a subnet defined so it is assigned during
discovery.
On Wednesday, May 3, 2017 at 4:07:46 AM UTC-5, Lukas Zapletal wrote:
Nah I cannot reproduce it in my libvirt environment, I guess this has
something to do with IPMI. Could you try to add “ipmi_*” facts into ignored
facts so IPMI NIC is not created during discovery? Does it help?
On Wed, May 3, 2017 at 10:54 AM, Lukas Zapletal lz...@redhat.com >>>>>> wrote:
Jacek, for 1.15 there is another bug for autoprovisioning that has
been fixed in RC2:
Maybe if you are able to break up the tftp_ready? method into
multiple lines and do some debug logger outputs of all individual
statements in there to see which does not trigger TFTP orchestration.
Strange is we should see DHCP orchestration but that does not
happen as well. Are NICs created correctly? Is there a subnet set?
Unfortunately I have engagement at customer site for whole week,
I will carry on the week after. We need to solve this.
Chad, it looks like setting (a fake) domain did not help to
Jacek, can you try it? Did it help in your case? Associate Subnet with a
Domain and then set it in the Hostgroup.
LZ
On Wed, Apr 19, 2017 at 2:51 PM, Jacek Mierzwa < >>>>>>>>>>>> jmie...@lbisa.com> wrote:
And here is Foreman app debug-level log from 'successful’
auto-provision (no PXE file appears).
On Wed, Apr 19, 2017 at 2:13 PM, Jacek Mierzwa < >>>>>>>>>>>>> jmie...@lbisa.com> wrote:
Here’s the SQL debug log from ‘successful’ auto-provision (no
PXE file appears).
Please find attached.
Thanks/Regards
On Wed, Apr 19, 2017 at 1:21 PM, Lukas Zapletal < >>>>>>>>>>>>>> lz...@redhat.com> wrote:
Ok I finally reproduced.
When domain is blank, autoprovisioning fails for no apparent
reason,
logs are empty, something fails during orchestration and
hosts are
getting discovered again (which fails since managed host
already
exists).
I will do my best to fix it this week, but I am on travel
the week
after, crossing my fingers.
LZ
On Thu, Apr 13, 2017 at 4:28 PM, Garreat jmie...@fgtsa.com >>>>>>>>>>>>>>> wrote:
I experience this issue.
After clicking ‘auto-provisioning’ on a discovered host,
the host entry is
created, the host reboots - but only to enter Foreman
Discovery Image PXE
loop.
My TFTP proxy is in healthy status as I can recreate PXE
default no prob.
Now answering your checklist:
host is managed - yes - OK
provision method is “build” and not “image” - how to
check this? I can’t
see the ‘build mode’ checkbox for the newly created host
host has operating system set - yes (inherited from host
group) - OK
host has pxe loader flag present (not set to blank or
None) - how to check
this?
host has one provisioning NIC with valid MAC address -
yes it does - OK
a subnet is associated with the provisioning NIC - it
is, but it’s a
subnet different than the one declared in machine’s host
group
the subnet has TFTP feature turned on - it does, and
it’s the same TFTP
proxy as in the subnet that I wanted
Also, the ‘domain’ is blank for the fresh created host.
The OS assigned to this host group has a valid PXElinux
template selected.
Assume I’m not making any manual changes:
‘Build host’ does nothing
‘Rebuild config’ creates a PXE mac-template on TFTP
immediatly
facter -j output attached
Thanks / Regards / Greetings
W dniu wtorek, 11 kwietnia 2017 10:28:17 UTC+2 użytkownik
Lukas Zapletal
napisał:
TFTP orchestration is not being triggered. It can be only
performed
when all of these conditions are met:
host is managed
provision method is “build” and not “image”
host has operating system set
host has pxe loader flag present (not set to blank or
None)
host has one provisioning NIC with valid MAC address
a subnet is associated with the provisioning NIC
the subnet has TFTP feature turned on
Visit a host which failed provisioning and do this
checklist please.
OK I think I found it – nevermind!
So I'm testing this, will report soon…
···
On Mon, May 15, 2017 at 3:53 PM, Jacek Mierzwa wrote:
Thank you Lukas, that looks promising.
I would test straight away, however… I don’t even have this file!
/usr/share/foreman/app/controllers/concerns/foreman/controller/discovered_
extensions.rb
Discovery plugin installed with ‘apt-get install ruby-foreman-discovery’.
Here’s what I got:
foreman@4ed717663fc1:~/app/controllers/concerns/foreman/controller$ ls -la
total 92
drwxr-xr-x. 4 foreman foreman 4096 May 12 15:28 .
drwxr-xr-x. 3 foreman foreman 24 May 12 15:28 …
-rw-r–r--. 4 foreman foreman 502 May 9 12:29 action_permission_dsl.rb
-rw-r–r--. 4 foreman foreman 2946 May 9 12:29 authentication.rb
-rw-r–r--. 4 foreman foreman 1280 May 9 12:29 auto_complete_search.rb
-rw-r–r--. 4 foreman foreman 154 May 9 12:29 bookmark_common.rb
-rw-r–r--. 4 foreman foreman 363 May 9 12:29 compute_resources_common.rb
-rw-r–r--. 4 foreman foreman 497 May 9 12:29 csv_responder.rb
-rw-r–r--. 4 foreman foreman 2197 May 9 12:29 environments.rb
-rw-r–r--. 4 foreman foreman 752 May 9 12:29 filter_parameters.rb
-rw-r–r--. 4 foreman foreman 2154 May 9 12:29 host_details.rb
-rw-r–r--. 4 foreman foreman 512 May 9 12:29 migration_checker.rb
drwxr-xr-x. 2 foreman foreman 4096 May 12 15:28 parameters
-rw-r–r--. 4 foreman foreman 1368 May 9 12:29 provisioning_templates.rb
drwxr-xr-x. 2 foreman foreman 44 May 12 15:28 puppet
-rw-r–r--. 4 foreman foreman 1801 May 9 12:29 session.rb
-rw-r–r--. 4 foreman foreman 4867 May 9 12:29 smart_proxy_auth.rb
-rw-r–r--. 4 foreman foreman 470 May 9 12:29 ssh_keys_common.rb
-rw-r–r--. 4 foreman foreman 6405 May 9 12:29 taxonomies_controller.rb
-rw-r–r--. 4 foreman foreman 1672 May 9 12:29 taxonomy_multiple.rb
-rw-r–r--. 4 foreman foreman 375 May 9 12:29 topbar_sweeper.rb
-rw-r–r--. 4 foreman foreman 267 May 9 12:29 user_self_editing.rb
-rw-r–r--. 4 foreman foreman 1350 May 9 12:29 users_mixin.rb
Any clue on that? :S
On Mon, May 15, 2017 at 3:30 PM, Lukas Zapletal lzap@redhat.com wrote:
I found the root cause today, here is the patch: https://github.com/thef
oreman/foreman_discovery/pull/346
Only this line is relevant and fixes the issue, all the rest is improving
tests:
This is not relevant to if subnet is or is not set. Test it please and
comment in the github or issue.
On Mon, May 15, 2017 at 11:47 AM, Jacek Mierzwa jmierzwa@lbisa.com >> wrote:
This is for my case:
subnet assigned to the host group
- discovered host has primary NIC in the subnet (it’s the only subnet I
have defined)
however, ‘subnet’ field is indeed clear:
On Sun, May 14, 2017 at 10:14 PM, Lukas Zapletal lzap@redhat.com >>> wrote:
Chad, one more question - what subnet the primary interface of your
discovered node is connected to, what IP address it was assigned and what
subnet have you set in the hostgroup?
These three must match, can you check this?
LZ
On Sun, May 14, 2017 at 8:43 PM, Lukas Zapletal lzap@redhat.com >>>> wrote:
Chad,
when a host is discovered, it should be discovered in a subnet. This
is shown on the list of discovered hosts. Do you see those set correctly?
Workaround is to have such a subnet defined so it is assigned during
discovery.
On Wednesday, May 3, 2017 at 4:07:46 AM UTC-5, Lukas Zapletal wrote:
Nah I cannot reproduce it in my libvirt environment, I guess this
has something to do with IPMI. Could you try to add “ipmi_*” facts into
ignored facts so IPMI NIC is not created during discovery? Does it help?
On Wed, May 3, 2017 at 10:54 AM, Lukas Zapletal lz...@redhat.com >>>>>>> wrote:
Jacek, for 1.15 there is another bug for autoprovisioning that has
been fixed in RC2:
Maybe if you are able to break up the tftp_ready? method into
multiple lines and do some debug logger outputs of all individual
statements in there to see which does not trigger TFTP orchestration.
Strange is we should see DHCP orchestration but that does not
happen as well. Are NICs created correctly? Is there a subnet set?
Unfortunately I have engagement at customer site for whole week,
I will carry on the week after. We need to solve this.
Chad, it looks like setting (a fake) domain did not help to
Jacek, can you try it? Did it help in your case? Associate Subnet with a
Domain and then set it in the Hostgroup.
LZ
On Wed, Apr 19, 2017 at 2:51 PM, Jacek Mierzwa < >>>>>>>>>>>>> jmie...@lbisa.com> wrote:
And here is Foreman app debug-level log from 'successful’
auto-provision (no PXE file appears).
On Wed, Apr 19, 2017 at 2:13 PM, Jacek Mierzwa < >>>>>>>>>>>>>> jmie...@lbisa.com> wrote:
Here’s the SQL debug log from ‘successful’ auto-provision
(no PXE file appears).
Please find attached.
Thanks/Regards
On Wed, Apr 19, 2017 at 1:21 PM, Lukas Zapletal < >>>>>>>>>>>>>>> lz...@redhat.com> wrote:
Ok I finally reproduced.
When domain is blank, autoprovisioning fails for no
apparent reason,
logs are empty, something fails during orchestration and
hosts are
getting discovered again (which fails since managed host
already
exists).
I will do my best to fix it this week, but I am on travel
the week
after, crossing my fingers.
LZ
On Thu, Apr 13, 2017 at 4:28 PM, Garreat jmie...@fgtsa.com >>>>>>>>>>>>>>>> wrote:
I experience this issue.
After clicking ‘auto-provisioning’ on a discovered host,
the host entry is
created, the host reboots - but only to enter Foreman
Discovery Image PXE
loop.
My TFTP proxy is in healthy status as I can recreate PXE
default no prob.
Now answering your checklist:
host is managed - yes - OK
provision method is “build” and not “image” - how to
check this? I can’t
see the ‘build mode’ checkbox for the newly created host
host has operating system set - yes (inherited from
host group) - OK
host has pxe loader flag present (not set to blank or
None) - how to check
this?
host has one provisioning NIC with valid MAC address -
yes it does - OK
a subnet is associated with the provisioning NIC - it
is, but it’s a
subnet different than the one declared in machine’s host
group
the subnet has TFTP feature turned on - it does, and
it’s the same TFTP
proxy as in the subnet that I wanted
Also, the ‘domain’ is blank for the fresh created host.
The OS assigned to this host group has a valid PXElinux
template selected.
Assume I’m not making any manual changes:
‘Build host’ does nothing
‘Rebuild config’ creates a PXE mac-template on TFTP
immediatly
facter -j output attached
Thanks / Regards / Greetings
W dniu wtorek, 11 kwietnia 2017 10:28:17 UTC+2 użytkownik
Lukas Zapletal
napisał:
TFTP orchestration is not being triggered. It can be
only performed
when all of these conditions are met:
host is managed
provision method is “build” and not “image”
host has operating system set
host has pxe loader flag present (not set to blank or
None)
host has one provisioning NIC with valid MAC address
Just tested, after clicking 'auto-provision' the PXE file does NOT appear.
Still need the same old procedure:
auto-provision -> (go to 'Hosts') -> (select the newly created host) ->
'Build hosts' -> (hostname reverted to default) -> 'Rebuild config'
Only then the PXE file does appear.
···
On Mon, May 15, 2017 at 4:16 PM, Jacek Mierzwa wrote:
OK I think I found it – nevermind!
So I’m testing this, will report soon…
On Mon, May 15, 2017 at 3:53 PM, Jacek Mierzwa jmierzwa@lbisa.com wrote:
Thank you Lukas, that looks promising.
I would test straight away, however… I don’t even have this file!
/usr/share/foreman/app/controllers/concerns/foreman/controller/
discovered_extensions.rb
Discovery plugin installed with ‘apt-get install ruby-foreman-discovery’.
Here’s what I got:
foreman@4ed717663fc1:~/app/controllers/concerns/foreman/controller$ ls
-la
total 92
drwxr-xr-x. 4 foreman foreman 4096 May 12 15:28 .
drwxr-xr-x. 3 foreman foreman 24 May 12 15:28 …
-rw-r–r--. 4 foreman foreman 502 May 9 12:29 action_permission_dsl.rb
-rw-r–r--. 4 foreman foreman 2946 May 9 12:29 authentication.rb
-rw-r–r--. 4 foreman foreman 1280 May 9 12:29 auto_complete_search.rb
-rw-r–r--. 4 foreman foreman 154 May 9 12:29 bookmark_common.rb
-rw-r–r--. 4 foreman foreman 363 May 9 12:29
compute_resources_common.rb
-rw-r–r--. 4 foreman foreman 497 May 9 12:29 csv_responder.rb
-rw-r–r--. 4 foreman foreman 2197 May 9 12:29 environments.rb
-rw-r–r--. 4 foreman foreman 752 May 9 12:29 filter_parameters.rb
-rw-r–r--. 4 foreman foreman 2154 May 9 12:29 host_details.rb
-rw-r–r--. 4 foreman foreman 512 May 9 12:29 migration_checker.rb
drwxr-xr-x. 2 foreman foreman 4096 May 12 15:28 parameters
-rw-r–r--. 4 foreman foreman 1368 May 9 12:29 provisioning_templates.rb
drwxr-xr-x. 2 foreman foreman 44 May 12 15:28 puppet
-rw-r–r--. 4 foreman foreman 1801 May 9 12:29 session.rb
-rw-r–r--. 4 foreman foreman 4867 May 9 12:29 smart_proxy_auth.rb
-rw-r–r--. 4 foreman foreman 470 May 9 12:29 ssh_keys_common.rb
-rw-r–r--. 4 foreman foreman 6405 May 9 12:29 taxonomies_controller.rb
-rw-r–r--. 4 foreman foreman 1672 May 9 12:29 taxonomy_multiple.rb
-rw-r–r--. 4 foreman foreman 375 May 9 12:29 topbar_sweeper.rb
-rw-r–r--. 4 foreman foreman 267 May 9 12:29 user_self_editing.rb
-rw-r–r--. 4 foreman foreman 1350 May 9 12:29 users_mixin.rb
Any clue on that? :S
On Mon, May 15, 2017 at 3:30 PM, Lukas Zapletal lzap@redhat.com wrote:
I found the root cause today, here is the patch: https://github.com/thef
oreman/foreman_discovery/pull/346
Only this line is relevant and fixes the issue, all the rest is
improving tests:
This is not relevant to if subnet is or is not set. Test it please and
comment in the github or issue.
On Mon, May 15, 2017 at 11:47 AM, Jacek Mierzwa jmierzwa@lbisa.com >>> wrote:
This is for my case:
subnet assigned to the host group
- discovered host has primary NIC in the subnet (it’s the only subnet
I have defined)
however, ‘subnet’ field is indeed clear:
On Sun, May 14, 2017 at 10:14 PM, Lukas Zapletal lzap@redhat.com >>>> wrote:
Chad, one more question - what subnet the primary interface of your
discovered node is connected to, what IP address it was assigned and what
subnet have you set in the hostgroup?
These three must match, can you check this?
LZ
On Sun, May 14, 2017 at 8:43 PM, Lukas Zapletal lzap@redhat.com >>>>> wrote:
Chad,
when a host is discovered, it should be discovered in a subnet. This
is shown on the list of discovered hosts. Do you see those set correctly?
Workaround is to have such a subnet defined so it is assigned during
discovery.
On Wednesday, May 3, 2017 at 4:07:46 AM UTC-5, Lukas Zapletal wrote:
Nah I cannot reproduce it in my libvirt environment, I guess this
has something to do with IPMI. Could you try to add “ipmi_*” facts into
ignored facts so IPMI NIC is not created during discovery? Does it help?
On Wed, May 3, 2017 at 10:54 AM, Lukas Zapletal lz...@redhat.com >>>>>>>> wrote:
Jacek, for 1.15 there is another bug for autoprovisioning that has
been fixed in RC2:
Maybe if you are able to break up the tftp_ready? method into
multiple lines and do some debug logger outputs of all individual
statements in there to see which does not trigger TFTP orchestration.
Strange is we should see DHCP orchestration but that does not
happen as well. Are NICs created correctly? Is there a subnet set?
Unfortunately I have engagement at customer site for whole
week, I will carry on the week after. We need to solve this.
Chad, it looks like setting (a fake) domain did not help to
Jacek, can you try it? Did it help in your case? Associate Subnet with a
Domain and then set it in the Hostgroup.
LZ
On Wed, Apr 19, 2017 at 2:51 PM, Jacek Mierzwa < >>>>>>>>>>>>>> jmie...@lbisa.com> wrote:
And here is Foreman app debug-level log from 'successful’
auto-provision (no PXE file appears).
On Wed, Apr 19, 2017 at 2:13 PM, Jacek Mierzwa < >>>>>>>>>>>>>>> jmie...@lbisa.com> wrote:
Here’s the SQL debug log from ‘successful’ auto-provision
(no PXE file appears).
Please find attached.
Thanks/Regards
On Wed, Apr 19, 2017 at 1:21 PM, Lukas Zapletal < >>>>>>>>>>>>>>>> lz...@redhat.com> wrote:
Ok I finally reproduced.
When domain is blank, autoprovisioning fails for no
apparent reason,
logs are empty, something fails during orchestration and
hosts are
getting discovered again (which fails since managed host
already
exists).
I will do my best to fix it this week, but I am on travel
the week
after, crossing my fingers.
LZ
On Thu, Apr 13, 2017 at 4:28 PM, Garreat < >>>>>>>>>>>>>>>>> jmie...@fgtsa.com> wrote:
I experience this issue.
After clicking ‘auto-provisioning’ on a discovered host,
the host entry is
created, the host reboots - but only to enter Foreman
Discovery Image PXE
loop.
My TFTP proxy is in healthy status as I can recreate PXE
default no prob.
Now answering your checklist:
host is managed - yes - OK
provision method is “build” and not “image” - how to
check this? I can’t
see the ‘build mode’ checkbox for the newly created host
host has operating system set - yes (inherited from
host group) - OK
host has pxe loader flag present (not set to blank or
None) - how to check
this?
host has one provisioning NIC with valid MAC address -
yes it does - OK
a subnet is associated with the provisioning NIC - it
is, but it’s a
subnet different than the one declared in machine’s host
group
the subnet has TFTP feature turned on - it does, and
it’s the same TFTP
proxy as in the subnet that I wanted
Also, the ‘domain’ is blank for the fresh created host.
The OS assigned to this host group has a valid PXElinux
template selected.
Assume I’m not making any manual changes:
‘Build host’ does nothing
‘Rebuild config’ creates a PXE mac-template on TFTP
immediatly
I also found that my patch does not work well. Still trying to find
nice solution, but we at least found the regression which caused this.
Try to comment out this line:
This should help now.
···
On Mon, May 15, 2017 at 4:52 PM, Jacek Mierzwa wrote:
> /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-9.0.0/app/controllers/concerns/foreman/controller/discovered_extensions.rb
>
> That's the file I have modified. Content:
> https://github.com/lzap/foreman_discovery/blob/d25c931e6427405cad16c01ebe7163d24e764eb2/app/controllers/concerns/foreman/controller/discovered_extensions.rb
>
> --
> 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+unsubscribe@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.
Anyway, just tested. Using the most recent version of
discovered_extensions.rb:
.
The result is negative – still need the same old procedure.
···
On Wed, May 17, 2017 at 10:53 AM, Lukas Zapletal wrote:
I also found that my patch does not work well. Still trying to find
nice solution, but we at least found the regression which caused this.
Try to comment out this line:
That’s the file I have modified. Content: https://github.com/lzap/foreman_discovery/blob/
d25c931e6427405cad16c01ebe7163d24e764eb2/app/controllers/
concerns/foreman/controller/discovered_extensions.rb
the patch has been tested and merged, what exactly does not work for you?
Do not use whole file that will unlikely work with the older version, just
comment out the one line in the 1.15 version of the file:
#host.clear_association_cache
···
On Mon, May 22, 2017 at 3:33 PM, Jacek Mierzwa wrote:
Sorry I took few days off.
Anyway, just tested. Using the most recent version of
discovered_extensions.rb: https://github.com/lzap/foreman_discovery/blob/
375d10bb42a9b9d2f010f7f64c0f8ed2bd4a91fc/app/controllers/
concerns/foreman/controller/discovered_extensions.rb .
The result is negative – still need the same old procedure.
On Wed, May 17, 2017 at 10:53 AM, Lukas Zapletal lzap@redhat.com wrote:
I also found that my patch does not work well. Still trying to find
nice solution, but we at least found the regression which caused this.
Try to comment out this line:
In case anyone wondering - at this moment it's enough to install
1.15.0 + comment
out line 8 in file: /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-9.0.0/app/services/foreman_discovery/host_converter.rb
(that's for Debian, not sure about other OSes)
Will keep an eye on this in 1.15.1+. Thanks!
···
On Tue, May 23, 2017 at 1:53 PM, Lukas Zapletal wrote:
Hey Jacek,
the patch has been tested and merged, what exactly does not work for you?
Do not use whole file that will unlikely work with the older version, just
comment out the one line in the 1.15 version of the file:
On Mon, May 22, 2017 at 3:33 PM, Jacek Mierzwa jmierzwa@lbisa.com wrote:
Sorry I took few days off.
Anyway, just tested. Using the most recent version of
discovered_extensions.rb: https://github.com/lzap/foreman_di
scovery/blob/375d10bb42a9b9d2f010f7f64c0f8ed2bd4a91fc/app/
controllers/concerns/foreman/controller/discovered_extensions.rb .
The result is negative – still need the same old procedure.
On Wed, May 17, 2017 at 10:53 AM, Lukas Zapletal lzap@redhat.com wrote:
I also found that my patch does not work well. Still trying to find
nice solution, but we at least found the regression which caused this.
Try to comment out this line:
I was able to get auto-provisioning to work as well. Thank you Lukas!
···
On Tuesday, May 23, 2017 at 6:53:28 AM UTC-5, Lukas Zapletal wrote:
>
> Hey Jacek,
>
> the patch has been tested and merged, what exactly does not work for you?
>
> Do not use whole file that will unlikely work with the older version, just
> comment out the one line in the 1.15 version of the file:
>
> #host.clear_association_cache
>
>
> https://github.com/theforeman/foreman_discovery/pull/346/files#diff-d165f1f7d8058930cfef75cad203b33eL8
>
>
>
> On Mon, May 22, 2017 at 3:33 PM, Jacek Mierzwa > wrote:
>
>> Sorry I took few days off.
>>
>> Anyway, just tested. Using the most recent version of
>> discovered_extensions.rb:
>> https://github.com/lzap/foreman_discovery/blob/375d10bb42a9b9d2f010f7f64c0f8ed2bd4a91fc/app/controllers/concerns/foreman/controller/discovered_extensions.rb
>> .
>> The result is negative -- still need the same old procedure.
>>
>>
>> On Wed, May 17, 2017 at 10:53 AM, Lukas Zapletal > > wrote:
>>
>>> I also found that my patch does not work well. Still trying to find
>>> nice solution, but we at least found the regression which caused this.
>>> Try to comment out this line:
>>>
>>>
>>> https://github.com/theforeman/foreman_discovery/pull/346/files#diff-d165f1f7d8058930cfef75cad203b33eR8
>>>
>>> This should help now.
>>>
>>> On Mon, May 15, 2017 at 4:52 PM, Jacek Mierzwa >> > wrote:
>>> >
>>> /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-9.0.0/app/controllers/concerns/foreman/controller/discovered_extensions.rb
>>> >
>>> > That's the file I have modified. Content:
>>> >
>>> https://github.com/lzap/foreman_discovery/blob/d25c931e6427405cad16c01ebe7163d24e764eb2/app/controllers/concerns/foreman/controller/discovered_extensions.rb
>>> >
>>> > --
>>> > 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-user...@googlegroups.com .
>>> > To post to this group, send email to forema...@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
>>>
>>
>>
>>
>> --
>>
>> *Jacek Mierzwa* | Systems Integration Engineer
>>
>> Platform Management Division
>>
>>
>>
>>
>
>
> --
> Later,
> Lukas @lzap Zapletal
>
On Mon, May 22, 2017 at 3:33 PM, Jacek Mierzwa jmierzwa@lbisa.com >> wrote:
Sorry I took few days off.
Anyway, just tested. Using the most recent version of
discovered_extensions.rb: https://github.com/lzap/foreman_di
scovery/blob/375d10bb42a9b9d2f010f7f64c0f8ed2bd4a91fc/app/co
ntrollers/concerns/foreman/controller/discovered_extensions.rb .
The result is negative – still need the same old procedure.
On Wed, May 17, 2017 at 10:53 AM, Lukas Zapletal lzap@redhat.com >>> wrote:
I also found that my patch does not work well. Still trying to find
nice solution, but we at least found the regression which caused this.
Try to comment out this line: