Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Module Clusterer multi cluster ID #3503

Open
volga629-1 opened this issue Oct 29, 2024 · 2 comments
Open

[BUG] Module Clusterer multi cluster ID #3503

volga629-1 opened this issue Oct 29, 2024 · 2 comments

Comments

@volga629-1
Copy link

Version

 opensips -V
version: opensips 3.4.3 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
unknown revision: unknown
main.c compiled on 00:00:00 Apr 23 2024 with gcc 12

Issue description
Currently clusterer module is initialized based on Node ID column, but it not include cluster ID column.

Reproduce

Scenario
Datacenter 1 with multiple clusters where are in database defined multiple cluster ID
Cluster module is failing to initialize with following error

Oct 29 11:47:21 sbc09 journal[9392]: [OSIP-SBC-DEV-9] [9392]: INFO:clusterer:mod_init: Clusterer module - initializing
Oct 29 11:47:21 sbc09 journal[9392]: [OSIP-SBC-DEV-9] [9392]: ERROR:clusterer:add_node_info: non-local socket <IP ADDRESS OF NODE 1 CLUSTER 1> for this node
Oct 29 11:47:21 sbc09 journal[9392]: [OSIP-SBC-DEV-9] [9392]: ERROR:clusterer:load_db_info: Unable to add node info to backing list
Oct 29 11:47:21 sbc09 journal[9392]: [OSIP-SBC-DEV-9] [9392]: ERROR:clusterer:mod_init: Failed to load info from DB
Oct 29 11:47:21 sbc09 journal[9392]: [OSIP-SBC-DEV-9] [9392]: ERROR:core:init_mod: failed to initialize module clusterer
Oct 29 11:47:21 sbc09 journal[9392]: [OSIP-SBC-DEV-9] [9392]: ERROR:core:main: error while initializing modules
Oct 29 11:47:21 sbc09 journal[9392]: [OSIP-SBC-DEV-9] [9392]: INFO:core:cleanup: cleanup

Database

opensips=# select * from clusterer;
 id | cluster_id | node_id |         url         | state | no_ping_retries | priority |      sip_addr       | flags |   description    
---- ------------ --------- --------------------- ------- ----------------- ---------- --------------------- ------- ------------------
  1 |          1 |       1 | bin:ip.6:5585  |     1 |               3 |       50 | sip:ip:5060  | seed  | Node1
  2 |          1 |       2 | bin:ip.7:5585  |     1 |               3 |       50 | sip:ip:5060  | seed  | Node2
  5 |          1 |       3 | bin:ip.11:5585 |     1 |               3 |       50 | sip:ip:5060 | seed  | Node3
  6 |          1 |       4 | bin:ip.12:5585 |     1 |               3 |       50 | sip:ip:5060 | seed  | Node4
  7 |          2 |       1 | bin:ip.13:5585 |     1 |               3 |       50 | sip:ip:5060 | seed  | Node1 SBC-DEV-9
  8 |          2 |       2 | bin:ip.14:5585 |     1 |               3 |       50 | sip:ip:5060 | seed  | Node2 SBC-DEV-10
(6 rows)

opensips=# 

Expected

Clusterer module is initialized based on Node ID column and cluster ID column to have ability for define multi cluster sites.

Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Nov 14, 2024
@volga629-1
Copy link
Author

in progress

@stale stale bot removed the stale label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant