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

OVN Healthcheck status #1224

Closed
trunet opened this issue Sep 17, 2024 · 1 comment · Fixed by #1251
Closed

OVN Healthcheck status #1224

trunet opened this issue Sep 17, 2024 · 1 comment · Fixed by #1251
Assignees
Labels
API Changes to the REST API Documentation Documentation needs updating Feature New feature, not a bug
Milestone

Comments

@trunet
Copy link
Contributor

trunet commented Sep 17, 2024

Required information

  • Distribution: Ubuntu
  • Distribution version: 22.04
  • The output of "incus info" or if that fails:
    • Kernel version: 6.8.0-40-generic
    • LXC version: 6.0.2
    • Incus version: 6.5
    • Storage backend in use: ceph

Issue description

This is a feature request.

With the implementation of OVN healthchecks on #1127, would be nice to have healthcheck status in incus api.

Per example:

# ovn-nbctl list Load_Balancer
_uuid               : b1b26c89-1282-4652-9d18-f8d25f63c1db
external_ids        : {}
health_check        : [9d49bcac-4201-425a-8815-9719de73b281]
ip_port_mappings    : {"10.[REDACTED].242"="incus-net7-instance-5ac4af01-9912-41c3-8902-dfe42b5abd06-eth0:10.[REDACTED].254", "10.[REDACTED].243"="incus-net7-instance-f067aa9f-eae9-4552-8888-62fc7b9cdf4d-eth0:10.[REDACTED].254", "10.[REDACTED].244"="incus-net7-instance-7e1e9986-f370-48ca-95ed-70dd35a7f32f-eth0:10.[REDACTED].254"}
name                : incus-net7-lb-10.[REDACTED].202-tcp
options             : {}
protocol            : tcp
selection_fields    : []
vips                : {"10.[REDACTED].202:8200"="10.[REDACTED].243:8200,10.[REDACTED].244:8200,10.[REDACTED].242:8200"}

# ovn-sbctl list service_monitor
_uuid               : fe83fa76-4014-4432-a12f-85018e23241d
external_ids        : {}
ip                  : "10.[REDACTED].243"
logical_port        : incus-net7-instance-f067aa9f-eae9-4552-8888-62fc7b9cdf4d-eth0
options             : {failure_count="3", interval="10", success_count="3", timeout="30"}
port                : 8200
protocol            : tcp
src_ip              : "10.[REDACTED].254"
src_mac             : "02:4f:77:db:48:ff"
status              : online

_uuid               : f6a17d57-210c-432f-b55c-d0a574e857ac
external_ids        : {}
ip                  : "10.[REDACTED].242"
logical_port        : incus-net7-instance-5ac4af01-9912-41c3-8902-dfe42b5abd06-eth0
options             : {failure_count="3", interval="10", success_count="3", timeout="30"}
port                : 8200
protocol            : tcp
src_ip              : "10.[REDACTED].254"
src_mac             : "02:4f:77:db:48:ff"
status              : online

_uuid               : 7467ca3f-a18c-4d85-8293-7b22791ba881
external_ids        : {}
ip                  : "10.[REDACTED].244"
logical_port        : incus-net7-instance-7e1e9986-f370-48ca-95ed-70dd35a7f32f-eth0
options             : {failure_count="3", interval="10", success_count="3", timeout="30"}
port                : 8200
protocol            : tcp
src_ip              : "10.[REDACTED].254"
src_mac             : "02:4f:77:db:48:ff"
status              : online
@stgraber stgraber self-assigned this Sep 17, 2024
@stgraber stgraber added Documentation Documentation needs updating Feature New feature, not a bug API Changes to the REST API labels Sep 17, 2024
@stgraber stgraber added this to the incus-6.6 milestone Sep 17, 2024
@stgraber
Copy link
Member

root@server01:~# incus query /1.0/networks/default/load-balancers/172.31.254.50/state
{
	"backend_health": {
		"c1": {
			"address": "10.104.61.2",
			"ports": [
				{
					"port": 80,
					"protocol": "tcp",
					"status": "offline"
				},
				{
					"port": 22,
					"protocol": "tcp",
					"status": "online"
				}
			]
		},
		"c2": {
			"address": "10.104.61.3",
			"ports": [
				{
					"port": 80,
					"protocol": "tcp",
					"status": "online"
				},
				{
					"port": 22,
					"protocol": "tcp",
					"status": "offline"
				}
			]
		}
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Changes to the REST API Documentation Documentation needs updating Feature New feature, not a bug
Development

Successfully merging a pull request may close this issue.

2 participants