Add tty to containers

sudo requires a tty to function by default on centos. Instead of
tweaking the sudo conf we can just add a tty. This has the added
advantage of making the containers more friendly if you have to
`docker exec -i <container> bash` into them.

Change-Id: If97a02ca1d37c243a787d98ade54bde8d641aecd
backport: liberty
Partially-Implements: blueprint functional-testing-gate
This commit is contained in:
Sam Yaple 2015-10-14 10:21:02 +00:00
parent e47d4b8506
commit b2ac6e80cd
31 changed files with 84 additions and 0 deletions

View File

@ -37,6 +37,7 @@
- name: Starting Ceph Monitor data container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -7,6 +7,7 @@
- name: Bootstrapping Ceph OSDs
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "no"
@ -40,6 +41,7 @@
- name: Cleaning up bootstrap containers
docker:
tty: True
name: "bootstrap_osd_{{ item.0 }}"
image: "{{ ceph_osd_image_full }}"
state: absent

View File

@ -1,6 +1,7 @@
---
- name: Generating Initial Ceph keyrings and monmap
docker:
tty: True
detach: False
net: host
pull: "{{ docker_pull_policy }}"

View File

@ -1,6 +1,7 @@
---
- name: Starting ceph-mon container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -21,6 +21,7 @@
- name: Starting ceph-osds container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -29,6 +29,7 @@
- name: Starting Cinder data container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -44,6 +45,7 @@
- name: Starting Cinder bootstrap container
docker:
tty: True
detach: False
net: host
pull: "{{ docker_pull_policy }}"
@ -74,6 +76,7 @@
- name: Cleaning up Cinder bootstrap container
docker:
tty: True
name: bootstrap_cinder
image: "{{ cinder_api_image_full }}"
state: absent

View File

@ -1,5 +1,6 @@
- name: Starting Cinder-api container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -20,6 +21,7 @@
- name: Starting Cinder-backup container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -40,6 +42,7 @@
- name: Starting Cinder-scheduler container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -60,6 +63,7 @@
- name: Starting Cinder-volume container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -1,6 +1,7 @@
---
- name: Starting log_data container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -19,6 +20,7 @@
- name: Starting rsyslog container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -41,6 +43,7 @@
- name: Starting Ansible container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -30,6 +30,7 @@
- name: Starting Glance data container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -45,6 +46,7 @@
- name: Starting Glance bootstrap container
docker:
tty: True
detach: False
net: host
pull: "{{ docker_pull_policy }}"
@ -75,6 +77,7 @@
- name: Cleaning up Glance bootstrap container
docker:
tty: True
name: bootstrap_glance
image: "{{ glance_api_image_full }}"
state: absent

View File

@ -1,6 +1,7 @@
---
- name: Starting Glance-registry container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -23,6 +24,7 @@
- name: Starting Glance-api container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -1,6 +1,7 @@
---
- name: Starting keepalived container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -22,6 +23,7 @@
- name: Starting HAProxy container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -29,6 +29,7 @@
- name: Starting Heat bootstrap container
docker:
tty: True
detach: False
net: host
pull: "{{ docker_pull_policy }}"
@ -63,6 +64,7 @@
- name: Cleaning up Heat boostrap container
docker:
tty: True
name: bootstrap_heat
image: "{{ heat_api_image_full }}"
state: absent

View File

@ -1,6 +1,7 @@
---
- name: Starting heat-api container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -21,6 +22,7 @@
- name: Starting heat-api-cfn container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -41,6 +43,7 @@
- name: Starting heat-engine container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -1,6 +1,7 @@
---
- name: Starting horizon container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -31,6 +31,7 @@
- name: Starting Ironic bootstrap container
docker:
tty: True
detach: False
net: host
pull: "{{ docker_pull_policy }}"
@ -57,6 +58,7 @@
- name: Cleaning up boostrap container
docker:
tty: True
name: bootstrap_ironic
image: "{{ ironic_api_image_full }}"
state: absent

View File

@ -1,6 +1,7 @@
---
- name: Starting Ironic-api container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -19,6 +20,7 @@
- name: Starting Ironic-conductor container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -37,6 +39,7 @@
- name: Starting Ironic-discoverd container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -56,6 +59,7 @@
- name: Starting Ironic-pxe container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -31,6 +31,7 @@
- name: Starting Keystone bootstrap container
docker:
tty: True
detach: False
net: host
pull: "{{ docker_pull_policy }}"
@ -66,6 +67,7 @@
- name: Cleaning up Keystone bootstrap container
docker:
tty: True
name: bootstrap_keystone
image: "{{ keystone_image_full }}"
state: absent

View File

@ -1,6 +1,7 @@
---
- name: Starting Keystone container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -38,6 +38,7 @@
- name: Starting MariaDB data container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -53,6 +54,7 @@
- name: Starting MariaDB bootstrap container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "no"

View File

@ -1,6 +1,7 @@
---
- name: Starting MariaDB container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -1,6 +1,7 @@
---
- name: Starting memcached container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -30,6 +30,7 @@
- name: Starting Murano bootstrap container
docker:
tty: True
detach: False
net: host
pull: "{{ docker_pull_policy }}"
@ -56,6 +57,7 @@
- name: Cleaning up Murano boostrap container
docker:
tty: True
name: bootstrap_murano
image: "{{ murano_api_image_full }}"
state: absent

View File

@ -1,6 +1,7 @@
---
- name: Starting Murano-engine container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -22,6 +23,7 @@
- name: Starting Murano-api container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -29,6 +29,7 @@
- name: Starting Neutron bootstrap container
docker:
tty: True
detach: False
net: host
pull: "{{ docker_pull_policy }}"
@ -57,6 +58,7 @@
- name: Cleaning up Neutron bootstrap container
docker:
tty: True
name: bootstrap_neutron
image: "{{ neutron_server_image_full }}"
state: absent

View File

@ -1,6 +1,7 @@
---
- name: Starting Openvswitch-db container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -22,6 +23,7 @@
- name: Starting Openvswitch-vswitchd container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -52,6 +54,7 @@
- name: Starting Neutron-server container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -72,6 +75,7 @@
- name: Starting Neutron-openvswitch-agent container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -96,6 +100,7 @@
- name: Starting Neutron-linuxbridge-agent container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -122,6 +127,7 @@
- name: Starting Neutron-agents container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -29,6 +29,7 @@
- name: Starting Nova data container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -46,6 +47,7 @@
- name: Starting Nova bootstrap container
docker:
tty: True
detach: False
net: host
pull: "{{ docker_pull_policy }}"
@ -74,6 +76,7 @@
- name: Cleaning up Nova bootstrap container
docker:
tty: True
name: bootstrap_nova
image: "{{ nova_api_image_full }}"
state: absent

View File

@ -1,6 +1,7 @@
---
- name: Starting Nova-libvirt container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -27,6 +28,7 @@
- name: Starting Nova-api container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -49,6 +51,7 @@
- name: Starting Nova-conductor container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -69,6 +72,7 @@
- name: Starting Nova-consoleauth container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -89,6 +93,7 @@
- name: Starting Nova-novncproxy container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -109,6 +114,7 @@
- name: Starting Nova-scheduler container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -129,6 +135,7 @@
- name: Starting Nova-compute container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -9,6 +9,7 @@
- name: Starting RabbitMQ data container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -24,6 +25,7 @@
- name: Starting RabbitMQ bootstrap container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "no"
@ -53,6 +55,7 @@
- name: Cleaning up bootstrap container
docker:
tty: True
image: "{{ rabbitmq_image_full }}"
name: "rabbitmq_bootstrap"
state: "absent"

View File

@ -1,6 +1,7 @@
---
- name: Starting RabbitMQ container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -1,6 +1,7 @@
---
- name: Starting Swift data container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"

View File

@ -1,6 +1,7 @@
---
- name: Starting Swift-rsyncd container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -22,6 +23,7 @@
- name: Starting Swift Proxy Server container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -45,6 +47,7 @@
- name: Starting Swift Account Server container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -68,6 +71,7 @@
- name: Starting Swift Account Auditor container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -91,6 +95,7 @@
- name: Starting Swift Account Replicator container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -114,6 +119,7 @@
- name: Starting Swift Account Reaper container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -137,6 +143,7 @@
- name: Starting Swift Container Server container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -160,6 +167,7 @@
- name: Starting Swift Container Auditor container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -183,6 +191,7 @@
- name: Starting Swift Container Replicator container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -206,6 +215,7 @@
- name: Starting Swift Container Updater container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -229,6 +239,7 @@
- name: Starting Swift Object Server container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -252,6 +263,7 @@
- name: Starting Swift Object Auditor container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -275,6 +287,7 @@
- name: Starting Swift Object Replicator container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -298,6 +311,7 @@
- name: Starting Swift Object Updater container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
@ -321,6 +335,7 @@
- name: Starting Swift Object Expirer container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"