diff options
| author | Daneyon Hansen <danehans@cisco.com> | 2014-11-11 21:16:53 +0000 |
|---|---|---|
| committer | Daneyon Hansen <danehans@cisco.com> | 2014-11-25 17:30:41 +0000 |
| commit | fe28973675eeec96199f2c2c70ea65e2de9c561d (patch) | |
| tree | 8976de928602c6c50547150dd615f6c86181ae8a /docker/neutron/agents/linux-bridge/sudoers.sh | |
| parent | 1520f41a653b947817bbe2ca9c8910fb11ed538b (diff) | |
| download | kolla-fe28973675eeec96199f2c2c70ea65e2de9c561d.tar.gz kolla-fe28973675eeec96199f2c2c70ea65e2de9c561d.zip | |
Adds Neutron Networking Support
Implements: blueprint kube-neutron-container
Previously, only the neutron-server service was functional. This
patch adds support the the rest of the neutron services need by
Nova instances to function. The linux-bridge agent is used instead
of the OVS agent to realize network abstractions. This is because
the ovs-agent package will install the kernel module version of OVS
instead of the userspace version. Additionally, the OVS
userspace code is still very experimental and reduces performance.
Requires:
https://github.com/larsks/heat-kubernetes/pull/8
Change-Id: I5ef34ddeb48d4954934571a928cc82ae7f3a0f20
Diffstat (limited to 'docker/neutron/agents/linux-bridge/sudoers.sh')
| -rw-r--r-- | docker/neutron/agents/linux-bridge/sudoers.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/neutron/agents/linux-bridge/sudoers.sh b/docker/neutron/agents/linux-bridge/sudoers.sh new file mode 100644 index 000000000..198420026 --- /dev/null +++ b/docker/neutron/agents/linux-bridge/sudoers.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Neutron uses rootwrap which requires a tty for sudo. +# Since the container is running in daemon mode, a tty +# is not present and requiretty must be commented out. +if [ ! -f /var/run/sudo-modified ]; then + chmod 0640 /etc/sudoers + sed -i '/Defaults requiretty/s/^/#/' /etc/sudoers + chmod 0440 /etc/sudoers +fi + +touch /var/run/sudo-modified |
