Skip to content
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

[Bug] Readme "Setup at runtime via curl commands on the admin space" not updated #349

Open
czarekk215 opened this issue Feb 25, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@czarekk215
Copy link
Contributor

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
@czarekk215 czarekk215 added the bug Something isn't working label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant