{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/39786","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/39786/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/39786/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/39786/events","html_url":"https://github.com/ansible/ansible/issues/39786","id":320716132,"number":39786,"title":"kubernetes module broken in Ansible 2.5: one of the following is required: f, i, l, e, _, r, e, f, e, r, e, n, c, e\"","user":{"login":"stephan2012","id":3070471,"avatar_url":"https://avatars0.githubusercontent.com/u/3070471?v=4","gravatar_id":"","url":"https://api.github.com/users/stephan2012","html_url":"https://github.com/stephan2012","followers_url":"https://api.github.com/users/stephan2012/followers","following_url":"https://api.github.com/users/stephan2012/following{/other_user}","gists_url":"https://api.github.com/users/stephan2012/gists{/gist_id}","starred_url":"https://api.github.com/users/stephan2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephan2012/subscriptions","organizations_url":"https://api.github.com/users/stephan2012/orgs","repos_url":"https://api.github.com/users/stephan2012/repos","events_url":"https://api.github.com/users/stephan2012/events{/privacy}","received_events_url":"https://api.github.com/users/stephan2012/received_events","type":"User","site_admin":false},"labels":[{"id":686214011,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.5","name":"affects_2.5","color":"ededed","default":false},{"id":835286067,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.6","name":"affects_2.6","color":"ededed","default":false},{"id":785271699,"url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":572364907,"url":"https://api.github.com/repos/ansible/ansible/labels/deprecated","name":"deprecated","color":"fef2c0","default":false},{"id":814251818,"url":"https://api.github.com/repos/ansible/ansible/labels/has_pr","name":"has_pr","color":"1d76db","default":false},{"id":496359346,"url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":636327968,"url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-07T08:21:27Z","updated_at":"2018-05-07T09:16:55Z","closed_at":null,"author_association":"NONE","body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nTHIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED.\r\nAlso test if the latest release, and devel branch are affected too.\r\nALWAYS add information AFTER (OUTSIDE) these html comments.\r\nOtherwise it may end up being automatically closed by our bot. -->\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<!--- Insert, BELOW THIS COMMENT, the name of the module, plugin, task or feature.\r\nDo not include extra details here, e.g. \"vyos_command\" not \"the network module vyos_command\" or the full path-->\r\nkubernetes\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste, BELOW THIS COMMENT, verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\nansible 2.5.2\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/lib/python2.7/site-packages/ansible\r\n  executable location = /bin/ansible\r\n  python version = 2.7.5 (default, Feb 20 2018, 09:19:12) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]\r\n```\r\n\r\n##### CONFIGURATION\r\n<!--- If using Ansible 2.4 or above, paste, BELOW THIS COMMENT, the results of \"ansible-config dump --only-changed\"\r\nOtherwise, mention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).-->\r\n```\r\nANSIBLE_PIPELINING(/etc/ansible/ansible.cfg) = True\r\nDEFAULT_LOG_PATH(/etc/ansible/ansible.cfg) = /var/log/ansible.log\r\nDEFAULT_VAULT_PASSWORD_FILE(env: ANSIBLE_VAULT_PASSWORD_FILE) = /root/.vault_pass.txt\r\nRETRY_FILES_ENABLED(/etc/ansible/ansible.cfg) = False\r\n```\r\n\r\n##### OS / ENVIRONMENT\r\n<!--- Mention, BELOW THIS COMMENT, 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\nAlso mention the specific version of what you are trying to control,\r\ne.g. if this is a network bug the version of firmware on the network device.-->\r\nRed Hat Enterprise Linux 7.5\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nAnsible module `kubernetes` is broken in Ansible 2.5 while the new `k8s_raw` module is not yet fully functional (see #39674 and others).\r\n\r\n##### STEPS TO REPRODUCE\r\n<!--- For bugs, show exactly how to reproduce the problem, using a minimal test-case.\r\nFor new features, show how the feature would be used. -->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```yaml\r\n- name: \"Deploy Hazelcast\"\r\n  delegate_to: localhost\r\n  run_once: yes\r\n  kubernetes:\r\n    state: present\r\n    api_endpoint: '{{ dynenv_k8s_endpoint }}'\r\n    inline_data:\r\n      apiVersion: extensions/v1beta1\r\n      kind: Deployment\r\n      metadata:\r\n        name: hazelcast\r\n        namespace: 'dynenv-{{ dynenv_name }}'\r\n        annotations:\r\n          description: Hazelcast\r\n      spec:\r\n        replicas: 1\r\n        template:\r\n          metadata:\r\n            labels:\r\n              name: hazelcast\r\n              app_version: '{{ dynenv_hazelcast_version |string }}'\r\n            annotations:\r\n              prometheus.io/port: '1234'\r\n              prometheus.io/scrape: 'true'\r\n          spec:\r\n            affinity:\r\n              podAntiAffinity:\r\n                requiredDuringSchedulingIgnoredDuringExecution:\r\n                  - labelSelector:\r\n                      matchExpressions:\r\n                      - key: \"name\"\r\n                        operator: In\r\n                        values:\r\n                        - hazelcast\r\n                    topologyKey: \"kubernetes.io/hostname\"\r\n            imagePullSecrets:\r\n            - name: dcr\r\n            initContainers:\r\n            - name: wait-for-etcd\r\n              image: dcr.intern.hse24.de/hse24/rhel7\r\n              command: ['sh', '-c', 'until curl --silent --fail http://etcd:2379/health ; do echo waiting for etcd; sleep 2; done;']\r\n            containers:\r\n            - name: hazelcast\r\n              image: '{{ dynenv_hazelcast_image }}:{{ dynenv_hazelcast_version }}'\r\n              args:\r\n                - -d\r\n                - -p\r\n                - \"5701\"\r\n                - -e\r\n                - \"http://etcd:2379\"\r\n                - -j\r\n                - \"-javaagent:/usr/java/default/lib/ext/jmx_prometheus_javaagent.jar=1234:/etc/jmx_exporter/default.yml -Xms{{ dynenv_hazelcast_heap_size_mb }}m -Xmx{{ dynenv_hazelcast_heap_size_mb }}m -XX:+AlwaysPreTouch -Dhazelcast.http.healthcheck.enabled=true\"\r\n              imagePullPolicy: Always\r\n              env:\r\n              - name: LANG\r\n                value: en_US.UTF-8\r\n              - name: TZ\r\n                value: '{{ dynenv_timezone }}'\r\n              resources:\r\n                requests:\r\n                  memory: \"{{ dynenv_hazelcast_heap_size_mb }}Mi\"\r\n                  # CPU is in \"milli-cpu\"\r\n                  cpu: \"100m\"\r\n              ports:\r\n                - containerPort: 80\r\n            restartPolicy: Always\r\n            readinessProbe:\r\n              failureThreshold: 5\r\n              httpGet:\r\n                path: /hazelcast/health\r\n                port: 5701\r\n                scheme: HTTP\r\n              initialDelaySeconds: 15\r\n              timeoutSeconds: 5\r\n            livenessProbe:\r\n              failureThreshold: 5\r\n              httpGet:\r\n                path: /hazelcast/health\r\n                port: 5701\r\n                scheme: HTTP\r\n              initialDelaySeconds: 15\r\n              timeoutSeconds: 5\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\nAlthough deprecated, the `kubernetes` module should continue to work as in Ansible 2.4.\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\nPlaybook failed:\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nTASK [dynenv-hazelcast : Setup Kubernetes service for Hazelcast] **********************************************************************************************************************************************\r\nfatal: [server -> localhost]: FAILED! => {\"changed\": false, \"msg\": \"one of the following is required: f, i, l, e, _, r, e, f, e, r, e, n, c, e\"}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/387007860","html_url":"https://github.com/ansible/ansible/issues/39786#issuecomment-387007860","issue_url":"https://api.github.com/repos/ansible/ansible/issues/39786","id":387007860,"user":{"login":"Akasurde","id":633765,"avatar_url":"https://avatars1.githubusercontent.com/u/633765?v=4","gravatar_id":"","url":"https://api.github.com/users/Akasurde","html_url":"https://github.com/Akasurde","followers_url":"https://api.github.com/users/Akasurde/followers","following_url":"https://api.github.com/users/Akasurde/following{/other_user}","gists_url":"https://api.github.com/users/Akasurde/gists{/gist_id}","starred_url":"https://api.github.com/users/Akasurde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Akasurde/subscriptions","organizations_url":"https://api.github.com/users/Akasurde/orgs","repos_url":"https://api.github.com/users/Akasurde/repos","events_url":"https://api.github.com/users/Akasurde/events{/privacy}","received_events_url":"https://api.github.com/users/Akasurde/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T09:16:55Z","updated_at":"2018-05-07T09:16:55Z","author_association":"MEMBER","body":"@stephan2012 Thanks for reporting."}}
{"actor":{"display_login":"Akasurde"}}