Skip to content

Instantly share code, notes, and snippets.

View bk201's full-sized avatar
🏠

Kiefer Chang bk201

🏠
View GitHub Profile
Would you like to share anonymous usage data with the Angular Team at Google under
Google’s Privacy Policy at https://policies.google.com/privacy? For more details and
how to change this setting, see http://angular.io/analytics.
@bk201
bk201 / gist:9872b97784e7c63a68137ae7cf7086b2
Created August 13, 2019 03:19
tasks.mgr.dashboard.test_health.HealthTest.test_full_health
2019-08-13 03:13:30,663.663 INFO:__main__:Executing modules: ['tasks.mgr.dashboard.test_health.HealthTest.test_full_health']
2019-08-13 03:13:30,668.668 INFO:__main__:Loaded: [<unittest.suite.TestSuite tests=[<tasks.mgr.dashboard.test_health.HealthTest testMethod=test_full_health>]>]
2019-08-13 03:13:30,668.668 INFO:__main__:e: <unittest.suite.TestSuite tests=[<unittest.suite.TestSuite tests=[<tasks.mgr.dashboard.test_health.HealthTest testMethod=test_full_health>]>]>
2019-08-13 03:13:30,668.668 INFO:__main__:e: <unittest.suite.TestSuite tests=[<tasks.mgr.dashboard.test_health.HealthTest testMethod=test_full_health>]>
2019-08-13 03:13:30,668.668 INFO:__main__:Running ['ps', '-u0']
2019-08-13 03:13:30,674.674 WARNING:__main__:Killing stray process 5760 pts/1 00:00:00 ceph-mds
2019-08-13 03:13:30,677.677 INFO:__main__:Running ['stat', '--file-system', '--printf=%T\n', '--', '/tmp/tmpEMBlXj/mnt.0']
stat: cannot read file system information for '/tmp/tmpEMBlXj/mnt.0': No such file or directory
2019-08-13 03:1

Managed to bring up python3 mgr. Here are some tests:

python3 ceph orchestrator host ls: Fail

Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 915, in _handle_command
    return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 368, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator_cli/module.py", line 20, in wrapper
if (newCursor.moveToFirst()) {
do {
list.add(getPlaceRecordFromCursor(newCursor));
} while (newCursor.moveToNext());
}