Changeset 4356


Ignore:
Timestamp:
Apr 20, 2017, 10:34:03 AM (2 years ago)
Author:
mabarracus
Message:

New method to check if mirror it's done through n4d

Location:
lmd/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lmd/trunk/fuentes/debian/changelog

    r4047 r4356  
     1lmd (2.7.2.2) xenial; urgency=medium
     2
     3  * New method to check if mirror it's done through n4d
     4
     5 -- M.Angel Juan <m.angel.juan@gmail.com>  Thu, 20 Apr 2017 10:33:07 +0200
     6
    17lmd (2.7.2.1) xenial; urgency=medium
    28
  • lmd/trunk/fuentes/lmd-server.install/usr/share/n4d/python-plugins/LmdImageManager.py

    r3263 r4356  
    312312                except Exception as e:
    313313                        return {'status': False, 'msg': str(e)}
    314                
     314        # New method to check without vars, this method allow mount the mirror by nfs without use lliurex-mirror
     315        #   check method relies into lliurex-version call, checking structure of files and dirs into /net/mirror/llx16
     316        #   architectures always be all or nothing due to assumption that lliurex-mirror mirror both architectures always.
    315317        def check_mirror(self):
     318                try:
     319                    subprocess.check_call(["lliurex-version","-x","mirror"], shell=True)
     320                   
     321                    #status will be mirrorReady, msg.llx16.ARCHITECTURES(list) will always be [i386,amd64]
     322                   
     323                    return {'status': True,'msg': {'llx16': {'ARCHITECTURES':['i386','amd64']}}}
     324                except Exception as e:
     325                    return {'status': False,'msg': str(e)}
     326       
     327        # OLD METHOD TO CHECK WITH VARS (Disabled)
     328        def check_mirror_with_vars(self):
    316329                try:
    317330                        response=objects['MirrorManager'].get_all_configs();
Note: See TracChangeset for help on using the changeset viewer.