kolla Unsupported parameters for (kolla_docker) module: stdin_open,tty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
We want to pdb debug of the Python code in the Kolla Cinder container:
So We add debug by following steps:
```
step 1, modify yml file of cinder_api:
stdin_open: true
tty: true
step 2:
docker attach cinder_api
```
The yml file we changed:
```
/usr/share/
cinder-volume:
container_name: cinder_volume
group: cinder-volume
enabled: true
image: "{{ cinder_
privileged: True
ipc_mode: "host"
stdin_open: true # added
tty: true # added
/usr/share/
- name: Restart cinder-volume container
vars:
service_name: "cinder-volume"
service: "{{ cinder_
config_json: "{{ cinder_
cinder_conf: "{{ cinder_
policy_json: "{{ cinder_
cinder_
kolla_docker:
action: "recreate_
common_options: "{{ docker_
name: "{{ service.
image: "{{ service.image }}"
privileged: "{{ service.privileged | default(False) }}"
ipc_mode: "{{ service.ipc_mode | default('') }}"
volumes: "{{ service.volumes | reject('equalto', '') | list }}"
stdin_open: true # added
tty: true # added
/usr/share/
- name: Check cinder containers
kolla_docker:
action: "compare_container"
common_options: "{{ docker_
name: "{{ item.value.
image: "{{ item.value.image }}"
volumes: "{{ item.value.volumes | reject('equalto', '') | list }}"
privileged: "{{ item.value.
ipc_mode: "{{ item.value.ipc_mode | default('') }}"
stdin_open: true # added
tty: true # added
```
when kolla-ansible reconfigure Cinder, the error log:
```
failed: [node1
] (item={'key': u'cinder-volume', 'value': {u'tty': True, u'group': u'cinder-volume', u'image': u'172.24.2.224: 4000/lokolla/
], u'container_name': u'cinder_volume', u'privileged': True
}
}) =>{
"failed": true,
"item": {
"key": "cinder-volume",
"value": {
"tty": true,
]
}
},
"msg": "Unsupported parameters for (kolla_docker) module: stdin_open,tty. Supported parameters include: action,
}
```
description: | updated |
Changed in kolla-ansible: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |