Exemple #1
0
def main():
    """ Run the script """
    os.system('cp ../config.xml config/config.xml')
    os.system('cp ../network.xml config/network.xml')
    config = Configuration('../config.ini')
    results = begin_all_sims(config)
    save_results(results, 'rawResults.pkl')
Exemple #2
0
 def __init__(self, url: str, ssh_keyfile: str, keypass: Credential):
     self.__config = Configuration()
     self.__config.load()
     self.__raw_version = self.__config[SettingKeyNames.CBS_VERSION]
     self.__url = url
     self.__ssh_keyfile = ssh_keyfile
     self.__ssh_keypass = keypass
     (self.__version, self.__build) = CouchbaseServerInstaller._parse_version(self.__raw_version)
Exemple #3
0
def main():
    """ Main execution point """
    try:
        source_folder = sys.argv[1]
        destination_folder = sys.argv[2]
    except Exception:
        print('Please provide the path to source and destination folders.')
    else:
        folders = ['packages', 'router', 'routing_algos']
        config = Configuration('../config.ini')
        copy_folders(source_folder, destination_folder, folders)
        setup(destination_folder, folders, config)
        elif options.odma_mode.lower() == "st_1024":
            options.predefined_config = "hdl_unit_sim.odma_st_1024.defconfig"
        else:
            options.predefined_config = "hdl_unit_sim.odma.defconfig"
    else:
        options.predefined_config = "hdl_unit_sim.bridge.defconfig"

if __name__ == '__main__':
    msg.ok_msg_blue("--------> WELCOME to IBM OpenCAPI Acceleration Framework")
    question_and_answer = qa.QuestionAndAnswer(options)

    question_and_answer.ask(qa.ask_clean_str)
    if options.clean:
        env_clean(ocaccel_workflow_log)

    cfg = Configuration(options)
    cfg.log = ocaccel_workflow_log
    question_and_answer.cfg = cfg
    question_and_answer.ask(qa.ask_configure_str)
    if not options.no_configure:
        cfg.configure()

    # In unit sim mode, all configurations are handled automatically, no need to update the cfg
    if not options.unit_sim:
        cfg.update_cfg()

    if not options.no_env_check:
        env_check(options)

    question_and_answer.ask(qa.ask_make_model_str)
    if not options.no_make_model and options.simulator.lower() != "nosim":
Exemple #5
0
            print("...All nodes healthy")
            break

        for s in range(5):
            print(".", end="")
            time.sleep(1)

        print()

    if not ready:
        raise Exception("Server nodes failed to become healthy!")


if __name__ == "__main__":
    parser = ArgumentParser(prog="install_couchbase_server")
    config = Configuration()
    config.load()

    parser.add_argument("keyname", action="store", type=str,
                        help="The name of the SSH key that the EC2 instances are using")
    parser.add_argument("--region", action="store", type=str, dest="region",
                        default=config.get(SettingKeyNames.AWS_REGION),
                        help="The EC2 region to query (default %(default)s)")
    parser.add_argument("--server-name-prefix", action="store", type=str, dest="servername",
                        default=config.get(SettingKeyNames.CBS_SERVER_PREFIX),
                        help="The name of the server to use to reset the Couchbase cluster (default %(default)s)")
    parser.add_argument("--ssh-key", action="store", type=str, dest="sshkey",
                        help="The key to connect to EC2 instances")
    parser.add_argument("--setup-only", action="store_true", dest="setuponly",
                        help="Skip the program installation, and configure only")
    parser.add_argument("--username", action="store", default=config.get(SettingKeyNames.CBS_ADMIN),
Exemple #6
0
 def run(self):  # 2. Implement run()
     self.configuration = Configuration(self)
     window = DownloaderWindow(self.app, self)
     window.show()
     return self.app.exec_()  # 3. End run() with this line