yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #65652
[Bug 1702589] [NEW] Failed to get list of neutron-l7policy neutronclient CLI
Public bug reported:
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"
}
]
}
** Affects: neutron
Importance: Undecided
Assignee: huangshan (huangshan)
Status: In Progress
** Changed in: neutron
Status: New => In Progress
** Changed in: neutron
Assignee: (unassigned) => huangshan (huangshan)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1702589
Title:
Failed to get list of neutron-l7policy neutronclient CLI
Status in neutron:
In Progress
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"
}
]
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1702589/+subscriptions
Follow ups