Project

General

Profile

Actions

Bug #47924

closed

CephFS - Feature #47587: pybind/mgr/nfs: add Rook support

rook: 'ceph orch daemon add nfs' fails due to invalid field value

Added by Varsha Rao over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
mgr/rook
Target version:
% Done:

0%

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

Description

[root@rook-ceph-tools-78cdfd976c-gj55c /]# ceph orch daemon add nfs mynfs nfs-ganesha mynfs
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1195, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 141, in handle_command
    return dispatch[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 332, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 103, in <lambda>
    wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 92, in wrapper
    return func(*args, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/module.py", line 946, in _nfs_add
    raise_if_exception(completion)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 643, in raise_if_exception
    raise e
kubernetes.client.rest.ApiException: (422)
Reason: Unprocessable Entity
HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 21 Oct 2020 08:27:19 GMT', 'Content-Length': '496'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"CephNFS.ceph.rook.io \"mynfs\" is invalid: spec.server.active: Invalid value: \"null\": spec.server.active in body must be of type integer: \"null\"","reason":"Invalid","details":{"name":"mynfs","group":"ceph.rook.io","kind":"CephNFS","causes":[{"reason":"FieldValueInvalid","message":"Invalid value: \"null\": spec.server.active in body must be of type integer: \"null\"","field":"spec.server.active"}]},"code":422}

[root@rook-ceph-tools-78cdfd976c-gj55c /]# rados lspools
device_health_metrics
myfs-metadata
myfs-data0
nfs-ganesha

Mgr log

debug 2020-10-21T08:27:19.235+0000 7faeaf6c0700  0 log_channel(audit) log [DBG] : from='client.4741 -' entity='client.admin' cmd=[{"prefix": "orch daemon add nfs", "svc_id": "mynfs", "pool": "nfs-ganesha", "namespace": "mynfs", "target": ["mon-mgr", ""]}]: dispatch
debug 2020-10-21T08:27:19.251+0000 7faeaeebf700  0 [rook ERROR orchestrator._interface] _Promise failed
Traceback (most recent call last):
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 295, in _finalize
    next_result = self._on_complete(self._value)
  File "/usr/share/ceph/mgr/rook/module.py", line 67, in <lambda>
    on_complete=lambda _: on_complete(),
  File "/usr/share/ceph/mgr/rook/module.py", line 411, in <lambda>
    on_complete=lambda : func(spec),
  File "/usr/share/ceph/mgr/rook/rook_cluster.py", line 483, in add_nfsgw
    self.rook_api_post("cephnfses/", body=rook_nfsgw.to_json())
  File "/usr/share/ceph/mgr/rook/rook_cluster.py", line 233, in rook_api_post
    return self.rook_api_call("POST", path, **kwargs)
  File "/usr/share/ceph/mgr/rook/rook_cluster.py", line 219, in rook_api_call
    **kwargs)
  File "/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 345, in call_api
    _preload_content, _request_timeout)
  File "/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 176, in __call_api
    _request_timeout=_request_timeout)
  File "/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 388, in request
    body=body)
  File "/lib/python3.6/site-packages/kubernetes/client/rest.py", line 278, in POST
    body=body)
  File "/lib/python3.6/site-packages/kubernetes/client/rest.py", line 231, in request
    raise ApiException(http_resp=r)
kubernetes.client.rest.ApiException: (422)
Reason: Unprocessable Entity
HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 21 Oct 2020 08:27:19 GMT', 'Content-Length': '496'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"CephNFS.ceph.rook.io \"mynfs\" is invalid: spec.server.active: Invalid value: \"null\": spec.server.active in body must be of type integer: \"null\"","reason":"Invalid","details":{"name":"mynfs","group":"ceph.rook.io","kind":"CephNFS","causes":[{"reason":"FieldValueInvalid","message":"Invalid value: \"null\": spec.server.active in body must be of type integer: \"null\"","field":"spec.server.active"}]},"code":422}

