-
-from module import * # NOQA
+from .module import Module
-from module import * # NOQA
+from .module import Module, StandbyModule
import json
from mgr_module import CommandResult
-from remote_view_cache import RemoteViewCache
+from .remote_view_cache import RemoteViewCache
class CephFSClients(RemoteViewCache):
import cherrypy
import jinja2
-import urlparse
+try:
+ import urlparse
+except ImportError:
+ import urllib.parse as urlparse
from mgr_module import MgrModule, MgrStandbyModule, CommandResult
-from types import OsdMap, NotFound, Config, FsMap, MonMap, \
+from .types import OsdMap, NotFound, Config, FsMap, MonMap, \
PgSummary, Health, MonStatus
-import rbd_iscsi
-import rbd_mirroring
-from rbd_ls import RbdLs, RbdPoolLs
-from cephfs_clients import CephFSClients
-from rgw import RGWDaemons
+from . import rbd_iscsi
+from . import rbd_mirroring
+from .rbd_ls import RbdLs, RbdPoolLs
+from .cephfs_clients import CephFSClients
+from .rgw import RGWDaemons
log = logging.getLogger("dashboard")
import rados
import rbd
-from remote_view_cache import RemoteViewCache
+from .remote_view_cache import RemoteViewCache
SERVICE_TYPE = 'tcmu-runner'
import rbd
import rados
-from types import OsdMap
-from remote_view_cache import RemoteViewCache
+from .types import OsdMap
+from .remote_view_cache import RemoteViewCache
class RbdPoolLs(RemoteViewCache):
def _get(self):
import re
import rados
import rbd
-from remote_view_cache import RemoteViewCache
+from .remote_view_cache import RemoteViewCache
class DaemonsAndPools(RemoteViewCache):
def _get(self):
# -*- code: utf-8 -*-
import json
-from remote_view_cache import RemoteViewCache
+from .remote_view_cache import RemoteViewCache
import logging
-from module import * # NOQA
+from .module import Module
-
-from module import * # NOQA
+from .module import Module
-from module import * # NOQA
+from .module import Module, StandbyModule
-from module import * # NOQA
+from .module import Module
from pecan import expose
from pecan.rest import RestController
-from config import Config
-from crush import Crush
-from doc import Doc
-from mon import Mon
-from osd import Osd
-from pool import Pool
-from request import Request
-from server import Server
+from .config import Config
+from .crush import Crush
+from .doc import Doc
+from .mon import Mon
+from .osd import Osd
+from .pool import Pool
+from .request import Request
+from .server import Server
class Root(RestController):
import traceback
-import module
+from . import module
class ErrorHook(PecanHook):
def on_error(self, stat, exc):
import traceback
import socket
-import common
+from . import common
from uuid import uuid4
from pecan import jsonify, make_app
from pecan.rest import RestController
from werkzeug.serving import make_server, make_ssl_devcert
-from hooks import ErrorHook
+from .hooks import ErrorHook
from mgr_module import MgrModule, CommandResult
# Global instance to share
-from module import *
+from .module import Module
-
-from module import * # NOQA
+from .module import Module
-from module import * # NOQA
+from .module import Module