regular resource not found warnings polling neutron

Bug #1499403 reported by gordon chung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Low
Rohit Jaiswal

Bug Description

2015-09-24 06:17:47.146 12721 DEBUG neutronclient.client [-] REQ: curl -i http://127.0.0.1:9696//v2.0/vpn/vpnservices.json -X GET -H "User-Agent: python-neutronclient" -H "X-Auth-Token: 4953b7f594cb4c4c94dce46843641255" http_log_req /usr/local/lib/python2.7/dist-packages/neutronclient/common/utils.py:137
2015-09-24 06:17:47.220 12721 DEBUG neutronclient.client [-] RESP: 404 {'date': 'Thu, 24 Sep 2015 06:17:47 GMT', 'connection': 'keep-alive', 'content-type': 'text/plain; charset=UTF-8', 'content-length': '52', 'x-openstack-request-id': 'req-96908b74-d671-4c98-b944-322070a04e39'} 404 Not Found

The resource could not be found.

    http_log_resp /usr/local/lib/python2.7/dist-packages/neutronclient/common/utils.py:146
2015-09-24 06:17:47.221 12721 DEBUG neutronclient.v2_0.client [-] Error message: 404 Not Found

The resource could not be found.

    _handle_fault_response /usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py:176
2015-09-24 06:17:47.221 12721 WARNING ceilometer.neutron_client [-] 404 Not Found

The resource could not be found.

OR

2015-09-24 06:17:48.503 12721 DEBUG neutronclient.client [-] REQ: curl -i http://127.0.0.1:9696//v2.0/vpn/ipsec-site-connections.json -X GET -H "User-Agent: python-neutronclient" -H "X-Auth-Token: 280c83e2443543049098fc59a5c050d9" http_log_req /usr/local/lib/python2.7/dist-packages/neutronclient/common/utils.py:137
2015-09-24 06:17:48.511 12721 DEBUG neutronclient.client [-] RESP: 404 {'date': 'Thu, 24 Sep 2015 06:17:48 GMT', 'connection': 'keep-alive', 'content-type': 'text/plain; charset=UTF-8', 'content-length': '52', 'x-openstack-request-id': 'req-02148594-e826-47d7-b353-96b410d8a315'} 404 Not Found

The resource could not be found.

    http_log_resp /usr/local/lib/python2.7/dist-packages/neutronclient/common/utils.py:146
2015-09-24 06:17:48.511 12721 DEBUG neutronclient.v2_0.client [-] Error message: 404 Not Found

The resource could not be found.

    _handle_fault_response /usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py:176
2015-09-24 06:17:48.511 12721 WARNING ceilometer.neutron_client [-] 404 Not Found

The resource could not be found.

Changed in ceilometer:
assignee: nobody → Rohit Jaiswal (rohit-jaiswal-3)
gordon chung (chungg)
Changed in ceilometer:
status: New → Triaged
Revision history for this message
Rohit Jaiswal (rohit-jaiswal-3) wrote :

IIUC, the commit https://github.com/openstack/ceilometer/commit/b65554eb460a282a2ab0a2dcc0053a8691cb9373 results in the warning messages when the polled neutron services are disabled.., do we want to not log the warnings and return silently?

Revision history for this message
Liusheng (liusheng) wrote :

maybe change the LOG.warn(e) to a short log hint is better, don't need to record the whole exception.

Revision history for this message
gordon chung (chungg) wrote :

yeah, i think it'd be better to hide the full error since it's expected.

Changed in ceilometer:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

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

Changed in ceilometer:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/229657
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=43c952861a030f63688e7d82b6579a9954064884
Submitter: Jenkins
Branch: master

commit 43c952861a030f63688e7d82b6579a9954064884
Author: Rohit Jaiswal <email address hidden>
Date: Wed Sep 30 20:46:09 2015 +0000

    Fix for resource polling warnings

    When neutron services are disabled,
    neutron client logs the 404 exception
    at warn level, this exception log
    is unwanted and it suffices to log
    just the error message.

    Change-Id: I7ad8f43eacc9cfa9c66c424ab7ce3a05df5d2fa6
    Closes-Bug: 1499403

Changed in ceilometer:
status: In Progress → Fix Committed
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/ceilometer 6.0.0.0b1

This issue was fixed in the openstack/ceilometer 6.0.0.0b1 development milestone.

Thierry Carrez (ttx)
Changed in ceilometer:
status: Fix Committed → Fix Released
Liusheng (liusheng)
Changed in ceilometer:
milestone: none → mitaka-1
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.