netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ipset losing entries on its own
@ 2017-09-06 10:08 Akshat Kakkar
  2017-09-06 10:31 ` Akshat Kakkar
  2017-09-06 10:37 ` Denys Fedoryshchenko
  0 siblings, 2 replies; 9+ messages in thread
From: Akshat Kakkar @ 2017-09-06 10:08 UTC (permalink / raw)
  To: netdev

I am having ipset 6.32

The hash type is hash:ip

I am adding/deleting IP addresses to it dynamically using scripts.

However, it has been observed that at times few IPs (3-4 out of 4000)
are not found in the set though it was added. Also, logs show there
was not request for deletion of that IP from IPSet.

Is it a bug?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ipset losing entries on its own
  2017-09-06 10:08 ipset losing entries on its own Akshat Kakkar
@ 2017-09-06 10:31 ` Akshat Kakkar
  2017-09-06 10:37 ` Denys Fedoryshchenko
  1 sibling, 0 replies; 9+ messages in thread
From: Akshat Kakkar @ 2017-09-06 10:31 UTC (permalink / raw)
  To: netdev

output of ipset -L -t

Name: STORE
Type: hash:ip
Revision: 4
Header: family inet hashsize 1024 maxelem 65536
Size in memory: 50480
References: 1

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ipset losing entries on its own
  2017-09-06 10:08 ipset losing entries on its own Akshat Kakkar
  2017-09-06 10:31 ` Akshat Kakkar
@ 2017-09-06 10:37 ` Denys Fedoryshchenko
  2017-09-07  4:48   ` Akshat Kakkar
  1 sibling, 1 reply; 9+ messages in thread
From: Denys Fedoryshchenko @ 2017-09-06 10:37 UTC (permalink / raw)
  To: Akshat Kakkar; +Cc: netdev, netdev-owner

On 2017-09-06 13:08, Akshat Kakkar wrote:
> I am having ipset 6.32
> 
> The hash type is hash:ip
> 
> I am adding/deleting IP addresses to it dynamically using scripts.
> 
> However, it has been observed that at times few IPs (3-4 out of 4000)
> are not found in the set though it was added. Also, logs show there
> was not request for deletion of that IP from IPSet.
> 
> Is it a bug?

I think you should try to make script to create at least reproducible 
scenario
And sure post more info about your setup (kernel version, vanilla or 
distro)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ipset losing entries on its own
  2017-09-06 10:37 ` Denys Fedoryshchenko
@ 2017-09-07  4:48   ` Akshat Kakkar
  2017-09-07  5:17     ` Akshat Kakkar
  0 siblings, 1 reply; 9+ messages in thread
From: Akshat Kakkar @ 2017-09-07  4:48 UTC (permalink / raw)
  To: Denys Fedoryshchenko; +Cc: netdev, netdev-owner

I understand that without reproducible scenarios, its hard to debug ...
But the point is, this issue is fully random and of very low frequency.

For the setup, it is CentOS 7.3 upgraded to kernel 4.4.

Whenever a system comes up on the network, he provides his credentials
and after successful authentication, his IP is added in an IPSET which
is having access to certain resources.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ipset losing entries on its own
  2017-09-07  4:48   ` Akshat Kakkar
@ 2017-09-07  5:17     ` Akshat Kakkar
  2017-09-07  8:41       ` Akshat Kakkar
  0 siblings, 1 reply; 9+ messages in thread
From: Akshat Kakkar @ 2017-09-07  5:17 UTC (permalink / raw)
  To: Denys Fedoryshchenko; +Cc: netdev, netdev-owner

What I observed is rehashing of set is not happening.

When I add multiple IPs to the ipset manually on ipset v6.32,
rehashing is not happening and my hashsize remains same as 1024

but when I add to ipset 4.5 (pretty old, I know!), rehashing is
happening and my hashsize changes from 1024 to 1536 to 2304 to 3456!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ipset losing entries on its own
  2017-09-07  5:17     ` Akshat Kakkar
@ 2017-09-07  8:41       ` Akshat Kakkar
  2017-09-08 19:24         ` Akshat Kakkar
  2017-09-12 11:54         ` Akshat Kakkar
  0 siblings, 2 replies; 9+ messages in thread
From: Akshat Kakkar @ 2017-09-07  8:41 UTC (permalink / raw)
  To: Denys Fedoryshchenko; +Cc: netdev, netdev-owner

Another observation :
At times rehashing happens (v6.32) and hashsize increases to 2048 from
1024. But this is at times and not always. Needless to mention, it is
for exactly same IPs added to the ipset in exactly same order.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ipset losing entries on its own
  2017-09-07  8:41       ` Akshat Kakkar
@ 2017-09-08 19:24         ` Akshat Kakkar
  2017-09-12 11:54         ` Akshat Kakkar
  1 sibling, 0 replies; 9+ messages in thread
From: Akshat Kakkar @ 2017-09-08 19:24 UTC (permalink / raw)
  To: Denys Fedoryshchenko; +Cc: netdev, netdev-owner

Any more information needed?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ipset losing entries on its own
  2017-09-07  8:41       ` Akshat Kakkar
  2017-09-08 19:24         ` Akshat Kakkar
@ 2017-09-12 11:54         ` Akshat Kakkar
  2018-04-24  7:58           ` Akshat Kakkar
  1 sibling, 1 reply; 9+ messages in thread
From: Akshat Kakkar @ 2017-09-12 11:54 UTC (permalink / raw)
  To: Denys Fedoryshchenko; +Cc: netdev, netdev-owner

can somebody throw more light on this? How it is possible (without a
bug) that for exactly same set of IPs, at time IPSET HASHSIZE remains
at 1024 and at times it increases to 2048?

As a workaround I am running the show setting HASHSIZE as 16384 at
times of IPSET creation itself, and till now (its more than 4 days)
the issue has not repeated.

But this need to be addressed, right?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ipset losing entries on its own
  2017-09-12 11:54         ` Akshat Kakkar
@ 2018-04-24  7:58           ` Akshat Kakkar
  0 siblings, 0 replies; 9+ messages in thread
From: Akshat Kakkar @ 2018-04-24  7:58 UTC (permalink / raw)
  To: Denys Fedoryshchenko; +Cc: netdev, netdev-owner

Has anybody got any clue in this?

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-04-24  7:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-06 10:08 ipset losing entries on its own Akshat Kakkar
2017-09-06 10:31 ` Akshat Kakkar
2017-09-06 10:37 ` Denys Fedoryshchenko
2017-09-07  4:48   ` Akshat Kakkar
2017-09-07  5:17     ` Akshat Kakkar
2017-09-07  8:41       ` Akshat Kakkar
2017-09-08 19:24         ` Akshat Kakkar
2017-09-12 11:54         ` Akshat Kakkar
2018-04-24  7:58           ` Akshat Kakkar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).