-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Using these commands in terminal using curl does not add the influxdb plugins and does not add a new storage.
Solution:
Swap position of local/router
to router/local
- Add the "influxdb" volume (the "zenoh_backend_fs" library will be loaded), connected to InfluxDB service on http://localhost:8086:
curl -X PUT -H 'content-type:application/json' -d '{url:"http://localhost:8086"}' http://localhost:8000/@/local/router/config/plugins/storage_manager/volumes/influxdb
- Add the "demo" storage using the "influxdb" volume:
curl -X PUT -H 'content-type:application/json' -d '{key_expr:"demo/example/**",volume:{id:"influxdb",db:"zenoh_example",create_db:true}}' http://localhost:8000/@/local/router/config/plugins/storage_manager/storages/demo
To reproduce
Run the zenoh router, with write permissions to its admin space and with the REST plugin:
zenohd --adminspace-permissions=rw --rest-http-port=8000
- Add the "influxdb" volume (the "zenoh_backend_fs" library will be loaded), connected to InfluxDB service on http://localhost:8086:
curl -X PUT -H 'content-type:application/json' -d '{url:"http://localhost:8086"}' http://localhost:8000/@/router/local/config/plugins/storage_manager/volumes/influxdb
- Add the "demo" storage using the "influxdb" volume:
curl -X PUT -H 'content-type:application/json' -d '{key_expr:"demo/example/**",volume:{id:"influxdb",db:"zenoh_example",create_db:true}}' http://localhost:8000/@/router/local/config/plugins/storage_manager/storages/demo
System info
- Platform: ubuntu:22.10
- Zenoh: 1.1.0 but also 1.2.0
adamkrawczyk
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working