apache / apache/openwhisk

Ansible error when executing openwhisk.yml with ansible-playbook

Open
#5,114 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
6.8k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
2

Description

## Environment details:

Ubuntu 18 with docker version 20.10.2

## Steps to reproduce the issue:

1. Deployed openwhisk locally using CouchDB and Ansible. I changed CouchDB's IP address to node's public ip
2. ansible-playbook openwhisk.yml

## Provide the expected results and outputs:

```
Expect to finish without error and bring up a docker of controller successfully. Currently "docker ps" only shows zookeeper, couchDB and wurstmeister/kafka:2.13-2.7.0
```

## Provide the actual results and outputs:

```
TASK [controller : (re)start controller] ***********************************************************************************************************************************************************************
Thursday 20 May 2021 20:55:41 -0600 (0:00:00.054) 0:00:53.128 **********
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: Invalid value for pid_mode param:
fatal: [controller0]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1621565741.1902359-30361-232552429440293/AnsiballZ_docker_container.py\", line 100, in \n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1621565741.1902359-30361-232552429440293/AnsiballZ_docker_container.py\", line 92, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1621565741.1902359-30361-232552429440293/AnsiballZ_docker_container.py\", line 41, in invoke_module\n run_name='__main__', alter_sys=True)\n File \"/usr/lib/python3.6/runpy.py\", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.6/runpy.py\", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File \"/usr/lib/python3.6/runpy.py\", line 85, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_docker_container_payload_orbo9kyd/ansible_docker_container_payload.zip/ansible_collections/community/docker/plugins/modules/docker_container.py\", line 3619, in \n File \"/tmp/ansible_docker_container_payload_orbo9kyd/ansible_docker_container_payload.zip/ansible_collections/community/docker/plugins/modules/docker_container.py\", line 3608, in main\n File \"/tmp/ansible_docker_container_payload_orbo9kyd/ansible_docker_container_payload.zip/ansible_collections/community/docker/plugins/modules/docker_container.py\", line 2763, in __init__\n File \"/tmp/ansible_docker_container_payload_orbo9kyd/ansible_docker_container_payload.zip/ansible_collections/community/docker/plugins/modules/docker_container.py\", line 2836, in present\n File \"/tmp/ansible_docker_container_payload_orbo9kyd/ansible_docker_container_payload.zip/ansible_collections/community/docker/plugins/modules/docker_container.py\", line 1570, in create_parameters\n File \"/tmp/ansible_docker_container_payload_orbo9kyd/ansible_docker_container_payload.zip/ansible_collections/community/docker/plugins/modules/docker_container.py\", line 1713, in _host_config\n File \"/usr/local/lib/python3.6/dist-packages/docker/api/container.py\", line 157, in create_host_config\n return utils.create_host_config(*args, **kwargs)\n File \"/usr/local/lib/python3.6/dist-packages/docker/utils/utils.py\", line 658, in create_host_config\n raise host_config_value_error('pid_mode', pid_mode)\nValueError: Invalid value for pid_mode param: \n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
```

## Additional information you deem important:
* issue happens only occasionally or under certain circumstances
* changes you did or observed in the environment

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with ansible-playbook openwhisk.yml on Ubuntu 18 and Docker 20.10.2, then inspect the controller task and the configuration passed to the Docker container module, focusing on the invalid pid_mode value. Done means the playbook completes without error and the controller container appears in docker ps.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, docker, python
Domain
cloud, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.