{"action":"created","issue":{"url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/50","repository_url":"https://api.github.com/repos/F5Networks/f5-ansible","labels_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/50/comments","events_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/50/events","html_url":"https://github.com/F5Networks/f5-ansible/issues/50","id":188283307,"number":50,"title":"Random exceptions for set_session_enabled_state","user":{"login":"hanej","id":185708,"avatar_url":"https://avatars.githubusercontent.com/u/185708?v=3","gravatar_id":"","url":"https://api.github.com/users/hanej","html_url":"https://github.com/hanej","followers_url":"https://api.github.com/users/hanej/followers","following_url":"https://api.github.com/users/hanej/following{/other_user}","gists_url":"https://api.github.com/users/hanej/gists{/gist_id}","starred_url":"https://api.github.com/users/hanej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanej/subscriptions","organizations_url":"https://api.github.com/users/hanej/orgs","repos_url":"https://api.github.com/users/hanej/repos","events_url":"https://api.github.com/users/hanej/events{/privacy}","received_events_url":"https://api.github.com/users/hanej/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-09T16:01:41Z","updated_at":"2016-11-09T18:15:34Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the module/role/task -->\r\nbigip_node\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.2.0.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### PYTHON VERSION\r\n<!--- Paste verbatim output from “python -V” between quotes below -->\r\n```\r\nPython 2.7.5\r\n```\r\n\r\n##### BIGIP VERSION\r\n<!---\r\nPaste verbatim output from “tmsh show sys version” between quotes below\r\n-->\r\n```\r\nSys::Version\r\nMain Package\r\n  Product     BIG-IP\r\n  Version     11.6.0\r\n  Build       0.0.401\r\n  Edition     Final\r\n  Date        Mon Aug 11 21:08:03 PDT 2014\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nRed Hat 7.2\r\n\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nOccasionally when trying to enable or disable a node the bigip_node module will produce an exception and the entire playbook stops.\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n    - name: disable node on primary F5\r\n      bigip_node: server='192.168.x.x'\r\n                  user='ansible'\r\n                  password='password'\r\n                  name='test_node'\r\n                  session_state=disabled\r\n                  monitor_state=disabled\r\n                  validate_certs=False\r\n      register: f5_result\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nThe node is disabled and any exceptions are handled within the module.  The register variable should hold any errors trying to modify the node.\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with high verbosity (-vvvv) -->\r\nThis doesn't happen all the time and it's hard to reproduce.  I would like to be able to trap these errors and handle them gracefully in the playbook.\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nfatal: [app1 -> jumpserver]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"received exception: Server raised fault: 'Exception caught in LocalLB::urn:iControl:LocalLB/NodeAddressV2::set_session_enabled_state()\\nException: Common::OperationFailed\\n\\tprimary_error_code   : 17241203 (0x01071473)\\n\\tsecondary_error_code : 0\\n\\terror_string         : 01071473:3: Create, modify, and delete commands are not valid for (by class: node_address) while in the root folder.'\"}\r\n```"},"comment":{"url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/comments/259484390","html_url":"https://github.com/F5Networks/f5-ansible/issues/50#issuecomment-259484390","issue_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/50","id":259484390,"user":{"login":"caphrim007","id":46956,"avatar_url":"https://avatars.githubusercontent.com/u/46956?v=3","gravatar_id":"","url":"https://api.github.com/users/caphrim007","html_url":"https://github.com/caphrim007","followers_url":"https://api.github.com/users/caphrim007/followers","following_url":"https://api.github.com/users/caphrim007/following{/other_user}","gists_url":"https://api.github.com/users/caphrim007/gists{/gist_id}","starred_url":"https://api.github.com/users/caphrim007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caphrim007/subscriptions","organizations_url":"https://api.github.com/users/caphrim007/orgs","repos_url":"https://api.github.com/users/caphrim007/repos","events_url":"https://api.github.com/users/caphrim007/events{/privacy}","received_events_url":"https://api.github.com/users/caphrim007/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T18:15:34Z","updated_at":"2016-11-09T18:15:34Z","body":"@hanej I would appreciate your testing of the updated code in your real-world environment, bug reporting, and feature requests above and beyond code contributions.\r\n\r\nJust to be clear though, let me preface the above statement with \"at this time\".\r\n\r\nThe code is not the most difficult effort for the module development. Much harder for me is to run the modules in an environment that has had BIG-IP taken through hell and back.\r\n\r\nI work off of pristine VE images, so I have a skewed view of the world. But since yourself and this audience uses these in production, your experiences with it would be infinitely more helpful to have.\r\n\r\nI will update you when I have pushed an updated copy of the `bigip_node` module that uses the REST api."}}
{"actor":{"display_login":"caphrim007"}}