Send fuel statistics request in fuel-qa is broken in 10.0

Bug #1605734 reported by Alexandr Kostrikov on 2016-07-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
High
Unassigned
Mitaka
High
Unassigned

Bug Description

Swarm is failing with 0% due to fact that we are sending request at swarm jobs and not sending it on BVT.

The error looks like that:

2016-07-22 15:04:51,113 - ERROR decorators.py:123 -- Traceback (most recent call last):
  File "/home/jenkins/workspace/10.0.system_test.ubuntu.ceph_ha_one_controller/fuelweb_test/helpers/decorators.py", line 117, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/10.0.system_test.ubuntu.ceph_ha_one_controller/fuelweb_test/tests/base_test_case.py", line 359, in setup_master
    self.fuel_post_install_actions()
  File "/home/jenkins/workspace/10.0.system_test.ubuntu.ceph_ha_one_controller/fuelweb_test/tests/base_test_case.py", line 202, in fuel_post_install_actions
    self.fuel_web.client.send_fuel_stats(enabled=True)
  File "/home/jenkins/workspace/10.0.system_test.ubuntu.ceph_ha_one_controller/fuelweb_test/__init__.py", line 60, in wrapped
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/10.0.system_test.ubuntu.ceph_ha_one_controller/fuelweb_test/models/nailgun_client.py", line 473, in send_fuel_stats
    settings = self.update_settings()
  File "/home/jenkins/workspace/10.0.system_test.ubuntu.ceph_ha_one_controller/fuelweb_test/__init__.py", line 60, in wrapped
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/10.0.system_test.ubuntu.ceph_ha_one_controller/fuelweb_test/models/nailgun_client.py", line 469, in update_settings
    return self._put(url="/settings", json=data).json()
  File "/home/jenkins/workspace/10.0.system_test.ubuntu.ceph_ha_one_controller/fuelweb_test/models/nailgun_client.py", line 85, in _put
    return self.session.put(url=url, **kwargs)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/keystoneauth1/session.py", line 672, in put
    return self.request(url, 'PUT', **kwargs)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/keystoneauth1/session.py", line 559, in request
    raise exceptions.from_response(resp, method, url)
BadRequest: Bad Request (HTTP 400)

Changed in fuel:
importance: High → Critical
Changed in fuel:
importance: Critical → Undecided

Related fix proposed to branch: master
Change author: Aleksandra Fedorova <email address hidden>
Review: https://review.fuel-infra.org/23819

Changed in fuel:
status: New → In Progress

Reviewed: https://review.fuel-infra.org/23819
Submitter: Ivan Remizov <email address hidden>
Branch: master

Commit: 9b6adc599afeec1136e54e4477c2b2f1e8c81887
Author: Aleksandra Fedorova <email address hidden>
Date: Mon Aug 1 13:25:41 2016

[product-ci] Temporary disable statistics for 10.0

Stats reporting currently fails all system tests for 10.0-mitaka iso.

We disable statistics for 10.0 swarm till issue is resolved.

Change-Id: Iaa364857e435bf9909fac7e59ce810fb94f048c4
Related-Bug: #1605734

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

Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Maksym Strukov (unbelll)

Reviewed: https://review.openstack.org/349512
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=493bd8a3ce60eab7ae0826f668c60a9a419c81bb
Submitter: Jenkins
Branch: master

commit 493bd8a3ce60eab7ae0826f668c60a9a419c81bb
Author: Maksym Strukov <email address hidden>
Date: Mon Aug 1 16:43:29 2016 +0300

    Fix fuel-qa trying to put empty data to nailgun /settings endpoint

    Change-Id: I8f14b29d6bc2e9e8aa522658a9558948b03a3f8b
    Closes-Bug: #1605734

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
importance: Undecided → High

Reviewed: https://review.openstack.org/349539
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=24ba1f5d9d732bcd7d492fdd09395da5c000d16b
Submitter: Jenkins
Branch: stable/mitaka

commit 24ba1f5d9d732bcd7d492fdd09395da5c000d16b
Author: Maksym Strukov <email address hidden>
Date: Mon Aug 1 16:43:29 2016 +0300

    Fix fuel-qa trying to put empty data to nailgun /settings endpoint

    Change-Id: I8f14b29d6bc2e9e8aa522658a9558948b03a3f8b
    Closes-Bug: #1605734

Dmitry Belyaninov (dbelyaninov) wrote :
Changed in fuel:
status: Fix Committed → Fix Released
Maksym Strukov (unbelll) on 2017-04-06
Changed in fuel:
assignee: Maksym Strukov (unbelll) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers