crc-org / crc

CRC is a tool to help you run containers. It manages a local OpenShift 4.x cluster, Microshift or a Podman VM optimized for testing and development purposes
https://crc.dev
Apache License 2.0
1.26k stars 239 forks source link

Not able to access application using Secure Connection HTTPS from outside, HTTP is working fine, Using ISTIO #3790

Closed santoshnt1 closed 1 year ago

santoshnt1 commented 1 year ago

General information

CRC version

# Put `crc version` output here
CRC version: 2.23.0+ddcfe8
OpenShift version: 4.13.3
Podman version: 4.4.4

CRC status

# Put `crc status --log-level debug` output here
DEBU CRC version: 2.23.0+ddcfe8
DEBU OpenShift version: 4.13.3
DEBU Podman version: 4.4.4
DEBU Running 'crc status'
CRC VM:          Running
OpenShift:       Running (v4.13.3)
RAM Usage:       12.71GB of 16.77GB
Disk Usage:      26.35GB of 32.68GB (Inside the CRC VM)
Cache Usage:     21.32GB

CRC config

# Put `crc config view` output here
- consent-telemetry       : no
- cpus                             : 8
- memory                       : 16384

Host Operating System

# Put the output of `cat /etc/os-release` in case of Linux
# put the output of `sw_vers` in case of Mac
# Put the output of `systeminfo` in case of Windows
Host Name:                
OS Name:                   Microsoft Windows 10 Enterprise
OS Version:                10.0.19045 N/A Build 19045
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          
Registered Organization:   
Product ID:                00330-80000-00000-AA761
Original Install Date:     05/07/2023, 17:21:39
System Boot Time:          14/08/2023, 08:28:00
System Manufacturer:       HP
System Model:              HP ZBook Firefly 16 inch G9 Mobile Workstation PC
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 154 Stepping 3 GenuineIntel ~1800 Mhz
BIOS Version:              HP U71 Ver. 01.08.01, 18/07/2023
Windows Directory:         C:\windows
System Directory:          C:\windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             en-us;English (United States)
Input Locale:              en-gb;English (United Kingdom)
Time Zone:                 (UTC+00:00) Dublin, Edinburgh, Lisbon, London
Total Physical Memory:     32,400 MB
Available Physical Memory: 4,083 MB
Virtual Memory: Max Size:  42,640 MB
Virtual Memory: Available: 8,014 MB
Virtual Memory: In Use:    34,626 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\GB-5CG30917V4
Hotfix(s):                 9 Hotfix(s) Installed.
                           [01]: KB5027122
                           [02]: KB5012170
                           [03]: KB5015684
                           [04]: KB5026037
                           [05]: KB5028166
                           [06]: KB5014032
                           [07]: KB5020372
                           [08]: KB5026879
                           [09]: KB5028318
Network Card(s):           7 NIC(s) Installed.
                           [01]: Intel(R) Wi-Fi 6E AX211 160MHz
                                 Connection Name: Wi-Fi
                                 Status:          Media disconnected
                           [02]: Bluetooth Device (Personal Area Network)
                                 Connection Name: Bluetooth Network Connection
                                 Status:          Media disconnected
                           [03]: Lenovo USB Ethernet
                                 Connection Name: Ethernet 2
                                 DHCP Enabled:    Yes
                                 DHCP Server:     192.168.0.1
                                 IP address(es)
                                 [01]: 192.168.0.18
                                 [02]: fe80::2eb:fe4f:af21:a2e6
                           [04]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (Default Switch)
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: 172.30.144.1
                                 [02]: fe80::2b12:abb9:bd42:3885
                           [05]: Wintun Userspace Tunnel
                                 Connection Name: Appgate SDP
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: 172.24.255.60
                           [06]: Zscaler Network Adapter 1.0.2.0
                                 Connection Name: Ethernet 4
                                 Status:          Media disconnected
                           [07]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (WSL)
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: 172.22.16.1
                                 [02]: fe80::9e42:1841:1177:5553
Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Steps to reproduce

  1. Create HTTPs gateway
  2. Create HTTPS VS
  3. Test Https application link - https://[bookinfo-bookinfo-gatewayhttps-684888c0ebb17f37-istio-system.apps-crc.testing](https://bookinfo-bookinfo-gatewayhttps-684888c0ebb17f37-istio-system.apps-crc.testing/productpage)/productpage

Expected

Application page

The Comedy of Errors
Summary: [Wikipedia Summary](https://en.wikipedia.org/wiki/The_Comedy_of_Errors): The Comedy of Errors is one of William Shakespeare's early plays. It is his shortest and one of his most farcical comedies, with a major part of the humour coming from slapstick and mistaken identity, in addition to puns and word play.

Book Details
Type:
paperback
Pages:
200
Publisher:
PublisherA
Language:
English
ISBN-10:
1234567890
ISBN-13:
123-1234567890
Book Reviews
An extremely entertaining play by Shakespeare. The slapstick humour is refreshing!

Reviewer1

Absolutely fun and entertaining. The play lacks thematic depth when compared to other plays by Shakespeare.

Reviewer2

Reviews served by:
reviews-v3-55f9d7445c-8pfvk

Actual

Hmmm… can't reach this page

It looks like bookinfo-bookinfo-gatewayhttps-684888c0ebb17f37-istio-system.apps-crc.testing closed the connection

Try:

Checking the connection Checking the proxy and the firewall [Running Windows Network Diagnostics](javascript:diagnoseErrors()) ERR_CONNECTION_CLOSED

Logs

Before gather the logs try following if that fix your issue

$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug

https://gist.github.com/santoshnt1/6d2ad1f9cdf444cc5b6a86c4e1014853

cfergeau commented 1 year ago

Do you get the same 'connection closed' error when using curl to access https://bookinfo-bookinfo-gatewayhttps-684888c0ebb17f37-istio-system.apps-crc.testing/productpage? I'm wondering if this could be an issue with the self-signed certificate crc is using for its cluster.

praveenkumar commented 1 year ago

By default http based route is created, if you want to have different way like https then you need to do some manual steps as part of route config https://docs.openshift.com/container-platform/4.13/networking/routes/route-configuration.html mentions different type of route configurations in OpenShift.

santoshnt1 commented 1 year ago

By default http based route is created, if you want to have different way like https then you need to do some manual steps as part of route config https://docs.openshift.com/container-platform/4.13/networking/routes/route-configuration.html mentions different type of route configurations in OpenShift.

Hi Praveen, the solution worked for me. Thanks for the help Many Thanks Santosh Kumar