[OpenShift origin] OpenShift originのインストールにチャレンジⅢ

OpenShift origin

OpenShift originのansibleによるインストールがうまくいかないので
少し前のブランチ(release-3.8)からcloneしてきて試してみます。

# cd ~
# rm -rf openshift-ansible
# git clone -b release-3.8 https://github.com/openshift/openshift-ansible
Cloning into 'openshift-ansible'...
remote: Counting objects: 83881, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 83881 (delta 0), reused 0 (delta 0), pack-reused 83879
Receiving objects: 100% (83881/83881), 21.30 MiB | 2.70 MiB/s, done.
Resolving deltas: 100% (51040/51040), done.

# cd openshift-ansible
# ansible-playbook ~/openshift-ansible/playbooks/byo/config.yml

今度は違うところで怒られました…"(-""-)"
TASK [ansible_service_broker : oc_secret] *****************************************************************************************
Sunday 10 December 2017 06:12:48 +0900 (0:00:00.873) 0:19:42.811 *******
ok: [master.example.com]

TASK [ansible_service_broker : Create the Broker resource in the catalog] *********************************************************
Sunday 10 December 2017 06:12:49 +0900 (0:00:00.894) 0:19:43.706 *******
fatal: [master.example.com]: FAILED! => {"changed": false, "failed": true, "msg": {"cmd": "/usr/bin/oc create -f /tmp/brokerout-e1uNPE -n default", "results": {}, "returncode": 1, "stderr": "error: unable to recognize \"/tmp/brokerout-e1uNPE\": no matches for servicecatalog.k8s.io/, Kind=ClusterServiceBroker\n", "stdout": ""}}

PLAY RECAP ************************************************************************************************************************
localhost : ok=12 changed=0 unreachable=0 failed=0
master.example.com : ok=576 changed=98 unreachable=0 failed=1
node1.example.com : ok=164 changed=23 unreachable=0 failed=0


INSTALLER STATUS ******************************************************************************************************************
Initialization : Complete (0:00:36)
Health Check : Complete (0:01:05)
etcd Install : Complete (0:00:44)
Master Install : Complete (0:02:02)
Master Additional Install : Complete (0:00:32)
Node Install : Complete (0:01:58)
Hosted Install : Complete (0:11:29)
Service Catalog Install : In Progress (0:01:08)
This phase can be restarted by running: playbooks/openshift-service-catalog/config.yml

Sunday 10 December 2017 06:12:49 +0900 (0:00:00.919) 0:19:44.626 *******
===============================================================================
openshift_hosted : Ensure OpenShift pod correctly rolls out (best-effort today) ------------------------------------------ 608.31s
Run health checks (install) - EL ------------------------------------------------------------------------------------------ 64.19s
openshift_hosted : Ensure OpenShift pod correctly rolls out (best-effort today) ------------------------------------------- 16.54s
openshift_service_catalog : oc_process ------------------------------------------------------------------------------------ 15.57s
docker : restart docker --------------------------------------------------------------------------------------------------- 14.64s
openshift_hosted_facts : Set hosted facts --------------------------------------------------------------------------------- 10.87s
os_firewall : need to pause here, otherwise the iptables service starting can sometimes cause ssh to fail ----------------- 10.11s
os_firewall : need to pause here, otherwise the iptables service starting can sometimes cause ssh to fail ----------------- 10.09s
os_firewall : Wait 10 seconds after disabling firewalld ------------------------------------------------------------------- 10.07s
openshift_excluder : Install docker excluder - yum ------------------------------------------------------------------------- 9.62s
openshift_hosted_facts : Set hosted facts ---------------------------------------------------------------------------------- 9.28s
openshift_hosted_facts : Set hosted facts ---------------------------------------------------------------------------------- 8.35s
openshift_hosted_facts : Set hosted facts ---------------------------------------------------------------------------------- 8.26s
openshift_manageiq : Configure role/user permissions ----------------------------------------------------------------------- 7.43s
openshift_excluder : Install docker excluder - yum ------------------------------------------------------------------------- 5.46s
openshift_node_facts : Set node facts -------------------------------------------------------------------------------------- 5.26s
docker : restart docker ---------------------------------------------------------------------------------------------------- 5.23s
openshift_docker_facts : Set docker facts ---------------------------------------------------------------------------------- 3.93s
openshift_docker_facts : Set docker facts ---------------------------------------------------------------------------------- 3.60s
openshift_cloud_provider : Set cloud provider facts ------------------------------------------------------------------------ 3.41s

