Sunteți pe pagina 1din 13

[root@nilesopen ~]# subscription-manager attach --pool 8a85f98159bafd810159bc04ea093cf9

Successfully attached a subscription for: OpenShift Business Partner Supported NFR

[root@nilesopen ~]# subscription-manager repos --enable="rhel-7-server-rpms" --enable="rhel-7-


server-extras-rpms" --enable="rhel-7-server-ose-3.4-rpms"
Repository 'rhel-7-server-rpms' is enabled for this system.
Repository 'rhel-7-server-ose-3.4-rpms' is enabled for this system.
Repository 'rhel-7-server-extras-rpms' is enabled for this system.
[root@nilesopen ~]#

[root@nilesopen ~]# yum install wget git net-tools bind-utils iptables-services bridge-utils bash-
completion

[root@nilesopen ~]# yum install -y atomic-openshift-utils

[root@nilesopen ~]# yum install atomic-openshift-excluder atomic-openshift-docker-excluder

[root@nilesopen ~]# # atomic-openshift-excluder unexclude

[root@nilesopen ~]# yum install -y docker


Loaded plugins: product-id, search-disabled-repos, subscription-manager
rhel-7-server-extras-rpms | 3.4
kB 00:00:00
rhel-7-server-ose-3.4-rpms | 4.0
kB 00:00:00
rhel-7-server-rpms | 3.5 kB
00:00:00
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 2:1.12.6-28.git1398f24.el7 will be installed
--> Processing Dependency: docker-client = 2:1.12.6-28.git1398f24.el7 for package: 2:docker-
1.12.6-28.git1398f24.el7.x86_64
--> Processing Dependency: docker-common = 2:1.12.6-28.git1398f24.el7 for package: 2:docker-
1.12.6-28.git1398f24.el7.x86_64
--> Processing Dependency: docker-rhel-push-plugin = 2:1.12.6-28.git1398f24.el7 for package:
2:docker-1.12.6-28.git1398f24.el7.x86_64
--> Processing Dependency: container-selinux >= 2:2.12-2 for package: 2:docker-1.12.6-
28.git1398f24.el7.x86_64
--> Processing Dependency: oci-register-machine >= 1:0-3.10 for package: 2:docker-1.12.6-
28.git1398f24.el7.x86_64
--> Processing Dependency: oci-systemd-hook >= 1:0.1.4-9 for package: 2:docker-1.12.6-
28.git1398f24.el7.x86_64
--> Processing Dependency: skopeo-containers for package: 2:docker-1.12.6-
28.git1398f24.el7.x86_64
--> Processing Dependency: libseccomp.so.2()(64bit) for package: 2:docker-1.12.6-
28.git1398f24.el7.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.12-2.gite7096ce.el7 will be installed
--> Processing Dependency: policycoreutils >= 2.5-11 for package: 2:container-selinux-2.12-
2.gite7096ce.el7.noarch
--> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.12-
2.gite7096ce.el7.noarch
---> Package docker-client.x86_64 2:1.12.6-28.git1398f24.el7 will be installed
---> Package docker-common.x86_64 2:1.12.6-28.git1398f24.el7 will be installed
---> Package docker-rhel-push-plugin.x86_64 2:1.12.6-28.git1398f24.el7 will be installed
---> Package libseccomp.x86_64 0:2.3.1-2.el7 will be installed
---> Package oci-register-machine.x86_64 1:0-3.11.gitdd0daef.el7 will be installed
---> Package oci-systemd-hook.x86_64 1:0.1.7-2.git2788078.el7 will be installed
--> Processing Dependency: libyajl.so.2()(64bit) for package: 1:oci-systemd-hook-0.1.7-
2.git2788078.el7.x86_64
---> Package skopeo-containers.x86_64 1:0.1.19-1.el7 will be installed
--> Running transaction check
---> Package policycoreutils.x86_64 0:2.5-8.el7 will be updated
---> Package policycoreutils.x86_64 0:2.5-11.el7_3 will be an update
---> Package policycoreutils-python.x86_64 0:2.5-11.el7_3 will be installed
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-
11.el7_3.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-5 for package: policycoreutils-python-2.5-
11.el7_3.x86_64
--> Processing Dependency: setools-libs >= 3.3.8-1 for package: policycoreutils-python-2.5-
11.el7_3.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-
2.5-11.el7_3.x86_64
--> Processing Dependency: libcgroup for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-
2.5-11.el7_3.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-
2.5-11.el7_3.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-
11.el7_3.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-
11.el7_3.x86_64
---> Package yajl.x86_64 0:2.0.4-4.el7 will be installed
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.6.5-3.el7_3.1 will be installed
--> Processing Dependency: audit-libs(x86-64) = 2.6.5-3.el7_3.1 for package: audit-libs-python-
2.6.5-3.el7_3.1.x86_64
---> Package checkpolicy.x86_64 0:2.5-4.el7 will be installed
---> Package libcgroup.x86_64 0:0.41-11.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-5.1.el7_3 will be installed
--> Processing Dependency: libsemanage = 2.5-5.1.el7_3 for package: libsemanage-python-2.5-
5.1.el7_3.x86_64
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package setools-libs.x86_64 0:3.3.8-1.1.el7 will be installed
--> Running transaction check
---> Package audit-libs.x86_64 0:2.6.5-3.el7 will be updated
--> Processing Dependency: audit-libs(x86-64) = 2.6.5-3.el7 for package: audit-2.6.5-3.el7.x86_64
---> Package audit-libs.x86_64 0:2.6.5-3.el7_3.1 will be an update
---> Package libsemanage.x86_64 0:2.5-4.el7 will be updated
---> Package libsemanage.x86_64 0:2.5-5.1.el7_3 will be an update
--> Running transaction check
---> Package audit.x86_64 0:2.6.5-3.el7 will be updated
---> Package audit.x86_64 0:2.6.5-3.el7_3.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================
=======================================================================
================
Package Arch Version Repository
Size
=======================================================================
=======================================================================
================
Installing:
docker x86_64 2:1.12.6-28.git1398f24.el7 rhel-7-server-
extras-rpms 14 M
Installing for dependencies:
audit-libs-python x86_64 2.6.5-3.el7_3.1 rhel-7-server-
rpms 70 k
checkpolicy x86_64 2.5-4.el7 rhel-7-server-rpms
290 k
container-selinux noarch 2:2.12-2.gite7096ce.el7 rhel-7-
server-extras-rpms 28 k
docker-client x86_64 2:1.12.6-28.git1398f24.el7 rhel-7-
server-extras-rpms 3.2 M
docker-common x86_64 2:1.12.6-28.git1398f24.el7 rhel-7-
server-extras-rpms 75 k
docker-rhel-push-plugin x86_64 2:1.12.6-28.git1398f24.el7 rhel-7-
server-extras-rpms 1.5 M
libcgroup x86_64 0.41-11.el7 rhel-7-server-rpms
65 k
libseccomp x86_64 2.3.1-2.el7 rhel-7-server-rpms
56 k
libsemanage-python x86_64 2.5-5.1.el7_3 rhel-7-server-
rpms 104 k
oci-register-machine x86_64 1:0-3.11.gitdd0daef.el7 rhel-7-
server-extras-rpms 1.0 M
oci-systemd-hook x86_64 1:0.1.7-2.git2788078.el7 rhel-7-
server-extras-rpms 30 k
policycoreutils-python x86_64 2.5-11.el7_3 rhel-7-server-
rpms 445 k
python-IPy noarch 0.75-6.el7 rhel-7-server-rpms
32 k
setools-libs x86_64 3.3.8-1.1.el7 rhel-7-server-rpms
610 k
skopeo-containers x86_64 1:0.1.19-1.el7 rhel-7-server-
extras-rpms 7.7 k
yajl x86_64 2.0.4-4.el7 rhel-7-server-rpms
39 k
Updating for dependencies:
audit x86_64 2.6.5-3.el7_3.1 rhel-7-server-rpms
233 k
audit-libs x86_64 2.6.5-3.el7_3.1 rhel-7-server-rpms
85 k
libsemanage x86_64 2.5-5.1.el7_3 rhel-7-server-
rpms 145 k
policycoreutils x86_64 2.5-11.el7_3 rhel-7-server-
rpms 842 k

