← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1441373] [NEW] Creating a listener with empty or invalid tenant id doesn't raise an exception as expected

 

Public bug reported:

When creating a listener with an empty ("") or invalid ("$%123")
tenant_id, the expectation is that it should raise a Bad Request
exception. But, it is not.

It instead, creates a listener with a default demo tenant.

kilo1@ubuntu:~/devstack$ neutron lbaas-listener-create --loadbalancer lb1 --protocol HTTP --protocol-port 8082 --name listener3 --tenant-id "##%DFG"
Created a new listener:
+--------------------------+------------------------------------------------+
| Field                    | Value                                          |
+--------------------------+------------------------------------------------+
| admin_state_up           | True                                           |
| connection_limit         | -1                                             |
| default_pool_id          |                                                |
| default_tls_container_id |                                                |
| description              |                                                |
| id                       | aa69dee8-9ce9-4b92-88e7-73467fbf008a           |
| loadbalancers            | {"id": "176ab60b-7ae6-4064-a76e-7c77ddce4e79"} |
| name                     | listener3                                      |
| protocol                 | HTTP                                           |
| protocol_port            | 8082                                           |
| sni_container_ids        |                                                |
| tenant_id                | 84af838927ce45c28d5f02d2e4fbcde2               |
+--------------------------+------------------------------------------------+


kilo1@ubuntu:~/devstack$ . ./openrc admin admin
kilo1@ubuntu:~/devstack$ keystone tenant-list
+----------------------------------+------------------------------+---------+
|                id                |             name             | enabled |
+----------------------------------+------------------------------+---------+
| 91bf6cb23f844df390621f89e6f8aec6 | ListenersTestJSON-1363551857 |   True  |
| f68952a293d541d48ae8e3145e8fcfe2 | ListenersTestJSON-2002123060 |   True  |
| b4592bbb0f9b4441be297b0f9ab59212 | ListenersTestJSON-385541868  |   True  |
| ee7c2406f71e49bdaf5abe04e5e6ec17 | ListenersTestJSON-733077467  |   True  |
| 161c1ceb43e7405ca4564120803f8966 |  MemberTestJSON-1004757508   |   True  |
| 73acf1d36be2425e84562e98f06c2312 |  MemberTestJSON-1368048326   |   True  |
| 6e8c8d8de6754e21bf047d737715f1ed |   MemberTestJSON-156426384   |   True  |
| e85f06a8207949f4a97966952895e975 |  MemberTestJSON-2009939882   |   True  |
| 394ca5799e054474913c4034af036ca3 |  MemberTestJSON-2099428934   |   True  |
| 3f30074d878643b2bdb6e24915adadf5 |   MemberTestJSON-840725862   |   True  |
| 3c1f71f1a5c446d199809bd2f21d87ff |            admin             |   True  |
| a7bd6901a2f343ea8d75294454c06dc8 |           alt_demo           |   True  |
| 84af838927ce45c28d5f02d2e4fbcde2 |             demo             |   True  |
| f880fa9ad40740349cb501babb0e9ce3 |      invisible_to_admin      |   True  |
| 49edea44e78f4147bf558f90c8d9b4c9 |           service            |   True  |
+----------------------------------+------------------------------+---------+

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1441373

Title:
  Creating a listener with empty or invalid tenant id doesn't raise an
  exception as expected

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  When creating a listener with an empty ("") or invalid ("$%123")
  tenant_id, the expectation is that it should raise a Bad Request
  exception. But, it is not.

  It instead, creates a listener with a default demo tenant.

  kilo1@ubuntu:~/devstack$ neutron lbaas-listener-create --loadbalancer lb1 --protocol HTTP --protocol-port 8082 --name listener3 --tenant-id "##%DFG"
  Created a new listener:
  +--------------------------+------------------------------------------------+
  | Field                    | Value                                          |
  +--------------------------+------------------------------------------------+
  | admin_state_up           | True                                           |
  | connection_limit         | -1                                             |
  | default_pool_id          |                                                |
  | default_tls_container_id |                                                |
  | description              |                                                |
  | id                       | aa69dee8-9ce9-4b92-88e7-73467fbf008a           |
  | loadbalancers            | {"id": "176ab60b-7ae6-4064-a76e-7c77ddce4e79"} |
  | name                     | listener3                                      |
  | protocol                 | HTTP                                           |
  | protocol_port            | 8082                                           |
  | sni_container_ids        |                                                |
  | tenant_id                | 84af838927ce45c28d5f02d2e4fbcde2               |
  +--------------------------+------------------------------------------------+

  
  kilo1@ubuntu:~/devstack$ . ./openrc admin admin
  kilo1@ubuntu:~/devstack$ keystone tenant-list
  +----------------------------------+------------------------------+---------+
  |                id                |             name             | enabled |
  +----------------------------------+------------------------------+---------+
  | 91bf6cb23f844df390621f89e6f8aec6 | ListenersTestJSON-1363551857 |   True  |
  | f68952a293d541d48ae8e3145e8fcfe2 | ListenersTestJSON-2002123060 |   True  |
  | b4592bbb0f9b4441be297b0f9ab59212 | ListenersTestJSON-385541868  |   True  |
  | ee7c2406f71e49bdaf5abe04e5e6ec17 | ListenersTestJSON-733077467  |   True  |
  | 161c1ceb43e7405ca4564120803f8966 |  MemberTestJSON-1004757508   |   True  |
  | 73acf1d36be2425e84562e98f06c2312 |  MemberTestJSON-1368048326   |   True  |
  | 6e8c8d8de6754e21bf047d737715f1ed |   MemberTestJSON-156426384   |   True  |
  | e85f06a8207949f4a97966952895e975 |  MemberTestJSON-2009939882   |   True  |
  | 394ca5799e054474913c4034af036ca3 |  MemberTestJSON-2099428934   |   True  |
  | 3f30074d878643b2bdb6e24915adadf5 |   MemberTestJSON-840725862   |   True  |
  | 3c1f71f1a5c446d199809bd2f21d87ff |            admin             |   True  |
  | a7bd6901a2f343ea8d75294454c06dc8 |           alt_demo           |   True  |
  | 84af838927ce45c28d5f02d2e4fbcde2 |             demo             |   True  |
  | f880fa9ad40740349cb501babb0e9ce3 |      invisible_to_admin      |   True  |
  | 49edea44e78f4147bf558f90c8d9b4c9 |           service            |   True  |
  +----------------------------------+------------------------------+---------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1441373/+subscriptions


Follow ups

References