Bug 1421426 - NotFoundException: Not Found when running meter list
Summary: NotFoundException: Not Found when running meter list
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 11.0 (Ocata)
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Assaf Muller
QA Contact: Toni Freger
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-12 09:00 UTC by Sasha Smolyak
Modified: 2017-04-28 21:13 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-28 21:13:16 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Sasha Smolyak 2017-02-12 09:00:47 UTC
Description of problem:
"NotFoundException: Not Found" when running openstack network meter list or openstack network segment list

Version-Release number of selected component (if applicable):

python-neutronclient-6.0.0-0.20161205101534.f53d624.el7ost.noarch
python-neutron-10.0.0-0.20170127044100.76a2227.el7ost.noarch
openstack-neutron-10.0.0-0.20170127044100.76a2227.el7ost.noarch
openstack-neutron-openvswitch-10.0.0-0.20170127044100.76a2227.el7ost.noarch
puppet-neutron-10.2.0-0.20170127040319.deaaa35.el7ost.noarch
openstack-neutron-common-10.0.0-0.20170127044100.76a2227.el7ost.noarch
python-neutron-lib-1.1.0-0.20170118223636.9b3ea8f.el7ost.noarch
openstack-neutron-ml2-10.0.0-0.20170127044100.76a2227.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Type "openstack network meter list" or "openstack network segment list"

Actual results:
NotFoundException: Not Found

Expected results:
Expected functionality or error message if deprecated

Additional info:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 180, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 113, in run
    self.produce_output(parsed_args, column_names, data)
  File "/usr/lib/python2.7/site-packages/cliff/lister.py", line 53, in produce_output
    parsed_args,
  File "/usr/lib/python2.7/site-packages/cliff/formatters/table.py", line 92, in emit_list
    self.add_rows(x, column_names, data)
  File "/usr/lib/python2.7/site-packages/cliff/formatters/table.py", line 71, in add_rows
    first_row = next(data_iter)
  File "/usr/lib/python2.7/site-packages/openstackclient/network/v2/meter.py", line 167, in <genexpr>
    (utils.get_item_properties(
  File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 875, in list
    headers=headers, params=params)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 758, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/openstack/session.py", line 71, in map_exceptions_wrapper
    http_status=e.http_status, cause=e)
NotFoundException: NotFoundException: Not Found

Comment 1 Assaf Muller 2017-02-12 15:21:18 UTC
This likely means that you don't have metering configured. Do you have metering in your neutron.conf:service_plugins list?

Comment 2 Assaf Muller 2017-04-28 21:13:16 UTC
metering needs to be enabled, closing this as a configuration issue.


Note You need to log in before you can comment on or make changes to this bug.