diff options
| author | Sam Yaple <sam@yaple.net> | 2015-10-13 06:30:30 +0000 |
|---|---|---|
| committer | Sam Yaple <sam@yaple.net> | 2015-10-13 15:13:55 +0000 |
| commit | 5f200e044648efe64f297d186432839762f91395 (patch) | |
| tree | 94500884a880720dea35946dbbc2370a98b7b073 /docker/heat | |
| parent | c5be228be843222e9c9f2be36b92659ada3e25a8 (diff) | |
| download | kolla-5f200e044648efe64f297d186432839762f91395.tar.gz kolla-5f200e044648efe64f297d186432839762f91395.zip | |
Fix issue with su and bad kernels
Long story short, some kernels before 3.15 had an issue with using su
in a container when the network namespace was --net=host. The gate
has a 3.10 and a 3.13 kernel and has a problem with this. This changes
everything to use sudo
backport: liberty
Partially-Implements: blueprint functional-testing-gate
Change-Id: I4d79ccaa1cddffcc8393f64e7e1be2538efe33e5
Diffstat (limited to 'docker/heat')
| -rw-r--r-- | docker/heat/heat-api/extend_start.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/heat/heat-api/extend_start.sh b/docker/heat/heat-api/extend_start.sh index 17bd742e3..f04438a78 100644 --- a/docker/heat/heat-api/extend_start.sh +++ b/docker/heat/heat-api/extend_start.sh @@ -3,7 +3,7 @@ # Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases # of the KOLLA_BOOTSTRAP variable being set, including empty. if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then - su -s /bin/sh -c "heat-manage db_sync" heat + sudo -H -u heat heat-manage db_sync openstack domain create heat_user_domain openstack user create --domain heat_user_domain heat_domain_admin --password ${HEAT_DOMAIN_ADMIN_PASSWORD} openstack role add --domain heat_user_domain --user heat_domain_admin admin |
