)]}'
{"id":"openstack%2Frally-openstack~599236","triplet_id":"openstack%2Frally-openstack~master~I298533390fe3115c20310e7758a1548e62d5560f","project":"openstack/rally-openstack","branch":"master","topic":"debug_func","hashtags":[],"change_id":"I298533390fe3115c20310e7758a1548e62d5560f","subject":"[ci] Try fixing floating bug at functional tests","status":"MERGED","created":"2018-09-02 16:06:42.000000000","updated":"2018-09-03 11:31:33.000000000","submitted":"2018-09-03 11:31:33.000000000","submitter":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"submission_id":"599236-1535974293705-4e0a96a9","meta_rev_id":"d6ede9ef39d5ceb75fb75da8f9bb71dfd633796a","_number":599236,"virtual_id_number":599236,"owner":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"value":0,"_account_id":21528,"name":"chenhb","email":"chen.haibing1@zte.com.cn","username":"chenhb"},{"value":0,"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},{"value":2,"date":"2018-09-03 11:31:33.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","default_value":0,"optional":true},"Code-Review":{"approved":{"_account_id":21528,"name":"chenhb","email":"chen.haibing1@zte.com.cn","username":"chenhb"},"all":[{"value":2,"date":"2018-09-03 03:12:13.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":21528,"name":"chenhb","email":"chen.haibing1@zte.com.cn","username":"chenhb"},{"value":0,"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},{"value":0,"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","default_value":0,"optional":true},"Workflow":{"approved":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"all":[{"value":0,"_account_id":21528,"name":"chenhb","email":"chen.haibing1@zte.com.cn","username":"chenhb"},{"value":1,"date":"2018-09-03 10:15:33.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},{"value":0,"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},{"_account_id":21528,"name":"chenhb","email":"chen.haibing1@zte.com.cn","username":"chenhb"},{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2018-09-03 03:12:13.000000000","updated_by":{"_account_id":21528,"name":"chenhb","email":"chen.haibing1@zte.com.cn","username":"chenhb"},"reviewer":{"_account_id":21528,"name":"chenhb","email":"chen.haibing1@zte.com.cn","username":"chenhb"},"state":"REVIEWER"},{"updated":"2018-09-03 11:31:33.000000000","updated_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"reviewer":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"state":"REVIEWER"}],"messages":[{"id":"90e1e29d121925f39b0b3553cf1e8c4d2538f693","author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"date":"2018-09-02 16:06:42.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"280879d7581fcfbb8661f399d5dca5bad0fbf5f5","author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"date":"2018-09-02 16:10:03.000000000","message":"Patch Set 2: Commit message was updated.","accounts_in_message":[],"_revision_number":2},{"id":"427be1882c189d21813b8950b40f159b0ea31226","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2018-09-02 17:23:18.000000000","message":"Patch Set 2: Verified+1\n\nBuild succeeded (check pipeline).\n\n- rally-tox-pep8 http://logs.openstack.org/36/599236/2/check/rally-tox-pep8/0a027c2/ : SUCCESS in 4m 35s\n- rally-tox-py27 http://logs.openstack.org/36/599236/2/check/rally-tox-py27/a46ccd4/ : SUCCESS in 4m 49s\n- rally-tox-py35 http://logs.openstack.org/36/599236/2/check/rally-tox-py35/5865c4c/ : SUCCESS in 4m 25s\n- rally-tox-py36 http://logs.openstack.org/36/599236/2/check/rally-tox-py36/187c369/ : SUCCESS in 5m 24s\n- rally-tox-py37 http://logs.openstack.org/36/599236/2/check/rally-tox-py37/bf64cce/ : SUCCESS in 5m 20s\n- rally-tox-cover http://logs.openstack.org/36/599236/2/check/rally-tox-cover/64f6766/ : SUCCESS in 5m 20s\n- rally-dsvm-tox-functional http://logs.openstack.org/36/599236/2/check/rally-dsvm-tox-functional/2c2acb0/ : SUCCESS in 33m 38s\n- rally-docker-check http://logs.openstack.org/36/599236/2/check/rally-docker-check/1d6cbc2/ : SUCCESS in 6m 09s\n- rally-task-simple-job http://logs.openstack.org/36/599236/2/check/rally-task-simple-job/fbc93c2/ : SUCCESS in 31m 35s\n- rally-task-basic-with-existing-users http://logs.openstack.org/36/599236/2/check/rally-task-basic-with-existing-users/45ad103/ : SUCCESS in 32m 25s (non-voting)\n- rally-task-heat http://logs.openstack.org/36/599236/2/check/rally-task-heat/d51cf0a/ : FAILURE in 43m 32s (non-voting)\n- rally-task-ironic http://logs.openstack.org/36/599236/2/check/rally-task-ironic/dafc9c0/ : SUCCESS in 37m 33s\n- rally-task-keystone-glance-swift http://logs.openstack.org/36/599236/2/check/rally-task-keystone-glance-swift/f09ec74/ : SUCCESS in 37m 12s\n- rally-task-load-balancing http://logs.openstack.org/36/599236/2/check/rally-task-load-balancing/c068f3f/ : SUCCESS in 48m 36s (non-voting)\n- rally-task-mistral http://logs.openstack.org/36/599236/2/check/rally-task-mistral/168453e/ : SUCCESS in 32m 23s\n- rally-task-murano http://logs.openstack.org/36/599236/2/check/rally-task-murano/937d94c/ : SUCCESS in 29m 06s\n- rally-task-neutron http://logs.openstack.org/36/599236/2/check/rally-task-neutron/fc173c2/ : SUCCESS in 1h 02m 33s\n- rally-task-neutron-with-extensions http://logs.openstack.org/36/599236/2/check/rally-task-neutron-with-extensions/9c22a81/ : FAILURE in 15m 06s (non-voting)\n- rally-task-nova http://logs.openstack.org/36/599236/2/check/rally-task-nova/2c8e75c/ : SUCCESS in 1h 00m 27s (non-voting)\n- rally-task-telemetry http://logs.openstack.org/36/599236/2/check/rally-task-telemetry/8db0e51/ : SUCCESS in 28m 00s\n- rally-task-watcher http://logs.openstack.org/36/599236/2/check/rally-task-watcher/28095b6/ : FAILURE in 29m 35s (non-voting)\n- rally-task-zaqar http://logs.openstack.org/36/599236/2/check/rally-task-zaqar/0c09f13/ : SUCCESS in 25m 32s","accounts_in_message":[],"_revision_number":2},{"id":"57c2cddbd8b4ddea57593816779f0041ce59a762","author":{"_account_id":21528,"name":"chenhb","email":"chen.haibing1@zte.com.cn","username":"chenhb"},"date":"2018-09-03 03:12:13.000000000","message":"Patch Set 2: Code-Review+2","accounts_in_message":[],"_revision_number":2},{"id":"d8647473f3b27dfa275afe4cd0c9c827e38ac508","author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"date":"2018-09-03 10:15:33.000000000","message":"Patch Set 2: Workflow+1","accounts_in_message":[],"_revision_number":2},{"id":"90680fd467259ad8d2522fd3758fe8e12707abae","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2018-09-03 10:15:44.000000000","message":"Patch Set 2: -Verified\n\nStarting gate jobs.","accounts_in_message":[],"_revision_number":2},{"id":"fca9933448dda15eba01c78195782bea720601d1","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2018-09-03 11:31:33.000000000","message":"Patch Set 2: Verified+2\n\nBuild succeeded (gate pipeline).\n\n- rally-tox-pep8 http://logs.openstack.org/36/599236/2/gate/rally-tox-pep8/d29e8f9/ : SUCCESS in 4m 59s\n- rally-tox-py27 http://logs.openstack.org/36/599236/2/gate/rally-tox-py27/4e78f00/ : SUCCESS in 4m 56s\n- rally-tox-py35 http://logs.openstack.org/36/599236/2/gate/rally-tox-py35/ec09cef/ : SUCCESS in 4m 43s\n- rally-tox-py36 http://logs.openstack.org/36/599236/2/gate/rally-tox-py36/b365dae/ : SUCCESS in 4m 53s\n- rally-tox-py37 http://logs.openstack.org/36/599236/2/gate/rally-tox-py37/b80a92e/ : SUCCESS in 5m 57s\n- rally-tox-cover http://logs.openstack.org/36/599236/2/gate/rally-tox-cover/693446c/ : SUCCESS in 5m 01s\n- rally-dsvm-tox-functional http://logs.openstack.org/36/599236/2/gate/rally-dsvm-tox-functional/b34d09d/ : SUCCESS in 31m 56s\n- rally-docker-check http://logs.openstack.org/36/599236/2/gate/rally-docker-check/027660f/ : SUCCESS in 5m 50s\n- rally-task-simple-job http://logs.openstack.org/36/599236/2/gate/rally-task-simple-job/1218e78/ : SUCCESS in 29m 41s\n- rally-task-ironic http://logs.openstack.org/36/599236/2/gate/rally-task-ironic/d441c57/ : SUCCESS in 30m 40s\n- rally-task-keystone-glance-swift http://logs.openstack.org/36/599236/2/gate/rally-task-keystone-glance-swift/c394453/ : SUCCESS in 45m 24s\n- rally-task-mistral http://logs.openstack.org/36/599236/2/gate/rally-task-mistral/641cb2c/ : SUCCESS in 28m 14s\n- rally-task-murano http://logs.openstack.org/36/599236/2/gate/rally-task-murano/228c28a/ : SUCCESS in 33m 10s\n- rally-task-neutron http://logs.openstack.org/36/599236/2/gate/rally-task-neutron/efa45c9/ : SUCCESS in 1h 14m 01s\n- rally-task-telemetry http://logs.openstack.org/36/599236/2/gate/rally-task-telemetry/5832776/ : SUCCESS in 28m 17s\n- rally-task-zaqar http://logs.openstack.org/36/599236/2/gate/rally-task-zaqar/cdb2e9a/ : SUCCESS in 26m 10s","accounts_in_message":[],"_revision_number":2},{"id":"21b8ee120e53f1816eabb02d73d0fef1e2cb4ba9","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2018-09-03 11:31:33.000000000","message":"Change has been successfully merged by Zuul","accounts_in_message":[],"_revision_number":2}],"current_revision_number":2,"current_revision":"14c29790aecd2b2ac23803ea8d7846efdc4a3edf","revisions":{"273ab614937e87c5826f58475a6aaa470f8e355b":{"kind":"REWORK","_number":1,"created":"2018-09-02 16:06:42.000000000","uploader":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"ref":"refs/changes/36/599236/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/rally-openstack","ref":"refs/changes/36/599236/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/rally-openstack refs/changes/36/599236/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/rally-openstack refs/changes/36/599236/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/rally-openstack refs/changes/36/599236/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/rally-openstack refs/changes/36/599236/1"}}},"commit":{"parents":[{"commit":"467cc05559dfb6e2fa92b6603ba445c53a94006f","subject":"Merge \"Add functional tests for env check\"","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/rally-openstack/commit/467cc05559dfb6e2fa92b6603ba445c53a94006f"}]}],"author":{"name":"Andrey Kurilin","email":"andr.kurilin@gmail.com","date":"2018-09-02 15:27:59.000000000","tz":180},"committer":{"name":"Andrey Kurilin","email":"andr.kurilin@gmail.com","date":"2018-09-02 16:06:32.000000000","tz":180},"subject":"[ci] Try fixing floating bug at functional tests","message":"[ci] Try fixing floating bug at functional tests\n\nThe issue: functional job fails sometimes with the following error:\n\n\u003e Invalid Task: KeyError: \u0027platforms\u0027\n\nThe debug gave me a next traceback:\n\n\u003e Traceback (most recent call last):\n\u003e   File \"/usr/local/lib/python2.7/dist-packages/rally/task/engine.py\", line 396, in validate\n\u003e     self._validate_config_semantic(self.config)\n\u003e   File \"/usr/local/lib/python2.7/dist-packages/rally/common/logging.py\", line 248, in wrapper\n\u003e     result \u003d f(self, *args, **kwargs)\n\u003e   File \"/usr/local/lib/python2.7/dist-packages/rally/task/engine.py\", line 369, in _validate_config_semantic\n\u003e     env_data \u003d self.env.data\n\u003e   File \"/usr/local/lib/python2.7/dist-packages/rally/env/env_mgr.py\", line 180, in data\n\u003e     return self.cached_data\n\u003e   File \"/usr/local/lib/python2.7/dist-packages/rally/env/env_mgr.py\", line 157, in cached_data\n\u003e     for p in self._env[\"platforms\"]:\n\u003e KeyError: \u0027platforms\u0027\n\nA possible reason: to speed up checking samples, the special workaround\nwas added[1]. It is designed to initialize OpenStack credentials with\nOSClients once and share it between all checks for separate samples,\nwhich resulted in decreasing auth-calls. The design of this hack includes\nmocking the result of obtaining Deployment object.\nAfter replacing Deployment component with Environment, the same\nenvironment manager is shared across all checks. The hack was not\nadopted after such change which resulted in obtaining platform data\n(credentials in our case) from database[2][3][4] in each sample-check.\nSince these checks are launched in parallel and the one env manage\nobject is used, there is a possible race condition when one thread already\n\"obtained\" data from database and while continuing validation, another\ncheck rewrites self._env obj[3] which doesn\u0027t contain \u0027platforms\u0027\nby-default (it is done at the next line[4]). Since switching from line[3]\nto line[4] takes ms, this race condition happens not often.\n\nThis patch removes the workaround. Anyway it stopped working after\nswitching to Environment component.\n\n[1] - https://github.com/openstack/rally-openstack/blob/1.2.0/tests/check_samples/test_task_samples.py#L97-L115\n[2] - https://github.com/openstack/rally/blob/1.1.0/rally/task/engine.py#L369\n[3] - https://github.com/openstack/rally/blob/1.1.0/rally/env/env_mgr.py#L178\n[4] - https://github.com/openstack/rally/blob/1.1.0/rally/env/env_mgr.py#L179\n\nChange-Id: I298533390fe3115c20310e7758a1548e62d5560f\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/rally-openstack/commit/273ab614937e87c5826f58475a6aaa470f8e355b"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/rally-openstack/commit/273ab614937e87c5826f58475a6aaa470f8e355b"}]},"branch":"refs/heads/master"},"14c29790aecd2b2ac23803ea8d7846efdc4a3edf":{"kind":"NO_CODE_CHANGE","_number":2,"created":"2018-09-02 16:10:03.000000000","uploader":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"ref":"refs/changes/36/599236/2","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/rally-openstack","ref":"refs/changes/36/599236/2","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/rally-openstack refs/changes/36/599236/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/rally-openstack refs/changes/36/599236/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/rally-openstack refs/changes/36/599236/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/rally-openstack refs/changes/36/599236/2"}}},"commit":{"parents":[{"commit":"467cc05559dfb6e2fa92b6603ba445c53a94006f","subject":"Merge \"Add functional tests for env check\"","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/rally-openstack/commit/467cc05559dfb6e2fa92b6603ba445c53a94006f"}]}],"author":{"name":"Andrey Kurilin","email":"andr.kurilin@gmail.com","date":"2018-09-02 15:27:59.000000000","tz":180},"committer":{"name":"Andrey Kurilin","email":"andr.kurilin@gmail.com","date":"2018-09-02 16:10:01.000000000","tz":0},"subject":"[ci] Try fixing floating bug at functional tests","message":"[ci] Try fixing floating bug at functional tests\n\nThe issue: functional job fails sometimes with the following error:\n\n\u003e Invalid Task: KeyError: \u0027platforms\u0027\n\nThe debug gave me a next traceback:\n\n\u003e Traceback (most recent call last):\n\u003e   File \"/usr/local/lib/python2.7/dist-packages/rally/task/engine.py\", line 396, in validate\n\u003e     self._validate_config_semantic(self.config)\n\u003e   File \"/usr/local/lib/python2.7/dist-packages/rally/common/logging.py\", line 248, in wrapper\n\u003e     result \u003d f(self, *args, **kwargs)\n\u003e   File \"/usr/local/lib/python2.7/dist-packages/rally/task/engine.py\", line 369, in _validate_config_semantic\n\u003e     env_data \u003d self.env.data\n\u003e   File \"/usr/local/lib/python2.7/dist-packages/rally/env/env_mgr.py\", line 180, in data\n\u003e     return self.cached_data\n\u003e   File \"/usr/local/lib/python2.7/dist-packages/rally/env/env_mgr.py\", line 157, in cached_data\n\u003e     for p in self._env[\"platforms\"]:\n\u003e KeyError: \u0027platforms\u0027\n\nA possible reason: to speed up checking samples, the special workaround\nwas added[1]. It is designed to initialize OpenStack credentials with\nOSClients once and share it between all checks for separate samples,\nwhich resulted in decreasing auth-calls. The design of this hack includes\nmocking the result of obtaining Deployment object.\nAfter replacing Deployment component with Environment, the same\nenvironment manager is shared across all checks. The hack was not\nadopted after such change which resulted in obtaining platform data\n(credentials in our case) from database[2][3][4] in each sample-check.\nSince these checks are launched in parallel and the one env manager\nobject is used, there is a possible race condition when one thread already\n\"obtained\" data from database and contined validation, another\ncheck rewrote self._env obj[3] which doesn\u0027t contain \u0027platforms\u0027\nby-default (it is done at the next line[4]). Since switching from line[3]\nto line[4] takes ms, this race condition happens not often.\n\nThis patch removes the workaround. Anyway it stopped working after\nswitching to Environment component.\n\n[1] - https://github.com/openstack/rally-openstack/blob/1.2.0/tests/check_samples/test_task_samples.py#L97-L115\n[2] - https://github.com/openstack/rally/blob/1.1.0/rally/task/engine.py#L369\n[3] - https://github.com/openstack/rally/blob/1.1.0/rally/env/env_mgr.py#L178\n[4] - https://github.com/openstack/rally/blob/1.1.0/rally/env/env_mgr.py#L179\n\nChange-Id: I298533390fe3115c20310e7758a1548e62d5560f\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/rally-openstack/commit/14c29790aecd2b2ac23803ea8d7846efdc4a3edf"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/rally-openstack/commit/14c29790aecd2b2ac23803ea8d7846efdc4a3edf"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
