{"action":"created","issue":{"url":"https://api.github.com/repos/rcbops/rpc-openstack/issues/1120","repository_url":"https://api.github.com/repos/rcbops/rpc-openstack","labels_url":"https://api.github.com/repos/rcbops/rpc-openstack/issues/1120/labels{/name}","comments_url":"https://api.github.com/repos/rcbops/rpc-openstack/issues/1120/comments","events_url":"https://api.github.com/repos/rcbops/rpc-openstack/issues/1120/events","html_url":"https://github.com/rcbops/rpc-openstack/issues/1120","id":158772506,"number":1120,"title":"MaaS alerts because of failing plugins","user":{"login":"xeregin","id":2779091,"avatar_url":"https://avatars.githubusercontent.com/u/2779091?v=3","gravatar_id":"","url":"https://api.github.com/users/xeregin","html_url":"https://github.com/xeregin","followers_url":"https://api.github.com/users/xeregin/followers","following_url":"https://api.github.com/users/xeregin/following{/other_user}","gists_url":"https://api.github.com/users/xeregin/gists{/gist_id}","starred_url":"https://api.github.com/users/xeregin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xeregin/subscriptions","organizations_url":"https://api.github.com/users/xeregin/orgs","repos_url":"https://api.github.com/users/xeregin/repos","events_url":"https://api.github.com/users/xeregin/events{/privacy}","received_events_url":"https://api.github.com/users/xeregin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-06T20:54:20Z","updated_at":"2016-06-06T21:06:41Z","closed_at":null,"body":"##### What version (commit) do you encounter this issue on?\r\n12.2 rc3\r\n\r\n##### What type of issue is this (bug, feature, documentation, regression)?\r\nBug\r\n\r\n##### What is the expected behavior?\r\nHorizon Python script running without a stacktrace\r\n\r\n##### What is actually happening?\r\nHorizon Python script is running with a stacktrace. This particular issue is caused by having multiple versions of six on the node.\r\nHere is the output:\r\n```\r\nTraceback (most recent call last):\r\n  File \"./horizon_check.py\", line 22, in <module>\r\n    from maas_common import get_auth_details\r\n  File \"/usr/lib/rackspace-monitoring-agent/plugins/maas_common.py\", line 51, in <module>\r\n    from cinderclient import client as c_client\r\n  File \"/usr/local/lib/python2.7/dist-packages/cinderclient/client.py\", line 30, in <module>\r\n    from keystoneclient import discover\r\n  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/discover.py\", line 24, in <module>\r\n    from keystoneclient.v2_0 import client as v2_client\r\n  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/__init__.py\", line 1, in <module>\r\n    from keystoneclient.v2_0.client import Client  # noqa\r\n  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py\", line 21, in <module>\r\n    from keystoneclient import httpclient\r\n  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/httpclient.py\", line 152, in <module>\r\n    class HTTPClient(baseclient.Client, base.BaseAuthPlugin):\r\n  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/httpclient.py\", line 262, in HTTPClient\r\n    user_agent=USER_AGENT, connect_retries=None, **kwargs):\r\n  File \"/usr/local/lib/python2.7/dist-packages/debtcollector/renames.py\", line 38, in decorator\r\n    @six.wraps(f)\r\nAttributeError: 'module' object has no attribute 'wraps'\r\n```\r\n\r\n##### How can we reproduce this issue?\r\nThis issue can only be reproduced by running the Horizon Python script (https://github.com/rcbops/rpc-openstack/blob/master/maas/plugins/horizon_check.py) on a system where there is a bad version of six (1.5.2) installed in a directory with higher precedence over the directory where the good version of six (1.10.0) is located.\r\nFor instance:\r\n- six 1.5.2 in /usr/lib/python2.7/dist-packages/six.py\r\n- six 1.10.0 in /usr/local/lib/python2.7/dist-packages/six.py\r\n\r\n##### How can we verify your issue is addressed?\r\nBy testing the fix in a lab where the issue exists or has been reproduced using the above method.\r\n\r\n##### If this is a large issue, what can be done immediately to alleviate the issue while working on a longer-term solution?\r\nBy checking if 2 versions of six exist in environment paths, and backing up and eliminating any incorrect versions.\r\n\r\n##### What is your evaluation on the importance of this issue, and why?\r\nImportance: High impact to MaaS\r\nPotential to occur: Low to Moderate\r\n\r\n##### What branches / milestones do you believe this issue should target?\r\n###### The list below is what is currently supported for backports\r\n###### Remove branches (lines) you do not wish to target.\r\n- [ ] Master\r\n- [ ] liberty-12.2\r\n- [ ] liberty-12.1\r\n- [ ] kilo\r\n"},"comment":{"url":"https://api.github.com/repos/rcbops/rpc-openstack/issues/comments/224088580","html_url":"https://github.com/rcbops/rpc-openstack/issues/1120#issuecomment-224088580","issue_url":"https://api.github.com/repos/rcbops/rpc-openstack/issues/1120","id":224088580,"user":{"login":"d34dh0r53","id":248299,"avatar_url":"https://avatars.githubusercontent.com/u/248299?v=3","gravatar_id":"","url":"https://api.github.com/users/d34dh0r53","html_url":"https://github.com/d34dh0r53","followers_url":"https://api.github.com/users/d34dh0r53/followers","following_url":"https://api.github.com/users/d34dh0r53/following{/other_user}","gists_url":"https://api.github.com/users/d34dh0r53/gists{/gist_id}","starred_url":"https://api.github.com/users/d34dh0r53/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d34dh0r53/subscriptions","organizations_url":"https://api.github.com/users/d34dh0r53/orgs","repos_url":"https://api.github.com/users/d34dh0r53/repos","events_url":"https://api.github.com/users/d34dh0r53/events{/privacy}","received_events_url":"https://api.github.com/users/d34dh0r53/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T21:06:41Z","updated_at":"2016-06-06T21:06:41Z","body":"Looks like we'll need to create a venv for MaaS."}}
{"actor":{"display_login":"d34dh0r53"}}