Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRD mode breaks metrics listener #2912

Closed
tkam8 opened this issue Jun 5, 2023 · 2 comments · Fixed by #2923
Closed

CRD mode breaks metrics listener #2912

tkam8 opened this issue Jun 5, 2023 · 2 comments · Fixed by #2923

Comments

@tkam8
Copy link

tkam8 commented Jun 5, 2023

Setup Details

CIS Version : 2.13.0
Build: f5networks/k8s-bigip-ctlr:2.13.0
BIGIP Version: Big IP 15.1.8
AS3 Version: 3.26
Agent Mode: AS3
Orchestration: K8S
Orchestration Version: 1.21.5
Pool Mode: Nodeport
Additional Setup details: Calico

Description

As described in #2726 I am unable to access the metrics endpoint when using custom-resource-mode=true

Steps To Reproduce

  1. Deploy CIS with custom-resource-mode=true and --http-listen-address=[::]:8080
    my arguments:
          args: [
            "--bigip-username=$(BIGIP_USERNAME)",
            "--bigip-password=$(BIGIP_PASSWORD)",
            "--bigip-url=[2400:c:1:c:0:0:0:114]",
            "--bigip-partition=k8s",
            "--insecure=true",
            "--pool-member-type=nodeport",
            "--custom-resource-mode=true",
            "--http-listen-address=[::]:8080",
            "--log-as3-response=true",
            "--log-level=debug",
            "--as3-validation=true",
            "--agent=as3",
            "--filter-tenants=true",
            "--disable-teems=true",
            "--enable-ipv6=true",
            "--verify-interval=60"
            ]
  1. Try to hit metrics or health endpoints, note connection refused.

Expected Result

I expect to get metrics and hit the listening port defined

# nsenter -t 84051 -n netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp6       0      0 :::8080                 :::*                    LISTEN <----!!!!!!!!!!!!!!!!!!!!!
tcp6       0      0 2600:2000:1000:11:44520 2600:2000:1000:1111:443 ESTABLISHED
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node   Path

Actual Result

Connection refused

# curl -g http://[2600:2000:1000:1111:14:2:0:6486]:8080/metrics
curl: (7) Failed connect to 2600:2000:1000:1111:14:2:0:6486:8080; Connection refused

# curl -g http://[2600:2000:1000:1111:14:2:0:6486]:8080/health
curl: (7) Failed connect to 2600:2000:1000:1111:14:2:0:6486:8080; Connection refused

Check listening ports, nothing listening on 8080

# nsenter -t 73986 -n netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp6       0      0 worker-117.:39014 2600:2000:1000:11:https ESTABLISHED
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node   Path

Diagnostic Information

Observations (if any)

@trinaths
Copy link
Contributor

trinaths commented Jun 9, 2023

Created [CONTCNTR-4011] for internal tracking.

@trinaths trinaths added JIRA and removed untriaged no JIRA created labels Jun 9, 2023
@lavanya-f5
Copy link
Contributor

dev build: quay.io/f5networks/k8s-bigip-ctlr-devel:41301c5db8f16614fc3f5be053ecbd7fa14e4013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants