https://tracker.ceph.com/
https://tracker.ceph.com/favicon.ico
2018-08-21T16:41:26Z
Ceph
RADOS - Bug #26994: test_module_commands (tasks.mgr.test_module_selftest.TestModuleSelftest) fails
https://tracker.ceph.com/issues/26994?journal_id=119208
2018-08-21T16:41:26Z
Kefu Chai
tchaikov@gmail.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/119208/diff?detail_id=117727">diff</a>)</li></ul>
RADOS - Bug #26994: test_module_commands (tasks.mgr.test_module_selftest.TestModuleSelftest) fails
https://tracker.ceph.com/issues/26994?journal_id=119209
2018-08-21T16:41:59Z
Kefu Chai
tchaikov@gmail.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/119209/diff?detail_id=117728">diff</a>)</li></ul>
RADOS - Bug #26994: test_module_commands (tasks.mgr.test_module_selftest.TestModuleSelftest) fails
https://tracker.ceph.com/issues/26994?journal_id=119210
2018-08-21T17:55:02Z
Noah Watkins
nwatkins@redhat.com
<ul></ul><p>I can't reproduce this... it is as if the monitor has not received a summary of commands from the manager at the the time `ceph hello` runs.</p>
RADOS - Bug #26994: test_module_commands (tasks.mgr.test_module_selftest.TestModuleSelftest) fails
https://tracker.ceph.com/issues/26994?journal_id=119214
2018-08-21T18:45:05Z
Noah Watkins
nwatkins@redhat.com
<ul></ul><p>The manager logs show all the modules except for `hello` being loaded</p>
<pre>
nwatkins@teuthology:/a/kchai-2018-08-21_15:56:38-rados-wip-kefu-testing-2018-08-21-1839-distro-basic-mira/2932436/remote/mira022/log$ zgrep "Loading python module" ceph-mgr.x.log.gz | cut -d' ' -f 10 | sort | uniq
'balancer'
'crash'
'dashboard'
'devicehealth'
'influx'
'iostat'
'localpool'
'orchestrator_cli'
'progress'
'prometheus'
'restful'
'rook'
'selftest'
'smart'
'status'
'telegraf'
'telemetry'
'zabbix'
</pre>
RADOS - Bug #26994: test_module_commands (tasks.mgr.test_module_selftest.TestModuleSelftest) fails
https://tracker.ceph.com/issues/26994?journal_id=119215
2018-08-21T18:49:13Z
Noah Watkins
nwatkins@redhat.com
<ul></ul><p>Here's the culprit: hello isn't packaged so it can't announce its commands.</p>
<pre>
install(DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/mgr
DESTINATION ${CMAKE_INSTALL_PKGLIBDIR}
REGEX ".*/\\.gitignore" EXCLUDE
REGEX ".*/hello/.*" EXCLUDE)
add_subdirectory(mgr)
</pre>
RADOS - Bug #26994: test_module_commands (tasks.mgr.test_module_selftest.TestModuleSelftest) fails
https://tracker.ceph.com/issues/26994?journal_id=119218
2018-08-21T19:30:31Z
Noah Watkins
nwatkins@redhat.com
<ul></ul><p>Something like this will probably fix it</p>
<pre>
diff --git a/qa/tasks/mgr/test_module_selftest.py b/qa/tasks/mgr/test_module_selftest.py
index fa609f7348..dd3c3123a4 100644
--- a/qa/tasks/mgr/test_module_selftest.py
+++ b/qa/tasks/mgr/test_module_selftest.py
@@ -231,18 +231,18 @@ class TestModuleSelftest(MgrTestCase):
disabled/failed/recently-enabled modules.
"""
- self._load_module("selftest")
-
# Calling a command on a disabled module should return the proper
# error code.
self.mgr_cluster.mon_manager.raw_cluster_cmd(
- "mgr", "module", "disable", "status")
+ "mgr", "module", "disable", "selftest")
with self.assertRaises(CommandFailedError) as exc_raised:
self.mgr_cluster.mon_manager.raw_cluster_cmd(
- "osd", "status")
+ "mgr", "self-test", "run")
self.assertEqual(exc_raised.exception.exitstatus, errno.EOPNOTSUPP)
+ self._load_module("selftest")
+
# Calling a command that really doesn't exist should give me EINVAL.
with self.assertRaises(CommandFailedError) as exc_raised:
self.mgr_cluster.mon_manager.raw_cluster_cmd(
</pre>
RADOS - Bug #26994: test_module_commands (tasks.mgr.test_module_selftest.TestModuleSelftest) fails
https://tracker.ceph.com/issues/26994?journal_id=119234
2018-08-22T06:28:27Z
Kefu Chai
tchaikov@gmail.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Fix Under Review</i></li><li><strong>Assignee</strong> set to <i>Noah Watkins</i></li></ul><p><a class="external" href="https://github.com/ceph/ceph/pull/23681">https://github.com/ceph/ceph/pull/23681</a></p>
RADOS - Bug #26994: test_module_commands (tasks.mgr.test_module_selftest.TestModuleSelftest) fails
https://tracker.ceph.com/issues/26994?journal_id=119613
2018-08-29T15:13:44Z
Kefu Chai
tchaikov@gmail.com
<ul><li><strong>Status</strong> changed from <i>Fix Under Review</i> to <i>Resolved</i></li></ul>