Bug 1858 - gencache_get don't find previous cached entry
Summary: gencache_get don't find previous cached entry
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Domain Control (show other bugs)
Version: 3.0.7
Hardware: All Windows NT
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-30 07:17 UTC by Frank Albrecht
Modified: 2005-02-17 10:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Albrecht 2004-09-30 07:17:04 UTC
problem: 

samba on a machine with one ethernet and 2 ip-adresses
  eth0:0 = 10.192.33.6
  eth0:1 = 10.192.33.14

samba is wins-server

it registers the domain kdvz-pro with two ip-adresses 
for the first time gencache_get returns 2 valif ip-adresses from wins
i think then samba cached the two entries

the next time samba fails, to get the entry, i think the reason is, that the 
argument for the search is wrong

NBT/KDVZ-PRO#1B.20.10.192.33.6

i don't know, why is ".20." inserted or the store in the cache isn't right.

Excuse my English,m i'm not very good



this is the output from : net rpc join kdvz-pro -d 10

Unable to find a suitable server
[2004/09/30 16:00:54, 10] libsmb/namequery.c:internal_resolve_name(1010)
  internal_resolve_name: looking up KDVZ-PRO#1b
[2004/09/30 16:00:54, 10] lib/gencache.c:gencache_get(264)
  Returning valid cache entry: key = NBT/KDVZ-PRO#1B, value = 
10.192.33.6:0,10.192.33.14:0, timeout = Thu Sep 30 16:04:28 2004

[2004/09/30 16:00:54, 5] libsmb/namecache.c:namecache_fetch(201)
  name KDVZ-PRO#1B found.
[2004/09/30 16:00:54, 6] libsmb/namequery.c:get_pdc_ip(1226)
  get_pdc_ip: PDC has 2 IP addresses!
[2004/09/30 16:00:54, 10] libsmb/namequery.c:name_status_find(188)
  name_status_find: looking up KDVZ-PRO#1b at 10.192.33.6
[2004/09/30 16:00:54, 10] lib/gencache.c:gencache_get(286)
  Cache entry with key = NBT/KDVZ-PRO#1B.20.10.192.33.6 couldn't be found
[2004/09/30 16:00:54, 5] libsmb/namecache.c:namecache_status_fetch(308)
  namecache_status_fetch: no entry for NBT/KDVZ-PRO#1B.20.10.192.33.6 found.
[2004/09/30 16:00:54, 10] lib/gencache.c:gencache_del(214)
  Deleting cache entry (key = NBT/KDVZ-PRO#1B.20.10.192.33.6)
[2004/09/30 16:00:54, 10] lib/util_sock.c:open_socket_in(717)
  bind succeeded on port 0
[2004/09/30 16:00:54, 5] libsmb/nmblib.c:send_udp(779)
  Sending a packet of len 50 to (10.192.33.6) on port 137
[2004/09/30 16:00:56, 5] libsmb/nmblib.c:send_udp(779)
  Sending a packet of len 50 to (10.192.33.6) on port 137
[2004/09/30 16:00:58, 10] libsmb/namequery.c:name_status_find(227)
  name_status_find: name not found

Unable to find a suitable server
[2004/09/30 16:00:58, 2] utils/net.c:main(792)
  return code = 1
Comment 1 Gerald (Jerry) Carter (dead mail address) 2005-02-17 10:13:47 UTC
gencache is working correctly according to all 
tests.  This looks like you are having name ersolution 
issues in your environment.  Possibly a configuration issue.

Please retest against 3.0.11.  Thanks.