Skip to content

debian: let ceph-mgr depend on python-influxdb#21594

Closed
tchaikov wants to merge 2 commits intoceph:masterfrom
tchaikov:wip-debian-requires-influx
Closed

debian: let ceph-mgr depend on python-influxdb#21594
tchaikov wants to merge 2 commits intoceph:masterfrom
tchaikov:wip-debian-requires-influx

Conversation

@tchaikov
Copy link
Copy Markdown
Contributor

@tchaikov tchaikov commented Apr 23, 2018

Signed-off-by: Kefu Chai kchai@redhat.com

@tchaikov
Copy link
Copy Markdown
Contributor Author

@jcsp
Copy link
Copy Markdown
Contributor

jcsp commented Apr 23, 2018

I don't mind adding the dependency for platforms where installing the influx module is easy, but the test is meant to pass without the dependency (module selftest shouldn't have dependencies).

Since we're now rejecting "enable" for can_run=false modules, we should update the test to pass --force to enable so that it can run selftest even if dependencies are missing.

@tchaikov tchaikov added this to the mimic milestone Apr 23, 2018
the influx plugin requires influxdb python module to function, but
influxdb mgr plugin is optional for users who don't use influxdb.
so it's marked "Suggests" at this moment before we use a more flexible
packaging scheme.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov tchaikov force-pushed the wip-debian-requires-influx branch from 09b890c to c3ceb85 Compare April 23, 2018 11:18
@tchaikov tchaikov added the tests label Apr 23, 2018
@tchaikov
Copy link
Copy Markdown
Contributor Author

@jcsp updated and repushed.

@jcsp
Copy link
Copy Markdown
Contributor

jcsp commented Apr 23, 2018

retest this please (jenkins)

Something went wrong in a pip download

@liewegas
Copy link
Copy Markdown
Member

btw still see an error after this,

2018-04-23T18:14:50.070 INFO:tasks.cephfs_test_runner:======================================================================
2018-04-23T18:14:50.070 INFO:tasks.cephfs_test_runner:ERROR: test_influx (tasks.mgr.test_module_selftest.TestModuleSelftest)
2018-04-23T18:14:50.070 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2018-04-23T18:14:50.070 INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
2018-04-23T18:14:50.070 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-sage3-testing-2018-04-23-0831/qa/tasks/mgr/test_module_selftest.py", line 43, in test_influx
2018-04-23T18:14:50.070 INFO:tasks.cephfs_test_runner:    self._selftest_plugin("influx")
2018-04-23T18:14:50.070 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-sage3-testing-2018-04-23-0831/qa/tasks/mgr/test_module_selftest.py", line 29, in _selftest_plugin
2018-04-23T18:14:50.070 INFO:tasks.cephfs_test_runner:    self.mgr_cluster.mon_manager.raw_cluster_cmd(module_name, "self-test")
2018-04-23T18:14:50.070 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-sage3-testing-2018-04-23-0831/qa/tasks/ceph_manager.py", line 1134, in raw_cluster_cmd
2018-04-23T18:14:50.071 INFO:tasks.cephfs_test_runner:    stdout=StringIO(),
2018-04-23T18:14:50.071 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/remote.py", line 193, in run
2018-04-23T18:14:50.071 INFO:tasks.cephfs_test_runner:    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
2018-04-23T18:14:50.071 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 423, in run
2018-04-23T18:14:50.071 INFO:tasks.cephfs_test_runner:    r.wait()
2018-04-23T18:14:50.071 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 155, in wait
2018-04-23T18:14:50.071 INFO:tasks.cephfs_test_runner:    self._raise_for_status()
2018-04-23T18:14:50.071 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 177, in _raise_for_status
2018-04-23T18:14:50.071 INFO:tasks.cephfs_test_runner:    node=self.hostname, label=self.label
2018-04-23T18:14:50.071 INFO:tasks.cephfs_test_runner:CommandFailedError: Command failed on smithi149 with status 124: 'sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 120 ceph --cluster ceph influx self-test'
2018-04-23T18:14:50.071 INFO:tasks.cephfs_test_runner:
2018-04-23T18:14:50.071 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2018-04-23T18:14:50.072 INFO:tasks.cephfs_test_runner:Ran 1 test in 147.604s
2018-04-23T18:14:50.072 INFO:tasks.cephfs_test_runner:
2018-04-23T18:14:50.072 INFO:tasks.cephfs_test_runner:FAILED (errors=1)
2018-04-23T18:14:50.072 INFO:tasks.cephfs_test_runner:
2018-04-23T18:14:50.072 INFO:tasks.cephfs_test_runner:======================================================================
2018-04-23T18:14:50.072 INFO:tasks.cephfs_test_runner:ERROR: test_influx (tasks.mgr.test_module_selftest.TestModuleSelftest)
2018-04-23T18:14:50.072 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2018-04-23T18:14:50.072 INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
2018-04-23T18:14:50.072 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-sage3-testing-2018-04-23-0831/qa/tasks/mgr/test_module_selftest.py", line 43, in test_influx
2018-04-23T18:14:50.072 INFO:tasks.cephfs_test_runner:    self._selftest_plugin("influx")
2018-04-23T18:14:50.072 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-sage3-testing-2018-04-23-0831/qa/tasks/mgr/test_module_selftest.py", line 29, in _selftest_plugin
2018-04-23T18:14:50.073 INFO:tasks.cephfs_test_runner:    self.mgr_cluster.mon_manager.raw_cluster_cmd(module_name, "self-test")
2018-04-23T18:14:50.073 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-sage3-testing-2018-04-23-0831/qa/tasks/ceph_manager.py", line 1134, in raw_cluster_cmd
2018-04-23T18:14:50.073 INFO:tasks.cephfs_test_runner:    stdout=StringIO(),
2018-04-23T18:14:50.073 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/remote.py", line 193, in run
2018-04-23T18:14:50.073 INFO:tasks.cephfs_test_runner:    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
2018-04-23T18:14:50.073 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 423, in run
2018-04-23T18:14:50.073 INFO:tasks.cephfs_test_runner:    r.wait()
2018-04-23T18:14:50.073 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 155, in wait
2018-04-23T18:14:50.073 INFO:tasks.cephfs_test_runner:    self._raise_for_status()
2018-04-23T18:14:50.073 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 177, in _raise_for_status
2018-04-23T18:14:50.073 INFO:tasks.cephfs_test_runner:    node=self.hostname, label=self.label
2018-04-23T18:14:50.073 INFO:tasks.cephfs_test_runner:CommandFailedError: Command failed on smithi149 with status 124: 'sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 120 ceph --cluster ceph influx self-test'

/a/sage-2018-04-23_15:07:57-rados-wip-sage3-testing-2018-04-23-0831-distro-basic-smithi/2430983

expected?

@jcsp
Copy link
Copy Markdown
Contributor

jcsp commented Apr 23, 2018

This isn't working because PyModuleRegistry skips starting modules when can_run=false.

I'll open a PR that tweaks the behaviour to get us back the ability to run the selftest bits.

@liewegas
Copy link
Copy Markdown
Member

Should this get merged as a partial fix, or wait?

@jcsp
Copy link
Copy Markdown
Contributor

jcsp commented Apr 23, 2018

See #21607

@liewegas liewegas closed this Apr 23, 2018
@tchaikov tchaikov deleted the wip-debian-requires-influx branch April 24, 2018 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants