deregister message-processor and router

Not applicable

Hello,

after removing a server which contains router and message processor, if check message-server it still show:

[ { "externalHostName" : "localhost", "externalIP" : "not_used_server_IP", "internalHostName" : "localhost", "internalIP" : "not_used_server_IP", "isUp" : true, "pod" : "gateway", "reachable" : true, "region" : "dc-1", "tags" : { "property" : [ { "name" : "started.at", "value" : "1495523684848" }, { "name" : "Profile", "value" : "Router-Netty" }, { "name" : "startup.time", "value" : "24 second(s)" }, { "name" : "rpc.port", "value" : "4527" }, { "name" : "http.management.port", "value" : "8081" }, { "name" : "jmx.rmi.port", "value" : "1100" }, { "name" : "up.time", "value" : "1059 hour(s) 4 minute(s) 29 second(s)" } ] }, "type" : [ ], "uUID" : "6228c6b9-b481-4bef-b504-677bd5cd88b3" },

as you can see it still marked as

isUp : true

reachable: true

i try to de-register it with help of that command

Deregister server’s type

curl ­-u adminEmail:pWord -X POST http://<management-ip>:8080/v1/servers -d "type={message-processor|router|management-server}®ion={regionName}&pod={podName}&uuid={uuid}&action=remove"

but as output got:

{ "code" : "registration.TypeNotSpecified", "message" : "At least one of [ingest-server, scheduler-datastore, dw-server, qpid-server, taurus-datastore, kms-datastore, counter-datastore, analytics-datastore, notification-datastore, application-datastore, management-server, aries-processor, cache-datastore, user-settings-datastore, keyvaluemap-datastore, aries-datastore, mint-datastore, dc-datastore, mint-rdbms-datastore, auth-datastore, apimodel-datastore, audit-datastore, endpoint, consumer-server, ax-hadoop-ingester, reportcrud-datastore, ldap, postgres-server, router, zookeeper, message-processor, edgenotification-datastore] should be specified as type for UUID 6228c6b9-b481-4bef-b504-677bd5cd88b3", "contexts" : [ ] }[

is any possible command to deregister / remove that entries from message-server?

same problem with message-processor.

Apigee version:

OPDK version 4.15.07.00 is installed

Solved Solved
0 8 800
1 ACCEPTED SOLUTION

Not applicable

Hi @Anton Samultsou,

For Routers run 2,3 APIs and for Mp run 1,2,3 from the http://docs.apigee.com/private-cloud/latest/removing-server-management-servermessage-processorrouter.

From your router output, the type is empty type" : [ ]. Looks like its deregistered, now just delete it.

As @Christin Brown mentioned, you will see (registration.TypeNotSpecified) error if type is missing in your API.

As the next step, just run the APIs again in sequence with right values and you should be good.

View solution in original post

8 REPLIES 8

In the command you are running you need to specific what you are trying to remove at the type =. You will need to specify uuid message processor and select that type as well as router and that type as separate commands

yep - i know that and i use command like:

curl -u user:pass -X POST http://tipo:8080/v1/servers -d "type=router&region=dc-1&pod=gateway&uuid=6228c6b9-b481-4bef-b504-677bd5cd88b3&action=remove"

and output:

{ "code" : "registration.ServerNotInTypes", "message" : "Server 6228c6b9-b481-4bef-b504-677bd5cd88b3 is not of any of the specified types [router]", "contexts" : [ ] }

Ok, so that means the uuid is not correct, what command did you run to collect uuid?

curl -v -u user@password http://tipo:8080/v1/servers?pod=gateway

tipo = message-server

that command return list of all message-processor/router and some other stuff;

in that list i have correct one router +mp; and old one router+mp as i mention in my post with

"isUp" : true,

"pod" : "gateway",

"reachable" : true,

but uuid part is:

"type" : [ ],

"uUID" : "6228c6b9-b481-4bef-b504-677bd5cd88b3"

See my comments in the answer below.

"From your router output, the type is empty type" : [ ]. Looks like its deregistered, now just delete it." 3 from the doc link.

Not applicable

Hi @Anton Samultsou,

For Routers run 2,3 APIs and for Mp run 1,2,3 from the http://docs.apigee.com/private-cloud/latest/removing-server-management-servermessage-processorrouter.

From your router output, the type is empty type" : [ ]. Looks like its deregistered, now just delete it.

As @Christin Brown mentioned, you will see (registration.TypeNotSpecified) error if type is missing in your API.

As the next step, just run the APIs again in sequence with right values and you should be good.

Run this to now delete the router : curl ­-u adminEmail:pWord -X DELETE http://<management-ip>:8080/v1/servers/{uuid}

yes that helps, thanks!