Transaction Summary
=======================================================================
=======================================================================
================
Install 1 Package (+16 Dependent packages)
Upgrade ( 4 Dependent packages)

Total download size: 23 M


Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/21): audit-2.6.5-3.el7_3.1.x86_64.rpm
| 233 kB 00:00:00
(2/21): audit-libs-2.6.5-3.el7_3.1.x86_64.rpm
| 85 kB 00:00:00
(3/21): audit-libs-python-2.6.5-3.el7_3.1.x86_64.rpm
| 70 kB 00:00:00
(4/21): container-selinux-2.12-2.gite7096ce.el7.noarch.rpm
| 28 kB 00:00:00
(5/21): checkpolicy-2.5-4.el7.x86_64.rpm
| 290 kB 00:00:01
(6/21): docker-client-1.12.6-28.git1398f24.el7.x86_64.rpm
| 3.2 MB 00:00:04
(7/21): docker-common-1.12.6-28.git1398f24.el7.x86_64.rpm
| 75 kB 00:00:00
(8/21): libseccomp-2.3.1-2.el7.x86_64.rpm
| 56 kB 00:00:00
(9/21): libcgroup-0.41-11.el7.x86_64.rpm
| 65 kB 00:00:00
(10/21): docker-rhel-push-plugin-1.12.6-28.git1398f24.el7.x86_64.rpm
| 1.5 MB 00:00:02
(11/21): libsemanage-2.5-5.1.el7_3.x86_64.rpm
| 145 kB 00:00:00
(12/21): libsemanage-python-2.5-5.1.el7_3.x86_64.rpm
| 104 kB 00:00:00
(13/21): oci-register-machine-0-3.11.gitdd0daef.el7.x86_64.rpm
| 1.0 MB 00:00:01
(14/21): oci-systemd-hook-0.1.7-2.git2788078.el7.x86_64.rpm
| 30 kB 00:00:00
(15/21): policycoreutils-python-2.5-11.el7_3.x86_64.rpm
| 445 kB 00:00:01
(16/21): policycoreutils-2.5-11.el7_3.x86_64.rpm
| 842 kB 00:00:02
(17/21): python-IPy-0.75-6.el7.noarch.rpm
| 32 kB 00:00:00
(18/21): skopeo-containers-0.1.19-1.el7.x86_64.rpm
| 7.7 kB 00:00:00
(19/21): yajl-2.0.4-4.el7.x86_64.rpm |
39 kB 00:00:00
(20/21): setools-libs-3.3.8-1.1.el7.x86_64.rpm
| 610 kB 00:00:01
(21/21): docker-1.12.6-28.git1398f24.el7.x86_64.rpm
| 14 MB 00:00:13
------------------------------------------------------------------------------------------------------------------------
--------------------------------------
Total 1.6 MB/s | 23 MB
00:00:14
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : audit-libs-2.6.5-3.el7_3.1.x86_64
1/25
Updating : libsemanage-2.5-5.1.el7_3.x86_64
2/25
Updating : policycoreutils-2.5-11.el7_3.x86_64
3/25
Installing : 2:docker-common-1.12.6-28.git1398f24.el7.x86_64
4/25
Installing : 2:docker-client-1.12.6-28.git1398f24.el7.x86_64
5/25
Installing : libsemanage-python-2.5-5.1.el7_3.x86_64
6/25
Installing : audit-libs-python-2.6.5-3.el7_3.1.x86_64
7/25
Installing : checkpolicy-2.5-4.el7.x86_64
8/25
Installing : setools-libs-3.3.8-1.1.el7.x86_64
9/25
Installing : libcgroup-0.41-11.el7.x86_64
10/25
Installing : yajl-2.0.4-4.el7.x86_64
11/25
Installing : 1:oci-systemd-hook-0.1.7-2.git2788078.el7.x86_64
12/25
Installing : 1:skopeo-containers-0.1.19-1.el7.x86_64
13/25
Installing : 2:docker-rhel-push-plugin-1.12.6-28.git1398f24.el7.x86_64
14/25
Installing : python-IPy-0.75-6.el7.noarch
15/25
Installing : policycoreutils-python-2.5-11.el7_3.x86_64
16/25
Installing : 2:container-selinux-2.12-2.gite7096ce.el7.noarch
17/25
Installing : 1:oci-register-machine-0-3.11.gitdd0daef.el7.x86_64
18/25
Installing : libseccomp-2.3.1-2.el7.x86_64
19/25
Stopping containers...
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
"docker stop" requires at least 1 argument(s).
See 'docker stop --help'.

Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]

Stop one or more running containers


Installing : 2:docker-1.12.6-28.git1398f24.el7.x86_64
20/25
Updating : audit-2.6.5-3.el7_3.1.x86_64
21/25
Cleanup : policycoreutils-2.5-8.el7.x86_64
22/25
Cleanup : libsemanage-2.5-4.el7.x86_64
23/25
Cleanup : audit-2.6.5-3.el7.x86_64
24/25
Cleanup : audit-libs-2.6.5-3.el7.x86_64
25/25
Verifying : libseccomp-2.3.1-2.el7.x86_64
1/25
Verifying : 1:oci-register-machine-0-3.11.gitdd0daef.el7.x86_64
2/25
Verifying : policycoreutils-python-2.5-11.el7_3.x86_64
3/25
Verifying : audit-2.6.5-3.el7_3.1.x86_64
4/25
Verifying : policycoreutils-2.5-11.el7_3.x86_64
5/25
Verifying : python-IPy-0.75-6.el7.noarch
6/25
Verifying : 2:docker-common-1.12.6-28.git1398f24.el7.x86_64
7/25
Verifying : 2:docker-1.12.6-28.git1398f24.el7.x86_64
8/25
Verifying : audit-libs-2.6.5-3.el7_3.1.x86_64
9/25
Verifying : libsemanage-2.5-5.1.el7_3.x86_64
10/25
Verifying : 2:container-selinux-2.12-2.gite7096ce.el7.noarch
11/25
Verifying : 2:docker-rhel-push-plugin-1.12.6-28.git1398f24.el7.x86_64
12/25
Verifying : 1:skopeo-containers-0.1.19-1.el7.x86_64
13/25
Verifying : yajl-2.0.4-4.el7.x86_64
14/25
Verifying : 1:oci-systemd-hook-0.1.7-2.git2788078.el7.x86_64
15/25
Verifying : 2:docker-client-1.12.6-28.git1398f24.el7.x86_64
16/25
Verifying : audit-libs-python-2.6.5-3.el7_3.1.x86_64
17/25
Verifying : libsemanage-python-2.5-5.1.el7_3.x86_64
18/25
Verifying : libcgroup-0.41-11.el7.x86_64
19/25
Verifying : setools-libs-3.3.8-1.1.el7.x86_64
20/25
Verifying : checkpolicy-2.5-4.el7.x86_64
21/25
Verifying : policycoreutils-2.5-8.el7.x86_64
22/25
Verifying : audit-libs-2.6.5-3.el7.x86_64
23/25
Verifying : audit-2.6.5-3.el7.x86_64
24/25
Verifying : libsemanage-2.5-4.el7.x86_64
25/25