error: unable to recognize "/tmp/brokerout-e1uNPE": no matches for servicecatalog.k8s.io/, Kind=ClusterServiceBroker
既に"/tmp/brokerout-e1uNPE"は削除されてしまっているので詳細は不明ですが
servicecatalog.k8s.io/がマッチしないとの事みたいです。

もうちょい前のブランチ(release-3.7)からcloneしてきて試してみます。
# cd ~
# rm -rf openshift-ansible
# git clone -b release-3.7 https://github.com/openshift/openshift-ansible
Cloning into 'openshift-ansible'...
remote: Counting objects: 83881, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 83881 (delta 0), reused 0 (delta 0), pack-reused 83879
Receiving objects: 100% (83881/83881), 21.30 MiB | 2.68 MiB/s, done.
Resolving deltas: 100% (51040/51040), done.

# cd openshift-ansible
# ansible-playbook ~/openshift-ansible/playbooks/byo/config.yml


TASK [openshift_hosted : Retrieve provided certificate files] *********************************************************************
Sunday 10 December 2017 06:47:07 +0900 (0:00:00.046) 0:17:09.032 *******

TASK [openshift_hosted : Configure a passthrough route for docker-registry] *******************************************************
Sunday 10 December 2017 06:47:07 +0900 (0:00:00.040) 0:17:09.072 *******
fatal: [master.example.com]: FAILED! => {"changed": false, "failed": true, "msg": {"cmd": "/usr/bin/oc replace -f /tmp/docker-registry-dK0q6v --force -n default", "results": {}, "returncode": 1, "stderr": "Error from server (AlreadyExists): object is being deleted: routes.route.openshift.io \"docker-registry\" already exists\n", "stdout": "route \"docker-registry\" deleted\n"}, "state": "present"}

NO MORE HOSTS LEFT ****************************************************************************************************************

PLAY RECAP ************************************************************************************************************************
localhost : ok=12 changed=0 unreachable=0 failed=0
master.example.com : ok=439 changed=57 unreachable=0 failed=1
node1.example.com : ok=160 changed=15 unreachable=0 failed=0


INSTALLER STATUS ******************************************************************************************************************
Initialization : Complete
Health Check : Complete
etcd Install : Complete
Master Install : Complete
Master Additional Install : Complete
Node Install : Complete
Hosted Install : In Progress
This phase can be restarted by running: playbooks/byo/openshift-cluster/openshift-hosted.yml

Sunday 10 December 2017 06:52:08 +0900 (0:05:01.426) 0:22:10.499 *******
===============================================================================
openshift_hosted : Ensure OpenShift pod correctly rolls out (best-effort today) ------------------------------------------ 608.34s
openshift_hosted : Configure a passthrough route for docker-registry ----------------------------------------------------- 301.43s
Run health checks (install) - EL ------------------------------------------------------------------------------------------ 71.43s
openshift_hosted_facts : Set hosted facts ---------------------------------------------------------------------------------- 9.86s
openshift_hosted_facts : Set hosted facts ---------------------------------------------------------------------------------- 9.80s
openshift_hosted_facts : Set hosted facts ---------------------------------------------------------------------------------- 8.45s
openshift_hosted_facts : Set hosted facts ---------------------------------------------------------------------------------- 8.36s
openshift_manageiq : Configure role/user permissions ----------------------------------------------------------------------- 4.97s
openshift_excluder : Install docker excluder - yum ------------------------------------------------------------------------- 4.83s
openshift_node_facts : Set node facts -------------------------------------------------------------------------------------- 3.97s
openshift_docker_facts : Set docker facts ---------------------------------------------------------------------------------- 3.88s
openshift_excluder : Install docker excluder - yum ------------------------------------------------------------------------- 3.83s
openshift_docker_facts : Set docker facts ---------------------------------------------------------------------------------- 3.70s
openshift_docker_facts : Set docker facts ---------------------------------------------------------------------------------- 3.43s
openshift_docker_facts : Set docker facts ---------------------------------------------------------------------------------- 3.16s
openshift_hosted : Create OpenShift router --------------------------------------------------------------------------------- 2.74s
Gather Cluster facts and set is_containerized if needed -------------------------------------------------------------------- 2.57s
Ensure openshift-ansible installer package deps are installed -------------------------------------------------------------- 2.55s
openshift_master : Update journald setup ----------------------------------------------------------------------------------- 2.43s
restart master api --------------------------------------------------------------------------------------------------------- 2.26s

振り出しにもどる…"(-""-)"
関連記事

2 comments

非公開コメント

0 trackbacks

この記事にトラックバックする(FC2ブログユーザー)