https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2018-06-05T08:12:27ZCeph Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1146442018-06-05T08:12:27ZRicardo Diasrdias@suse.com
<ul></ul><p>Please make sure you have the "python-routes" package installed in your system.</p>
<pre>
apt-get install python-routes
</pre> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1146772018-06-06T03:41:03ZBenjamin Lu
<ul></ul><p>"sudo apt-get install python-routes" then restart cluster fixed the error. I wonder why during the cluster build, ceph does not giving any errors regarding the pkg missing ?</p>
<p>Thanks Richrdo Dias for help !</p>
<p>Close this bug now as fixed !</p>
<p>Ben</p> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1146852018-06-06T07:14:29ZLenz Grimmer
<ul></ul><p>Benjamin Lu wrote:</p>
<blockquote>
<p>"sudo apt-get install python-routes" then restart cluster fixed the error. I wonder why during the cluster build, ceph does not giving any errors regarding the pkg missing ?</p>
</blockquote>
<p>This is not a build dependency, but a runtime dependency that seems to have not been properly resolved by the package installer. Did you use pre-built Ceph packages, or did you build from source?</p> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1147222018-06-07T04:44:56ZBenjamin Lu
<ul></ul><p>I used "ceph-deploy" for ceph pkg installation:</p>
<p>$ ceph-deploy install --release mimic <ceph-node></p> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1149712018-06-12T09:49:43ZNathan Cutlerncutler@suse.cz
<ul><li><strong>Project</strong> changed from <i>mgr</i> to <i>Ceph-deploy</i></li><li><strong>Category</strong> deleted (<del><i>132</i></del>)</li><li><strong>Assignee</strong> deleted (<del><i>Lenz Grimmer</i></del>)</li><li><strong>Target version</strong> deleted (<del><i>v13.2.0</i></del>)</li></ul> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1149722018-06-12T09:52:24ZNathan Cutlerncutler@suse.cz
<ul></ul><p>@Benjamin: Please consider using ceph-ansible instead of ceph-deploy</p>
<p><a class="external" href="http://docs.ceph.com/ceph-ansible/master/">http://docs.ceph.com/ceph-ansible/master/</a></p> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1152952018-06-19T17:00:37ZAlfredo Dezaadeza@redhat.com
<ul><li><strong>Project</strong> changed from <i>Ceph-deploy</i> to <i>mgr</i></li><li><strong>Category</strong> set to <i>132</i></li></ul><p>I actually think this is a packaging error, ceph-deploy isn't doing anything odd here</p> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1152982018-06-19T17:03:55ZJohn Sprayjcspray@gmail.com
<ul></ul><p>I think I might have had a similar issue at some stage, that on some platforms we were getting python-routes as a side-effect of another package, but not always. Annoyingly I think I just hacked around it at the time.</p>
<p>We probably need an explicit dependency added to the packaging.</p> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1177452018-07-25T13:26:21ZRicardo Diasrdias@suse.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1326152019-03-22T22:50:10ZHans van den Bogerthansbogert@gmail.com
<ul></ul><p>What was the resolution? I'm still hitting this with Nautilus. Seems to me the ceph-mgr-dashboard still needs python-routes as a dependency</p> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1399552019-07-02T16:07:50ZKefu Chaitchaikov@gmail.com
<ul></ul><pre>
$ grep -C5 routes /usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py
Set full_result to True if you wish the controller
and the action to be passed on to the page handler
parameters. By default they won't be.
"""
import routes
self.full_result = full_result
self.controllers = {}
self.mapper = routes.Mapper(**mapper_options)
self.mapper.controller_scan = self.controllers.keys
def connect(self, name, route, controller, **kwargs):
self.controllers[name] = controller
self.mapper.connect(name, route, controller=name, **kwargs)
--
else:
cherrypy.serving.request.handler = cherrypy.NotFound()
def find_handler(self, path_info):
"""Find the right page handler, and set request.config."""
import routes
request = cherrypy.serving.request
config = routes.request_config()
config.mapper = self.mapper
if hasattr(request, 'wsgi_environ'):
config.environ = request.wsgi_environ
config.host = request.headers.get('Host', None)
config.protocol = request.scheme
</pre> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1399602019-07-02T16:12:01ZRicardo Marquesrimarques@suse.com
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Fix Under Review</i></li><li><strong>Pull request ID</strong> set to <i>28835</i></li></ul> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1401072019-07-04T17:04:34ZKefu Chaitchaikov@gmail.com
<ul><li><strong>Status</strong> changed from <i>Fix Under Review</i> to <i>Pending Backport</i></li><li><strong>Backport</strong> set to <i>mimic, nautilus</i></li></ul> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1401712019-07-08T12:40:20ZNathan Cutlerncutler@suse.cz
<ul><li><strong>Copied to</strong> <i><a class="issue tracker-9 status-6 priority-4 priority-default closed" href="/issues/40690">Backport #40690</a>: mimic: Module 'dashboard' has failed: No module named routes</i> added</li></ul> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1401732019-07-08T12:40:27ZNathan Cutlerncutler@suse.cz
<ul><li><strong>Copied to</strong> <i><a class="issue tracker-9 status-3 priority-4 priority-default closed" href="/issues/40691">Backport #40691</a>: nautilus: Module 'dashboard' has failed: No module named routes</i> added</li></ul> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1738452020-08-27T12:10:21ZLenz Grimmer
<ul><li><strong>Status</strong> changed from <i>Pending Backport</i> to <i>Resolved</i></li></ul> Dashboard - Bug #24420: Module 'dashboard' has failed: No module named routeshttps://tracker.ceph.com/issues/24420?journal_id=1908652021-04-15T17:20:03ZErnesto Puerta
<ul><li><strong>Project</strong> changed from <i>mgr</i> to <i>Dashboard</i></li><li><strong>Category</strong> changed from <i>132</i> to <i>General</i></li></ul>