debug 2020-10-21T08:27:19.251+0000 7faeaeebf700  0 [rook ERROR orchestrator._interface] _Promise failed
Traceback (most recent call last):
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 295, in _finalize
    next_result = self._on_complete(self._value)
  File "/usr/share/ceph/mgr/rook/module.py", line 67, in <lambda>
    on_complete=lambda _: on_complete(),
  File "/usr/share/ceph/mgr/rook/module.py", line 411, in <lambda>
    on_complete=lambda : func(spec),
  File "/usr/share/ceph/mgr/rook/rook_cluster.py", line 483, in add_nfsgw
    self.rook_api_post("cephnfses/", body=rook_nfsgw.to_json())
  File "/usr/share/ceph/mgr/rook/rook_cluster.py", line 233, in rook_api_post
    return self.rook_api_call("POST", path, **kwargs)
  File "/usr/share/ceph/mgr/rook/rook_cluster.py", line 219, in rook_api_call
    **kwargs)
  File "/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 345, in call_api
    _preload_content, _request_timeout)
  File "/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 176, in __call_api
    _request_timeout=_request_timeout)
  File "/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 388, in request
    body=body)
  File "/lib/python3.6/site-packages/kubernetes/client/rest.py", line 278, in POST
    body=body)
  File "/lib/python3.6/site-packages/kubernetes/client/rest.py", line 231, in request
    raise ApiException(http_resp=r)
kubernetes.client.rest.ApiException: (422)
Reason: Unprocessable Entity
HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 21 Oct 2020 08:27:19 GMT', 'Content-Length': '496'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"CephNFS.ceph.rook.io \"mynfs\" is invalid: spec.server.active: Invalid value: \"null\": spec.server.active in body must be of type integer: \"null\"","reason":"Invalid","details":{"name":"mynfs","group":"ceph.rook.io","kind":"CephNFS","causes":[{"reason":"FieldValueInvalid","message":"Invalid value: \"null\": spec.server.active in body must be of type integer: \"null\"","field":"spec.server.active"}]},"code":422}

debug 2020-10-21T08:27:19.259+0000 7faeaeebf700 -1 mgr handle_command module 'orchestrator' command handler threw exception: (422)
Reason: Unprocessable Entity
HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 21 Oct 2020 08:27:19 GMT', 'Content-Length': '496'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"CephNFS.ceph.rook.io \"mynfs\" is invalid: spec.server.active: Invalid value: \"null\": spec.server.active in body must be of type integer: \"null\"","reason":"Invalid","details":{"name":"mynfs","group":"ceph.rook.io","kind":"CephNFS","causes":[{"reason":"FieldValueInvalid","message":"Invalid value: \"null\": spec.server.active in body must be of type integer: \"null\"","field":"spec.server.active"}]},"code":422}

debug 2020-10-21T08:27:19.259+0000 7faeaeebf700 -1 mgr.server reply reply (22) Invalid argument Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1195, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 141, in handle_command
    return dispatch[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 332, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 103, in <lambda>
    wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 92, in wrapper
    return func(*args, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/module.py", line 946, in _nfs_add
    raise_if_exception(completion)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 643, in raise_if_exception
    raise e
kubernetes.client.rest.ApiException: (422)
Reason: Unprocessable Entity
HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 21 Oct 2020 08:27:19 GMT', 'Content-Length': '496'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"CephNFS.ceph.rook.io \"mynfs\" is invalid: spec.server.active: Invalid value: \"null\": spec.server.active in body must be of type integer: \"null\"","reason":"Invalid","details":{"name":"mynfs","group":"ceph.rook.io","kind":"CephNFS","causes":[{"reason":"FieldValueInvalid","message":"Invalid value: \"null\": spec.server.active in body must be of type integer: \"null\"","field":"spec.server.active"}]},"code":422}

[root@rook-ceph-tools-78cdfd976c-gj55c /]# ceph version
ceph version 16.0.0-4762-ga1c3f3b (a1c3f3b7cfe7cd69ea4218393490b61c4e03e716) pacific (dev)
[root@rook-ceph-tools-78cdfd976c-gj55c /]# rook version
rook: v1.4.0-alpha.0.499.g40068a95
go: go1.15.2
Actions #1

Updated by Varsha Rao over 3 years ago

  • Parent task set to #47587
Actions #2

Updated by Varsha Rao over 3 years ago

  • Status changed from New to In Progress
  • Assignee set to Varsha Rao
Actions #3

Updated by Varsha Rao over 3 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 37771
Actions #4

Updated by Varsha Rao over 3 years ago

  • Status changed from Fix Under Review to Closed
Actions

Also available in: Atom PDF