4.16.05 回滚流程

Edge for Private Cloud v. 4.16.05

在以下两种情况下,您可能需要执行回滚操作:

  1. 回滚到旧版本。例如,从 4.16.05 到 4.16.01。
  2. 在同一版本中回滚到旧版本。

请按照以下步骤在这两种情况下执行回滚。

谁可以执行回滚

执行回滚的用户应与最初更新 Edge 的用户相同,或者与以根用户身份运行的用户相同。

默认情况下,Edge 组件以用户“apigee”的形式运行。在某些情况下,您可能以不同的用户身份运行 Edge 组件。例如,如果路由器必须访问特权端口(例如 1000 以下的端口),您必须以 root 身份或有权访问这些端口的用户运行路由器。或者,也可以将其中一个组件作为一个用户来运行,另一个组件作为另一个用户运行。

可以回滚哪些组件

执行回滚时,您应注意以下条件:

  • 如需在节点上回滚以下五个组件中的任何一个,您必须回滚节点上安装的五个组件中的任何一个。例如,如果您在节点上安装了管理服务器、路由和消息处理器,那么如需回滚任一节点,都必须回滚所有三个节点。

    这五个要素包括:
    • 管理服务器
    • 路由器
    • 消息处理器
    • Qpid 服务器
    • Postgres 服务器
  • 请勿回滚 Cassandra。此版本的 Edge 包含与 4.16.01 版本兼容的 Cassandra 更新版本。如果您要回滚任何组件,请将 Cassandra 保留为 4.16.05 版本,以利用最新功能。
  • 此版本不包含新版本的 postgresql 或 qpidd。因此,您不必回滚它们。

回滚到 4.16.05

要回滚 Apigee Edge,请执行下列回滚步骤:

  1. 停止组件回滚:
    1. 如果要回滚以下任一组件,则必须停止所有此类组件:管理服务器、路由器、消息处理器、Qpid 服务器或 Postgres 服务器
      > apigee-service edge-management-server stop
      > apigee-service edge-router stop
      > apigee-service edge-message-processor stop
      > apigee-service stopservice
      -res Edge-qpid
    2. 如果要回滚任何其他组件,请仅停止该组件
      > apigee-service comp stop
  2. 如果要回滚创收功能,请将其卸载:
    > apigee-service edge-mint-portal 卸载
  3. 卸载要回滚的组件:
    1. 如果要回滚以下任一组件,然后全部卸载:管理服务器、路由器、消息处理器、Qpid 服务器或 Postgres 服务器
      > apigee-service edge-gateUninstall
    2. 如果要回滚任何其他组件,只需卸载该组件
      > apigee-service comp 卸载
  4. 如果您要回滚路由器,则必须删除 /opt/nginx/conf.d 的内容:
    > cd /opt/nginx/conf.d
    > rm -rf *
  5. 将组件回滚到 4.16.01 版本
    1. 卸载 4.16.05 版本的 apigee-setup:
      > /opt/apigee/apigee-service/bin/apigee-service apigee-setupUninstall
    2. 下载 bootstrap.sh 4.16.01 版:
      > curl https://software.apigee.com/bootstrap.sh -o /tmp/bootstrap.sh
    3. 安装 4.16.01 Edge apigee-service 实用程序和依赖项:
      > sudo bash /tmp/bootstrap.sh apigeeuser=uName apigeepassword=pWord
      其中,uNamepWord 是您从 Apigee 接收的用户名和密码。如果您省略 pWord,系统会提示您输入。
    4. 安装 4.16.01 版本的 apigee-setup
      > /opt/apigee/apigee-service/bin/apigee-service apigee-setup install
    5. 安装 4.16.01 版本的组件:
      > /<instal_dir>/apigee/apigee-setup/bin/setup.sh -p comp -f configFile
      其中 comp 是要安装的组件,configFile 是您的 4.16.01 配置文件。
  6. 如需将组件回滚到特定版本的 4.16.05 版本,请执行以下操作:
    1. 下载特定组件版本:
      > /<instal_dir>/apigee/apigee-service/bin/apigee-service comp-version install
      其中,comp-version 是要安装的组件和版本。例如:
      > /<instal_dir>/apigee/apigee-service/bin/apigee-service edge-ui-4.16.05-0.0.3649 安装
      如果您使用的是 Apigee 在线代码库,可以使用以下命令来确定可用的组件版本:
      > yum --showduplicates 示例列表

    2. 使用 apigee-setup 安装该组件:
      > /<install_dir>/apigee/apigee-setup/bin/setup.sh -p comp -f configFile
      例如:
      > /<install_dir>/apigee/apigee-setup/bin/setup.sh -p ui -f configfile

如果您在回滚时遇到问题,请与 Apigee 支持团队联系。