Skip to content

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

@czarekk215

Description

@czarekk215

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions