+++ This bug was initially created as a clone of Bug #1933251 +++ Description of problem: Octaiva listener creation is not using the timeout_* specified in the octavia configuration. ~~~ timeout_client_data=200000 timeout_member_connect=5000 timeout_member_data=200000 timeout_tcp_inspect=0 ~~~ Default for `timeout_client_data` and `timeout_memebr_data` are 50000 in the `octavia.conf` Version-Release number of selected component (if applicable): Red Hat OpenStack Platform release 13.0.14 (Queens) How reproducible: Always Steps to Reproduce: 1.Configure the `timeout_client_data` to 200000 (20 mins) in `/var/lib/config-data/puppet-generated/octavia/etc/octavia/octavia.conf` on the all controllers. 2.Restart all the octavia containers. 3.Create a LB 4.Create listener as per below commands. Commands ~~~ openstack loadbalancer create --name lb1 --vip-subnet-id private openstack loadbalancer listener create --name listener1 --protocol HTTP --protocol-port 80 lb1 ~~~ We can see that the timeout configured in the octavia configuration did not take effect. ~~~ (overcloud) [stack@undercloud-0 ~]$ openstack loadbalancer listener show e465904a-7a25-4d9a-a77a-a4472487f12a +-----------------------------+--------------------------------------+ | Field | Value | +-----------------------------+--------------------------------------+ | admin_state_up | True | | connection_limit | -1 | | created_at | 2021-02-26T02:54:10 | | default_pool_id | None | | default_tls_container_ref | None | | description | | | id | e465904a-7a25-4d9a-a77a-a4472487f12a | | insert_headers | None | | l7policies | | | loadbalancers | 649d7397-ca71-4844-a081-4c48fc3fb665 | | name | listener1 | | operating_status | ONLINE | | project_id | 3c334781c3aa4ed3be6d247f7f5b0d8c | | protocol | HTTP | | protocol_port | 80 | | provisioning_status | ACTIVE | | sni_container_refs | [] | | timeout_client_data | 50000 | <---HERE Still 50000 | timeout_member_connect | 5000 | | timeout_member_data | 50000 | <---HERE Still 50000 | timeout_tcp_inspect | 0 | | updated_at | 2021-02-26T02:54:20 | | client_ca_tls_container_ref | None | | client_authentication | NONE | | client_crl_container_ref | None | | allowed_cidrs | None | +-----------------------------+--------------------------------------+ ~~~ DO NOTE: Creating a listener with `--timeout-client-data 200000` works as expected. Expected results: These timeout settings specified in the configuration should be used as the defaults not `50000`. Additional info: Also not that this same issue is happening on Openstack 16.1 Red Hat OpenStack Platform release 16.1.3 GA (Train)
Verified in: [2021-07-20 06:26:39] (tester) [stack@undercloud-0 ~]$ cat /var/lib/rhos-release/latest-installed 16.2 -p RHOS-16.2-RHEL-8-20210713.n.0 Before change: [root@controller-0 ~]# cat /var/lib/config-data/puppet-generated/octavia/etc/octavia/octavia.conf | grep timeout_ timeout_client_data=50000 timeout_member_connect=5000 timeout_member_data=50000 timeout_tcp_inspect=0 [root@controller-0 ~]# 1.Configure the `timeout_client_data` to 200000 (20 mins) in `/var/lib/config-data/puppet-generated/octavia/etc/octavia/octavia.conf` on the all controllers: [root@controller-0 ~]# cat /var/lib/config-data/puppet-generated/octavia/etc/octavia/octavia.conf | grep timeout_ timeout_client_data=200000 timeout_member_connect=5000 timeout_member_data=50000 timeout_tcp_inspect=0 2.Restart all the octavia containers: [root@controller-0 ~]# podman restart octavia_api octavia_driver_agent octavia_health_manager octavia_housekeeping octavia_worker 6da5018eb557df95285553d6f3a9395f857b47dba25b2faa39c32aa1e294513e 0f819f219d6021bedb8b91c869dd422889150d1256a58bdbf4b7d8e46d168c8a 0d3372544eb10be60ff4a1d7f4ce452c00d4e37ae6501d735cc5b82620a35437 311edc315a7b4408f47d22356ac60012809304f7e9d92d7544eceae93cc345e1 8bd81ba5b2eb63a7afee704b179fb11e315626fa68b766e934dab67736b0c5eb [root@controller-0 ~]# podman ps | grep octavia 6da5018eb557 undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhosp16-openstack-octavia-api:16.2_20210713.1 kolla_start 16 hours ago Up About a minute ago octavia_api 0f819f219d60 undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhosp16-openstack-octavia-api:16.2_20210713.1 kolla_start 16 hours ago Up About a minute ago octavia_driver_agent 0d3372544eb1 undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhosp16-openstack-octavia-health-manager:16.2_20210713.1 kolla_start 16 hours ago Up About a minute ago octavia_health_manager 311edc315a7b undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhosp16-openstack-octavia-housekeeping:16.2_20210713.1 kolla_start 16 hours ago Up About a minute ago octavia_housekeeping 8bd81ba5b2eb undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhosp16-openstack-octavia-worker:16.2_20210713.1 kolla_start 16 hours ago Up 37 seconds ago octavia_worker [root@controller-0 ~]# 3.Create a LB: [2021-07-20 06:14:22] (tester) [stack@undercloud-0 ~]$ openstack loadbalancer create --name lb1 --vip-subnet-id subnet_ipv4_1 +---------------------+--------------------------------------+ | Field | Value | +---------------------+--------------------------------------+ | admin_state_up | True | | created_at | 2021-07-20T10:14:31 | | description | | | flavor_id | None | | id | e37e71a0-e78e-4a43-8f39-640bb729de00 | | listeners | | | name | lb1 | | operating_status | OFFLINE | | pools | | | project_id | 52237d051296475d9455ca1f654e5f77 | | provider | amphora | | provisioning_status | PENDING_CREATE | | updated_at | None | | vip_address | 10.0.1.45 | | vip_network_id | a10602b1-14fb-4f68-8a3d-3394593d5f03 | | vip_port_id | 79bd0909-f6be-4c49-b73a-bbe4e62e178c | | vip_qos_policy_id | None | | vip_subnet_id | 652e2454-8e03-4fc1-8c8f-b06d44029b6b | +---------------------+--------------------------------------+ [2021-07-20 06:14:32] (tester) [stack@undercloud-0 ~]$ openstack loadbalancer list +--------------------------------------+------+----------------------------------+-------------+---------------------+----------+ | id | name | project_id | vip_address | provisioning_status | provider | +--------------------------------------+------+----------------------------------+-------------+---------------------+----------+ | e37e71a0-e78e-4a43-8f39-640bb729de00 | lb1 | 52237d051296475d9455ca1f654e5f77 | 10.0.1.45 | ACTIVE | amphora | +--------------------------------------+------+----------------------------------+-------------+---------------------+----------+ [2021-07-20 06:21:44] (tester) [stack@undercloud-0 ~]$ openstack loadbalancer show lb1 +---------------------+--------------------------------------+ | Field | Value | +---------------------+--------------------------------------+ | admin_state_up | True | | created_at | 2021-07-20T10:14:31 | | description | | | flavor_id | None | | id | e37e71a0-e78e-4a43-8f39-640bb729de00 | | listeners | | | name | lb1 | | operating_status | ONLINE | | pools | | | project_id | 52237d051296475d9455ca1f654e5f77 | | provider | amphora | | provisioning_status | ACTIVE | | updated_at | 2021-07-20T10:16:16 | | vip_address | 10.0.1.45 | | vip_network_id | a10602b1-14fb-4f68-8a3d-3394593d5f03 | | vip_port_id | 79bd0909-f6be-4c49-b73a-bbe4e62e178c | | vip_qos_policy_id | None | | vip_subnet_id | 652e2454-8e03-4fc1-8c8f-b06d44029b6b | +---------------------+--------------------------------------+ 4.Create listener: [2021-07-20 06:21:59] (tester) [stack@undercloud-0 ~]$ openstack loadbalancer listener create --name listener1 --protocol HTTP --protocol-port 80 lb1 +-----------------------------+--------------------------------------+ | Field | Value | +-----------------------------+--------------------------------------+ | admin_state_up | True | | connection_limit | -1 | | created_at | 2021-07-20T10:24:06 | | default_pool_id | None | | default_tls_container_ref | None | | description | | | id | 14ae52a6-8204-4545-9f1b-e0f75005b049 | | insert_headers | None | | l7policies | | | loadbalancers | e37e71a0-e78e-4a43-8f39-640bb729de00 | | name | listener1 | | operating_status | OFFLINE | | project_id | 52237d051296475d9455ca1f654e5f77 | | protocol | HTTP | | protocol_port | 80 | | provisioning_status | PENDING_CREATE | | sni_container_refs | [] | | timeout_client_data | 200000 | | timeout_member_connect | 5000 | | timeout_member_data | 50000 | | timeout_tcp_inspect | 0 | | updated_at | None | | client_ca_tls_container_ref | None | | client_authentication | NONE | | client_crl_container_ref | None | | allowed_cidrs | None | +-----------------------------+--------------------------------------+ [2021-07-20 06:26:25] (tester) [stack@undercloud-0 ~]$ openstack loadbalancer listener show listener1 +-----------------------------+--------------------------------------+ | Field | Value | +-----------------------------+--------------------------------------+ | admin_state_up | True | | connection_limit | -1 | | created_at | 2021-07-20T10:24:06 | | default_pool_id | None | | default_tls_container_ref | None | | description | | | id | 14ae52a6-8204-4545-9f1b-e0f75005b049 | | insert_headers | None | | l7policies | | | loadbalancers | e37e71a0-e78e-4a43-8f39-640bb729de00 | | name | listener1 | | operating_status | ONLINE | | project_id | 52237d051296475d9455ca1f654e5f77 | | protocol | HTTP | | protocol_port | 80 | | provisioning_status | ACTIVE | | sni_container_refs | [] | | timeout_client_data | 200000 | | timeout_member_connect | 5000 | | timeout_member_data | 50000 | | timeout_tcp_inspect | 0 | | updated_at | 2021-07-20T10:24:15 | | client_ca_tls_container_ref | None | | client_authentication | NONE | | client_crl_container_ref | None | | allowed_cidrs | None | +-----------------------------+--------------------------------------+ We can see that the listener is created with timeout_client_data of 200000 as expected. Moving the bug to VERIFIED.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2021:3483