siamaksade / openshift-jenkins-demo

CI/CD Demo on OpenShift
http://www.openshift.com
530 stars 928 forks source link

Using OpenShift Origin, no response from routes. #109

Closed medined closed 5 years ago

medined commented 5 years ago

Firstly, thanks for taking the time to publish this information. You've inspired me to publish the project I use to start new OpenShift clusters at https://github.com/medined/provision-openshift-using-cloudformation.

I am running into trouble getting this demo to work. After using cicd-template.yaml, I have four applications running (gogs, jenkins, nexus, sonarqube). Everything looks good in the web console. Nothing looks wrong via the 'oc status' command. And the routes are being created:

$ oc get routes
NAME        HOST/PORT                            PATH      SERVICES    PORT       TERMINATION     WILDCARD
gogs        gogs-cicd.52.90.212.49.xip.io                  gogs        <all>                      None
jenkins     jenkins-cicd.52.90.212.49.xip.io               jenkins     <all>      edge/Redirect   None
nexus       nexus-cicd.52.90.212.49.xip.io                 nexus       8081-tcp                   None
sonarqube   sonarqube-cicd.52.90.212.49.xip.io             sonarqube   <all>                      None

However, when I visit the URLs there is no response. Any ideas what could be wrong?

With my shell script, my environment is very repeatable. My inventory file is below, just in case, something is off from the start.

[OSEv3:children]
masters
etcd
nodes

[OSEv3:vars]
ansible_ssh_user=centos
ansible_sudo=true
ansible_become=true
deployment_type=origin
openshift_cloudprovider_kind=aws
openshift_clusterid=d7ec4840-da3
openshift_disable_check=disk_availability,docker_storage,memory_availability
openshift_docker_options='--selinux-enabled --insecure-registry 172.30.0.0/16'
openshift_install_examples=true
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/openshift/openshift-passwd'}]
openshift_release=3.9
os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
osm_default_subdomain=52.90.212.49.xip.io
osm_use_cockpit=true

[masters]
52.90.212.49

[etcd]
52.90.212.49

[nodes]
52.90.212.49 openshift_node_labels="{'region':'infra','zone':'east'}" openshift_schedulable=true
52.90.255.189 openshift_node_labels="{'region': 'primary', 'zone': 'east'}"
52.205.201.149 openshift_node_labels="{'region': 'primary', 'zone': 'east'}"
medined commented 5 years ago

Doh. I am going to stop sending questions until I search for answers for at least a day. My issue was simply that port 80 was not open in the aws security group.