{"action":"closed","issue":{"url":"https://api.github.com/repos/F5Networks/f5-common-python/issues/1324","repository_url":"https://api.github.com/repos/F5Networks/f5-common-python","labels_url":"https://api.github.com/repos/F5Networks/f5-common-python/issues/1324/labels{/name}","comments_url":"https://api.github.com/repos/F5Networks/f5-common-python/issues/1324/comments","events_url":"https://api.github.com/repos/F5Networks/f5-common-python/issues/1324/events","html_url":"https://github.com/F5Networks/f5-common-python/issues/1324","id":274821114,"node_id":"MDU6SXNzdWUyNzQ4MjExMTQ=","number":1324,"title":"iControlUnexpectedHTTPError: 401 Unexpected Error: F5 Authorization Required for uri: https://10.50.2.65:443/mgmt/tm/sys/","user":{"login":"kimoziiiii","id":8429793,"node_id":"MDQ6VXNlcjg0Mjk3OTM=","avatar_url":"https://avatars3.githubusercontent.com/u/8429793?v=4","gravatar_id":"","url":"https://api.github.com/users/kimoziiiii","html_url":"https://github.com/kimoziiiii","followers_url":"https://api.github.com/users/kimoziiiii/followers","following_url":"https://api.github.com/users/kimoziiiii/following{/other_user}","gists_url":"https://api.github.com/users/kimoziiiii/gists{/gist_id}","starred_url":"https://api.github.com/users/kimoziiiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimoziiiii/subscriptions","organizations_url":"https://api.github.com/users/kimoziiiii/orgs","repos_url":"https://api.github.com/users/kimoziiiii/repos","events_url":"https://api.github.com/users/kimoziiiii/events{/privacy}","received_events_url":"https://api.github.com/users/kimoziiiii/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2017-11-17T10:35:28Z","updated_at":"2018-08-08T10:31:01Z","closed_at":"2018-08-08T10:31:01Z","author_association":"NONE","body":"* python:2.7\r\n* sdk: f5-sdk 3.0.4\r\n* f5 software: BIG-IP v11.6.1\r\n* f5 user role: administrator\r\n\r\n```\r\n(py2.7env) root@ubuntu:~# ipython \r\nWARNING: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.\r\nPython 2.7.12 (default, Nov 19 2016, 06:48:10) \r\nType \"copyright\", \"credits\" or \"license\" for more information.\r\n\r\nIPython 2.4.1 -- An enhanced Interactive Python.\r\n?         -> Introduction and overview of IPython's features.\r\n%quickref -> Quick reference.\r\nhelp      -> Python's own help system.\r\nobject?   -> Details about 'object', use 'object??' for extra details.\r\n\r\nIn [1]: from f5.bigip import ManagementRoot\r\n\r\nIn [2]: mgmt = ManagementRoot(\"10.50.2.65\", \"*****\", \"*****\")\r\n/root/py2.7env/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\r\n  InsecureRequestWarning)\r\n---------------------------------------------------------------------------\r\niControlUnexpectedHTTPError               Traceback (most recent call last)\r\n<ipython-input-2-0cb9e9db64a8> in <module>()\r\n----> 1 mgmt = ManagementRoot(\"10.50.2.65\", \"*****\", \"*****\")\r\n\r\n/root/py2.7env/lib/python2.7/site-packages/f5/bigip/__init__.pyc in __init__(self, hostname, username, password, **kwargs)\r\n    122         )\r\n    123         self.set_metadata_uri(**self.args)\r\n--> 124         self.post_configuration_setup()\r\n    125 \r\n    126     def set_metadata_uri(self, *args, **kwargs):\r\n\r\n/root/py2.7env/lib/python2.7/site-packages/f5/bigip/__init__.pyc in post_configuration_setup(self)\r\n     89 \r\n     90     def post_configuration_setup(self):\r\n---> 91         self._get_tmos_version()\r\n     92 \r\n     93     def _get_tmos_version(self):\r\n\r\n/root/py2.7env/lib/python2.7/site-packages/f5/bigip/__init__.pyc in _get_tmos_version(self)\r\n     94         connect = self._meta_data['bigip']._meta_data['icr_session']\r\n     95         base_uri = self._meta_data['uri'] + 'tm/sys/'\r\n---> 96         response = connect.get(base_uri)\r\n     97         ver = response.json()\r\n     98         version = urlparse.parse_qs(\r\n\r\n/root/py2.7env/lib/python2.7/site-packages/icontrol/session.pyc in wrapper(self, RIC_base_uri, **kwargs)\r\n    270                              response.url,\r\n    271                              response.text)\r\n--> 272             raise iControlUnexpectedHTTPError(error_message, response=response)\r\n    273         return response\r\n    274     return wrapper\r\n\r\niControlUnexpectedHTTPError: 401 Unexpected Error: F5 Authorization Required for uri: https://10.50.2.65:443/mgmt/tm/sys/\r\nText: u'{\"code\":401,\"message\":\"Authorization failed: user=https://localhost/mgmt/shared/authz/users/hai.ping resource=/mgmt/tm/sys verb=GET uri:http://localhost:8100/mgmt/tm/sys/ referrer:10.60.9.95 sender:10.60.9.95\",\"referer\":\"10.60.9.95\",\"restOperationId\":5407297,\"errorStack\":[\"java.lang.SecurityException: Authorization failed: user=https://localhost/mgmt/shared/authz/users/hai.ping resource=/mgmt/tm/sys verb=GET uri:http://localhost:8100/mgmt/tm/sys/ referrer:10.60.9.95 sender:10.60.9.95\",\"at com.f5.rest.workers.ForwarderWorker.failPermissionValidation(ForwarderWorker.java:565)\",\"at com.f5.rest.workers.ForwarderWorker.evaluateUserPermission(ForwarderWorker.java:633)\",\"at com.f5.rest.workers.ForwarderWorker.evaluatePermission(ForwarderWorker.java:537)\",\"at com.f5.rest.workers.ForwarderPassThroughWorker.onForward(ForwarderPassThroughWorker.java:202)\",\"at com.f5.rest.workers.ForwarderPassThroughWorker.onGet(ForwarderPassThroughWorker.java:370)\",\"at com.f5.rest.common.RestWorker.callDerivedRestMethod(RestWorker.java:1009)\",\"at com.f5.rest.common.RestWorker.callRestMethodHandler(RestWorker.java:976)\",\"at com.f5.rest.common.RestServer.processQueuedRequests(RestServer.java:889)\",\"at com.f5.rest.common.RestServer.access$000(RestServer.java:43)\",\"at com.f5.rest.common.RestServer$1.run(RestServer.java:165)\",\"at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\",\"at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\",\"at java.lang.Thread.run(Thread.java:744)\\\\n\"]}'\r\n```\r\nhelp.."}}
{"actor":{"display_login":"wojtek0806"}}