Giter Club home page Giter Club logo

Comments (3)

kcudnik avatar kcudnik commented on September 1, 2024

do you get this every time ? this is very wired, what configuration do yoy have there, is this with 2 syncds ? is there only one orchagent or 2? also 2 syncds should run in 2 differnt global contexts

from sonic-sairedis.

jimmyzhai avatar jimmyzhai commented on September 1, 2024

I get this every time with basic bgp config. PikeZ device has external PHY (Gearbox), then it runs syncd (global context 0) and gbsyncd (global context 1). There is only one orchagent.

Each context creates a redisSai object of RedisRemoteSaiInterface. The redisSai creates a redisChannel object of RedisChannel, which runs a thread RedisChannel::notificationThreadFunction and acts as a consumer of channel "NOTIFICATIONS". Whatever syncd/gbsyncd produces notification event in channel "NOTIFICATIONS", each consumer will be notified. This causes conflict.

From the above, looks it is fdb event from syncd, only the consumer in context 0 should handle it, however another consumer in context 1, having only gearbox switch info, also handles it and causes the above messages. PR #1129 will fix this issue.

from sonic-sairedis.

kcudnik avatar kcudnik commented on September 1, 2024

RedisRemoteSaiInterface is prepared to use multiple syncds so you dont have to instantiate 2 vestions of if, you can do that byusing sairedis SAI global apis, by specyfying SAI_REDIS_SWITCH_ATTR_CONTEXT attribute on create switch operation https://github.com/sonic-net/sonic-sairedis/blob/master/lib/sairedis.h#L227 and by using SAI_REDIS_KEY_CONTEXT_CONFIG in sai_api_initialize, you will also need context_config.json file which will be consumed by 2 syncds running, where it could specify ASIC_DB and GBASCI_DB

from sonic-sairedis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.