[stats] Workloads_collector user wasn't created during cluster deployment

Bug #1431775 reported by Andrey Sledzinskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Matthew Mosesohn
6.0.x
Invalid
Undecided
Fuel Library (Deprecated)

Bug Description

{

    "build_id": "2015-03-12_22-54-44",
    "ostf_sha": "ecb8e294b0acbdc5b0300d5e39028fb26ecc9088",
    "build_number": "192",
    "release_versions":

{

    "2014.2-6.1":

{

    "VERSION":

{

    "build_id": "2015-03-12_22-54-44",
    "ostf_sha": "ecb8e294b0acbdc5b0300d5e39028fb26ecc9088",
    "build_number": "192",
    "api": "1.0",
    "nailgun_sha": "c186f71158ed27b03d8db87561ea66c19e39b452",
    "production": "docker",
    "python-fuelclient_sha": "59513d6b75f86060ff5059f39fdd9cca56c83f19",
    "astute_sha": "ed76b0cacf34a4a683b464ebd86e0beb273b5473",
    "feature_groups":

            [
                "mirantis"
            ],
            "release": "6.1",
            "fuelmain_sha": "3764b8a73b3a93fd7ee66937ba4c4c77da409b78",
            "fuellib_sha": "fda8128b9ca7a8ce818421040f597a50eece8078"
        }
    }

},
"auth_required": true,
"api": "1.0",
"nailgun_sha": "c186f71158ed27b03d8db87561ea66c19e39b452",
"production": "docker",
"python-fuelclient_sha": "59513d6b75f86060ff5059f39fdd9cca56c83f19",
"astute_sha": "ed76b0cacf34a4a683b464ebd86e0beb273b5473",
"feature_groups":

    [
        "mirantis"
    ],
    "release": "6.1",
    "fuelmain_sha": "3764b8a73b3a93fd7ee66937ba4c4c77da409b78",
    "fuellib_sha": "fda8128b9ca7a8ce818421040f597a50eece8078"

}

Steps:
1. Install latest fuel master
2. Deploy any cluster
3. Create instance
4. Try to collect instances from nailgun container
oswl_collectord vm
2015-03-13 09:50:50.330 DEBUG [7fbd2fcd0700] (settings) Looking for settings.yaml package config using old style __file__
2015-03-13 09:50:50.330 DEBUG [7fbd2fcd0700] (settings) Trying to read config file /usr/lib/python2.6/site-packages/nailgun/settings.yaml
2015-03-13 09:50:50.489 DEBUG [7fbd2fcd0700] (settings) Trying to read config file /etc/nailgun/settings.yaml
2015-03-13 09:50:50.501 DEBUG [7fbd2fcd0700] (settings) Trying to read config file /etc/fuel/version.yaml
2015-03-13 09:50:51.028 INFO [7fbd2fcd0700] (oswl_collector) Starting OSWL collector for vm resource
2015-03-13 09:50:51.268 ERROR [7fbd2fcd0700] (utils) Error while talking to proxy. Details: Could not find user: workloads_collector (Disable debug mode to suppress these details.) (HTTP 401)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nailgun/statistics/utils.py", line 273, in set_proxy
    yield
  File "/usr/lib/python2.6/site-packages/nailgun/statistics/oswl_collector.py", line 61, in collect
    client_provider, resource_type)
  File "/usr/lib/python2.6/site-packages/nailgun/statistics/utils.py", line 218, in get_info_from_os_resource_manager
    additional_display_options
  File "/usr/lib/python2.6/site-packages/nailgun/statistics/utils.py", line 167, in _get_data_from_resource_manager
    instances_list = resource_manager.list(**display_options)
  File "/usr/lib/python2.6/site-packages/novaclient/v1_1/servers.py", line 603, in list
    return self._list("/servers%s%s" % (detail, query_string), "servers")
  File "/usr/lib/python2.6/site-packages/novaclient/base.py", line 67, in _list
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 487, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 446, in _cs_request
    self.authenticate()
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 586, in authenticate
    auth_url = self._v2_auth(auth_url)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 677, in _v2_auth
    return self._authenticate(url, body)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 690, in _authenticate
    **kwargs)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 439, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 433, in request
    raise exceptions.from_response(resp, body, url, method)
Unauthorized: Could not find user: workloads_collector (Disable debug mode to suppress these details.) (HTTP 401)

So workloads_collector user wasn't created

Logs are attached

Tags: stats
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :
summary: - [stats] Workloads_collector user wasn't created during master deployment
+ [stats] Workloads_collector user wasn't created during cluster
+ deployment
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :
Changed in fuel:
status: New → Confirmed
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

commit 3d2f312c33cd0f17185821142ed0a368e4372140 by Dmitry Ilyin caused this regression

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Dmitry Ilyin (idv1985)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
assignee: Dmitry Ilyin (idv1985) → Matthew Mosesohn (raytrac3r)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/165022
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=a23cef42057344bb5e48add36cc23523d60257de
Submitter: Jenkins
Branch: master

commit a23cef42057344bb5e48add36cc23523d60257de
Author: Matthew Mosesohn <email address hidden>
Date: Tue Mar 17 13:39:26 2015 +0300

    Replace regression for workloads_collector keystone user

    Fixes regression in 3d2f312c33cd0f17185821142ed0a368e4372140
    from splitting of keystone granular role.

    Change-Id: Ib3947d02fb793d4a193272cc13eb334906e0b668
    Closes-Bug: #1431775

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :

verified on {

    "build_id": "2015-03-20_02-30-10",
    "ostf_sha": "b9a090c71682fbea5d9351051827d7d654d07be3",
    "build_number": "211",
    "release_versions":

{

    "2014.2-6.1":

{

    "VERSION":

{

    "build_id": "2015-03-20_02-30-10",
    "ostf_sha": "b9a090c71682fbea5d9351051827d7d654d07be3",
    "build_number": "211",
    "api": "1.0",
    "nailgun_sha": "1d2bd383caecc5ec3f86bf93ccca940326f23e97",
    "production": "docker",
    "python-fuelclient_sha": "b223dcaf5fdad2f714cd245958fefe03995d6207",
    "astute_sha": "4a117a1ca6bdcc34fe4d086959ace1a6d18eeca9",
    "feature_groups":

            [
                "mirantis"
            ],
            "release": "6.1",
            "fuelmain_sha": "f3d6353c08d8eb709c7ab100b56dc2bebef4157f",
            "fuellib_sha": "7764225db5bc653563309912afbb4058283c808b"
        }
    }

},
"auth_required": true,
"api": "1.0",
"nailgun_sha": "1d2bd383caecc5ec3f86bf93ccca940326f23e97",
"production": "docker",
"python-fuelclient_sha": "b223dcaf5fdad2f714cd245958fefe03995d6207",
"astute_sha": "4a117a1ca6bdcc34fe4d086959ace1a6d18eeca9",
"feature_groups":

    [
        "mirantis"
    ],
    "release": "6.1",
    "fuelmain_sha": "f3d6353c08d8eb709c7ab100b56dc2bebef4157f",
    "fuellib_sha": "7764225db5bc653563309912afbb4058283c808b"

}

Changed in fuel:
status: Fix Committed → Fix Released
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.