Project

General

Profile

Bug #49292

mgr/dashboard: fix PUT - /api/host/{hostname} while adding labels

Added by Avan Thakkar 3 months ago. Updated 22 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Back-end
Target version:
% Done:

0%

Source:
Tags:
Backport:
pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

'PUT /api/host/{hostname}' API call, provided string is spliced into characters and added as individual labels.
curl -i -k --location -X PUT 'https://localhost:11000/api/host/host1' -H 'Accept: application/vnd.ceph.api.v1.0+json' -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJjZXBoLWRhc2hib2FyZCIsImp0aSI6ImYxZDg1NmVhLTU2MTYtNGJiYi04NDZhLTVmZDJlNDAxNDQ2MSIsImV4cCI6MTYxMTk2MTU2NCwiaWF0IjoxNjExOTMyNzY0LCJ1c2VybmFtZSI6ImFkbWluIn0.5xmWOgcLa9xlKM0Svt8YVGBMf94M11eHQR19Z3FeFkw' -d '{"labels": "MON"}'

HTTP/1.1 200 OK
Content-Type: application/vnd.ceph.api.v1.0+json
Server: Ceph-Dashboard
Date: Fri, 29 Jan 2021 15:54:16 GMT
Vary: Accept-Encoding
Content-Length: 4

null%

[ceph: root@ceph /]# ceph orch host ls
HOST ADDR LABELS STATUS
host1 host1 M N O


Related issues

Copied to Dashboard - Backport #49652: pacific: mgr/dashboard: fix PUT - /api/host/{hostname} while adding labels Resolved

History

#1 Updated by Avan Thakkar 3 months ago

Avan Thakkar wrote:

'PUT /api/host/{hostname}' API call, provided string is spliced into characters and added as individual labels.
curl -i -k --location -X PUT 'https://localhost:11000/api/host/host1' -H 'Accept: application/vnd.ceph.api.v1.0+json' -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJjZXBoLWRhc2hib2FyZCIsImp0....FeFkw' -d '{"labels": "MON"}'

HTTP/1.1 200 OK
Content-Type: application/vnd.ceph.api.v1.0+json
Server: Ceph-Dashboard
Date: Fri, 29 Jan 2021 15:54:16 GMT
Vary: Accept-Encoding
Content-Length: 4

null%

[ceph: root@ceph /]# ceph orch host ls
HOST ADDR LABELS STATUS
host1 host1 M N O

#2 Updated by Avan Thakkar 3 months ago

  • Pull request ID set to 39476

Avan Thakkar wrote:

'PUT /api/host/{hostname}' API call, provided string is spliced into characters and added as individual labels.
curl -i -k --location -X PUT 'https://localhost:11000/api/host/host1' -H 'Accept: application/vnd.ceph.api.v1.0+json' -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJjZXBoLWRhc2hib2FyZCIsImp0....FeFkw' -d '{"labels": "MON"}'

HTTP/1.1 200 OK
Content-Type: application/vnd.ceph.api.v1.0+json
Server: Ceph-Dashboard
Date: Fri, 29 Jan 2021 15:54:16 GMT
Vary: Accept-Encoding
Content-Length: 4

null%

[ceph: root@ceph /]# ceph orch host ls
HOST ADDR LABELS STATUS
host1 host1 M N O

#3 Updated by Ernesto Puerta about 2 months ago

  • Status changed from In Progress to Pending Backport
  • Backport set to pacific

#4 Updated by Backport Bot about 2 months ago

  • Copied to Backport #49652: pacific: mgr/dashboard: fix PUT - /api/host/{hostname} while adding labels added

#5 Updated by Ernesto Puerta about 2 months ago

  • Status changed from Pending Backport to Resolved

#6 Updated by Ernesto Puerta 22 days ago

  • Project changed from mgr to Dashboard
  • Category changed from dashboard/backend to Back-end

Also available in: Atom PDF