{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/36554","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/36554/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/36554/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/36554/events","html_url":"https://github.com/ansible/ansible/issues/36554","id":299168729,"number":36554,"title":"openshift_scale/k8s_scale failing due to missing models","user":{"login":"twhiston","id":17698613,"avatar_url":"https://avatars2.githubusercontent.com/u/17698613?v=4","gravatar_id":"","url":"https://api.github.com/users/twhiston","html_url":"https://github.com/twhiston","followers_url":"https://api.github.com/users/twhiston/followers","following_url":"https://api.github.com/users/twhiston/following{/other_user}","gists_url":"https://api.github.com/users/twhiston/gists{/gist_id}","starred_url":"https://api.github.com/users/twhiston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twhiston/subscriptions","organizations_url":"https://api.github.com/users/twhiston/orgs","repos_url":"https://api.github.com/users/twhiston/repos","events_url":"https://api.github.com/users/twhiston/events{/privacy}","received_events_url":"https://api.github.com/users/twhiston/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":48276055,"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04","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":4,"created_at":"2018-02-21T23:30:41Z","updated_at":"2018-02-22T13:31:52Z","closed_at":null,"author_association":"NONE","body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\nopenshift_scale\r\nk8s_scale\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.5.0b2 (stable-2.5 61c1241a77) last updated 2018/02/22 00:21:03 (GMT +200)\r\n  config file = /Users/twhiston/.ansible.cfg\r\n  configured module search path = [u'/Users/twhiston/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/local/Cellar/ansible/devel/lib/ansible\r\n  executable location = /usr/local/Cellar/ansible/devel/bin/ansible\r\n  python version = 2.7.10 (default, Jul 15 2017, 17:16:57) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]\r\n```\r\n\r\n\r\n##### OS / ENVIRONMENT\r\nOSX\r\n\r\n##### SUMMARY\r\nRunning a simple example for openshift_scale or k8s_scale fails with \r\nError: V1Deployment was not found in client.models.\r\n\r\n##### STEPS TO REPRODUCE\r\n```yaml\r\n- name: Scale deployment config up, and extend timeout\r\n  openshift_scale:\r\n    api_version: v1\r\n    kind: DeploymentConfig\r\n    name: elastic\r\n    namespace: myproject\r\n    replicas: 0\r\n```\r\n\r\n##### EXPECTED RESULTS\r\nTask succeeds\r\n\r\n##### ACTUAL RESULTS\r\nError: V1DeploymentConfig was not found in client.models. Did you specify the correct Kind and API Version?\r\n\r\n```\r\nfailed: [localhost] (item={u'status': {u'replicas': 2, u'latest_version': 1, u'observed_generation': 3, u'updated_replicas': 2, u'available_replicas': 2, u'details': {u'message': u'image change', u'causes': [{u'type': u'ImageChange', u'image_trigger': {u'_from': {u'kind': u'ImageStreamTag', u'name': u'stunnel-container:latest', u'namespace': u'nine-tom-test-managed', u'resource_version': None, u'field_path': None, u'api_version': None, u'uid': None}}}]}, u'ready_replicas': 2, u'unavailable_replicas': 0, u'conditions': [{u'last_update_time': u'2018-02-21T20:12:57+00:00', u'status': u'True', u'last_transition_time': u'2018-02-21T20:12:37+00:00', u'reason': u'NewReplicationControllerAvailable', u'message': u'replication controller \"stunnel-container-1\" successfully rolled out', u'type': u'Progressing'}, {u'last_update_time': u'2018-02-21T22:57:39+00:00', u'status': u'True', u'last_transition_time': u'2018-02-21T22:57:39+00:00', u'reason': None, u'message': u'Deployment config has minimum availability.', u'type': u'Available'}]}, u'kind': None, u'spec': {u'replicas': 2, u'min_ready_seconds': None, u'selector': {u'app': u'stunnel-container', u'deploymentconfig': u'stunnel-container'}, u'paused': None, u'revision_history_limit': None, u'template': {u'spec': {u'termination_grace_period_seconds': 30, u'init_containers': None, u'priority_class_name': None, u'active_deadline_seconds': None, u'scheduler_name': u'default-scheduler', u'image_pull_secrets': None, u'service_account_name': None, u'hostname': None, u'priority': None, u'dns_policy': u'ClusterFirst', u'host_ipc': None, u'security_context': {u'fs_group': None, u'run_as_non_root': None, u'se_linux_options': None, u'supplemental_groups': None, u'run_as_user': None}, u'affinity': None, u'subdomain': None, u'containers': [{u'image_pull_policy': u'Always', u'tty': None, u'args': None, u'stdin_once': None, u'name': u'stunnel-container', u'env_from': None, u'image': u'xxx.xxx.xxx.xxx:5000/nine-tom-test-managed/stunnel-container@sha256:bbbdb45f5e97d422827c5c71d8ec86aa6e6be188c461a05e8682c03245986026', u'stdin': None, u'volume_mounts': [{u'read_only': True, u'sub_path': None, u'mount_path': u'/mnt/stunnel/psk', u'name': u'stunnel-psk', u'mount_propagation': None}, {u'read_only': True, u'sub_path': None, u'mount_path': u'/mnt/stunnel/conf.d', u'name': u'stunnel-config', u'mount_propagation': None}], u'readiness_probe': {u'timeout_seconds': 1, u'tcp_socket': {u'host': None, u'port': 1024}, u'failure_threshold': 3, u'_exec': None, u'period_seconds': 10, u'success_threshold': 1, u'http_get': None, u'initial_delay_seconds': 1}, u'security_context': None, u'working_dir': None, u'command': None, u'env': None, u'termination_message_path': u'/dev/termination-log', u'termination_message_policy': u'File', u'liveness_probe': {u'timeout_seconds': 1, u'tcp_socket': {u'host': None, u'port': 1024}, u'failure_threshold': 3, u'_exec': None, u'period_seconds': 10, u'success_threshold': 1, u'http_get': None, u'initial_delay_seconds': 1}, u'lifecycle': None, u'resources': {u'requests': {u'cpu': u'100m', u'memory': u'10Mi'}, u'limits': {u'cpu': u'500m', u'memory': u'50Mi'}}, u'ports': None}], u'node_selector': None, u'volumes': [{u'gce_persistent_disk': None, u'persistent_volume_claim': None, u'portworx_volume': None, u'flex_volume': None, u'glusterfs': None, u'flocker': None, u'aws_elastic_block_store': None, u'quobyte': None, u'iscsi': None, u'projected': None, u'secret': None, u'photon_persistent_disk': None, u'azure_disk': None, u'empty_dir': None, u'fc': None, u'cinder': None, u'storageos': None, u'git_repo': None, u'rbd': None, u'name': u'stunnel-config', u'vsphere_volume': None, u'config_map': {u'items': None, u'default_mode': 420, u'optional': None, u'name': u'stunnel-config'}, u'scale_io': None, u'azure_file': None, u'nfs': None, u'host_path': None, u'cephfs': None, u'downward_api': None}, {u'gce_persistent_disk': None, u'persistent_volume_claim': None, u'portworx_volume': None, u'flex_volume': None, u'glusterfs': None, u'flocker': None, u'aws_elastic_block_store': None, u'quobyte': None, u'iscsi': None, u'projected': None, u'secret': {u'items': None, u'default_mode': 420, u'optional': None, u'secret_name': u'stunnel-psk'}, u'photon_persistent_disk': None, u'azure_disk': None, u'empty_dir': None, u'fc': None, u'cinder': None, u'storageos': None, u'git_repo': None, u'rbd': None, u'name': u'stunnel-psk', u'vsphere_volume': None, u'config_map': None, u'scale_io': None, u'azure_file': None, u'nfs': None, u'host_path': None, u'cephfs': None, u'downward_api': None}], u'automount_service_account_token': None, u'tolerations': None, u'restart_policy': u'Always', u'node_name': None, u'host_aliases': None, u'service_account': None, u'host_pid': None, u'host_network': None}, u'metadata': {u'name': None, u'owner_references': None, u'generation': None, u'generate_name': None, u'labels': {u'app': u'stunnel-container', u'deploymentconfig': u'stunnel-container'}, u'namespace': None, u'deletion_timestamp': None, u'cluster_name': None, u'finalizers': None, u'deletion_grace_period_seconds': None, u'initializers': None, u'self_link': None, u'resource_version': None, u'creation_timestamp': None, u'annotations': None, u'uid': None}}, u'test': False, u'strategy': {u'custom_params': None, u'rolling_params': {u'pre': None, u'timeout_seconds': 600, u'interval_seconds': 1, u'max_unavailable': u'25%', u'post': None, u'max_surge': u'25%', u'update_period_seconds': 1}, u'labels': None, u'active_deadline_seconds': 21600, u'type': u'Rolling', u'annotations': None, u'resources': {u'requests': None, u'limits': None}, u'recreate_params': None}, u'triggers': [{u'type': u'ConfigChange', u'image_change_params': None}, {u'type': u'ImageChange', u'image_change_params': {u'last_triggered_image': u'xxx.xxx.xxx.xxx:5000/nine-tom-test-managed/stunnel-container@sha256:bbbdb45f5e97d422827c5c71d8ec86aa6e6be188c461a05e8682c03245986026', u'_from': {u'kind': u'ImageStreamTag', u'name': u'stunnel-container:latest', u'namespace': u'nine-tom-test-managed', u'resource_version': None, u'field_path': None, u'api_version': None, u'uid': None}, u'automatic': True, u'container_names': [u'stunnel-container']}}]}, u'api_version': None, u'metadata': {u'name': u'stunnel-container', u'owner_references': None, u'generation': 3, u'generate_name': None, u'labels': {u'app': u'stunnel-container'}, u'namespace': u'nine-tom-test-managed', u'deletion_timestamp': None, u'cluster_name': None, u'finalizers': None, u'deletion_grace_period_seconds': None, u'initializers': None, u'self_link': u'/oapi/v1/namespaces/nine-tom-test-managed/deploymentconfigs/stunnel-container', u'resource_version': u'34575356', u'creation_timestamp': u'2018-02-21T20:12:16+00:00', u'annotations': None, u'uid': u'83374dca-1743-11e8-b5dc-5254009254d3'}}) => {\"changed\": false, \"item\": {\"api_version\": null, \"kind\": null, \"metadata\": {\"annotations\": null, \"cluster_name\": null, \"creation_timestamp\": \"2018-02-21T20:12:16+00:00\", \"deletion_grace_period_seconds\": null, \"deletion_timestamp\": null, \"finalizers\": null, \"generate_name\": null, \"generation\": 3, \"initializers\": null, \"labels\": {\"app\": \"stunnel-container\"}, \"name\": \"stunnel-container\", \"namespace\": \"nine-tom-test-managed\", \"owner_references\": null, \"resource_version\": \"34575356\", \"self_link\": \"/oapi/v1/namespaces/nine-tom-test-managed/deploymentconfigs/stunnel-container\", \"uid\": \"83374dca-1743-11e8-b5dc-5254009254d3\"}, \"spec\": {\"min_ready_seconds\": null, \"paused\": null, \"replicas\": 2, \"revision_history_limit\": null, \"selector\": {\"app\": \"stunnel-container\", \"deploymentconfig\": \"stunnel-container\"}, \"strategy\": {\"active_deadline_seconds\": 21600, \"annotations\": null, \"custom_params\": null, \"labels\": null, \"recreate_params\": null, \"resources\": {\"limits\": null, \"requests\": null}, \"rolling_params\": {\"interval_seconds\": 1, \"max_surge\": \"25%\", \"max_unavailable\": \"25%\", \"post\": null, \"pre\": null, \"timeout_seconds\": 600, \"update_period_seconds\": 1}, \"type\": \"Rolling\"}, \"template\": {\"metadata\": {\"annotations\": null, \"cluster_name\": null, \"creation_timestamp\": null, \"deletion_grace_period_seconds\": null, \"deletion_timestamp\": null, \"finalizers\": null, \"generate_name\": null, \"generation\": null, \"initializers\": null, \"labels\": {\"app\": \"stunnel-container\", \"deploymentconfig\": \"stunnel-container\"}, \"name\": null, \"namespace\": null, \"owner_references\": null, \"resource_version\": null, \"self_link\": null, \"uid\": null}, \"spec\": {\"active_deadline_seconds\": null, \"affinity\": null, \"automount_service_account_token\": null, \"containers\": [{\"args\": null, \"command\": null, \"env\": null, \"env_from\": null, \"image\": \"xxx.xxx.xxx.xxx:5000/nine-tom-test-managed/stunnel-container@sha256:bbbdb45f5e97d422827c5c71d8ec86aa6e6be188c461a05e8682c03245986026\", \"image_pull_policy\": \"Always\", \"lifecycle\": null, \"liveness_probe\": {\"_exec\": null, \"failure_threshold\": 3, \"http_get\": null, \"initial_delay_seconds\": 1, \"period_seconds\": 10, \"success_threshold\": 1, \"tcp_socket\": {\"host\": null, \"port\": 1024}, \"timeout_seconds\": 1}, \"name\": \"stunnel-container\", \"ports\": null, \"readiness_probe\": {\"_exec\": null, \"failure_threshold\": 3, \"http_get\": null, \"initial_delay_seconds\": 1, \"period_seconds\": 10, \"success_threshold\": 1, \"tcp_socket\": {\"host\": null, \"port\": 1024}, \"timeout_seconds\": 1}, \"resources\": {\"limits\": {\"cpu\": \"500m\", \"memory\": \"50Mi\"}, \"requests\": {\"cpu\": \"100m\", \"memory\": \"10Mi\"}}, \"security_context\": null, \"stdin\": null, \"stdin_once\": null, \"termination_message_path\": \"/dev/termination-log\", \"termination_message_policy\": \"File\", \"tty\": null, \"volume_mounts\": [{\"mount_path\": \"/mnt/stunnel/psk\", \"mount_propagation\": null, \"name\": \"stunnel-psk\", \"read_only\": true, \"sub_path\": null}, {\"mount_path\": \"/mnt/stunnel/conf.d\", \"mount_propagation\": null, \"name\": \"stunnel-config\", \"read_only\": true, \"sub_path\": null}], \"working_dir\": null}], \"dns_policy\": \"ClusterFirst\", \"host_aliases\": null, \"host_ipc\": null, \"host_network\": null, \"host_pid\": null, \"hostname\": null, \"image_pull_secrets\": null, \"init_containers\": null, \"node_name\": null, \"node_selector\": null, \"priority\": null, \"priority_class_name\": null, \"restart_policy\": \"Always\", \"scheduler_name\": \"default-scheduler\", \"security_context\": {\"fs_group\": null, \"run_as_non_root\": null, \"run_as_user\": null, \"se_linux_options\": null, \"supplemental_groups\": null}, \"service_account\": null, \"service_account_name\": null, \"subdomain\": null, \"termination_grace_period_seconds\": 30, \"tolerations\": null, \"volumes\": [{\"aws_elastic_block_store\": null, \"azure_disk\": null, \"azure_file\": null, \"cephfs\": null, \"cinder\": null, \"config_map\": {\"default_mode\": 420, \"items\": null, \"name\": \"stunnel-config\", \"optional\": null}, \"downward_api\": null, \"empty_dir\": null, \"fc\": null, \"flex_volume\": null, \"flocker\": null, \"gce_persistent_disk\": null, \"git_repo\": null, \"glusterfs\": null, \"host_path\": null, \"iscsi\": null, \"name\": \"stunnel-config\", \"nfs\": null, \"persistent_volume_claim\": null, \"photon_persistent_disk\": null, \"portworx_volume\": null, \"projected\": null, \"quobyte\": null, \"rbd\": null, \"scale_io\": null, \"secret\": null, \"storageos\": null, \"vsphere_volume\": null}, {\"aws_elastic_block_store\": null, \"azure_disk\": null, \"azure_file\": null, \"cephfs\": null, \"cinder\": null, \"config_map\": null, \"downward_api\": null, \"empty_dir\": null, \"fc\": null, \"flex_volume\": null, \"flocker\": null, \"gce_persistent_disk\": null, \"git_repo\": null, \"glusterfs\": null, \"host_path\": null, \"iscsi\": null, \"name\": \"stunnel-psk\", \"nfs\": null, \"persistent_volume_claim\": null, \"photon_persistent_disk\": null, \"portworx_volume\": null, \"projected\": null, \"quobyte\": null, \"rbd\": null, \"scale_io\": null, \"secret\": {\"default_mode\": 420, \"items\": null, \"optional\": null, \"secret_name\": \"stunnel-psk\"}, \"storageos\": null, \"vsphere_volume\": null}]}}, \"test\": false, \"triggers\": [{\"image_change_params\": null, \"type\": \"ConfigChange\"}, {\"image_change_params\": {\"_from\": {\"api_version\": null, \"field_path\": null, \"kind\": \"ImageStreamTag\", \"name\": \"stunnel-container:latest\", \"namespace\": \"nine-tom-test-managed\", \"resource_version\": null, \"uid\": null}, \"automatic\": true, \"container_names\": [\"stunnel-container\"], \"last_triggered_image\": \"xxx.xxx.xxx.xxx:5000/nine-tom-test-managed/stunnel-container@sha256:bbbdb45f5e97d422827c5c71d8ec86aa6e6be188c461a05e8682c03245986026\"}, \"type\": \"ImageChange\"}]}, \"status\": {\"available_replicas\": 2, \"conditions\": [{\"last_transition_time\": \"2018-02-21T20:12:37+00:00\", \"last_update_time\": \"2018-02-21T20:12:57+00:00\", \"message\": \"replication controller \\\"stunnel-container-1\\\" successfully rolled out\", \"reason\": \"NewReplicationControllerAvailable\", \"status\": \"True\", \"type\": \"Progressing\"}, {\"last_transition_time\": \"2018-02-21T22:57:39+00:00\", \"last_update_time\": \"2018-02-21T22:57:39+00:00\", \"message\": \"Deployment config has minimum availability.\", \"reason\": null, \"status\": \"True\", \"type\": \"Available\"}], \"details\": {\"causes\": [{\"image_trigger\": {\"_from\": {\"api_version\": null, \"field_path\": null, \"kind\": \"ImageStreamTag\", \"name\": \"stunnel-container:latest\", \"namespace\": \"nine-tom-test-managed\", \"resource_version\": null, \"uid\": null}}, \"type\": \"ImageChange\"}], \"message\": \"image change\"}, \"latest_version\": 1, \"observed_generation\": 3, \"ready_replicas\": 2, \"replicas\": 2, \"unavailable_replicas\": 0, \"updated_replicas\": 2}}, \"msg\": \"Error initializing module helper: Error: V1DeploymentConfig was not found in client.models. Did you specify the correct Kind and API Version?\"}\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/367681315","html_url":"https://github.com/ansible/ansible/issues/36554#issuecomment-367681315","issue_url":"https://api.github.com/repos/ansible/ansible/issues/36554","id":367681315,"user":{"login":"chouseknecht","id":1282865,"avatar_url":"https://avatars1.githubusercontent.com/u/1282865?v=4","gravatar_id":"","url":"https://api.github.com/users/chouseknecht","html_url":"https://github.com/chouseknecht","followers_url":"https://api.github.com/users/chouseknecht/followers","following_url":"https://api.github.com/users/chouseknecht/following{/other_user}","gists_url":"https://api.github.com/users/chouseknecht/gists{/gist_id}","starred_url":"https://api.github.com/users/chouseknecht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chouseknecht/subscriptions","organizations_url":"https://api.github.com/users/chouseknecht/orgs","repos_url":"https://api.github.com/users/chouseknecht/repos","events_url":"https://api.github.com/users/chouseknecht/events{/privacy}","received_events_url":"https://api.github.com/users/chouseknecht/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T13:31:52Z","updated_at":"2018-02-22T13:31:52Z","author_association":"MEMBER","body":"@twhiston \r\n\r\nWith the above configuration, I'm running into the same error you're seeing. Will get it resolved today, and push the change into `stable-2.5`."}}
{"actor":{"display_login":"chouseknecht"}}