Project

General

Profile

Actions

Bug #41251

closed

mgr/dashboard: vstart cluster throwing error no valid command found; 10 closest matches:

Added by Vikhyat Umrao over 4 years ago. Updated about 3 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
General - Back-end
Target version:
-
% Done:

0%

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

Description

rm -- /tmp/ceph_monmap.8850
/home/vumrao/Projects/ceph/build/bin/ceph-mon -i a -c /home/vumrao/Projects/ceph/build/ceph.conf
/home/vumrao/Projects/ceph/build/bin/ceph-mon -i b -c /home/vumrao/Projects/ceph/build/ceph.conf
/home/vumrao/Projects/ceph/build/bin/ceph-mon -i c -c /home/vumrao/Projects/ceph/build/ceph.conf
Populating config ...

[mgr]
        mgr/telemetry/enable = false
        mgr/telemetry/nag = false
Setting debug configs ...
creating /home/vumrao/Projects/ceph/build/dev/mgr.x/keyring
/home/vumrao/Projects/ceph/build/bin/ceph -c /home/vumrao/Projects/ceph/build/ceph.conf -k /home/vumrao/Projects/ceph/build/keyring -i /home/vumrao/Projects/ceph/build/dev/mgr.x/keyring auth add mgr.x mon 'allow profile mgr' mds 'allow *' osd 'allow *'
added key for mgr.x
/home/vumrao/Projects/ceph/build/bin/ceph -c /home/vumrao/Projects/ceph/build/ceph.conf -k /home/vumrao/Projects/ceph/build/keyring config set mgr mgr/dashboard/x/ssl_server_port 41432 --force
/home/vumrao/Projects/ceph/build/bin/ceph -c /home/vumrao/Projects/ceph/build/ceph.conf -k /home/vumrao/Projects/ceph/build/keyring config set mgr mgr/restful/x/server_port 42432 --force   
Starting mgr.x
/home/vumrao/Projects/ceph/build/bin/ceph-mgr -i x -c /home/vumrao/Projects/ceph/build/ceph.conf
/home/vumrao/Projects/ceph/build/bin/ceph -c /home/vumrao/Projects/ceph/build/ceph.conf -k /home/vumrao/Projects/ceph/build/keyring tell mgr dashboard ac-user-create admin admin administrator
no valid command found; 10 closest matches:
balancer status
balancer mode none|crush-compat|upmap
balancer on
balancer off
balancer pool ls
balancer pool add <pools> [<pools>...]
balancer pool rm <pools> [<pools>...]
balancer eval {<option>}
balancer eval-verbose {<option>}
balancer optimize <plan> {<pools> [<pools>...]}
Error EINVAL: invalid command

# bin/ceph -s
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2019-08-14T17:24:13.932+0000 7f5b016bb700 -1 WARNING: all dangerous and experimental features are enabled.
2019-08-14T17:24:13.951+0000 7f5b016bb700 -1 WARNING: all dangerous and experimental features are enabled.
  cluster:
    id:     e6c8f043-3dae-4fda-8b06-4671a6dc556b
    health: HEALTH_WARN
            3 mgr modules have failed dependencies
            OSD count 0 < osd_pool_default_size 3

  services:
    mon: 3 daemons, quorum a,b,c (age 28s)
    mgr: x(active, since 23s)
    osd: 0 osds: 0 up, 0 in

  data:
    pools:   0 pools, 0 pgs
    objects: 0 objects, 0 B
    usage:   0 B used, 0 B / 0 B avail
    pgs:

^^ no RGW daemon started.

- The command which I used to start the vstart cluster was:

RGW=1 ../src/vstart.sh -d -n -x
Actions #1

Updated by Vikhyat Umrao over 4 years ago

- No OSD daemon started.
- No RGW daemon started as it failed before in mgr module itself.

- After looking into the details vstart is failing in this command.

# bin/ceph -c /home/vumrao/Projects/ceph/build/ceph.conf -k /home/vumrao/Projects/ceph/build/keyring tell mgr dashboard ac-user-create admin admin administrator

*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2019-08-14T17:53:59.019+0000 7fe6d31d4700 -1 WARNING: all dangerous and experimental features are enabled.
2019-08-14T17:53:59.060+0000 7fe6d31d4700 -1 WARNING: all dangerous and experimental features are enabled.
no valid command found; 10 closest matches:
balancer status
balancer mode none|crush-compat|upmap
balancer on
balancer off
balancer pool ls
balancer pool add <pools> [<pools>...]
balancer pool rm <pools> [<pools>...]
balancer eval {<option>}
balancer eval-verbose {<option>}
balancer optimize <plan> {<pools> [<pools>...]}
Error EINVAL: invalid command

Actions #2

Updated by Vikhyat Umrao over 4 years ago

  • Project changed from Ceph to mgr
Actions #3

Updated by Vikhyat Umrao over 4 years ago

- This was happening because of python modules were not present.

cat mgr.x.log | grep ModuleNotFoundError:
ModuleNotFoundError: No module named 'requests'
ModuleNotFoundError: No module named 'OpenSSL'
ModuleNotFoundError: No module named 'requests'
ModuleNotFoundError: No module named 'cherrypy'
ModuleNotFoundError: No module named 'pecan'
ModuleNotFoundError: No module named 'urllib3'
ModuleNotFoundError: No module named 'requests

# cat out/mgr.x.log | grep ModuleNotFoundError:
ModuleNotFoundError: No module named 'jwt'
ModuleNotFoundError: No module named 'werkzeug'

# cat out/mgr.x.log | grep ModuleNotFoundError:
ModuleNotFoundError: No module named 'bcrypt'

- I think we should fix the command ceph tell mgr dashboard ac-user-create admin admin administrator should return error message in the command line also that it is failing because of these python modules are not present?

Actions #4

Updated by Vikhyat Umrao over 4 years ago

- The ceph -s did tell 3 mgr modules have failed dependencies but I think still it is better to tell in the command line when commands are run why they failing.

Actions #5

Updated by Volker Theile over 4 years ago

The most important question is: Which Ceph version are you talking about?

Actions #6

Updated by Vikhyat Umrao over 4 years ago

Volker Theile wrote:

The most important question is: Which Ceph version are you talking about?

This is from the master branch.

Actions #7

Updated by Vikhyat Umrao over 4 years ago

  • Affected Versions v15.0.0 added
Actions #8

Updated by Sebastian Wagner over 4 years ago

  • Subject changed from vstart cluster throwing error no valid command found; 10 closest matches: to mgr/dashboard: vstart cluster throwing error no valid command found; 10 closest matches:
  • Category set to 146
Actions #9

Updated by Ernesto Puerta about 3 years ago

  • Status changed from New to Can't reproduce

I'll close this as there hasn't been more records about this issue in a year. @Vikhyat Umrao please re-open if you still face this issue.

Actions #10

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 146 to General - Back-end
Actions

Also available in: Atom PDF