Project

General

Profile

Bug #41251

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

Added by Vikhyat Umrao about 1 month ago. Updated 27 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
dashboard/backend
Target version:
-
Start date:
08/14/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

History

#1 Updated by Vikhyat Umrao about 1 month 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

#2 Updated by Vikhyat Umrao about 1 month ago

  • Project changed from Ceph to mgr

#3 Updated by Vikhyat Umrao about 1 month 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?

#4 Updated by Vikhyat Umrao about 1 month 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.

#5 Updated by Volker Theile about 1 month ago

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

#6 Updated by Vikhyat Umrao about 1 month ago

Volker Theile wrote:

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

This is from the master branch.

#7 Updated by Vikhyat Umrao about 1 month ago

  • Affected Versions v15.0.0 added

#8 Updated by Sebastian Wagner 27 days 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 dashboard/backend

Also available in: Atom PDF