Skip to content

Instantly share code, notes, and snippets.

@jwmatthews
Last active September 14, 2017 17:11
Show Gist options
  • Save jwmatthews/9c2c9f4221482d57245361b6b466c2a2 to your computer and use it in GitHub Desktop.
Save jwmatthews/9c2c9f4221482d57245361b6b466c2a2 to your computer and use it in GitHub Desktop.
Debugging RHTE environment 9/14/2017
sudo yum groupinstall -y "Development Tools"
sudo yum install -y python-devel
sudo easy_install pip
sudo pip install ansible
git clone https://github.com/fusor/catasb.git
modify catasb/config/linux_env_vars
$ cat ../../config/linux_env_vars
metadata_endpoint="http://169.254.169.254/latest/meta-data"
export PUBLIC_IP="$( curl -m 20 -s "${metadata_endpoint}/public-ipv4" )"
export OPENSHIFT_HOSTNAME="$( curl -m 20 -s "${metadata_endpoint}/public-hostname" )"
export OPENSHIFT_ROUTING_SUFFIX="${PUBLIC_IP}.nip.io"
export EXTRA_VARS="{\"openshift_hostname\":\"${OPENSHIFT_HOSTNAME}\", \"openshift_routing_suffix\":\"${OPENSHIFT_ROUTING_SUFFIX}\" }"
cd catasb/local/linux
./run_setup_local.sh
Cluster comes up, but no ABPs.
Turns out Service Catalog cant talk to Broker, seeing below error:
I0914 15:32:43.823454 1 event.go:217] Event(v1.ObjectReference{Kind:"Broker", Namespace:"", Name:"ansible-service-broker", UID:"9081ae10-9961-11e7-aa3c-0242ac110003", APIVersion:"servicecatalog.k8s.io", ResourceVersion:"5", FieldPath:""}): type: 'Warning' reason: 'ErrorFetchingCatalog' Error getting broker catalog for broker "ansible-service-broker": Get https://asb-1338-ansible-service-broker.52.59.211.133.nip.io/v2/catalog: dial tcp 52.59.211.133:443: getsockopt: no route to host
Turns out was firewall issue, if we open firewall then communication is flowing and service catalog can talk to the broker
sudo iptables -F
Wait a few seconds and look at log again (note different IP, since below is from a different instance)
I0914 17:04:25.639693 1 event.go:217] Event(v1.ObjectReference{Kind:"Broker", Namespace:"", Name:"ansible-service-broker", UID:"e60114de-996d-11e7-abef-0242ac110007", APIVersion:"servicecatalog.k8s.io", ResourceVersion:"5", FieldPath:""}): type: 'Normal' reason: 'FetchedCatalog' Successfully fetched catalog entries from broker.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment