Ejemplo n.º 1
0
 def start(self, delay=0):
     if 'enabled' in self.rspec and self.rspec['enabled'] <= 0:
         logger.log('sliver_lxc: not starting %s, is not enabled'%self.name)
         return
     # the generic /etc/init.d/vinit script is permanently refreshed, and enabled
     self.install_and_enable_vinit()
     # expose .ssh for omf_friendly slivers
     if 'tags' in self.rspec and 'omf_control' in self.rspec['tags']:
         Account.mount_ssh_dir(self.name)
     Sliver_Libvirt.start (self, delay)
     # if a change has occured in the slice initscript, reflect this in /etc/init.d/vinit.slice
     self.refresh_slice_vinit()
 def start(self, delay=0):
     if 'enabled' in self.rspec and self.rspec['enabled'] <= 0:
         logger.log('sliver_lxc: not starting %s, is not enabled' %
                    self.name)
         return
     # the generic /etc/init.d/vinit script is permanently refreshed, and enabled
     self.install_and_enable_vinit()
     # expose .ssh for omf_friendly slivers
     if 'tags' in self.rspec and 'omf_control' in self.rspec['tags']:
         Account.mount_ssh_dir(self.name)
     Sliver_Libvirt.start(self, delay)
     # if a change has occured in the slice initscript, reflect this in /etc/init.d/vinit.slice
     self.refresh_slice_vinit()
Ejemplo n.º 3
0
    def start(self, delay=0):
        logger.log('==================== sliver_lxc.start {}'.format(self.name))
        if 'enabled' in self.rspec and self.rspec['enabled'] <= 0:
            logger.log('sliver_lxc: not starting {}, is not enabled'.format(self.name))
            return
        # the generic /etc/init.d/vinit script is permanently refreshed, and enabled
        self.install_and_enable_vinit()
        # expose .ssh for omf_friendly slivers
        if 'tags' in self.rspec and 'omf_control' in self.rspec['tags']:
            Account.mount_ssh_dir(self.name)
#        logger.log("NM is exiting for debug - just about to start {}".format(self.name))
#        exit(0)
        Sliver_Libvirt.start(self, delay)