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

Not able to run multiple instances of BNG-Blaster on one server 'Error: Failed to init interfaces ' #294

Open
mohanraj86 opened this issue Nov 20, 2024 · 5 comments
Assignees
Labels
bug Something isn't working fixed

Comments

@mohanraj86
Copy link

Not able to run multiple instances of BNG-Blaster on one server
Instance-1 running fine
when we start Instance-2 getting 'Error: Failed to init interfaces '

Version: 0.9.12

Payload

  1. instance1.json
    {
    "comment": "VULCANUS",
    "interfaces": {
    "capture-include-streams": true,
    "tx-threads": 10,
    "access": [
    {
    "comment": "WM-TEST",
    "interface": "eno2",
    "inner-vlan": 7,
    "monkey": false,
    "type": "pppoe",
    "outer-vlan": 1124
    }
    ],
    "rx-threads": 10
    },
    "traffic": {
    "stream-burst-ms": 10
    },
    "sessions": {
    "count": 1,
    "max-outstanding": 800,
    "start-rate": 400,
    "stop-rate": 400,
    "reconnect": true,
    "monkey-autostart": false
    },
    "pppoe": {
    "reconnect": true,
    "discovery-timeout": 3,
    "discovery-retry": 10,
    "vlan-priority": 6
    }
    }

instance2.json
{
"comment": "VULCANUS",
"interfaces": {
"capture-include-streams": true,
"tx-threads": 10,
"access": [
{
"comment": "WM-TEST",
"interface": "eno3",
"inner-vlan": 7,
"monkey": false,
"type": "pppoe",
"outer-vlan": 1125
}
],
"rx-threads": 10
},
"traffic": {
"stream-burst-ms": 10
},
"sessions": {
"count": 1,
"max-outstanding": 800,
"start-rate": 400,
"stop-rate": 400,
"reconnect": true,
"monkey-autostart": false
},
"pppoe": {
"reconnect": true,
"discovery-timeout": 3,
"discovery-retry": 10,
"vlan-priority": 6
}
}

image

mponnusa@podblaster:~$ sudo bngblaster -C instance1.json -S run.sock
Nov 20 07:14:11.697653 Warning: Interfaces must not have an IP address configured in the host OS!
Nov 20 07:14:11.697702 Warning: IP address fe80::1e98:ecff:fe15:419d on interface eno2 is conflicting!
Nov 20 07:14:12.188316 Total PPS of all streams: 0.00
Nov 20 07:14:12.188644 Opened control socket run.sock
Nov 20 07:14:13.188390 Resolve network interfaces
Nov 20 07:14:13.188414 All network interfaces resolved

mponnusa@podblaster:~$ sudo bngblaster -C instance2.json -S run.sock -I
Nov 20 06:53:54.835847 Failed to set fanout group for interface eno3 - Invalid argument (22)
Nov 20 06:53:54.835928 Failed to add link eno3
Error: Failed to init interfaces

Additional Note:

When we run instance1.json & instance2.json without tx-threads & rx-threads, we were able to run both instances parallelly

@mohanraj86 mohanraj86 added the bug Something isn't working label Nov 20, 2024
@GIC-de
Copy link
Member

GIC-de commented Nov 25, 2024

Please provide:

sudo ethtool -i eno2
sudo ethtool -i eno3

Does it work if you start instance 2 (sudo bngblaster -C instance2.json -S run.sock -I) without instance 1 running?

@GIC-de GIC-de added the in-progress Work in progress label Nov 25, 2024
@mohanraj86
Copy link
Author

mponnusa@podblaster:~$ sudo ethtool -i eno2
driver: tg3
version: 6.5.0-21-generic
firmware-version: 5719-v1.46 NCSI v1.5.27.0
expansion-rom-version:
bus-info: 0000:02:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no

mponnusa@podblaster:~$ sudo ethtool -i eno3
driver: tg3
version: 6.5.0-21-generic
firmware-version: 5719-v1.46 NCSI v1.5.27.0
expansion-rom-version:
bus-info: 0000:02:00.2
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no

Yes instance-2 is running when intance-1 is not running

@GIC-de GIC-de added fixed and removed in-progress Work in progress labels Nov 26, 2024
@GIC-de
Copy link
Member

GIC-de commented Nov 26, 2024

Fixed in latest dev branch.

@mohanraj86
Copy link
Author

Thanks @GIC-de . Will re-try and get back

@GIC-de
Copy link
Member

GIC-de commented Nov 27, 2024

Fixed in version 0.9.13, please verify!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants