如何判断oo-install是否有效?

时间:2014-02-04 18:57:41

标签: puppet openshift-origin

我正在尝试使用便携式安装程序https://install.openshift.com/portable/oo-install-origin.zip在CentOS 6.2上安装Openshift Origin,并在一个主机上安装所有服务(即代理,应用程序节点,MongoDB,ActiveMQ)。 oo-install-origin实用程序似乎有效(详情如下) - 它没有抱怨任何错误。完成后我重启了我的服务器。

  • 安装日志文件在哪里?
  • 如何判断安装是否成功?
  • 我应该看到哪些进程正在运行?
    • activemq正在运行,但我没有看到任何MongoDB进程。我确实在oo-mongo-setup中看到了/usr/sbin/脚本。我应该运行它,还是应该运行安装脚本?

http://openshift.github.io/documentation/oo_install_users_guide.html#installing-grab-some-tea

  

整个安装过程可能需要10到45分钟。在此过程中,您将在命令终端中看到相当稳定的信息流。

好吧,我没有看到在我的终端中滚动的信息流。我应该看到更多(下面显示的内容),还是文档刚刚过时?我在另一个终端中运行了top,看到了很多yum个活动。但是,我不知道是否所有软件包都安装正确。

安装脚本输出:

# ./oo-install-origin
Checking for necessary tools...
...looks good.
Using bundled assets.
Extracting oo-install to temporary directory...
Starting oo-install...
OpenShift Installer (Build 20140131-2031)
----------------------------------------------------------------------

Welcome to OpenShift.

This installer will guide you through a basic system deployment, based
on one of the scenarios below.

Select from the following installation scenarios.
You can also type '?' for Help or 'q' to Quit:
1. Install OpenShift Origin
2. Add a Node to an OpenShift Origin deployment
3. Generate a Puppet Configuration File
Type a selection and press <return>: 1


Here are the details of your current deployment.

Note: ActiveMQ, MongoDB and named will all be installed on the Broker.
For more flexibility, rerun the installer in advanced mode (-a).

DNS Settings
  * App Domain: xxx.yyy.net
  * Register OpenShift components with OpenShift DNS? No

Role Assignments
+--------+---------------+
| Broker | dell710appeng |
| Node   | dell710appeng |
+--------+---------------+

Host Information
+----------------+---------------+
| Host           | dell710appeng |
| Roles          | Broker, Node  |
| SSH Host       | localhost     |
| User           | root          |
| IP Addr        | 10.xx.xx.xx   |
| BIND DNS Addr  | 10.xx.xx.xx   |
| IP Interface   | em1           |
| Install Status | new           |
+----------------+---------------+

Do you want to change the deployment info? (y/n/q/?) n

Here is the subscription configuration that the installer will use for
this deployment.
+-------------------+--------------------------------------------------------------------+
| Setting           | Value                                                              |
+-------------------+--------------------------------------------------------------------+
| type              | yum                                                                |
| repos_base        | https://mirror.openshift.com/pub/origin-server/release/3/fedora-19 |
| jboss_repo_base   | -                                                                  |
| jenkins_repo_base | http://pkg.jenkins-ci.org/redhat                                   |
| os_repo           | -                                                                  |
| os_optional_repo  | -                                                                  |
+-------------------+--------------------------------------------------------------------+

Do you want to make any changes to the subscription info in the
configuration file? (y/n/q/?) n

Do you want to set any temporary subscription settings for this
installation only? (y/n/q/?) n

Preflight check: verifying system and resource availability.

Checking dell710appeng:
* Target host is running non-Fedora, non-RHEL
* Located getenforce
* SELinux is running in enforcing mode
* Located yum
* Located puppet
* Located augtool
* Located dnssec-keygen
* Located htpasswd
* Located scl
* The ruby193 software collection is installed.
* epel repository is present and enabled

Deploying workflow 'origin_deploy'.
Setting up htpasswd for default user account.

Preparing to install OpenShift Origin on the following hosts:
  * localhost: msgserver, dbserver, broker, node
Deploying host 'dell710appeng'

Checking for xxx.yyy.net DNS key(s) on localhost...
...found at /var/named/Kxxx.yyy.net*.key
Command 'systemctl' didn't work; trying older style...
Older style system command succeeded.

Running Puppet deployment

Running: bash -l -c 'scl enable ruby193 "puppet module uninstall -f openshift/openshift_origin"'
Uninstall command failed; this is expected if the puppet module wasn't previously installed.

Running: bash -l -c 'scl enable ruby193 "puppet module install -v 3.0.1 openshift/openshift_origin"'
Command completed.

Running: bash -l -c 'yum clean all'
Command completed.

Running: bash -l -c 'scl enable ruby193 "puppet apply --verbose /tmp/oo_install_configure_dell710appeng.pp"'
#### The script stopped here for about 20 minutes -- top showed lots of yum activity
Command completed.

Running: bash -l -c 'rm /tmp/oo_install_configure_dell710appeng.pp'
Command completed.
OpenShift Origin deployment completed.
You should manually reboot dell710appeng to complete the process.

All tasks completed.
oo-install exited; removing temporary assets.

1 个答案:

答案 0 :(得分:1)

您提出的问题是如何在Puppet级别控制Puppet操作结果并请求更多帮助,而不是OpenShift级别。

在安装了未知状态的软件的情况下,最佳做法是获取安装操作列表,如果已经完成,则逐步检查。

对于OpenShift,你很幸运:它也可以一步一步地手动安装,并有一个记录良好的流程:http://openshift.github.io/documentation/oo_deployment_guide_comprehensive.html

如果这是一台仅为OpenShift安装的全新机器,没有其他用途,我建议从头开始重启,这样你就可以控制整个过程的每一步。