Failed to get list of neutron-l7policy neutronclient CLI

Bug #1702589 reported by huangshan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
octavia
Invalid
High
Unassigned

Bug Description

Neutron delete the action for REDIRECT_TO_POOL l7policy "redirect_url" field ,when there are mutiple policies,and action for REDIRECT_TO_URL and the frist data,it will cause neutronclient CLI
failed to get list of neutron-l7policy.

neutronclient returns an error as follows :

ERROR: neutronclient.shell 'redirect_url'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 877, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 114, in run_command
    return cmd.run(known_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 324, in run
    return super(NeutronCommand, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 101, in run
    self.produce_output(parsed_args, column_names, data)
  File "/usr/lib/python2.7/site-packages/cliff/lister.py", line 41, in produce_output
    parsed_args,
  File "/usr/lib/python2.7/site-packages/cliff/formatters/table.py", line 68, in emit_list
    for row in data_iter:
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 723, in <genexpr>
    for s in info), )
  File "/usr/lib/python2.7/site-packages/neutronclient/common/utils.py", line 100, in get_item_properties
    data = item[field_name]
KeyError: 'redirect_url'
'redirect_url'

neutron lbaas-l7policy JSON data:
{
    "l7policies": [
        {
            "redirect_pool_id": null,
            "description": "",
            "admin_state_up": true,
            "rules": [],
            "tenant_id": "f21a9c86d7114bf99c711f4874d80474",
            "listener_id": "3dcd35dc-44d0-4621-bf6c-f64b98fbbb6a",
            "redirect_url": "http://www.example.com",
            "action": "REDIRECT_TO_URL",
            "position": 1,
            "id": "0e010b73-416b-4bf5-81c4-a81b7cbcfb93",
            "name": "policy-test"
        },
        {
            "redirect_pool_id": "726d913d-2e2e-499d-a44e-39a321fb6811",
            "description": "",
            "admin_state_up": true,
            "rules": [],
            "tenant_id": "d715ff8ea9fb450b8399a428696feeb2",
            "listener_id": "b528cd33-c186-47bc-8aca-1388d6da438e",
            "action": "REDIRECT_TO_POOL",
            "position": 2,
            "id": "63769214-d051-452a-8429-410c5749a98b",
            "name": "L7-01"
        },
        {
            "redirect_pool_id": null,
            "description": "",
            "admin_state_up": true,
            "rules": [],
            "tenant_id": "9451fd91562943409cd2966cbd9d6fed",
            "listener_id": "7131166b-3725-41ef-8379-d52426b63141",
            "redirect_url": null,
            "action": "REJECT",
            "position": 1,
            "id": "7317c1c0-d5ab-4ebc-b963-ccc4aacd1efd",
            "name": "test"
        },
        {
            "redirect_pool_id": "726d913d-2e2e-499d-a44e-39a321fb6811",
            "description": "",
            "admin_state_up": true,
            "rules": [],
            "tenant_id": "d715ff8ea9fb450b8399a428696feeb2",
            "listener_id": "b528cd33-c186-47bc-8aca-1388d6da438e",
            "action": "REDIRECT_TO_POOL",
            "position": 1,
            "id": "dd462890-7678-409e-98af-93eb87707383",
            "name": "02"
        }
    ]
}

Tags: auto-abandon
huangshan (huangshan)
Changed in neutron:
status: New → In Progress
assignee: nobody → huangshan (huangshan)
Revision history for this message
Akihiro Motoki (amotoki) wrote :

Forward the bug to octavia project (as neutron-lbaas is maintained by the octavia team).

Octavia team:
I am not sure the current status of neutronclient LBaaS v2 support and octavia client.
If you need a fix for neutronclient, feel free to forward the bug to neutronclient.

affects: neutron → octavia
Changed in octavia:
status: In Progress → New
Revision history for this message
huangshan (huangshan) wrote :

The neutronclient are using a public library for LBaaS v2.
I suggest that the problem in neutron-lbaas modify more appropriate

Changed in octavia:
status: New → Incomplete
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lbaas (master)

Fix proposed to branch: master
Review: https://review.openstack.org/482416

Changed in octavia:
status: Incomplete → In Progress
Changed in octavia:
assignee: huangshan (huangshan) → Michael Johnson (johnsom)
Changed in octavia:
importance: Undecided → High
Changed in octavia:
assignee: Michael Johnson (johnsom) → huangshan (huangshan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lbaas (master)

Change abandoned by Adam Harwell (<email address hidden>) on branch: master
Review: https://review.opendev.org/482416
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Gregory Thiemonge (gthiemonge) wrote : auto-abandon-script

Abandoned after re-enabling the Octavia launchpad.

Changed in octavia:
assignee: huangshan (huangshan) → nobody
status: In Progress → Invalid
tags: added: auto-abandon
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.