-
Notifications
You must be signed in to change notification settings - Fork 9
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
cannot remove protocols #234
Comments
IMHO there is few sense in delete a protocol (an IoTAgent), maybe it is better do not register that iotagent into iotagenet-manager. But if you want it then you should provide Iotagent-manager is trying to delete from Protocol schema
something which maches with this condition:
|
Anyway, response obtained trying delete a protocol which is not found is not proper, its a bug. |
Hey, thanks for the quick answer! We were using the UL and JSON IOTAgent a while ago for testing purposes, but now we decided to shut it down.
So I thought i'd need to remove the protocols from the IOTAgent-Manager So with |
Yes, curl -X DELETE localhost:8082/iot/protocols/JSON will work! |
Merged PR #235 @modularTaco a new image will be built in dockerhub in a matter of minutes. Could test latest again to confirm the problem has been solved, please? Thanks! |
With the current latest tag i'm not able to retrieve the protocls from IOTAM:
with the following config (working fine with 1.13.0):
When the mongodb hosts points directly to the primary node (
|
Dockerhub may take some time to build once the PR has been merged. Are you sure the image you are testing is the current latests and not the old one? Just to discard a possible cause of problem... |
it was pushed 5 min ago when it pulled, so yes, i think so |
I've done this already
|
I've test it several times with a non replicaset mongo and delete protocol works properly (does it when exists and report error when no) |
Related PR: #237, fixing logs. |
Hey,
I tried removing removing iotas from iotam, but this does not seem to be possible. Neither in the latest released version (1.13.0) nor in the latest dev version (
latest
tag on docker hub).The registered iotas are as follows:
I tried deleting a registered iota with the following command:
With 1.13.0 the following appears in the log:
Looks good, but... the iota is still present when querying /protocols
With the
latest
docker image the following error appears:The MongoDb setup is a replicaset with three nodes, it worked fine with previous versions of iotam.
Even deleting non-existant iotas from iotam (1.13.0) does not return an error.
Command:
Log:
The text was updated successfully, but these errors were encountered: