OSTF should update 'ceilometer-api' tests due to changes in ceilomenter-api

Bug #1634920 reported by Alexandr Kostrikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Alexander Kurenyshev

Bug Description

During runs of OSTF on 10.0 [0] with ceilomenter we got ceilometer-api related errors.

  File "/home/jenkins/workspace/10.0.custom.system_test/fuelweb_test/helpers/checkers.py", line 140, in verify_service
    assert_true(len(api), "Service '{0}' not found!".format(service_name))
AssertionError: Service 'ceilometer-api' not found!

The ostf check should be updated to verify actual ceilometer api.

[0] https://custom-ci.infra.mirantis.net/job/10.0.custom.system_test/1299/console

Revision history for this message
Alexandr Kostrikov (akostrikov-mirantis) wrote :

The checks are in fuel-qa and looks like:
        checkers.verify_service(_ip,
                                service_name='ceilometer-api',
                                ignore_count_of_proccesses=True)
We need to settle the name of ceilometer service to check.

tags: added: area-ceilometer area-qa
removed: area-ostf
Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → MOS Ceilometer (mos-ceilometer)
Revision history for this message
Alexandr Kostrikov (akostrikov-mirantis) wrote :

Hello, Mos-ceilometer team! Please, provide info which service to check with

def verify_service(ip, service_name, count=1,
                   ignore_count_of_proccesses=False):
    ps_output = ssh_manager.execute_on_remote(
        ip=ip,
        cmd='ps ax'
    )['stdout']
    api = [ps for ps in ps_output if service_name in ps]
    logger.debug("{} \\n: {}".format(service_name, str(api)))
    if not ignore_count_of_proccesses:
        assert_equal(len(api), count,
                     "{0} count not equal to {1}".format(service_name, count))
    else:
        assert_true(len(api), "Service '{0}' not found!".format(service_name))

Ps ax outputs on all nodes are at:
http://paste.openstack.org/show/586411/

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/389220

Changed in fuel:
assignee: MOS Ceilometer (mos-ceilometer) → Alexandr Kostrikov (akostrikov-mirantis)
status: New → In Progress
Changed in fuel:
assignee: Alexandr Kostrikov (akostrikov-mirantis) → Alexey Shtokolov (ashtokolov)
Changed in fuel:
assignee: Alexey Shtokolov (ashtokolov) → Alexander Kurenyshev (akurenyshev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/414224

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

Reviewed: https://review.openstack.org/389220
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=332e992d9b36fa57f3039575ccaa524cc7509d5a
Submitter: Jenkins
Branch: master

commit 332e992d9b36fa57f3039575ccaa524cc7509d5a
Author: Alexandr Kostrikov <email address hidden>
Date: Thu Oct 20 17:10:31 2016 +0300

    Temporary disable ceilometer check

    The service is under uwsgi so it can
    not be checked with ps ax

    Change-Id: Ib17a7f58f140832839227e67c2ca1540162864b9
    Closes-bug: 1634920

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-qa 11.0.0.0rc1

This issue was fixed in the openstack/fuel-qa 11.0.0.0rc1 release candidate.

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.