Changeset 6293


Ignore:
Timestamp:
Nov 15, 2017, 12:34:30 PM (2 years ago)
Author:
Juanma
Message:

removed debug mode

Location:
zero-lliurex-mirror-redirect/trunk/fuentes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • zero-lliurex-mirror-redirect/trunk/fuentes/debian/changelog

    r6220 r6293  
     1zero-lliurex-mirror-redirect (0.5-lliurex1) xenial; urgency=medium
     2
     3  * Add n4d-nfs>=0.6.2 dependency
     4
     5 -- Juanma Navarro Mañez <juanma1980@gmail.com>  Wed, 15 Nov 2017 12:33:46 +0100
     6
    17zero-lliurex-mirror-redirect (0.5) xenial; urgency=medium
    28
  • zero-lliurex-mirror-redirect/trunk/fuentes/debian/control

    r6222 r6293  
    88Package: zero-lliurex-mirror-redirect
    99Architecture: all
    10 Depends: python-n4dgtklogin 
     10Depends: python-n4dgtklogin,n4d-nfs>=0.6.2
    1111Description: Redirects mirror to master server
    1212 Redirects mirror on a slave server to the master server
  • zero-lliurex-mirror-redirect/trunk/fuentes/zero-lliurex-mirror-redirect.install/usr/sbin/mirror-redirect.py

    r6241 r6293  
    2020        def __init__(self,callback):
    2121                threading.Thread.__init__(self)
    22                 self.dbg=1
     22                self.dbg=9
    2323                self.sw_slave=False
    2424                self.master_ip=''
     
    5959                sw_enabled=False
    6060                self.slave_ip=self._get_replication_ip()
    61                 sw_enabled=self.n4dMaster.is_mirror_shared("","NfsManager","/net/mirror/llx16",self.slave_ip)['status']
     61                try:
     62                        sw_enabled=self.n4dMaster.is_mirror_shared("","NfsManager","/net/mirror/llx16",self.slave_ip)['status']
     63                except:
     64                        sw_enabled=False
    6265                return(sw_enabled)
    6366        #def is_enabled
     
    6972                                os.makedirs(self.mirror_dir)
    7073                        except:
    71                                 print("Can't create dir %s"%self.mirror_dir)
     74                                self._debug("Can't create dir %s"%self.mirror_dir)
    7275               
    7376                try:
     
    7578                        if not self.n4d.is_mount_configured(self.credentials,"NfsManager",self.mirror_dir)['status']:
    7679                                self.n4d.configure_mount_on_boot(self.credentials,"NfsManager",self.master_ip+":"+self.mirror_dir,self.mirror_dir)
    77                                 print("Mounting on boot")
     80                                self._debug("Mounting on boot")
    7881                except Exception as e:
    7982                        print(e)
Note: See TracChangeset for help on using the changeset viewer.