• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Disappearing hosts from host list

Scheduled Pinned Locked Moved Unsolved
General
7
82
28.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W
    Wayne Workman
    last edited by Mar 6, 2018, 2:56 PM

    I don’t understand how changing a MAC address while it’s being deployed could cause this though. I’ve still not tried to replicate the issue yet though.

    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
    Daily Clean Installation Results:
    https://fogtesting.fogproject.us/
    FOG Reporting:
    https://fog-external-reporting-results.fogproject.us/

    1 Reply Last reply Reply Quote 0
    • F
      Foglalt @Junkhacker
      last edited by Foglalt Mar 6, 2018, 9:17 AM Mar 6, 2018, 3:16 PM

      @junkhacker oh, there you got the score! Totally forgot this 😁 btw, it writes to a host data using host id or uses mac for lookups? If later, it may cause issue, am i right?

      1 Reply Last reply Reply Quote 0
      • F
        Foglalt
        last edited by Apr 11, 2018, 10:18 AM

        @Wayne-Workman the issue happened again 😞 preparing the log that the script generated and i send it to you in mail again for analysis.

        W 1 Reply Last reply Apr 11, 2018, 1:18 PM Reply Quote 0
        • W
          Wayne Workman @Foglalt
          last edited by Wayne Workman Apr 11, 2018, 7:19 AM Apr 11, 2018, 1:18 PM

          @foglalt Ok, I’ll go over it this evening. Also, have you considered updating to 1.5.2 ? I think 1.3 is so old now that it’s probably a waste of time to worry too much about it.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          1 Reply Last reply Reply Quote 0
          • F
            Foglalt
            last edited by Apr 11, 2018, 2:00 PM

            er, mine active is not 1.3, since it was first happening, it was about 1.2 or so. then as time passed, we tried in many ways, upgrades, etc. not too long ago mine was most uptodate one (1.4.4), then ofc as developing is going (happily see that btw), ofc it “grew older”. but this happened to me on every single uptodate versions 🙂 so i think the true reason is far more deep than it is at first glance. i have hope in your script 🙂

            W 2 Replies Last reply Apr 11, 2018, 2:39 PM Reply Quote 0
            • W
              Wayne Workman @Foglalt
              last edited by Apr 11, 2018, 2:39 PM

              @foglalt I think the issue has been present for a long while. As soon as we know enough about it and can reproduce it, I would expect that a fix can be created quickly. The problem is knowing what’s causing it and knowing how to reproduce it. We were grasping at straws, So I wrote this script to grasp at straws more efficiently lol.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              1 Reply Last reply Reply Quote 0
              • W
                Wayne Workman @Foglalt
                last edited by Wayne Workman Apr 11, 2018, 5:33 PM Apr 11, 2018, 11:32 PM

                @foglalt What is the MAC address’ of the host with hostID 43?

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                1 Reply Last reply Reply Quote 0
                • W
                  Wayne Workman
                  last edited by Wayne Workman Apr 11, 2018, 5:51 PM Apr 11, 2018, 11:44 PM

                  @developers I have found a pattern - not sure what it means but I wanted to share to get your eyes on it.

                  These next two code blocks are from the first log the script provided:

                  Date & time: 2018. febr. 28., szerda, 09:29:01 CET
                  Found hostID '5' without a primary MAC.
                  

                  From the history table, there are some events about one hour earlier with the same hostID.

                  [2018-02-28,08:28:10],Host,ID: 5 NAME: laci1 has been successfully updated.	laci	2018-02-28 08:28:10	10.10.36.124
                  [2018-02-28,08:28:10],MACAddressAssociation,ID: 131 has been successfully updated.	laci	2018-02-28 08:28:10	10.10.36.124
                  [2018-02-28,08:27:45],Host,ID: 5 NAME: laci1 has been successfully updated.	laci	2018-02-28 08:27:45	10.10.36.124
                  

                  These next two blocks are from the recent log the script provided.

                  Date & time: 2018. ápr. 10., kedd, 09:52:01 CEST
                  Found hostID '43' without a primary MAC.
                  

                  Again, we have an event in the history table from about one hour earlier with the same hostID.

                  [2018-04-05,08:53:10],Host,ID: 43 NAME: laci6 has been successfully updated.	laci	2018-04-05 08:53:10	146.110.36.124
                  

                  Could it be that the timestamps from the history table are just wrong and these events actually happened at the same time? If so, I’m betting that changing the name of a host can somehow - sometimes - cause this primary MAC missing issue.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

                  T 1 Reply Last reply Apr 12, 2018, 12:25 AM Reply Quote 0
                  • T
                    Tom Elliott @Wayne Workman
                    last edited by Apr 12, 2018, 12:25 AM

                    @wayne-workman The timestamps are accurate. The event you’re showing is from February 28th, vs April 5th. I don’t know if the timestamps are in UTC or correct to the timezone the user is in.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    W 1 Reply Last reply Apr 12, 2018, 3:27 AM Reply Quote 0
                    • W
                      Wayne Workman @Tom Elliott
                      last edited by Wayne Workman Apr 11, 2018, 9:32 PM Apr 12, 2018, 3:27 AM

                      @tom-elliott The timestamps are from whatever is set on his server. You see the 1-hour pattern though in both occasions? Makes no sense to me. Only thing I can think of is a problem in an hourly ran service. This is the script he’s running every minute via cron: https://github.com/FOGProject/fog-community-scripts/blob/master/troubleshootingTools/monitor-missing-primary-mac.sh

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

                      1 Reply Last reply Reply Quote 0
                      • F
                        Foglalt
                        last edited by Apr 12, 2018, 5:24 PM

                        Tomorrow or later tonight i send you another. Yes, again it happened. Maybe it van be same pattern at least. Btw host is not renamed. But mac is changed. All time!

                        W 1 Reply Last reply Apr 12, 2018, 5:47 PM Reply Quote 0
                        • W
                          Wayne Workman @Foglalt
                          last edited by Apr 12, 2018, 5:47 PM

                          @foglalt When you say the MAC is changed, are you changing it via the GUI or is this something that’s happening that is not supposed to happen? Please elaborate.

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                          Daily Clean Installation Results:
                          https://fogtesting.fogproject.us/
                          FOG Reporting:
                          https://fog-external-reporting-results.fogproject.us/

                          F 1 Reply Last reply Apr 13, 2018, 6:23 AM Reply Quote 0
                          • F
                            Foglalt @Wayne Workman
                            last edited by Apr 13, 2018, 6:23 AM

                            @wayne-workman It is simply the following:

                            • pc1 comes in for reinstallation/installation, its mac is registered in a “dummylikehost” (for example “laci1”).
                            • image selected, task set to deploy, pc1 finishes, turned off
                            • pc2 comes in for same purpose, host “laci1” got a mac overwrite (mac gui field selected, typed in the new mac, update button).

                            the missing host is detected by your script, or previously it was detected when pc3 comes in for processing.

                            this is why i asked before how others do massive cloning. colleagues do this method cos with it you dont need to remake cloning groups (no image update? so you dont need to change image name). it is like another 5 pc came, you put them on the table, put cables in, register new macs and launch process of cloning. we normally never keep hosts in database, as you may saw in our database before. we only have a few in them. few dedicated ones (like image creators machine and some other).

                            1 Reply Last reply Reply Quote 0
                            • F
                              Foglalt
                              last edited by Apr 13, 2018, 7:18 AM

                              One more thing about yesterdays instance of the problem: during the host update the new mac was registered on the host (this time laci2, to name it as in log you may see) and when the task start was prepared (those hosts are in a group for mass deploy) colleague ralised that group has less member than needed. voila, missing host. so it was disappeared after host update (or during)

                              W 1 Reply Last reply Apr 13, 2018, 1:53 PM Reply Quote 0
                              • W
                                Wayne Workman @Foglalt
                                last edited by Wayne Workman Apr 13, 2018, 7:54 AM Apr 13, 2018, 1:53 PM

                                @foglalt So is it accurate to say “When an existing host’s MAC address is changed to something else, sometimes the primary MAC address is lost.” ?

                                Also, you know you can image without registering, right?

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

                                F 1 Reply Last reply Apr 13, 2018, 2:19 PM Reply Quote 0
                                • F
                                  Foglalt @Wayne Workman
                                  last edited by Apr 13, 2018, 2:19 PM

                                  @wayne-workman what do you mean by this? we do this cos of easily possible mass actions (multicast is done with registered hosts, etc or did i miss something?)

                                  W 1 Reply Last reply Apr 13, 2018, 3:26 PM Reply Quote 0
                                  • W
                                    Wayne Workman @Foglalt
                                    last edited by Wayne Workman Apr 13, 2018, 9:27 AM Apr 13, 2018, 3:26 PM

                                    @foglalt said in Disappearing hosts from host list:

                                    multicast is done with registered hosts, etc or did i miss something?

                                    This thread suggests it’s possible:
                                    https://forums.fogproject.org/topic/9669/image-multicast-without-host-registration-ipxe-input-output-error

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                    Daily Clean Installation Results:
                                    https://fogtesting.fogproject.us/
                                    FOG Reporting:
                                    https://fog-external-reporting-results.fogproject.us/

                                    F 1 Reply Last reply Apr 13, 2018, 7:24 PM Reply Quote 0
                                    • F
                                      Foglalt @Wayne Workman
                                      last edited by Apr 13, 2018, 7:24 PM

                                      @wayne-workman but how? Anyway it doesnt change the mysterious disappearing sadly 😞

                                      1 Reply Last reply Reply Quote 0
                                      • W
                                        Wayne Workman
                                        last edited by Apr 14, 2018, 2:51 AM

                                        @developers the pattern I thought I found earlier no longer holds with this 3rd log.

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                        Daily Clean Installation Results:
                                        https://fogtesting.fogproject.us/
                                        FOG Reporting:
                                        https://fog-external-reporting-results.fogproject.us/

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          Foglalt
                                          last edited by Apr 25, 2018, 9:17 AM

                                          As i am a regular user for detecting and killing hosts with missing primary mac, unfortunatelly, may i use stored procedures for this? does it have any problem with fog database? will it be wiped with fog upgrade? i am trying to find a proper way for colleague to kill issue without me if i am out of office, and for this i am thinking about using stored procedures (well, same for other database commands we may use to maintenance in fog maybe nice)

                                          is it a source of problem or i may use them?

                                          T 1 Reply Last reply Apr 25, 2018, 9:51 AM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 4 / 5
                                          • First post
                                            Last post

                                          197

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project