Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1466727 - broker resource fail to be created due to catalog api server is connecting a wrong etcd server url
broker resource fail to be created due to catalog api server is connecting a ...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.6.0
Unspecified Unspecified
high Severity high
: ---
: ---
Assigned To: ewolinet
Johnny Liu
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-30 06:38 EDT by Johnny Liu
Modified: 2017-08-16 15 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-08-10 01:29:50 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 05:02:50 EDT

  None (edit)
Description Johnny Liu 2017-06-30 06:38:28 EDT
Description of problem:
see the following for details.

Version-Release number of selected component (if applicable):
openshift-ansible-3.6.126.4-1.git.0.d25d828.el7

How reproducible:
Always

Steps to Reproduce:
1. prepare inventory host file with a external etcd server for cluster install
2. enable catalog service deployment with the following options in inventory host file:
openshift_hosted_etcd_storage_kind=nfs
openshift_hosted_etcd_storage_nfs_options="*(rw,root_squash,sync,no_wdelay)"
openshift_hosted_etcd_storage_nfs_directory=/exports
openshift_hosted_etcd_storage_volume_name=etcd
openshift_hosted_etcd_storage_access_modes=["ReadWriteOnce"]
openshift_hosted_etcd_storage_volume_size=10G
openshift_hosted_etcd_storage_labels={'storage': 'etcd'}

openshift_enable_service_catalog=true
openshift_service_catalog_image_prefix=docker.io/openshift/origin-
openshift_service_catalog_image_version=latest
ansible_service_broker_image_prefix=ansibleplaybookbundle/
ansible_service_broker_image_tag=latest
ansible_service_broker_etcd_image_prefix=quay.io/coreos/
ansible_service_broker_etcd_image_tag=latest

3. trigger installation
4.

Actual results:
Job failed at the following task:
TASK [ansible_service_broker : Create the Broker resource in the catalog] ******
Friday 30 June 2017  07:49:22 +0000 (0:00:01.958)       1:04:18.052 *********** 

fatal: [openshift-155.lab.sjc.redhat.com]: FAILED! => {
    "changed": false, 
    "failed": true
}

MSG:

{u'returncode': 1, u'cmd': u'/usr/bin/oc create -f /tmp/brokerout-xPp27e -n default', u'results': {}, u'stderr': u'Error from server (Timeout): error when creating "/tmp/brokerout-xPp27e": Timeout: request did not complete within allowed duration\n', u'stdout': u''}


After the above failure, log into cluster for a little debug.
1. "oc get broker" will hang there.
2. api server and controller-manager pod are running.
# oc get po -n kube-service-catalog
NAME                       READY     STATUS    RESTARTS   AGE
apiserver-9wwpf            1/1       Running   0          46m
controller-manager-01s5g   1/1       Running   0          46m
3. checking api sever pod's etcd-server url
# oc get po apiserver-9wwpf -o yaml
<--snip-->
    - --etcd-servers
    - https://192.168.2.59:2379   
<--snip-->
It is connect master itself eth0 IP, but not external etcd IP.
After correct it, oc get broker works.


Expected results:
installation is passed.

Additional info:
Comment 4 Johnny Liu 2017-07-04 05:54:45 EDT
Verified this bug with openshift-ansible-3.6.132-1.git.0.0d0f54a.el7.noarch, and PASS.

For single external etcd:
[root@openshift-126 ~]# oc edit ds apiserver -n kube-service-catalog
<--snip-->
      containers:
      - args:
        - --storage-type
        - etcd
        - --secure-port
        - "6443"
        - --etcd-servers
        - https://openshift-140.lab.sjc.redhat.com:2379
        - --etcd-cafile
        - /etc/origin/master/master.etcd-ca.crt
        - --etcd-certfile
        - /etc/origin/master/master.etcd-client.crt
        - --etcd-keyfile
        - /etc/origin/master/master.etcd-client.key
<--snip-->


[root@openshift-126 ~]# cat /etc/origin/master/master-config.yaml
<--snip-->
etcdClientInfo:
  ca: master.etcd-ca.crt
  certFile: master.etcd-client.crt
  keyFile: master.etcd-client.key
  urls:
  - https://openshift-140.lab.sjc.redhat.com:2379
<--snip-->
Comment 6 errata-xmlrpc 2017-08-10 01:29:50 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:1716

Note You need to log in before you can comment on or make changes to this bug.