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: In a bootstrap config with multiple channels, bootstrap state goes to 1, if any one of the channel connect to thing #2302

Open
arvindh123 opened this issue Jun 21, 2024 · 1 comment · May be fixed by #2377
Assignees
Labels

Comments

@arvindh123
Copy link
Contributor

arvindh123 commented Jun 21, 2024

What were you trying to achieve?

In a bootstrap config have multiple channels.
If any one of the channel is manually connect to the things , then bootstrap state goes to 1.

What are the expected results?

Bootstrap state remains to 0

What are the received results?

Bootstrap state goes to 1

Steps To Reproduce

  • Create thing
  • Create 2 channels
  • Create Bootstrap config with thing and 2 channel
  • connect any one of the channel to thing

In what environment did you encounter the issue?

Docker

Additional information you deem important

No response

@arvindh123 arvindh123 added the bug label Jun 21, 2024
@arvindh123 arvindh123 changed the title Bug: Bootstrap config goes state 1 , if any one of the channel connect to thing Bug: In a bootstrap config with multiple channels, bootstrap state goes to 1, if any one of the channel connect to thing Jun 21, 2024
@github-project-automation github-project-automation bot moved this to ⛏ Backlog in Magistrala Jun 26, 2024
@dborovcanin dborovcanin moved this from ⛏ Backlog to 🚧 In Progress in Magistrala Jul 25, 2024
@arvindh123
Copy link
Contributor Author

arvindh123 commented Jul 25, 2024

As mentioned in ticket #2304
We need a endpoint to verify things and channel are connected.
Then endpoint take array of channels and things as input and returns response for individual combination of channels and things

Example ;

Request : http://localhsot/things/verify-connections
Body :

{ "thing_ids" : ["thing_id_1", "thing_id_2"] , "channel_ids" : [ "channel_id_1" ,"channel_id_2" ] } 

Response :

{
  "status": "all_connected" , // all_disconnected or partially
  "connection_status":  [ 
         {
             "thing_id" : "thing_id_1",
             "channel_id" : "channel_id_1" ,
             "status" : "connected",
         },
          {
             "thing_id" : "thing_id_1",
             "channel_id" : "channel_id_2" ,
             "status" : "disconnected",
         },
          {
             "thing_id" : "thing_id_2",
             "channel_id" : "channel_id_1" ,
             "status" : "disconnected",
         },
          {
             "thing_id" : "thing_id_2",
             "channel_id" : "channel_id_2" ,
             "status" : "connected",
         }
    ] 
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🛑 Blocked
Development

Successfully merging a pull request may close this issue.

2 participants