def _logic(self): self.content = stow({ }) self.setup = stow({ 'template':'clusterservicecreateguide_b' })
def _logic(self): self.content = stow({ }) self.setup = stow({ 'template':'clusterlicense' })
def _logic(self): clusterlogs = clusloglib.func_log_filter() self.content = stow({'clusterlogs': clusterlogs}) self.setup = stow({ 'template': 'clusterlogload' #'jstemplate':['datatable_ZH'] })
def _logic(self): clusternodes = clusnodelib.func_node_list_all('True') self.content = stow({'clusternodes': clusternodes}) self.setup = stow({ 'template': 'clusterguide_nodeload', 'jstemplate': ['datatable_ZH'] })
def _logic(self): unit = session.runtime.unit clusterservices = clusservicelib.func_service_list_all(unit) self.content = stow({'clusterservices': clusterservices, 'unit': unit}) self.setup = stow({ 'template': 'clusterguide_serviceload', 'jstemplate': ['datatable_ZH'] })
def _logic(self): clusternodes = clusnodelib.func_node_list_all('True') print >> sys.stderr, session self.content = stow({'clusternodes': clusternodes}) self.setup = stow({ 'template': 'clusternodeload' #'jstemplate':['datatable_ZH'] })
def _logic(self): self.content = stow({ }) self.setup = stow({ 'template':'clusterservice', 'breadcrumbs':['clusterservice'] })
def _logic(self): self._checknode() node = session.runtime.node clusternodeifaceinfo = clusnodelib.func_node_iface_info(node) self.content = stow({'clusternodeifaceinfo': clusternodeifaceinfo}) self.setup = stow({ 'jstemplate': ['datatable_ZH'], 'template': 'clusternodenetworkload' })
def _logic(self): clusterservicediskinfo = [] clusterservicedisk = clusnodelib.func_node_disk_info() for disk in clusterservicedisk: if disk['status'] == 'unused': clusterservicediskinfo.append(disk) self.content = stow( {'clusterservicediskinfo': clusterservicediskinfo}) self.setup = stow({'template': 'clusterservicecreateguide_c'})
def _logic(self): params = web.input() service_name = params['service_name'] self.setup = stow({ 'template':'clusterservicenfschecklinks' }) self.content = stow({ 'service_name':service_name })
def _logic(self): self._checknode() node = session.runtime.node clusternodenicinfo = clusnodelib.func_node_iface_info(node) for iface in clusternodenicinfo: if re.match('^bond', iface['devname']): clusternodenicinfo.pop(clusternodenicinfo.index(iface)) self.content = stow({'clusternodenicinfo': clusternodenicinfo}) self.setup = stow({'template': 'clusternodesetipaddr'})
def _logic(self): clustergroups = clusgrouplib.func_group_list_all() self.content = stow({ 'nodewithoutgroupname': settings.nodewithoutgroupname, 'clustergroups': clustergroups }) self.setup = stow({ 'template': 'clusterguide_groupload', 'jstemplate': ['datatable_ZH'] })
def _logic(self): params = web.input() print >> sys.stderr, params service_name = params['service_name'] self.setup = stow({ 'template':'clusterservicenfsmanage' }) self.content = stow({ 'service_name':service_name })
def _logic(self): node = session.runtime.node unit = session.runtime.unit clusternoderaid = [] clusternoderaidinfo = clusnodelib.func_node_list_raid(node, '') for raid in clusnodelib.func_node_disk_info(node): if raid['type'] == 'raid': clusternoderaid.append(raid['devname']) self.content = stow({'clusternoderaid': clusternoderaid}) self.setup = stow({'template': 'clusternoderaiddel_hs'})
def _logic(self): params = web.input() service = 'service' in params and params['service'] or None if service: session.runtime.service = service self.content = stow({ 'servicename': service }) self.setup = stow({ 'template':'clusterserviceviewload' })
def _logic(self): params = web.input() clusterclientnodes = clusservicelib.func_client_node_list_all(params['service_name']) #print >> sys.stderr, clusterclientnodes self.content = stow({ 'clusterclientnodes':clusterclientnodes }) self.setup = stow({ 'template':'clusterclientnodeload', #'jstemplate':['datatable_ZH'] })
def _logic(self): clusterservice=clusservicelib.func_service_list_all() '''clusterservice=[] serviceinfos = clusservicelib.func_service_list_all() for serviceinfo in serviceinfos: clusterservice.append(serviceinfo['servicename'])''' self.setup = stow({ 'template':'clusterservicesharemanage' }) self.content = stow({ 'clusterservice':clusterservice })
def _logic(self): params = web.input() ifacename = params['iface'] self._checknode() node = session.runtime.node clusternodenicinfo = clusnodelib.func_node_iface_info(node) clusternodeniciface = {} for iface in clusternodenicinfo: if ifacename in iface.values(): clusternodeniciface = iface self.content = stow({'clusternodeniciface': clusternodeniciface}) self.setup = stow({'template': 'clusternodesetipaddr_single'})
def _logic(self): #node = session.runtime.node params = web.input() node = params['node'] unit = session.runtime.unit clusternodediskunused = [] for disk in clusnodelib.func_node_disk_info(node, unit): if disk['status'] == 'unused' and disk['type'] != 'raid': clusternodediskunused.append(disk['devname']) self.content = stow({ 'clusternodediskunused': clusternodediskunused, }) self.setup = stow({'template': 'clusternoderaidcreate'})
def _logic(self): #unit = session.runtime.unit params = web.input() unit = 'unit' in params and params['unit'] or None clusterservices = clusservicelib.func_service_list_all(unit) self.content = stow({ 'clusterservices':clusterservices, 'unit':unit }) self.setup = stow({ 'template':'clusterserviceload', 'jstemplate':['datatable_ZH'] })
def _logic(self): params = web.input() bricks = clusservicelib.func_raidlv_detail(params['service_name']) #print >> sys.stderr, bricks self.content = stow({ 'bricks': bricks, 'service_name':params['service_name'], 'afr':params['afr'], 'key':0 }) self.setup = stow({ 'template':'clusterserviceraidlvdetail', #'jstemplate':['datatable_ZH'] })
def _logic(self): node = session.runtime.node clusternodediskunused = [] clusternoderaid = [] for disk in clusnodelib.func_node_disk_info(node): if disk['status'] == 'unused' and disk['type'] != 'raid': clusternodediskunused.append(disk['devname']) if disk['type'] == 'raid' and disk['vandor'] != '0': clusternoderaid.append(disk['devname']) self.content = stow({ 'clusternodediskunused': clusternodediskunused, 'clusternoderaid': clusternoderaid }) self.setup = stow({'template': 'clusternoderaidset_hs'})
def _logic(self): self._checknode() node = session.runtime.node clusternodeifaceinfo = clusnodelib.func_node_iface_info(node) self.content = stow({'clusternodeifaceinfo': clusternodeifaceinfo}) self.setup = stow({ 'template': 'clusternodenetwork', 'breadcrumbs': ['clusternode', 'clusternodeview', 'clusternodenetwork'], 'menus': gmenus, 'currmenu': 'clusternodenetwork' })
def _logic(self): node = session.runtime.node unit = session.runtime.unit clusternodediskinfo = clusnodelib.func_node_disk_info(node, unit) clusternoderaidinfo = clusnodelib.func_node_raid_info(node, unit) self.content = stow({ 'clusternodediskinfo': clusternodediskinfo, 'clusternoderaidinfo': clusternoderaidinfo, 'unit': unit, 'is_unused': '0' }) self.setup = stow({ 'jstemplate': ['datatable_ZH'], 'template': 'clusternoderaidload', })
def _logic(self): params = web.input() service= session.runtime.service unit = session.runtime.unit mydict = {} #clusterservices = clusservicelib.func_service_list_disk(service) mydict = clusservicelib.func_service_afr_info_search(service,) print >> sys.stderr,mydict self.content = stow({ # 'clusterservices':clusterservices, 'mydict':mydict }) self.setup = stow({ 'template':'clusterserviceviewload', })
def _logic(self): #params = web.input() #service_name = params['service_name'] self.setup = stow({ 'template':'clusterservicenfsusermanage' }) '''self.content = stow({
def _logic(self): params = web.input() unit = session.runtime.unit disk_arr = clusnodelib.func_node_disk_info('',unit) unuse_disk=[] for disk in disk_arr: if disk['status']=='unused': unuse_disk.append(disk['nodename']+':'+disk['devname']) unuse_disk_str=','.join(unuse_disk) self.content = stow({ 'service_name':params['service_name'], 'disk':params['disk'], 'unuse_disk_str':unuse_disk_str, }) self.setup = stow({ 'template':'clusterservicediskreplace', })
def _logic(self): #node = session.runtime.node node = '' unit = session.runtime.unit clusternodediskinfo = clusnodelib.func_node_disk_info(node,unit) clusternoderaidinfo = clusnodelib.func_node_raid_info(node,unit) self.content = stow({ 'clusternodediskinfo':clusternodediskinfo, 'clusternoderaidinfo':clusternoderaidinfo, 'is_service':'1' }) self.setup = stow({ 'template':'clusternodedisk', #'breadcrumbs':['clusternode','clusternodeview','clusternodedisk'], #'menus':gmenus, #'currmenu':'clusternodedisk', })
def _logic(self): node = session.runtime.node unit = session.runtime.unit clusternodediskunused = [] clusterwarnservice = [] clusterservice = [] for disk in clusnodelib.func_node_disk_info(node, unit): if disk['status'] == 'unused' and disk['type'] != 'raid': clusternodediskunused.append(disk['devname']) serviceinfos = clusservicelib.func_service_list_all() for serviceinfo in serviceinfos: clusterservice.append(serviceinfo['servicename']) if 'status' in serviceinfo and serviceinfo['status'] == 'Warnning': clusterwarnservice.append(serviceinfo['servicename']) self.content = stow({ 'clusternodediskunused': clusternodediskunused, 'clusterwarnservice': clusterwarnservice, 'clusterservice': clusterservice }) self.setup = stow({'template': 'clusternodereplacenodisk'})
def GET(self): params = web.input() lang = session.user.lang self._jsrender() content = stow({ 'title': settings.procname, 'lang': lang, 'javascript_files': self.setup['javascript_files'] }) if 'redirect_url' in params: content['redirect_url'] = params['redirect_url'] return render.login(content)