kadalu / moana

Moana is a frontend for the Kadalu Storage / GlusterFS. Moana provides tools for setting up and managing the Kadalu Storage / Gluster pools.
GNU General Public License v3.0
18 stars 7 forks source link

mgr: Add support to rename pool #232

Closed vatsa287 closed 2 years ago

vatsa287 commented 2 years ago

This PR introduces new subcommand under pool to be able to rename it. Example:

root@kadalu-dev:/src/mgr# ./bin/kadalu pool rename dev16 dev17 --json
Are you sure you want to rename the pool? [y/N]: y
{
  "id": "8984af72-19e9-4005-a828-d10804043b86",
  "name": "dev17",
  "nodes": [
    {
      "id": "",
      "name": "",
      "state": "",
      "endpoint": "",
      "addresses": [],
      "token": "",
      "pool": {
        "id": "",
        "name": "",
        "nodes": []
      }
    }
  ]
}

Fixes: #209 Signed-off-by: Shree Vatsa N vatsa@kadalu.tech