[system tests] Check openstack stat test failed due to changes in analytics api

Bug #1476208 reported by Andrey Sledzinskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Vasily Gorin
6.1.x
Fix Committed
High
MOS Maintenance

Bug Description

FAIL: Check openstack statistic on fuel and collector side
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/7.0.system_test.ubuntu.thread_3/fuelweb_test/helpers/decorators.py", line 80, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/7.0.system_test.ubuntu.thread_3/fuelweb_test/tests/test_ceph.py", line 367, in check_openstack_stat
    'tenant', 'keystone_user'])
  File "/home/jenkins/workspace/7.0.system_test.ubuntu.thread_3/fuelweb_test/helpers/checkers.py", line 890, in check_oswl_stat
    sent_logs_count, logs))
AssertionError: Count of action logs in Nailgun DB (6) is bigger than on Collector (2), but should be less or equal

Due to changes in analytics api (api/v1/json/oswls/) we should change this line https://github.com/stackforge/fuel-qa/blob/master/fuelweb_test/helpers/checkers.py#L884

it can be now remote_collector.get_oswls(master_uid)['paging_params']['total']

Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

Setting to Incomplete - Andrey, please update the description with MOS version affected and steps to reproduce.

Changed in mos:
status: New → Incomplete
assignee: MOS QA Team (mos-qa) → Andrey Sledzinskiy (asledzinskiy)
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :

Sorry, I created this bug in wrong project.
It doesn't affect MOS, it only affects fuel-qa system tests

affects: mos → fuel
Changed in fuel:
milestone: 7.0 → none
status: Incomplete → Confirmed
assignee: Andrey Sledzinskiy (asledzinskiy) → MOS QA Team (mos-qa)
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :

To reproduce it you can run fuel-qa system-test:
 sh "utils/jenkins/system_tests.sh" -t test -w $(pwd) -j "system_test" -i "$ISO_PATH" -V $(pwd)/venv/fuelweb_test -o --group=check_openstack_stat

Changed in fuel:
milestone: none → 7.0
Vasily Gorin (vgorin)
Changed in fuel:
assignee: MOS QA Team (mos-qa) → Vasily Gorin (vgorin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (master)

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

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

Reviewed: https://review.openstack.org/205050
Committed: https://git.openstack.org/cgit/stackforge/fuel-qa/commit/?id=5069a7477da9a1141edb4cfbb9bffadd4522d0ae
Submitter: Jenkins
Branch: master

commit 5069a7477da9a1141edb4cfbb9bffadd4522d0ae
Author: vgorin <email address hidden>
Date: Thu Jul 23 16:01:17 2015 +0300

    Refactoring test 'check_oswl_stat'

    Changes in test 'check_oswl_stat' and in function 'get_oswls_by_resource_data'
    Closes-Bug: #1476208

    Change-Id: I9791b410fb08a389871b375a075907bccd7c28a2

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Vasily Gorin (vgorin) wrote :

Verified on build #176

Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (stable/6.1)

Fix proposed to branch: stable/6.1
Review: https://review.openstack.org/222096

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (stable/6.1)

Reviewed: https://review.openstack.org/222096
Committed: https://git.openstack.org/cgit/stackforge/fuel-qa/commit/?id=e1b60551d607142580d962122399613060afde69
Submitter: Jenkins
Branch: stable/6.1

commit e1b60551d607142580d962122399613060afde69
Author: vgorin <email address hidden>
Date: Thu Jul 23 16:01:17 2015 +0300

    Refactoring test 'check_oswl_stat'

    Changes in test 'check_oswl_stat' and in function 'get_oswls_by_resource_data'
    Closes-Bug: #1476208

    Change-Id: I9791b410fb08a389871b375a075907bccd7c28a2
    (cherry picked from commit 5069a7477da9a1141edb4cfbb9bffadd4522d0ae)

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.