UiPath Documentation
automation-suite
2023.10
false
Linux 版 Automation Suite 安装指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

步骤 8:迁移独立 Test Manager

通过将附件传输到 Automation Suite 中配置的目标存储空间,将独立的 Test Manager 迁移到 Automation Suite。

要将独立版 Test Manager 成功迁移到 Automation Suite,您需要执行以下步骤:

1.迁移 Test Manager 存储​

安装 Automation Suite 时,您还配置了所需的存储选项。您必须将所有 Test Manager 附件移动到 Automation Suite 实例使用的此目标存储空间。

要移动所有 Test Manager 附件,应使用 Test Manager 迁移脚本 ( testmanager_migrator.sh )。

备注:

如果要在最初保存附件的计算机以外的计算机上运行 Test Manager 迁移脚本,请先将所有附件移动到该不同的计算机。

要将 Test Manager 附件移动到 Automation Suite,请按照以下步骤操作:

  1. 如果独立 Test Manager 在独立安装中使用文件存储,请从独立 Test Manager 安装目录的appsettings.production.json文件中检索Storage.Location密钥。

    例如, Storage.Location键的默认值为C:\ProgramData\UiPath TestManager\Storage 。

  2. 将Storage目录的内容移动到要运行 Test Manager 迁移脚本的计算机。

    您可以使用以下命令复制存储内容:

    scp -r Storage/ <username>@<machine_ip or hostname>:~/storage
    scp -r Storage/ <username>@<machine_ip or hostname>:~/storage
    
  3. 运行 Test Manager 迁移脚本,以将 Test Manager 存储附件移动到外部对象存储或 Incluster Ceph 对象存储:

    • 要将附件移动到外部对象存储,请使用以下命令运行 Test Manager 迁移脚本:

      ./testmanager_migrator.sh -s <storage_folder_location> -y
      ./testmanager_migrator.sh -s <storage_folder_location> -y
      

      该脚本使用-s <storage_folder_location>参数指定要迁移的租户数据的根文件夹。

    • 要将附件移动到 Incluster Ceph 对象存储,请使用以下命令运行 Test Manager 迁移脚本:

      ./testmanager_migrator.sh -s <storage_folder_location> -is -y
      ./testmanager_migrator.sh -s <storage_folder_location> -is -y
      

      该脚本使用-s <storage_folder_location>参数指定要迁移的租户数据的根文件夹。

      备注:

      我们不建议在 Incluster Ceph 中移动 Test Manager 附件,因为它依赖于集群的状态,并且可扩展性有限。

结果:您的 Test Manager 附件在 Automation Suite 实例使用的目标存储中可用。

2. 更新数据库中的存储位置​

备注:

仅当您将 Test Manager 附件移至 Automation Suite 实例使用的外部对象存储时,此步骤才适用。

在将附件迁移到外部存储后,请按照以下步骤更新数据库中的文件夹层次结构和存储桶信息:

  1. 确认所有附件已成功迁移到外部存储。

  2. 在独立的 Test Manager 安装目录中,搜索 Test Manager 配置工具。

    您可以在默认安装位置找到与每个版本testmanager.exe打包的此工具,如下所示: C:\Program Files (x86)\UiPath\TestManager\Tools\TestManagerProvisioner 。或者,您可以在自定义安装文件夹中找到可执行文件。有关 Test Manager 配置工具的更多信息,请访问Test Manager 配置工具。

  3. 使用配置工具执行以下命令。

    testmanager.exe database updateStorageLocation -cs <connection string> -b <destination bucket name>
    testmanager.exe database updateStorageLocation -cs <connection string> -b <destination bucket name>
    

    将<connection string>和<destination bucket>替换为适合您环境的适当值:

    • <connection string> :输入目标 Automation Suite 实例的连接字符串。
    • <destination bucket> :指定对象存储中的目标存储桶的名称。

结果:数据库文件夹层次结构和存储桶信息已更新,以指向迁移的附件存储。

  • 1.迁移 Test Manager 存储​
  • 2. 更新数据库中的存储位置​

此页面有帮助吗?

连接

需要帮助? 支持(opens in new window)

想要了解详细内容? UiPath Academy(opens in new window)

有问题? UiPath 论坛(opens in new window)

保持更新