• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

No State Creator Host IDs visible

HA/CARP/VIPs
6
22
2.2k
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.
  • J
    jimp Rebel Alliance Developer Netgate
    last edited by Dec 20, 2023, 3:54 PM

    The "no space left" there probably isn't referring to disk space directly.

    Thanks for getting the truss output, I created a Redmine issue for this and included some of the details there:

    https://redmine.pfsense.org/issues/15108

    Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

    Need help fast? Netgate Global Support!

    Do not Chat/PM for help!

    K 1 Reply Last reply Dec 21, 2023, 10:06 AM Reply Quote 1
    • K
      kprovost @jimp
      last edited by Dec 21, 2023, 10:06 AM

      I think I see how the 'No space left on device' error can happen if we have many creator ids.
      It's already fixed, because current versions of that code use the netlink to communicate, so that specific bug is already gone.

      That's not the root cause of this issue though, because we ought to have 1 or 2 (distinct) creator ids and no more, and the 'Warning: too many creators!' kernel message means we have 16.

      A full state table output (i.e. pfctl -ss -vvv) might give us clues about why there are so many different creator ids.

      M 1 Reply Last reply Dec 21, 2023, 11:27 AM Reply Quote 0
      • M
        marcolefo @kprovost
        last edited by Dec 21, 2023, 11:27 AM

        @kprovost said in No State Creator Host IDs visible:

        A full state table output (i.e. pfctl -ss -vvv) might give us clues about why there are so many different creator ids.

        The file weighs 15 Mo so I cannot upload it here. Here is a link to download it :

        https://filesender.renater.fr/?s=download&token=b5711bf0-1ff8-410a-83ff-47934c64a013

        K 1 Reply Last reply Dec 21, 2023, 2:01 PM Reply Quote 0
        • K
          kprovost @marcolefo
          last edited by Dec 21, 2023, 2:01 PM

          @marcolefo Thanks.

          We do see many (97!) different creatorids here. That at least explains the kernel warning, but I do not understand how we'd end up in that state.

          One of the first things to check is to see if both the primary and secondary keep a consistent hostid. Can you check that across reboots?
          It's listed in the pfctl -si -v output, and I'd expect it to be set through the rules (set hostid xxxxx in /tmp/rules.debug).

          It's also interesting that the majority of states in your file (those with hostid cad3f8bd) do not have rtable set, and those that do have one of the other hostids. That strongly suggests the two facts are related, but I'm struggling to form a theory that explains those facts.

          Are your primary and secondary nodes running the same software version?

          M 1 Reply Last reply Dec 21, 2023, 2:51 PM Reply Quote 1
          • M
            marcolefo @kprovost
            last edited by marcolefo Dec 21, 2023, 2:51 PM Dec 21, 2023, 2:51 PM

            @kprovost said in No State Creator Host IDs visible:

            Are your primary and secondary nodes running the same software version?

            Not for now. One is 2.6.0 and the other one is 2.7.2.
            We are going to upgrade the first one this afternoon.

            K 1 Reply Last reply Dec 21, 2023, 3:01 PM Reply Quote 0
            • K
              kprovost @marcolefo
              last edited by Dec 21, 2023, 3:01 PM

              @marcolefo Well, that's supposed to just work, but there's functionally several years of code evolution between 2.6.0's pf and 2.7.2. It's entirely possible that's causing this problem.

              It'd be useful to know if the problem remains or not once both nodes are running 2.7.x (ideally the same version, but 2.7.0 is vastly closer to 2.7.2 already).

              M 1 Reply Last reply Dec 22, 2023, 1:44 PM Reply Quote 1
              • M
                marcolefo @kprovost
                last edited by Dec 22, 2023, 1:44 PM

                @kprovost said in No State Creator Host IDs visible:

                It'd be useful to know if the problem remains or not once both nodes are running 2.7.x (ideally the same version, but 2.7.0 is vastly closer to 2.7.2 already).

                So now the 2 pfsense are 2.7.2.
                The error kernel: Warning: too many creators! is always here. It appears when we go Status > CARP (failover)

                The GUI CARP Status display no state creator Host ID

                alt text

                [2.7.2-RELEASE][admin@master]/root: grep hostid /tmp/rules.debug 
                set hostid 0xf689d9b8
                [2.7.2-RELEASE][admin@backup]/root: grep hostid /tmp/rules.debug
                set hostid 0xcad3f8bd
                [2.7.2-RELEASE][admin@master]/root:  pfctl -sc
                pfctl: Failed to retrieve creators
                [2.7.2-RELEASE][admin@backup]/root:  pfctl -sc
                pfctl: Failed to retrieve creators
                

                Should I try to set the filter host ID here ?
                alt text

                K 1 Reply Last reply Dec 22, 2023, 1:59 PM Reply Quote 0
                • K
                  kprovost @marcolefo
                  last edited by Dec 22, 2023, 1:59 PM

                  @marcolefo The hostid ought to be stable across reboots even if it's not configured, so let's confirm that first. (I.e. when you reboot the standby firewall does it have the same hostid in /tmp/rules.debug when it comes back?)

                  M 1 Reply Last reply Dec 22, 2023, 2:10 PM Reply Quote 1
                  • M
                    marcolefo @kprovost
                    last edited by Dec 22, 2023, 2:10 PM

                    @kprovost said in No State Creator Host IDs visible:

                    @marcolefo The hostid ought to be stable across reboots even if it's not configured, so let's confirm that first. (I.e. when you reboot the standby firewall does it have the same hostid in /tmp/rules.debug when it comes back?)

                    Yes it's stable across reboots

                    [2.7.2-RELEASE][admin@backup]/root: grep hostid /tmp/rules.debug
                    set hostid 0xcad3f8bd
                    [2.7.2-RELEASE][admin@backup]/root: uptime
                     3:08PM  up 3 mins, 2 users, load averages: 1.40, 0.76, 0.31
                    
                    K 1 Reply Last reply Jan 9, 2024, 1:42 PM Reply Quote 0
                    • K
                      kprovost @marcolefo
                      last edited by Jan 9, 2024, 1:42 PM

                      Okay, that's good to know.

                      I've had another look at the state listing.

                      All of the the states with unexpected creatorids list an rtable of 0, none of the others do. I suspect this is a clue.
                      I believe those states to be imported through pfsync.

                      There's been a pfsync protocol change between 2.7.0 and 2.7.2. That could potentially have resulted in states being imported with invalid information, but that's highly speculative. I've also not been able to reproduce that in a setup with pfsync between a 2.7.0 and 2.7.2 host. If that were the cause it should also have gone away when both pfsync participants were upgraded to 2.7.2.

                      It's a bit of a long shot, but it might be worth capturing pfsync traffic, both so we can inspect it (be sure to capture full packets) and so we can verify that there's nothing other than the two pfsense machines sending pfsync traffic.

                      M 1 Reply Last reply Jan 9, 2024, 5:31 PM Reply Quote 0
                      • M
                        marcolefo @kprovost
                        last edited by Jan 9, 2024, 5:31 PM

                        @kprovost sorry I did'nt post since my last answer, I was out of my office.

                        We do not have Warning: too many creators message since 2023-12-22.
                        And in GUI we have now State Creator Host IDs (on the 2 nodes).
                        State Creator Host IDs

                        pfctl -si -v displays the Creator IDs

                        I have tried to enter and leave persistent carp mode with no problem.

                        I think the problem is solved :)
                        But I don't know why it did not display correctly the last time.

                        Thanks a lot for your help and happy new year.

                        K 1 Reply Last reply Jan 9, 2024, 5:34 PM Reply Quote 0
                        • K
                          kprovost @marcolefo
                          last edited by Jan 9, 2024, 5:34 PM

                          @marcolefo That's good to know.

                          Given that the problem appears to have gone away after you moved both machines to the same version I think that's another data point suggesting that's at the root of this issue.
                          I still can't reproduce this, but it's good to know anyway.

                          1 Reply Last reply Reply Quote 1
                          • H
                            hoba
                            last edited by Apr 4, 2024, 7:30 AM

                            As this problem bit me several times now when upgrading CARP-clusters I tried to troubleshoot it a bit more. Here is what I found out:

                            I read somewhere that there were protocolchanges in pfsync between 2.7.0 and 2.7.2. So if you upgrade the nodes one by one there is the situation where one system is already on 2.7.2 and the other one still on 2.7.0. During this time 2.7.0 tries to sync states to 2.7.2 and vice versa. Due to the versionmismatch the statetable seems to have invalid records in the list that causes the too many creators error and causes the statesync to fail. Even after both nodes reach 2.7.2 those invalid records still remain in the statetables, which then still breaks the sync.

                            The resolution to this is:
                            Either reboot both nodes at the same time, so the broken records are not synced back and forth. Downtime about 1-2 minutes on fast systems.
                            Or disable the statesync via pfsync on both nodes (system>high availability), reset the statetables on both nodes (Diagnostics>States, Reset states). Then reenable the statesync again. Downtime a few seconds as only the dropped connections need to be reestablished.

                            Unfortunately both procedures cause a disruption of traffic, though the second way of getting pfsync going again is rather short. An additional impacti is, that during the upgradeprocess statesync is broken from the time the first node reboots till the states get cleared on both nodes after both nodes are upgraded.

                            Hope this helps some people that run into the same issues.

                            Regards
                            Holger

                            J 1 Reply Last reply May 30, 2024, 3:49 AM Reply Quote 0
                            • J
                              juicejug @hoba
                              last edited by May 30, 2024, 3:49 AM

                              @hoba

                              This seemed to work for one of our sets, so THANK YOU!

                              However, for anyone else that might be in the same boat, our state table was colsossal and therefore this may be a treatment, rather that a cure. *Or may be indicitave of an issue on one of the local networks

                              *I waited to hit submit until I found the issue - Camera system, wide open on separate VLAN in this case

                              We had the luxury (!) to run this remotely, in non peak times, with alternative, remote access, on the local intefaces - rather than WAN.

                              It took about 16 minutes for both on Xeon 3.2 physical, 8 vCpu, 8GB RAM 128GB fixed.

                              In fact, if you have alternative remote access to the local network, I'd recommend the exact of above with the states, wait for the states to clear, reboot each, then reenable 'System > High Availability > Synchronize states

                              I don't recommend doing this if you will have to travel several hours to complete on-site, and you don't have alternative remote access to the site. *just my 2ยข

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.