gravitee-io / issues

Gravitee.io - API Platform - Issues
65 stars 26 forks source link

[cockpit] Connector must send the node version as part of the HelloCommand #5392

Closed brasseld closed 3 years ago

brasseld commented 3 years ago

https://github.com/gravitee-io/gravitee-cockpit/issues/534

jhaeyaert commented 3 years ago

This has been handled by the cockpit connector (see https://github.com/gravitee-io/gravitee-cockpit-connectors/pull/17). You should use gravitee-cockpit-connector-ws plugin v1.3.0

patelami commented 3 years ago

@jhaeyaert : Please can you provide more detail on what information should I see in logs?

also, from where can I download get gravitee-cockpit-connectors-ws-1.3.0 ? I could not find this in https://dist.gravitee.io/

brasseld commented 3 years ago

@Jean-Baptiste-Lasselle from where can we get bundle for the different plugins?

patelami commented 3 years ago

normally we get it from here: https://dist.gravitee.io/master/

but gravitee-cockpit-connectors-ws-1.3.0 is not available there.

Jean-Baptiste-Lasselle commented 3 years ago

@brasseld @patelami :

In our case, I fixed a few issues about artifactory with @jhaeyaert last week, and @jhaeyaert will confirm :

I also just saw that there is https://download.gravitee.io/#graviteeio-cockpit/plugins/connectors/gravitee-cockpit-connectors-ws/ available

Jean-Baptiste-Lasselle commented 3 years ago

ps confirmed : lorie released gravitee-cockpit-connectors "alone"

patelami commented 3 years ago

@brasseld @jhaeyaert:

Please can you provide more information on what can I see in logs as part of Hello Command?

currently, I am only seeing the following:


08:46:25.911 [vert.x-eventloop-thread-10] INFO  i.g.n.m.h.v.e.ManagementEndpointManagerImpl - Register a new endpoint for Management API: GET /configuration [io.gravitee.node.management.http.configuration.ConfigurationEndpoint]
08:46:25.911 [vert.x-eventloop-thread-10] INFO  i.g.n.m.h.v.v.ManagementVerticle - HTTP listener for Node Management bind to port TCP:18083
08:46:26.282 [vert.x-eventloop-thread-9] INFO  i.g.c.c.ws.WebSocketCockpitConnector - Channel is now connected to Cockpit Controller through websocket from io.gravitee.cockpit.connectors.ws.endpoints.WebSocketEndpoint@735f7fea/ws/controller
08:46:26.445 [vert.x-eventloop-thread-11] INFO  i.g.c.c.ws.WebSocketCockpitConnector - Discovery mode is enabled, listening for cockpit instances...
08:46:26.586 [vert.x-eventloop-thread-9] INFO  i.g.c.c.ws.channel.ClientChannel - HelloCommand replied with status [SUCCEEDED]
08:46:30.013 [cockpit-monitoring-collector-1] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task

detailed logs can be found here: https://gist.github.com/9119712534ee02fe28ab8bca134dbf14

aelamrani commented 3 years ago

finally the connection will always be accepted (until 3.10.x)

aelamrani commented 3 years ago

We should send the version to cockpit on a patch release to detect if an install is compatible or not