Esempio n. 1
0
     pass
 else :
     
     print 'start to install======='
     #Glance DB Schema
     if GlanceHA.isMasterNode() :
         dbSchema_init_script_path = os.path.join(OPENSTACK_CONF_FILE_TEMPLATE_DIR, 'glance', 'glance_dbschema_init.sh')
         ShellCmdExecutor.execCmd('cp -r %s /opt/' % dbSchema_init_script_path)
         ShellCmdExecutor.execCmd('bash /opt/glance_dbschema_init.sh')
         pass
     #
     Glance.sourceAdminOpenRC()
     
     Glance.start()
     #add HA
     GlanceHA.install()
     GlanceHA.configure()
     GlanceHA.start()
     
     Glance.restart()
     GlanceHA.start
     
 #     os.system("service openstack-glance-api restart")
 #     os.system("service openstack-glance-registry restart")
 #     
 #     os.system("service haproxy restart")
     #mark: glance is installed
     os.system('touch %s' % INSTALL_TAG_FILE)
 
 print 'hello openstack-icehouse:glance#######'
 pass