Bug #20322
closedAll cephtool tests fail on master with "tell mgr.x restful create-key admin" "no valid command found"
0%
Description
Attempting to run make check on my local machine (or ctest), I get failures in cephtool-test-mds.sh, cephtool-test-mon.sh, cephtool-test-osd.sh, cephtool-test-rados.sh
Kefu Chai suggested it was a race condition, with the tests starting before ceph-mgr was able to run.
Files
Updated by Brad Hubbard almost 7 years ago
Hi Adam, I saw this too but I believe it went away after I ran install-deps.sh but I'm not 100% sure. Could you give that a try?
Updated by Yanhu Cao almost 7 years ago
Adam Emerson wrote:
Attempting to run make check on my local machine (or ctest), I get failures in cephtool-test-mds.sh, cephtool-test-mon.sh, cephtool-test-osd.sh, cephtool-test-rados.sh
Kefu Chai suggested it was a race condition, with the tests starting before ceph-mgr was able to run.
/home/aemerson/ceph/build/bin/ceph -c /home/aemerson/ceph/build/src/test/td/t-7200/ceph.conf -k /home/aemerson/ceph/build/src/test/td/t-7200/keyring tell mgr.x restful create-key admin -o /tmp/tmp.84S9MLiE8W
'ceph tell mgr.x restful create-key admin' does not implemented yet, need to implement or delete this ?
Updated by Brad Hubbard almost 7 years ago
- Category set to 110
Your testing my memory but I believe this happened to me because the restful module was not installed due to a missing dependency, at least that was the conclusion I leapt to. Hence my suggestion to make sure all dependencies currently required are satisfied. John Spray may have more ideas on this since it seems to be specific to the mgr. Assigning it to mgr category.
Updated by John Spray almost 7 years ago
This is presumably happening because the tests use vstart, and vstart just got updated to use some restful-specific commands.
I suggest:
1. have an option in the vstart bits to disable restful module
2. set that option from the scripts that invoke vstart for tests
3. have a nicer error message in vstart if the restful related command fails, hinting the user to switch that part off.
Updated by Brad Hubbard almost 7 years ago
I can reproduce this by removing python2-pecan. This, in hindsight, must have been the package I installed to resolve this issue when I originally hit it.
You can test for its existence in python of course.
$ python
Python 2.7.13 (default, May 10 2017, 20:04:28)
[GCC 6.3.1 20161221 (Red Hat 6.3.1-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import pecan
help(pecan)
The restful module for the mgr depends on pecan.
Adam, can you check whether you have this package (or equivalent for your weapon of choice OS?).
Updated by Brad Hubbard almost 7 years ago
- Subject changed from All cephtool tests fail on master to All cephtool tests fail on master with "tell mgr.x restful create-key admin" "no valid command found"
Updated by Brad Hubbard almost 7 years ago
- Status changed from New to Rejected
This should be installed when running install-deps.sh so closing this tracker as python-pecan is a dependency.
Updated by Greg Farnum almost 7 years ago
- Project changed from Ceph to mgr
- Category deleted (
110)