blindsidenetworks / scalelite

Scalable load balancer for BigBlueButton.
GNU Affero General Public License v3.0
465 stars 249 forks source link

Multitenancy: Warnings regarding ServerInfo on bin/rake status #939

Closed Ithanil closed 1 year ago

Ithanil commented 1 year ago

Describe the bug

With v1.5 and multitenancy enabled, /bin/rake status prints multiple pairs of warnings regarding an already initialized ServerInfo constant:

bash-5.1$ ./bin/rake status
/srv/scalelite/lib/tasks/status.rake:15: warning: already initialized constant ServerInfo
/srv/scalelite/lib/tasks/status.rake:15: warning: previous definition of ServerInfo was here
/srv/scalelite/lib/tasks/status.rake:15: warning: already initialized constant ServerInfo
/srv/scalelite/lib/tasks/status.rake:15: warning: previous definition of ServerInfo was here
/srv/scalelite/lib/tasks/status.rake:15: warning: already initialized constant ServerInfo
/srv/scalelite/lib/tasks/status.rake:15: warning: previous definition of ServerInfo was here
        HOSTNAME          STATE   STATUS  MEETINGS  USERS  LARGEST MEETING  VIDEOS  LOAD 
xxxxx ......

To Reproduce

Use current (at commit f7e37b2c8f5d23571f272c593bdfad42c53c0907) Scalelite v1.5 and (maybe not necessary) enable&configure multitenancy. Execute bin/rake status and observe the output.

Deployment: docker-swarm

farhatahmad commented 1 year ago

Unrelated to multitenancy and more so related to the ruby upgrade