lbaas pool members are nameless

Bug #1707940 reported by Antoni Segura Puimedon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kuryr-kubernetes
High
Antoni Segura Puimedon

Bug Description

Steps to repoduce:

1. use local.conf.sample to stack
2. kubectl run --image=celebdor/kuryr-demo demo
3. kubectl scale deploy/demo --replicas=2
4. kubectl expose deploy/demo --port 80 --target-port 8080
5. wait for the lb and members to come up
6. openstack loadbalancer member list default/demo:TCP:80

Expected result:
+--------------------------------------+------+----------------------------------+---------------------+-----------+---------------+------------------+--------+
| id | name | project_id | provisioning_status | address | protocol_port | operating_status | weight |
+--------------------------------------+------+----------------------------------+---------------------+-----------+---------------+------------------+--------+
| e2f6cfff-e112-4651-9327-8f3616edaee0 | demo-2293951457-t4544 | b774b17b04524a63a2062a905ab79b33 | ACTIVE | 10.0.0.66 | 8080 | NO_MONITOR | 1 |
| 2cb6bbed-966f-49f9-a65a-77cf1257ae4d | | b774b17b04524a63a2062a905ab79b33 | ACTIVE | 10.0.0.75 | 8080 | NO_MONITOR demo-2293951457-jtl7n | 1 |
+--------------------------------------+------+----------------------------------+---------------------+-----------+---------------+------------------+--------+

Actual output:

+--------------------------------------+------+----------------------------------+---------------------+-----------+---------------+------------------+--------+
| id | name | project_id | provisioning_status | address | protocol_port | operating_status | weight |
+--------------------------------------+------+----------------------------------+---------------------+-----------+---------------+------------------+--------+
| e2f6cfff-e112-4651-9327-8f3616edaee0 | | b774b17b04524a63a2062a905ab79b33 | ACTIVE | 10.0.0.66 | 8080 | NO_MONITOR | 1 |
| 2cb6bbed-966f-49f9-a65a-77cf1257ae4d | | b774b17b04524a63a2062a905ab79b33 | ACTIVE | 10.0.0.75 | 8080 | NO_MONITOR | 1 |
+--------------------------------------+------+----------------------------------+---------------------+-----------+---------------+------------------+--------+

Changed in kuryr-kubernetes:
importance: Undecided → High
assignee: nobody → Antoni Segura Puimedon (celebdor)
milestone: none → pike-3
status: New → Triaged
Revision history for this message
Yossi Boaron (yossi-boaron-1234) wrote :

Hi Toni,

Could you please explain the required member's name field structure?

member's name = <svc_name>-<field2>-<field3>

What are field2 and field3?

Revision history for this message
Antoni Segura Puimedon (celebdor) wrote :

It should actually be namespace/service-pod

Changed in kuryr-kubernetes:
milestone: pike-3 → queens-rc-final
Revision history for this message
Yossi Boaron (yossi-boaron-1234) wrote :
Download full text (3.9 KiB)

1. When using 'neutron lbaas-member-list ...' to retrieve members details, member's name is correct.
2. When using 'openstack loadbalancer member list' command, member's name is missing/empty.

So, since current Kuryr's LB driver implementation is based on LBaaS V2, the 'neutron lbaas-xx-xx' command should be used in CLI.

I don't think that it's a bug (at least not Kuryr bug)

[stack@rtrtrt devstack]$ openstack loadbalancer pool list
+--------------------------------------+----------------------------+----------------------------------+---------------------+----------+--------------+----------------+
| id | name | project_id | provisioning_status | protocol | lb_algorithm | admin_state_up |
+--------------------------------------+----------------------------+----------------------------------+---------------------+----------+--------------+----------------+
| 5b623797-bc47-4729-8f2c-3c866b089033 | default/kubernetes:443 | 8c7ae9f409b64aaeb8d014ae3381ea68 | ACTIVE | HTTPS | ROUND_ROBIN | True |
| bcd68da0-b78b-47de-bd67-a1cf67b6d502 | default/kuryr-demo3:TCP:80 | fe6cc559eaeb48aaa2f237c0588732fc | ACTIVE | TCP | ROUND_ROBIN | True |
+--------------------------------------+----------------------------+----------------------------------+---------------------+----------+--------------+----------------+
[stack@rtrtrt devstack]$ openstack loadbalancer member list bcd68da0-b78b-47de-bd67-a1cf67b6d502
+--------------------------------------+------+----------------------------------+---------------------+-----------+---------------+------------------+--------+
| id | name | project_id | provisioning_status | address | protocol_port | operating_status | weight |
+--------------------------------------+------+----------------------------------+---------------------+-----------+---------------+------------------+--------+
| 0738842b-2020-462c-96b0-8f0622183375 | | fe6cc559eaeb48aaa2f237c0588732fc | ACTIVE | 10.0.0.73 | 8080 | NO_MONITOR | 1 |
| 78b62ddd-13f3-45a5-a1ac-2e7e3aebbf67 | | fe6cc559eaeb48aaa2f237c0588732fc | ACTIVE | 10.0.0.74 | 8080 | NO_MONITOR | 1 |
+--------------------------------------+------+----------------------------------+---------------------+-----------+---------------+------------------+--------+
[stack@rtrtrt devstack]$ neutron lbaas-member-list bcd68da0-b78b-47de-bd67-a1cf67b6d502
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+------------------------------------------+----------------------------------+-----------+---------------+--------+--------------------------------------+----------------+
| id | name | tenant_id | address | protocol_port | weight | subnet_id | admin_state_up |
+--------------------------------------+-----------------------------------...

Read more...

Revision history for this message
Yossi Boaron (yossi-boaron-1234) wrote :

Checked SQL database for both OCTAVIA and Neutron, seems that members names are correct at Neutron
SQL and empty @ OCTAVIA DB.

Neutron SQL:
============

MariaDB [neutron]> select id,name from lbaas_members;
+--------------------------------------+------------------------------------------+
| id | name |
+--------------------------------------+------------------------------------------+
| 0738842b-2020-462c-96b0-8f0622183375 | default/kuryr-demo3-894421715-tjdgt:8080 |
| 0d37be83-a23f-4cbb-882f-33a96b9faa08 | |
| 78b62ddd-13f3-45a5-a1ac-2e7e3aebbf67 | default/kuryr-demo3-894421715-j656x:8080 |
+--------------------------------------+------------------------------------------+
3 rows in set (0.00 sec)

MariaDB [neutron]>

Octavia DB:
==========
MariaDB [octavia]> select id,name from member;
+--------------------------------------+------+
| id | name |
+--------------------------------------+------+
| 0738842b-2020-462c-96b0-8f0622183375 | NULL |
| 0d37be83-a23f-4cbb-882f-33a96b9faa08 | NULL |
| 78b62ddd-13f3-45a5-a1ac-2e7e3aebbf67 | NULL |
+--------------------------------------+------+
3 rows in set (0.00 sec)

Changed in kuryr-kubernetes:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers