- 概述
- 要求
- 安装
- 安装后
- 集群管理
- 监控和警示
- 迁移和升级
- 特定于产品的配置
- 最佳实践和维护
- 故障排除
- 如何在安装过程中对服务进行故障排除
- 如何卸载集群
- 如何清理离线工件以改善磁盘空间
- 如何清除 Redis 数据
- 如何启用 Istio 日志记录
- 如何手动清理日志
- 如何清理存储在 sf-logs 存储桶中的旧日志
- 如何禁用 AI Center 的流日志
- 如何对失败的 Automation Suite 安装进行调试
- 如何在升级后从旧安装程序中删除映像
- 如何自动清理 Longhorn 快照
- 如何禁用 TX 校验和卸载
- 如何手动将 ArgoCD 日志级别设置为 Info
- 如何为外部注册表生成已编码的 pull_secret_value
- 如何解决 TLS 1.2 中的弱密码问题
- 如何使用证书
- 如何使用集群内对象存储 (Ceph) 收集 DU 使用情况数据
- 如何在离线环境中安装 RKE2 SELinux
- 如何清理 NFS 服务器上的旧差异备份
- 无法获取沙盒映像
- Pod 未显示在 ArgoCD 用户界面中
- Redis 探测器失败
- RKE2 服务器无法启动
- 在 UiPath 命名空间中找不到密码
- ArgoCD 在首次安装后进入“进行中”状态
- 访问 ArgoCD 只读帐户时出现问题
- MongoDB Pod 处于 CrashLoopBackOff 状态或在删除后处于“等待 PVC 配置”状态
- 集群还原或回滚后服务运行状况不佳
- Pod 在 Init:0/X 中卡住
- Prometheus 处于 CrashLoopBackoff 状态,并出现内存不足 (OOM) 错误
- 监控仪表板中缺少 Ceph-rook 指标
- Pod 无法在代理环境中与 FQDN 通信
- 无法配置升级后的电子邮件警示
- 无正常的上游问题
- 使用 Automation Suite 诊断工具
- 使用 Automation Suite 支持捆绑包
- 探索日志
Ansible 用于通过在集群中的一台计算机上执行某些操作来自动升级整个 Automation Suite 集群。
在下图中,服务器 1节点(或 Ansible 主机节点)使用 Ansible 协调整个 Automation Suite 集群的升级。
准备
Before upgrading, make sure you have prepared your environment for using the uipathctl.sh script. For details, see Using uipathctl.sh.
确保所有节点上的/opt/UiPathAutomationSuite文件夹都有 10GB 的可用空间。 如果空间不足,您可以增加此文件夹的容量,也可以删除除cluster_config.json之外的所有以前的安装程序文件。 您随时可以再次下载以前的安装程序。
要验证可用空间,请运行以下命令: df -h /opt/UiPathAutomationSuite 。
要准备升级,请执行以下步骤:
-
Log into the server node that you previously identified as the Ansible host node via SSH.
-
成为根用户。
sudo su -sudo su - -
在
/opt/UiPathAutomationSuite目录下创建一个安装文件夹。# Please replace {version} with installer version mkdir -p /opt/UiPathAutomationSuite/{version}/installer# Please replace {version} with installer version mkdir -p /opt/UiPathAutomationSuite/{version}/installer -
Download
as-installer.zipand copy it to/opt/UiPathAutomationSuite/{version}/installer. For download instructions, see as-installer.zip.cp /path/to/as-installer.zip /opt/UiPathAutomationSuite/{version}/installercp /path/to/as-installer.zip /opt/UiPathAutomationSuite/{version}/installer -
解压缩
as-installer.zip。cd /opt/UiPathAutomationSuite/{version}/installer unzip as-installer.zip -d .cd /opt/UiPathAutomationSuite/{version}/installer unzip as-installer.zip -d . -
为安装程序提供必要的权限。
chmod 755 -R /opt/UiPathAutomationSuite/{version}/installer .chmod 755 -R /opt/UiPathAutomationSuite/{version}/installer . -
在 Ansible 主机节点上生成最新的
cluster_config.json文件。备注:For details on how to configure the
cluster_config.jsonparameters, see Advanced installation experience.-
如果您有旧的
cluster_config.json,请从集群生成配置文件:cd /opt/UiPathAutomationSuite/{version}/installer ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o ./cluster_config.jsoncd /opt/UiPathAutomationSuite/{version}/installer ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o ./cluster_config.json -
如果您没有旧的
cluster_config.json文件,请生成任何默认值的覆盖,您可能在以前的版本安装时已完成此操作:cd /opt/UiPathAutomationSuite/{version}/installer ./configureUiPathAS.sh config get -o ./cluster_config.jsoncd /opt/UiPathAutomationSuite/{version}/installer ./configureUiPathAS.sh config get -o ./cluster_config.json -
If you upgrade from Automation Suite 2022.10 to Automation Suite 2023.4 or later, and Orchestrator is enabled on both the old and new versions, you must set the
orchestrator.block_classic_executionsflag totruein thecluster_config.jsonfile. Using the flag shows that you agree with blocking classic folders executions. Not using the flag causes the upgrade operation to fail. For a configuration example, see Orchestrator-specific configuration. -
If you upgrade Automation Suite from a previous version and now enable Process Mining as well, you must update the
sql_connection_string_template_sqlalchemy_pyodbc. Below is an example."sql_connection_string_template_sqlalchemy_pyodbc": "mssql+pyodbc://testadmin@sfmfup20211043125452-8926d153-sql.database.windows.net:sgTQrg%40R%40dvoYddYBoKn045ncoC9WhWU@sfmfup20211043125452-8926d153-sql.database.windows.net:1433/DB_NAME_PLACEHOLDER?driver=ODBC+Driver+17+for+SQL+Server""sql_connection_string_template_sqlalchemy_pyodbc": "mssql+pyodbc://testadmin@sfmfup20211043125452-8926d153-sql.database.windows.net:sgTQrg%40R%40dvoYddYBoKn045ncoC9WhWU@sfmfup20211043125452-8926d153-sql.database.windows.net:1433/DB_NAME_PLACEHOLDER?driver=ODBC+Driver+17+for+SQL+Server" -
If you upgrade Automation Suite from a version previous to 2023.4 and you have Apps enabled, you must create the SQL database for Apps, and then update the
cluster_config.jsonfile with the following configuration:"apps": { "enabled": "true" // This will already be true in existing cluster_config.json if apps is enabled "sql_connection_str": "" // Provide ODBC database connection string if apps is enabled }"apps": { "enabled": "true" // This will already be true in existing cluster_config.json if apps is enabled "sql_connection_str": "" // Provide ODBC database connection string if apps is enabled }备注:在后续升级步骤中使用更新的 cluster_config.json 文件。
-
See also Manual: Advanced installation experience.
If you previously deployed your single-node installation using any Azure template version prior to 2022.10.3, and you now want to upgrade to a newer Automation Suite version, you must set the zone_resilience flag to false in the cluster_config.json file in /opt/UiPathAutomationSuite/Installer.
执行
配置备份
要配置备份,请执行以下步骤:
-
Make sure you have enabled the backup on the cluster. You must create the backup using the same version of the installer as the one you used for the current deployment. For instructions, see the backup and restore documentation corresponding to the Automation Suite version from which you plan to upgrade. For instance, if you plan to upgrade from Automation Suite 2021.10, follow the instructions in the 2021.10 guide.
-
Log into the server node that you previously identified as the Ansible host node via SSH.
-
验证集群中是否所有所需的卷都有备份:
/path/to/old-installer/configureUiPathAS.sh verify-volumes-backup/path/to/old-installer/configureUiPathAS.sh verify-volumes-backup备注:备份可能需要一些时间,因此请等待大约 15 至 20 分钟,然后再次验证卷备份。
创建备份后,请继续执行以下步骤。
将集群置于维护模式
将集群置于维护模式将关闭入口控制器和所有 UiPath 服务,并阻止进入 Automation Suite 集群的所有传入流量。
此操作将导致停机,并且您的业务自动化将在整个升级过程中暂停。
-
要将集群置于维护模式,请运行:
cd /opt/UiPathAutomationSuite/{version}/installer ./configureUiPathAS.sh enable-maintenance-modecd /opt/UiPathAutomationSuite/{version}/installer ./configureUiPathAS.sh enable-maintenance-mode -
要验证集群是否处于维护模式,请运行:
./configureUiPathAS.sh is-maintenance-enabled./configureUiPathAS.sh is-maintenance-enabled重要提示:启用维护模式后,创建 SQL Server 的备份,以便 SQL 数据库中不再记录任何事务。
升级集群
要升级 Automation Suite 集群,请执行以下步骤:
-
通过 SSH 连接到 Ansible 主机节点,并成为根用户。
-
要在所有节点上执行升级步骤,请使用基本参数运行以下命令。 如需更精细的控制,请参阅参数部分。
备注:确保已按照准备步骤中的说明更新生成的
cluster_config.json。./uipathctl.sh upgrade --cluster-config ./cluster_config.json --install-type online --steps all --accept-license-agreement./uipathctl.sh upgrade --cluster-config ./cluster_config.json --install-type online --steps all --accept-license-agreement重要提示:升级过程需要从 Canal CNI 迁移到 Cilium CNI。 自动升级会自动执行此步骤,然后重新启动集群中的所有节点以完成迁移。
重新启动节点后,请等待几分钟,以确保所有服务再次联机。 您可以登录 ArgoCD 以监控所有应用程序的状态。
重要提示:If you get the following error, follow the instructions in Downgrading Ceph from 16.2.6 to 15.2.9.
Ceph cluster is running on version: 16.2.6 with known bug(https://docs.ceph.com/en/quincy/releases/pacific/#v16-2-6-pacific). Please provide temporary backup directory (via environment variable 'TMP_CEPH_BACKUP_PATH') to downgrade ceph
基本参数
| 参数 | 值 |
|---|---|
|
|
可能的值: 由于此页面提供了在线环境的说明,因此请选择 |
|
|
可能的值包括:
如果升级期间发生错误,您可以使用这些检查点恢复升级操作,而不是从头开始重试。 |
|
|
|
高级参数
| 参数 | 值 |
|---|---|
--ansible-username | 指定用于与所有节点的 SSH 连接的用户名。 默认为当前用户。 如果您对所有节点使用不同的用户名,则不要使用此参数,而是在inventory.ini中设置所有节点的用户名,并将其传递给脚本。示例: 运行脚本时,您将以 myadminuser用户名登录。 但是,如果要使用testadmin用户名通过 SSH 连接,则必须为此参数提供testadmin 。 |
--inventory | 指定现有的 Ansible 清单文件。 如果未指定,系统将使用基本配置从现有集群自动生成一个。 在某些情况下,您希望进行更精细的控制,您可能需要提供自己的清单文件。 例如,如果您想对集群中的所有节点使用不同的 SSH 用户名或 SSH 密钥。 For details, see Generating the Ansible inventory.ini file. |
升级完成后,维护模式将自动禁用。
执行升级后,您可以执行以下附加步骤。
-
要验证 Automation Suite 是否运行正常,请运行:
kubectl get applications -n argocdkubectl get applications -n argocd -
从低于 2023.4.0 的 Automation Suite 版本升级时,请验证 Apps 是否正在运行,然后删除 MongoDB:
./configureUiPathAS.sh mongodb uninstall --force./configureUiPathAS.sh mongodb uninstall --force -
如果您在使用
./configureUiPathAS.sh mongodb uninstall --force命令删除 MongoDB 时遇到错误,请运行以下命令:kubectl patch application "fabric-installer" -n argocd --type=merge -p '{"spec" : {"syncPolicy" : {"automated" : {"selfHeal": false }}}}' ./configureUiPathAS.sh mongodb uninstall --force kubectl patch application "fabric-installer" -n argocd --type=merge -p '{"spec" : {"syncPolicy" : {"automated" : {"selfHeal": true }}}}'kubectl patch application "fabric-installer" -n argocd --type=merge -p '{"spec" : {"syncPolicy" : {"automated" : {"selfHeal": false }}}}' ./configureUiPathAS.sh mongodb uninstall --force kubectl patch application "fabric-installer" -n argocd --type=merge -p '{"spec" : {"syncPolicy" : {"automated" : {"selfHeal": true }}}}' -
If you experience issues with image vulnerabilities or storage consumption after performing an upgrade, delete the images from the old installer. For details, see the Troubleshooting section.
启用升级后备份
请确保 Automation Suite 已启动并正在运行,并且您的自动化按预期继续运行,然后再继续执行后续步骤。
在开始升级集群之前,升级脚本会自动创建集群的备份,然后暂时将其禁用。 升级完成后,您可能需要手动启用备份。
To enable the backup, follow the instructions in described in the Backing up and restoring the cluster documentation.
使用部署模板完成升级
After performing an Automation Suite cluster upgrade, Azure and AWS template deployments require some changes to ensure a new node joins the cluster correctly through scale-out operations. To automate the changes, we recommend using the dedicated scripts. For instructions, see the Azure deployment template docs and the AWS deployment template docs.
特别注意事项
对使用 Azure 模板部署的集群执行升级时,可能会出现类似于下图所示的错误:
这是由Azure 负载均衡器的工作方式所造成。要解决此问题,请修改cluster_config.json文件中的fixed_rke_address字段。在运行升级命令之前,您必须将此字段的值更改为第一个服务器实例的 IP 地址。由于节点运行状况不佳,上传到密钥保管库的cluster_config.json应继续具有 ILB 的 IP 地址,并且不会平衡到该节点的流量。