Installed:
docker.x86_64 2:1.12.6-28.git1398f24.el7

Dependency Installed:
audit-libs-python.x86_64 0:2.6.5-3.el7_3.1 checkpolicy.x86_64 0:2.5-4.el7
container-selinux.noarch 2:2.12-2.gite7096ce.el7 docker-client.x86_64 2:1.12.6-
28.git1398f24.el7
docker-common.x86_64 2:1.12.6-28.git1398f24.el7 docker-rhel-push-
plugin.x86_64 2:1.12.6-28.git1398f24.el7
libcgroup.x86_64 0:0.41-11.el7 libseccomp.x86_64 0:2.3.1-2.el7
libsemanage-python.x86_64 0:2.5-5.1.el7_3 oci-register-machine.x86_64 1:0-
3.11.gitdd0daef.el7
oci-systemd-hook.x86_64 1:0.1.7-2.git2788078.el7 policycoreutils-python.x86_64
0:2.5-11.el7_3
python-IPy.noarch 0:0.75-6.el7 setools-libs.x86_64 0:3.3.8-1.1.el7
skopeo-containers.x86_64 1:0.1.19-1.el7 yajl.x86_64 0:2.0.4-4.el7

Dependency Updated:
audit.x86_64 0:2.6.5-3.el7_3.1 audit-libs.x86_64 0:2.6.5-3.el7_3.1 libsemanage.x86_64
0:2.5-5.1.el7_3 policycoreutils.x86_64 0:2.5-11.el7_3

Complete!

[root@nilesopen ~]# vi /etc/sysconfig/docker

OPTIONS='--selinux-enabled --insecure-registry 172.30.0.0/16'


[root@nilesopen ~]# cat /etc/sysconfig/docker-storage-setup
# Edit this file to override any configuration options specified in
# /usr/lib/docker-storage-setup/docker-storage-setup.
#
# For more details refer to "man docker-storage-setup"

DEVS=/dev/sdb
VG=vg_open

[root@openshiftnil ~]# atomic-openshift-installer install


Welcome to the OpenShift Enterprise 3 installation.

Please confirm that following prerequisites have been met:

* All systems where OpenShift will be installed are running Red Hat Enterprise
Linux 7.
* All systems are properly subscribed to the required OpenShift Enterprise 3
repositories.
* All systems have run docker-storage-setup (part of the Red Hat docker RPM).
* All systems have working DNS that resolves not only from the perspective of
the installer, but also from within the cluster.

When the process completes you will have a default configuration for masters
and nodes. For ongoing environment maintenance it's recommended that the
official Ansible playbooks be used.

For more information on installation prerequisites please see:


https://docs.openshift.com/enterprise/latest/admin_guide/install/prerequisites.html

Are you ready to continue? [y/N]: y


WARNING: No dedicated nodes specified. By default, colocated masters have
their nodes set to unschedulable. If you proceed all nodes will be labelled
as schedulable.

Are you ready to continue? [y/N]: y


*** Installation Summary ***

Hosts:
- 192.168.1.76
- OpenShift master
- OpenShift node
- Etcd
- Storage

Total OpenShift masters: 1


Total OpenShift nodes: 1

NOTE: Add a total of 3 or more masters to perform an HA installation.

Gathering information from hosts...


All hosts in config are uninstalled. Proceeding with installation...

Wrote atomic-openshift-installer config: /root/.config/openshift/installer.cfg.yml


Wrote Ansible inventory: /root/.config/openshift/hosts

Ready to run installation process.

If changes are needed please edit the config file above and re-run.

Are you ready to continue? [y/N]: y

Play 1/29 (Create initial host groups for localhost)


..
Play 2/29 (Create initial host groups for all hosts)
..
Play 3/29 (Populate config host groups)
................
Play 4/29 (Ensure that all non-node hosts are accessible)
.
Play 5/29 (Initialize host facts)
..........
Play 6/29 (Gather and set facts for node hosts)
.........
Play 7/29 (l_oo_all_hosts)
..
Play 8/29 (Determine openshift_version to configure on first master)
...............................................................................
Play 9/29 (Set oo_option facts)
.......
Play 10/29 (Configure etcd)
................................................................................................................................................................
.................
Play 11/29 (Configure nfs)
........................................
Play 12/29 (Gather and set facts for master hosts)
....................
Play 13/29 (Create temp directory for syncing certs)
.
Play 14/29 (Determine if session secrets must be generated)
........
Play 15/29 (Generate master session secrets)
........
Play 16/29 (Configure masters)
................................................................................................................................................................
................................................................................................................................................................
.......................................................................................
Play 17/29 (Delete temporary directory on localhost)
.
Play 18/29 (Additional master configuration)
................................................................................................................................................................
...........................................
Play 19/29 (Gather and set facts for node hosts)
.........
Play 20/29 (Create temp directory for syncing certs)
.
Play 21/29 (Evaluate node groups)
..
Play 22/29 (Configure containerized nodes)
................................................................................................................................................................
.....................................................................................................................................
Play 23/29 (Additional node config)
............................................................................................................
Play 24/29 (Delete temporary directory on localhost)
.
Play 25/29 (Create persistent volumes)
........................................................................................................
Play 26/29 (Create Hosted Resources)
................................................................................................................................................................
................................................................................................................................................................
...............
192.168.1.76 : ok=694 changed=147 unreachable=0 failed=0
localhost : ok=16 changed=1 unreachable=0 failed=0
Installation Complete: Note: Play count is an estimate and some were skipped because your install
does not require them

The installation was successful!

If this is your first time installing please take a look at the Administrator
Guide for advanced options related to routing, storage, authentication, and
more:

http://docs.openshift.com/enterprise/latest/admin_guide/overview.html

S-ar putea să vă placă și