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

Bug #1605734 reported by Alexandr Kostrikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Unassigned
Mitaka
Fix Committed
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)

Revision history for this message
Alexandr Kostrikov (akostrikov-mirantis) wrote :
Changed in fuel:
importance: High → Critical
Changed in fuel:
importance: Critical → Undecided
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to fuel-infra/jenkins-jobs (master)

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
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix merged to fuel-infra/jenkins-jobs (master)

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

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

Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Maksym Strukov (unbelll)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/349539

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

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (stable/mitaka)

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

Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :
Changed in fuel:
status: Fix Committed → Fix Released
Maksym Strukov (unbelll)
Changed in fuel:
assignee: Maksym Strukov (unbelll) → nobody
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.