@Gregory Thiemonge Thanks for your reply, yes I deploy octavia manually in centos,I do not add heartbeat_key at first, and I notice the "Exception: 'NoneType' object has no attribute 'encode'" warning in log, so I found the solution from network which told me to add heartbeat_key in octavia.conf.
So the actual question is my LB is offline, and I can not find where the problem is. Here are some information I collected in attachments, hope you can give me some suggestion.
| |
zhengrui20220
|
|
zhengrui20220@163.com
|
---- Replied Message ----
| From | Gregory Thiemonge<email address hidden> |
| Date | 12/20/2023 15:32 |
| To | <zhengrui20220@163.com> |
| Subject | [Bug 2046877] Re: octavia lb opearting status is offline |
Thanks for reporting this issue.
what deployment tool do you use? Is it a manual install?
I see 2 potential issues in this story:
1. we don't mention heartbeat_key in the installation guide
2. when heartbeat_key is not set, the amphora agent and the services have different behaviors.
when heartbeat_key is not set, the value is None, but:
- the amphora agent signs the data with a "None" key (note the double quote, it's a string)
- the health-manager verifies the data with a None key (not a string)
we could either ensure that a None key is handled in the same way on
both sides, or we could add a big warning in the HM when the key is not
set.
Bug description:
my lb can work successfully, but the lb's operating_status is offine,
lb's provider is amphora, network is ovn, the health-manager log show
some thing may be useful. it shows:
2023-12-19 14:59:34.252 1037110 DEBUG octavia.amphorae.drivers.health.heartbeat_udp [-] Received packet from ('172.16.2.193', 30377) dorecv /usr/lib/python3.6/site-packages/octavia/amphorae/drivers/health/heartbeat_udp.py:95
2023-12-19 14:59:34.253 1037110 WARNING octavia.amphorae.drivers.health.heartbeat_udp [-] Health Manager experienced an exception processing a heartbeat message from ('172.16.2.193', 30377). Ignoring this packet. Exception: 'NoneType' object has no attribute 'encode'
but when I add heartbeat_key in octavia.conf, it show hmac not equal,
and now i do not have a idea about it.
@Gregory Thiemonge Thanks for your reply, yes I deploy octavia manually in centos,I do not add heartbeat_key at first, and I notice the "Exception: 'NoneType' object has no attribute 'encode'" warning in log, so I found the solution from network which told me to add heartbeat_key in octavia.conf.
So the actual question is my LB is offline, and I can not find where the problem is. Here are some information I collected in attachments, hope you can give me some suggestion.
| | 163.com
zhengrui20220
|
|
zhengrui20220@
|
---- Replied Message ---- 163.com> |
| From | Gregory Thiemonge<email address hidden> |
| Date | 12/20/2023 15:32 |
| To | <zhengrui20220@
| Subject | [Bug 2046877] Re: octavia lb opearting status is offline |
Thanks for reporting this issue.
what deployment tool do you use? Is it a manual install?
I see 2 potential issues in this story:
1. we don't mention heartbeat_key in the installation guide
There was a proposal for a new guide for centos that also specifies that heartbeat_key should be set in the ubuntu guide but it's still in review /review. opendev. org/c/openstack /octavia/ +/784022
https:/
2. when heartbeat_key is not set, the amphora agent and the services have different behaviors.
when heartbeat_key is not set, the value is None, but:
- the amphora agent signs the data with a "None" key (note the double quote, it's a string)
- the health-manager verifies the data with a None key (not a string)
we could either ensure that a None key is handled in the same way on
both sides, or we could add a big warning in the HM when the key is not
set.
-- /bugs.launchpad .net/bugs/ 2046877
You received this bug notification because you are subscribed to the bug
report.
https:/
Title:
octavia lb opearting status is offline
Status in octavia:
Confirmed
Bug description:
my lb can work successfully, but the lb's operating_status is offine,
lb's provider is amphora, network is ovn, the health-manager log show
some thing may be useful. it shows:
2023-12-19 14:59:34.252 1037110 DEBUG octavia. amphorae. drivers. health. heartbeat_ udp [-] Received packet from ('172.16.2.193', 30377) dorecv /usr/lib/ python3. 6/site- packages/ octavia/ amphorae/ drivers/ health/ heartbeat_ udp.py: 95 amphorae. drivers. health. heartbeat_ udp [-] Health Manager experienced an exception processing a heartbeat message from ('172.16.2.193', 30377). Ignoring this packet. Exception: 'NoneType' object has no attribute 'encode'
2023-12-19 14:59:34.253 1037110 WARNING octavia.
but when I add heartbeat_key in octavia.conf, it show hmac not equal,
and now i do not have a idea about it.
here is my octavia.conf
[DEFAULT] //openstack: RABBIT_ PASS@controller provider_ drivers = ovn:'Octavia OVN driver' ,amphora: 'The Octavia Amphora driver' refresh_ interval = 5 //octavia: OCTAVIA_ DBPASS@ controller/ octavia ip_port_ list = 172.16.2.2:5555 authtoken] e_uri = http:// controller: 5000 controller: 5000 certs/private/ server_ ca.key. pem certs/server_ ca.cert. pem certs_key_ passphrase = insecure- key-do- not-use- this-key key_passphrase = not-secure- passphrase certs/server_ ca-chain. cert.pem certs/private/ client. cert-and- key.pem interface = o-hm0 certs/client_ ca.cert. pem network_ list=8d310f13- 4c3c-4688- a2ff-e00b6bba7a e7 5374-490c- 9bcd-40e76b79e4 27 address_ pairs_driver haproxy_ rest_driver controller: 5000 controller: 5000 octavia/ status. sock octavia/ stats.sock octavia/ get.sock provider_ agents = ovn,amphora 168.122. 94:6641 168.122. 94:6642
debug = True
transport_url = rabbit:
[api_settings]
bind_host = 0.0.0.0
bind_port = 9876
enabled_
healthcheck_enabled = True
healthcheck_
[database]
connection = mysql+pymysql:
[health_manager]
bind_port = 5555
bind_ip = 172.16.2.2
controller_
[keystone_
www_authenticat
auth_url = http://
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = octavia
password = OCTAVIA_PASS
[certificates]
ca_private_key = /etc/octavia/
ca_certificate = /etc/octavia/
server_
ca_private_
[haproxy_amphora]
server_ca = /etc/octavia/
client_cert = /etc/octavia/
bind_host = 0.0.0.0
bind_port = 9443
lb_network_
[controller_worker]
client_ca = /etc/octavia/
amp_image_tag = Amphora
amp_flavor_id = 100
amp_boot_
amp_secgroup_list = 58b02d55-
network_driver = allowed_
compute_driver = compute_nova_driver
amphora_driver = amphora_
[oslo_messaging]
topic = octavia_prov
[service_auth]
auth_url = http://
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = octavia
password = OCTAVIA_PASS
[neutron]
auth_url = http://
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = NEUTRON_PASS
[driver_agent]
status_socket_path = /var/run/
stats_socket_path = /var/run/
get_socket_path = /var/run/
enabled_
[ovn]
ovn_nb_connection = tcp:192.
ovn_sb_connection = tcp:192.
To manage notifications about this bug go to: /bugs.launchpad .net/octavia/ +bug/2046877/ +subscriptions
https:/