1.3. Data Warehouse 和 Reports 的安装选项

Data Warehouse 和 Reports 可以通过以下形式之一进行安装,根据所选的安装形式,它需要 1 到 3 台机器。
  1. 在安装 Manager 的机器上安装并配置 Data Warehouse 和 Reports。

    这种安装形式只需要一台机器,配置的过程也是最简单的。但是,这需要 3 个服务共享主机的 CPU 和内存,从而增加了对主机负载的要求。那些需要访问 Data Warehouse 或 Reports 服务的用户将需要访问 Manager 所在机器的权限。

  2. 在一台独立的机器上安装并配置 Data Warehouse 和 Reports。

    这种安装形式需要 2 台注册的主机,但可以减少对 Manager 所在机器的负载要求,并可以避免潜在的、因为共享 CPU 和内存可能产生的冲突。系统管理员可以只为用户分配访问 Data Warehouse 和 Reports 所在机器的权限,而不需要为他们分配访问 Manager 所在机器的权限。请注意,Data Warehouse 服务和 Reports 服务仍然需要共享它们所在机器的资源。

  3. 在一台独立的机器上安装并配置 Data Warehouse,然后在另外一台机器上安装 Reports 服务。

    这种安装形式需要 3 台注册的主机,但是每个服务都有独立的机器。这可以减少对每台机器的负载要求,并可以避免潜在的、因为共享 CPU 和内存可能产生的冲突。系统管理员可以根据需要只为用户分配访问特定机器的权限,而不需要为他们分配其它机器的权限。

  4. 在 Manager 所在的机器上安装和配置 Data Warehouse,然后在一台独立的机器上安装并配置 Reports 服务。

    这种安装形式需要 2 台注册的主机,但可以减少对 Manager 所在机器的负载要求,并可以避免潜在的、因为共享内存可能产生的冲突。系统管理员可以只为用户分配访问 Reports 所在机器的权限,而不需要为他们分配访问 Manager 所在机器的权限。

  5. 在一台独立的机器上安装并配置 Data Warehouse,然后在安装 Manager 的机器上安装 Reports 服务。

    这种安装形式需要 2 台注册的主机,但可以减少对 Manager 所在机器的负载要求,并可以避免潜在的、因为共享内存可能产生的冲突。系统管理员可以只为用户分配访问 Data Warehouse 所在机器的权限,而不需要为他们分配访问 Manager 所在机器的权限。

如果选择在一台独立于安装 Data Warehouse 服务所在机器的系统上安装 Data Warehouse 数据库,则需要额外的一台机器。这也适用于在独立的机器上安装 Reprots 数据库。

注意

与 JasperReports 相关的信息可以在 /usr/share/jasperreports-server-pro/docs/ 中获得。

1.3.1. 在运行 Red Hat Enterprise Virtualization Manager 的机器上安装 Data Warehouse 和 Reports

概述

在运行 Red Hat Enterprise Virtualization Manager 的机器上安装并配置 Data Warehouse 和 Red Hat Enterprise Virtualization Manager Reports。

先决条件

请确认您已经满足了以下条件:

  1. 您需要已经在这台机器上安装并配置了 Manager。
  2. 如果选择使用远程的 Data Warehouse 数据库或 Reports 数据库,您需要在安装 Data Warehouse 和 Reports 服务前设置好数据库。您需要知道每个数据库主机的以下信息:
    • 主机的全局域名(FQDN)
    • 访问数据库的端口号(默认是 5432)
    • 数据库名
    • 数据库用户
    • 数据库密码
  3. 如果使用自承载引擎,则需要把它设为维护模式:
    # hosted-engine --set-maintenance --mode=global

过程 1.1. 在运行 Red Hat Enterprise Virtualization Manager 的机器上安装 Data Warehouse 和 Reports

  1. 在安装了 Red Hat Enterprise Virtualization Manager 的机器上安装 rhevm-dwh 软件包和 rhevm-reports 软件包:
    # yum install rhevm-dwh rhevm-reports
  2. 运行 engine-setup 命令在机器上开始配置 Data Warehouse 和 Reports:
    # engine-setup
  3. 根据提示配置 Data Warehouse 和 Reports:
    Configure Data Warehouse on this host (Yes, No) [Yes]: 
    Configure Reports on this host (Yes, No) [Yes]:
  4. Enter 自动配置防火墙,或输入 No 并点 Enter 来保持存在的设置:
    Setup can automatically configure the firewall on this system.
    Note: automatic configuration of the firewall may overwrite current settings.
    Do you want Setup to configure the firewall? (Yes, No) [Yes]:
    如果您选择了自动配置防火墙,但还没有激活的防火墙管理器,您将会被提示从一个列表中选择需要使用的防火墙管理器。输入防火墙管理器的名称后按 Enter
  5. 回答以下与 Data Warehouse 和 Reports 数据库相关的问题:
    Where is the DWH database located? (Local, Remote) [Local]: 
    Setup can configure the local postgresql server automatically for the DWH to run. This may conflict with existing applications.
    Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]: 
    Where is the Reports database located? (Local, Remote) [Local]: 
    Setup can configure the local postgresql server automatically for the Reports to run. This may conflict with existing applications.
    Would you like Setup to automatically configure postgresql and create Reports database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
    Enter 使用默认值,或输入您所需要的值后点 Enter。如果您选择 Remote,您将被提示输入每个远程数据库的信息。
  6. 为 Reports 管理用户(adminsuperuser)设置一个密码。请注意,Reports 系统会有一组和 Manager 不同的用户验证信息:
    Reports power users password:
    您需要再次输入用户密码来确认它们。
  7. 要使配置起作用,重启 ovirt-engine 服务。engine-setup 命令会提示您:
    During execution engine service will be stopped (OK, Cancel) [OK]:
    Enter 继续。ovirt-engine 服务会在稍后被重启。
  8. 确认您的安装设置:
    Please confirm installation settings (OK, Cancel) [OK]:
下一步

通过 http://demo.redhat.com/ovirt-engine-reports 访问报表门户(使用 Manager 的完全限定域名替换 demo.redhat.com)。如果您在安装 Manager 时选择了非默认的 HTTP 端口,您需要在 URL 后面添加 :port(使用您选择的端口替换 :port)。

使用用户名 admin 和您在安装 Reports 时设置的密码进行登录。请注意,在第一次登录到 Red Hat Enterprise Virtualization Manager Reports 时,系统会自动生成一些网页,这会使第一次登录的时间比较长。

1.3.2. 在一个独立的机器上安装和配置 Data Warehouse 和 Reports

概述

在一个安装了 Red Hat Enterprise Virtualization Manager 的机器以外的机器上安装并配置 Data Warehouse 和 Red Hat Enterprise Virtualization Manager Reports。通过在一个独立的机器上安装 Data Warehouse 和 Reports 服务,可以减少 Manager 所在机器的负载。请注意,在同一个机器上安装 Data Warehouse 和 Reports 意味着这些进程会共享 CPU 和内存。

先决条件

请确认您已经满足了以下条件。

  1. 您已经在另外一台机器上安装并配置了 Manager。
  2. 要设置 Data Warehouse 和 Reports,您需要:
    • 安装了 Red Hat Enterprise Linux 6.6 或 6.7 的虚拟机或物理机。
    • 订阅了 Red Hat Enterprise Linux ServerRed Hat Enterprise Virtualization 订阅池。
    • Manager 的 /etc/ovirt-engine/engine.conf.d/10-setup-database.conf 文件中的密码。.
    • 允许从 Data Warehouse/Reports 所在机器上访问 Manager 数据库所在机器的 TCP 端口 5432。
  3. 如果您选择使用远程的 Data Warehouse 数据库或 Reports 数据库,您需要在安装 Data Warehouse 和 Reports 服务前设置好数据库。您需要知道每个数据库主机的以下信息:
    • 主机的全局域名(FQDN)
    • 访问数据库的端口号(默认是 5432)
    • 数据库名
    • 数据库用户
    • 数据库密码

过程 1.2. 在一个独立的机器上安装和配置 Data Warehouse 和 Reports

  1. 在 Content Delivery Network 中注册您的系统,在出现提示时输入您的 Customer Portal 用户名和密码:
    # subscription-manager register
  2. 找到 Red Hat Enterprise Linux ServerRed Hat Enterprise Virtualization 订阅池,并记录下它们的 ID。
    # subscription-manager list --available
  3. 使用前一步获得的池 ID 为系统附加权利:
    # subscription-manager attach --pool=pool_id
  4. 禁用所有存在的软件仓库:
    # subscription-manager repos --disable=*
  5. 启用所需的仓库:
    # subscription-manager repos --enable=rhel-6-server-rpms
    # subscription-manager repos --enable=rhel-6-server-supplementary-rpms
    # subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms
    # subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms
  6. 确认当前安装的软件包已被升级到最新版本:
    # yum update
  7. 安装 rhevm-dwh-setuprhevm-reports-setup 软件包:
    # yum install rhevm-dwh-setup rhevm-reports-setup
  8. 运行 engine-setup 命令在机器上开始配置 Data Warehouse 和 Reports:
    # engine-setup
  9. 根据提示配置 Data Warehouse 和 Reports:
    Configure Data Warehouse on this host (Yes, No) [Yes]: 
    Configure Reports on this host (Yes, No) [Yes]:
  10. Enter 自动配置防火墙,或输入 No 并点 Enter 来保持存在的设置:
    Setup can automatically configure the firewall on this system.
    Note: automatic configuration of the firewall may overwrite current settings.
    Do you want Setup to configure the firewall? (Yes, No) [Yes]:
    如果您选择了自动配置防火墙,但还没有激活的防火墙管理器,您将会被提示从一个列表中选择需要使用的防火墙管理器。输入防火墙管理器的名称后按 Enter
  11. Enter 接受自动检测到的主机名,或输入一个其它主机名后点 Enter
    Host fully qualified DNS name of this server [autodetected hostname]:
  12. 输入 Manager 所在机器的完全限定域名并点 Enter
    Host fully qualified DNS name of the engine server []:
  13. 回答以下与 Data Warehouse 和 Reports 数据库相关的问题:
    Where is the DWH database located? (Local, Remote) [Local]: 
    Setup can configure the local postgresql server automatically for the DWH to run. This may conflict with existing applications.
    Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]: 
    Where is the Reports database located? (Local, Remote) [Local]: 
    Setup can configure the local postgresql server automatically for the Reports to run. This may conflict with existing applications.
    Would you like Setup to automatically configure postgresql and create Reports database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
    Enter 使用默认值,或输入您所需要的值后点 Enter。如果您选择 Remote,您将被提示输入每个远程数据库的信息。
  14. 输入 Manager 数据库所在机器的完全限定域名和密码。点 Enter 接受每个项的默认值:
    Engine database host []: engine-db-fqdn
    Engine database port [5432]: 
    Engine database secured connection (Yes, No) [No]: 
    Engine database name [engine]: 
    Engine database user [engine]: 
    Engine database password: password
  15. Enter 允许通过 SSH 在 Manager 上签发 Reports 证书和 Apache 证书:
    Setup will need to do some actions on the remote engine server. Either automatically, using ssh as root to access it, or you will be prompted to manually perform each such action.
    Please choose one of the following:
    1 - Access remote engine server using ssh as root
    2 - Perform each action manually, use files to copy content around
    (1, 2) [1]:
  16. Enter 接受默认的 SSH 端口,或输入另外一个端口号后点 Enter
    ssh port on remote engine server [22]:
  17. 输入 Manager 机器的 root 密码:
    root password on remote engine server manager-fqdn.com:
  18. Enter 允许在 Apache 上自动配置 SSL
    Setup can configure apache to use SSL using a certificate issued from the internal CA.
    Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
    
  19. 为 Reports 管理用户(adminsuperuser)设置一个密码。请注意,Reports 系统会有一组和 Manager 不同的用户验证信息:
    Reports power users password:
    您需要再次输入用户密码来确认它们。
  20. 确认您的安装设置:
    Please confirm installation settings (OK, Cancel) [OK]:
下一步

通过 http://demo.redhat.com/ovirt-engine-reports 访问报表门户(使用 Manager 的完全限定域名替换 demo.redhat.com)。如果您在安装 Manager 时选择了非默认的 HTTP 端口,您需要在 URL 后面添加 :port(使用您选择的端口替换 :port)。

使用用户名 admin 和您在安装 Reports 时设置的密码进行登录。请注意,在第一次登录到 Red Hat Enterprise Virtualization Manager Reports 时,系统会自动生成一些网页,这会使第一次登录的时间比较长。

1.3.3. 在不同的机器上安装和配置 Data Warehouse 和 Reports

概述

在一个安装了 Red Hat Enterprise Virtualization Manager 的机器以外的机器上安装并配置 Data Warehouse,然后在第 3 台机器上安装 Red Hat Enterprise Virtualization Manager Reports。通过在独立的机器上安装 Data Warehouse 和 Reports 服务,可以减少 Manager 所在机器的负载。在不同的机器上分别安装 Data Warehouse 和 Reports 会进一步减少对每个服务所在主机的负载,并可以避免因为 CPU 和内存共享所造成的冲突。

安装这种配置包括两个关键的步骤:
  1. 在一个单独的机器上安装和配置 Data Warehouse 和 Reports。
  2. 在另外一个独立的机器上安装 Reports。
先决条件

请确认您已经满足了以下条件。

  1. 您已经在另外一台机器上安装并配置了 Manager。
  2. 要设置 Data Warehouse,您需要:
    • 安装了 Red Hat Enterprise Linux 6.6 或 6.7 的虚拟机或物理机。
    • 订阅了 Red Hat Enterprise Linux ServerRed Hat Enterprise Virtualization 订阅池。
    • Manager 的 /etc/ovirt-engine/engine.conf.d/10-setup-database.conf 文件中的密码。
    • 允许从 Data Warehouse 所在机器上访问 Manager 数据库所在机器的 TCP 端口 5432。
  3. 要设置 Reports 所在的机器,您需要:
    • 安装了 Red Hat Enterprise Linux 6.6 或 6.7 的虚拟机或物理机。
    • 订阅了 Red Hat Enterprise Linux ServerRed Hat Enterprise Virtualization 订阅池。
    • Data Warehouse 所在机器的 /etc/ovirt-engine-dwh/ovirt-engine-dwhd.conf.d/10-setup-database.conf 文件中的密码。
    • 允许从 Reports 所在机器上访问 Manager 数据库所在机器的 TCP 端口 5432。
  4. 如果您选择使用远程的 Data Warehouse 数据库或 Reports 数据库,则需要在安装 Data Warehouse 和 Reports 服务前设置好数据库。您需要知道每个数据库主机的以下信息:
    • 主机的全局域名(FQDN)
    • 访问数据库的端口号(默认是 5432)
    • 数据库名
    • 数据库用户
    • 数据库密码

过程 1.3. 步骤 1:在一个独立的机器上安装和配置 Data Warehouse

  1. 在 Content Delivery Network 中注册您的系统,在出现提示时输入您的 Customer Portal 用户名和密码:
    # subscription-manager register
  2. 找到 Red Hat Enterprise Linux ServerRed Hat Enterprise Virtualization 订阅池,并记录下它们的 ID。
    # subscription-manager list --available
  3. 使用前一步获得的池 ID 为系统附加权利:
    # subscription-manager attach --pool=pool_id
  4. 禁用所有存在的软件仓库:
    # subscription-manager repos --disable=*
  5. 启用所需的仓库:
    # subscription-manager repos --enable=rhel-6-server-rpms
    # subscription-manager repos --enable=rhel-6-server-supplementary-rpms
    # subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms
    # subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms
  6. 确认当前安装的软件包已被升级到最新版本:
    # yum update
  7. 安装 rhevm-dwh-setup 软件包:
    # yum install rhevm-dwh-setup
  8. 运行 engine-setup 命令在机器上开始配置 Data Warehouse:
    # engine-setup
  9. Enter 配置 Data Warehouse:
    Configure Data Warehouse on this host (Yes, No) [Yes]:
  10. Enter 自动配置防火墙,或输入 No 并点 Enter 来保持存在的设置:
    Setup can automatically configure the firewall on this system.
    Note: automatic configuration of the firewall may overwrite current settings.
    Do you want Setup to configure the firewall? (Yes, No) [Yes]:
    如果您选择了自动配置防火墙,但还没有激活的防火墙管理器,您将会被提示从一个列表中选择需要使用的防火墙管理器。输入防火墙管理器的名称后按 Enter
  11. Enter 接受自动检测到的主机名,或输入一个其它主机名后点 Enter
    Host fully qualified DNS name of this server [autodetected host name]:
  12. 回答以下与 Data Warehouse 数据库相关的问题:
    Where is the DWH database located? (Local, Remote) [Local]: 
    Setup can configure the local postgresql server automatically for the DWH to run. This may conflict with existing applications.
    Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
    
    Enter 使用默认值,或输入您所需要的值后点 Enter。如果您选择 Remote,您将被提示输入每个远程数据库的信息。
  13. 输入 Manager 数据库所在机器的完全限定域名和密码。点 Enter 接受每个项的默认值:
    Engine database host []: engine-db-fqdn
    Engine database port [5432]: 
    Engine database secured connection (Yes, No) [No]: 
    Engine database name [engine]: 
    Engine database user [engine]: 
    Engine database password: password
  14. 确认您的安装设置:
    Please confirm installation settings (OK, Cancel) [OK]:

过程 1.4. 步骤 2:在一个独立的机器上安装和配置 Reports

  1. 在 Content Delivery Network 中注册您的系统,在出现提示时输入您的 Customer Portal 用户名和密码:
    # subscription-manager register
  2. 找到包括安装 Reports 所需仓库的订阅池:
    # subscription-manager list --available | grep -A8 "Red Hat Enterprise Linux Server"
    # subscription-manager list --available | grep -A8 "Red Hat Enterprise Virtualization"
  3. 使用在上一步所获得的权利池的 ID 来把 Red Hat Enterprise Linux ServerRed Hat Enterprise Virtualization 的权利附加到系统上。运行以下命令:
    # subscription-manager attach --pool=pool_id
  4. 禁用所有存在的软件仓库:
    # subscription-manager repos --disable=*
  5. 启用所需的仓库:
    # subscription-manager repos --enable=rhel-6-server-rpms
    # subscription-manager repos --enable=rhel-6-server-supplementary-rpms
    # subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms
    # subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms
  6. 确认当前安装的软件包已被升级到最新版本:
    # yum update
  7. 安装 rhevm-reports-setup 软件包:
    # yum install rhevm-reports-setup
  8. 运行 engine-setup 命令在机器上开始配置 Reports:
    # engine-setup
  9. Enter 配置 Reports:
    Configure Reports on this host (Yes, No) [Yes]:
    
  10. Enter 自动配置防火墙,或输入 No 并点 Enter 来保持存在的设置:
    Setup can automatically configure the firewall on this system.
    Note: automatic configuration of the firewall may overwrite current settings.
    Do you want Setup to configure the firewall? (Yes, No) [Yes]:
    如果您选择了自动配置防火墙,但还没有激活的防火墙管理器,您将会被提示从一个列表中选择需要使用的防火墙管理器。输入防火墙管理器的名称后按 Enter
  11. Enter 接受自动检测到的主机名,或输入一个其它主机名后点 Enter
    Host fully qualified DNS name of this server [autodetected host name]:
  12. 输入 Manager 所在机器的完全限定域名并点 Enter
    Host fully qualified DNS name of the engine server []:
  13. 回答以下与 Reports 数据库相关的问题:
    Where is the Reports database located? (Local, Remote) [Local]: 
    Setup can configure the local postgresql server automatically for the Reports to run. This may conflict with existing applications.
    Would you like Setup to automatically configure postgresql and create Reports database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
    
    Enter 使用默认值,或输入您所需要的值后点 Enter。如果您选择 Remote,您将被提示输入每个远程数据库的信息。
  14. 输入您的 Data Warehouse 数据库所在机器的完全限定域名和密码。点 Enter 接受每个项的默认值:
    DWH database host []: dwh-db-fqdn
    DWH database port [5432]: 
    DWH database secured connection (Yes, No) [No]: 
    DWH database name [ovirt_engine_history]: 
    DWH database user [ovirt_engine_history]: 
    DWH database password: password
  15. Enter 允许通过 SSH 在 Manager 上签发 Reports 证书和 Apache 证书:
    Setup will need to do some actions on the remote engine server. Either automatically, using ssh as root to access it, or you will be prompted to manually perform each such action.
    Please choose one of the following:
    1 - Access remote engine server using ssh as root
    2 - Perform each action manually, use files to copy content around
    (1, 2) [1]:
  16. Enter 接受默认的 SSH 端口,或输入另外一个端口号后点 Enter
    ssh port on remote engine server [22]:
  17. 输入 Manager 机器的 root 密码:
    root password on remote engine server manager-fqdn.com:
  18. Enter 允许在 Apache 上自动配置 SSL
    Setup can configure apache to use SSL using a certificate issued from the internal CA.
    Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
    
  19. 为 Reports 管理用户(adminsuperuser)设置一个密码。请注意,Reports 系统会有一组和 Manager 不同的用户验证信息:
    Reports power users password:
    您需要再次输入用户密码来确认它们。
  20. 确认您的安装设置:
    Please confirm installation settings (OK, Cancel) [OK]:
下一步

通过 http://demo.redhat.com/ovirt-engine-reports 访问报表门户(使用 Manager 的完全限定域名替换 demo.redhat.com)。如果您在安装 Manager 时选择了非默认的 HTTP 端口,您需要在 URL 后面添加 :port(使用您选择的端口替换 :port)。

使用用户名 admin 和您在安装 Reports 时设置的密码进行登录。请注意,在第一次登录到 Red Hat Enterprise Virtualization Manager Reports 时,系统会自动生成一些网页,这会使第一次登录的时间比较长。

1.3.4. 在运行 Red Hat Enterprise Virtualization Manager 的机器上安装 Data Warehouse,在另外的机器上安装 Reports

概述

在安装了 Red Hat Enterprise Virtualization Manager 的机器上安装 Data Warehouse,然后在另外一个机器上安装并配置 Red Hat Enterprise Virtualization Manager Reports。在独立的机器上运行 Reports 服务可以减少 Manager 所在机器的负载。

安装这种配置包括两个关键的步骤:
  1. 在安装 Manager 所在机器上安装和配置 Data Warehouse。
  2. 在另外一个独立的机器上安装 Reports。
先决条件

请确认您已经满足了以下条件。

  1. 已在一台机器上安装并配置了 Manager。您将会在这个机器上安装 Data Warehouse。
  2. 要设置 Reports 所在的机器,您需要:
    • 安装了 Red Hat Enterprise Linux 6.6 或 6.7 的虚拟机或物理机。
    • 订阅了 Red Hat Enterprise Linux ServerRed Hat Enterprise Virtualization 权利池。
    • Data Warehouse 所在机器的 /etc/ovirt-engine-dwh/ovirt-engine-dwhd.conf.d/10-setup-database.conf 文件中的密码。
    • 允许从 Reports 所在机器上访问 Manager 数据库所在机器的 TCP 端口 5432。
  3. 如果选择使用远程的 Data Warehouse 数据库或 Reports 数据库,您需要在安装 Data Warehouse 和 Reports 服务前设置好数据库。您需要知道每个数据库主机的以下信息:
    • 主机的全局域名(FQDN)
    • 访问数据库的端口号(默认是 5432)
    • 数据库名
    • 数据库用户
    • 数据库密码
  4. 如果使用自承载引擎,则需要把它设为维护模式:
    # hosted-engine --set-maintenance --mode=global

过程 1.5. 步骤 1:在安装 Manager 的机器上安装和配置 Data Warehouse

  1. 安装 rhevm-dwh 软件包:
    # yum install rhevm-dwh
  2. 运行 engine-setup 命令在机器上开始配置 Data Warehouse:
    # engine-setup
  3. Enter 配置 Data Warehouse:
    Configure Data Warehouse on this host (Yes, No) [Yes]:
  4. Enter 自动配置防火墙,或输入 No 并点 Enter 来保持存在的设置:
    Setup can automatically configure the firewall on this system.
    Note: automatic configuration of the firewall may overwrite current settings.
    Do you want Setup to configure the firewall? (Yes, No) [Yes]:
    如果您选择了自动配置防火墙,但还没有激活的防火墙管理器,您将会被提示从一个列表中选择需要使用的防火墙管理器。输入防火墙管理器的名称后按 Enter
  5. 回答以下与 Data Warehouse 数据库相关的问题:
    Where is the DWH database located? (Local, Remote) [Local]: 
    Setup can configure the local postgresql server automatically for the DWH to run. This may conflict with existing applications.
    Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
    
    Enter 使用默认值,或输入您所需要的值后点 Enter。如果您选择 Remote,您将被提示输入每个远程数据库的信息。
  6. 要使配置起作用,重启 ovirt-engine 服务。engine-setup 命令会提示您:
    During execution engine service will be stopped (OK, Cancel) [OK]:
    Enter 继续。ovirt-engine 服务会在稍后被重启。
  7. 确认您的安装设置:
    Please confirm installation settings (OK, Cancel) [OK]:

过程 1.6. 步骤 2:在一个独立的机器上安装和配置 Reports

  1. 在 Content Delivery Network 中注册您的系统,在出现提示时输入您的 Customer Portal 用户名和密码:
    # subscription-manager register
  2. 找到 Red Hat Enterprise Linux ServerRed Hat Enterprise Virtualization 订阅池,并记录下它们的 ID。
    # subscription-manager list --available
  3. 使用前一步获得的池 ID 为系统附加权利:
    # subscription-manager attach --pool=pool_id
  4. 禁用所有存在的软件仓库:
    # subscription-manager repos --disable=*
  5. 启用所需的频道:
    # subscription-manager repos --enable=rhel-6-server-rpms
    # subscription-manager repos --enable=rhel-6-server-supplementary-rpms
    # subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms
    # subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms
  6. 确认当前安装的软件包已被升级到最新版本:
    # yum update
  7. 安装 rhevm-reports-setup 软件包:
    # yum install rhevm-reports-setup
  8. 运行 engine-setup 命令在机器上开始配置 Reports:
    # engine-setup
  9. Enter 配置 Reports:
    Configure Reports on this host (Yes, No) [Yes]:
    
  10. Enter 自动配置防火墙,或输入 No 并点 Enter 来保持存在的设置:
    Setup can automatically configure the firewall on this system.
    Note: automatic configuration of the firewall may overwrite current settings.
    Do you want Setup to configure the firewall? (Yes, No) [Yes]:
    如果您选择了自动配置防火墙,但还没有激活的防火墙管理器,您将会被提示从一个列表中选择需要使用的防火墙管理器。输入防火墙管理器的名称后按 Enter
  11. Enter 接受自动检测到的主机名,或输入一个其它主机名后点 Enter
    Host fully qualified DNS name of this server [autodetected host name]:
  12. 输入 Manager 所在机器的完全限定域名并点 Enter
    Host fully qualified DNS name of the engine server []:
  13. 回答以下与 Reports 数据库相关的问题:
    Where is the Reports database located? (Local, Remote) [Local]: 
    Setup can configure the local postgresql server automatically for the Reports to run. This may conflict with existing applications.
    Would you like Setup to automatically configure postgresql and create Reports database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
    
    Enter 使用默认值,或输入您所需要的值后点 Enter。如果您选择 Remote,您将被提示输入每个远程数据库的信息。
  14. 输入 Data Warehouse 数据库所在机器的完全限定域名和密码。点 Enter 接受每个项的默认值:
    DWH database host []: dwh-db-fqdn
    DWH database port [5432]: 
    DWH database secured connection (Yes, No) [No]: 
    DWH database name [ovirt_engine_history]: 
    DWH database user [ovirt_engine_history]: 
    DWH database password: password
  15. Enter 允许通过 SSH 在 Manager 上签发 Reports 证书和 Apache 证书:
    Setup will need to do some actions on the remote engine server. Either automatically, using ssh as root to access it, or you will be prompted to manually perform each such action.
    Please choose one of the following:
    1 - Access remote engine server using ssh as root
    2 - Perform each action manually, use files to copy content around
    (1, 2) [1]:
  16. Enter 接受默认的 SSH 端口,或输入另外一个端口号后点 Enter
    ssh port on remote engine server [22]:
  17. 输入 Manager 机器的 root 密码:
    root password on remote engine server manager-fqdn.com:
  18. Enter 允许在 Apache 上自动配置 SSL
    Setup can configure apache to use SSL using a certificate issued from the internal CA.
    Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
    
  19. 为 Reports 管理用户(adminsuperuser)设置一个密码。请注意,Reports 系统会有一组和 Manager 不同的用户验证信息:
    Reports power users password:
    您需要再次输入用户密码来确认它们。
  20. 确认您的安装设置:
    Please confirm installation settings (OK, Cancel) [OK]:
下一步

通过 http://demo.redhat.com/ovirt-engine-reports 访问报表门户(使用 Manager 的完全限定域名替换 demo.redhat.com)。如果您在安装 Manager 时选择了非默认的 HTTP 端口,您需要在 URL 后面添加 :port(使用您选择的端口替换 :port)。

使用用户名 admin 和您在安装 Reports 时设置的密码进行登录。请注意,在第一次登录到 Red Hat Enterprise Virtualization Manager Reports 时,系统会自动生成一些网页,这会使第一次登录的时间比较长。

1.3.5. 在运行 Red Hat Enterprise Virtualization Manager 的机器上安装 Reports,在另外的机器上安装 Data Warehouse

概述

在一个安装了 Red Hat Enterprise Virtualization Manager 的机器以外的机器上安装并配置 Data Warehouse,然后在安装了 Red Hat Enterprise Virtualization Manager 的机器上安装 Reports。通过在一个独立的机器上安装 Data Warehouse,可以减少 Manager 所在机器的负载。请注意,在同一个机器上安装 Manager 和 Reports 意味着这些进程会共享 CPU 和内存。

安装这种配置包括两个关键的步骤:
  1. 在一个单独的机器上安装和配置 Data Warehouse。
  2. 在安装了 Manager 的机器上安装 Reports。
先决条件

请确认您已经满足了以下条件。

  1. 您已经在另外一台机器上安装并配置了 Manager。
  2. 要设置 Data Warehouse,您需要:
    • 安装了 Red Hat Enterprise Linux 6.6 或 6.7 的虚拟机或物理机。
    • 订阅了 Red Hat Enterprise Linux ServerRed Hat Enterprise Virtualization 权利池。
    • Manager 的 /etc/ovirt-engine/engine.conf.d/10-setup-database.conf 文件中的密码。.
    • 允许从 Data Warehouse 所在机器上访问 Manager 数据库所在机器的 TCP 端口 5432。
  3. 要设置报表所在的机器,您需要:
    • Data Warehouse 所在机器的 /etc/ovirt-engine-dwh/ovirt-engine-dwhd.conf.d/10-setup-database.conf 文件中的密码。
  4. 如果您选择使用远程的 Data Warehouse 数据库或 Reports 数据库,您需要在安装 Data Warehouse 和 Reports 服务前设置好数据库。您需要知道每个数据库主机的以下信息:
    • 主机的全局域名(FQDN)
    • 访问数据库的端口号(默认是 5432)
    • 数据库名
    • 数据库用户
    • 数据库密码
  5. 如果使用自承载引擎,则需要把它设为维护模式:
    # hosted-engine --set-maintenance --mode=global

过程 1.7. 步骤 1:在一个独立的机器上安装和配置 Data Warehouse

  1. 在 Content Delivery Network 中注册您的系统,在出现提示时输入您的 Customer Portal 用户名和密码:
    # subscription-manager register
  2. 找到 Red Hat Enterprise Linux ServerRed Hat Enterprise Virtualization 订阅池,并记录下它们的 ID。
    # subscription-manager list --available
  3. 使用前一步获得的池 ID 为系统附加权利:
    # subscription-manager attach --pool=pool_id
  4. 禁用所有存在的软件仓库:
    # subscription-manager repos --disable=*
  5. 启用所需的频道:
    # subscription-manager repos --enable=rhel-6-server-rpms
    # subscription-manager repos --enable=rhel-6-server-supplementary-rpms
    # subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms
    # subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms
  6. 确认当前安装的软件包已被升级到最新版本:
    # yum update
  7. 安装 rhevm-dwh-setup 软件包:
    # yum install rhevm-dwh-setup
  8. 运行 engine-setup 命令在机器上开始配置 Data Warehouse:
    # engine-setup
  9. Enter 配置 Data Warehouse:
    Configure Data Warehouse on this host (Yes, No) [Yes]:
  10. Enter 自动配置防火墙,或输入 No 并点 Enter 来保持存在的设置:
    Setup can automatically configure the firewall on this system.
    Note: automatic configuration of the firewall may overwrite current settings.
    Do you want Setup to configure the firewall? (Yes, No) [Yes]:
    如果您选择了自动配置防火墙,但还没有激活的防火墙管理器,您将会被提示从一个列表中选择需要使用的防火墙管理器。输入防火墙管理器的名称后按 Enter
  11. Enter 接受自动检测到的主机名,或输入一个其它主机名后点 Enter
    Host fully qualified DNS name of this server [autodetected host name]:
  12. 回答以下与 Data Warehouse 数据库相关的问题:
    Where is the DWH database located? (Local, Remote) [Local]: 
    Setup can configure the local postgresql server automatically for the DWH to run. This may conflict with existing applications.
    Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
    
    Press Enter to choose the highlighted defaults, or type your alternative preference and then press Enter. If you select Remote, you are prompted to provide details about the remote database host.
  13. 输入 Manager 数据库所在机器的完全限定域名和密码。点 Enter 接受每个项的默认值:
    Engine database host []: engine-db-fqdn
    Engine database port [5432]: 
    Engine database secured connection (Yes, No) [No]: 
    Engine database name [engine]: 
    Engine database user [engine]: 
    Engine database password: password
  14. 确认您的安装设置:
    Please confirm installation settings (OK, Cancel) [OK]:

过程 1.8. 步骤 2:在安装了 Manager 的机器上安装和配置报表

  1. 安装 rhevm-reports 软件包:
    # yum install rhevm-reports
  2. 运行 engine-setup 命令在机器上开始配置 Reports:
    # engine-setup
  3. Enter 配置 Reports:
    Configure Reports on this host (Yes, No) [Yes]:
    
  4. Enter 自动配置防火墙,或输入 No 并点 Enter 来保持存在的设置:
    Setup can automatically configure the firewall on this system.
    Note: automatic configuration of the firewall may overwrite current settings.
    Do you want Setup to configure the firewall? (Yes, No) [Yes]:
    如果您选择了自动配置防火墙,但还没有激活的防火墙管理器,您将会被提示从一个列表中选择需要使用的防火墙管理器。输入防火墙管理器的名称后按 Enter
  5. 回答以下与报表数据库相关的问题:
    Where is the Reports database located? (Local, Remote) [Local]: 
    Setup can configure the local postgresql server automatically for the Reports to run. This may conflict with existing applications.
    Would you like Setup to automatically configure postgresql and create Reports database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
    
    Press Enter to choose the highlighted defaults, or type your alternative preference and then press Enter. If you select Remote, you are prompted to provide details about the remote database host.
  6. 输入您的 Data Warehouse 数据库所在机器的完全限定域名和密码。点 Enter 接受每个项的默认值:
    DWH database host []: dwh-db-fqdn
    DWH database port [5432]: 
    DWH database secured connection (Yes, No) [No]: 
    DWH database name [ovirt_engine_history]: 
    DWH database user [ovirt_engine_history]: 
    DWH database password: password
  7. 为报表管理用户(adminsuperuser)设置一个密码。请注意,报表系统会有一组和 Manager 不同的用户验证信息:
    Reports power users password:
    您需要再次输入用户密码来确认它们。
  8. 要使配置起作用,重启 ovirt-engine 服务。engine-setup 命令会提示您:
    During execution engine service will be stopped (OK, Cancel) [OK]:
    Enter 继续。ovirt-engine 服务会在稍后被重启。
  9. 确认您的安装设置:
    Please confirm installation settings (OK, Cancel) [OK]:
下一步

通过 http://demo.redhat.com/ovirt-engine-reports 访问报表门户(使用 Manager 的完全限定域名替换 demo.redhat.com)。如果您在安装 Manager 时选择了非默认的 HTTP 端口,您需要在 URL 后面添加 :port(使用您选择的端口替换 :port)。

使用用户名 admin 和您在安装 Reports 时设置的密码进行登录。请注意,在第一次登录到 Red Hat Enterprise Virtualization Manager Reports 时,系统会自动生成一些网页,这会使第一次登录的时间比较长。