You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Zameer Manji (JIRA)" <ji...@apache.org> on 2016/10/05 03:52:20 UTC
[jira] [Created] (AURORA-1787) `-global_container_mounts` does not
appear to work with the unified containerizer
Zameer Manji created AURORA-1787:
------------------------------------
Summary: `-global_container_mounts` does not appear to work with the unified containerizer
Key: AURORA-1787
URL: https://issues.apache.org/jira/browse/AURORA-1787
Project: Aurora
Issue Type: Bug
Reporter: Zameer Manji
Priority: Critical
Perhaps I misunderstand how this feature is supposed to be used, but apply the following patch to master:
{noformat}
From 1ebb5f4c5815c647e31f3253d5e5c316a0d5edd2 Mon Sep 17 00:00:00 2001
From: Zameer Manji <zm...@apache.org>
Date: Tue, 4 Oct 2016 20:45:41 -0700
Subject: [PATCH] Reproduce the issue.
---
examples/vagrant/upstart/aurora-scheduler.conf | 2 +-
src/test/sh/org/apache/aurora/e2e/run-server.sh | 4 ++++
.../sh/org/apache/aurora/e2e/test_end_to_end.sh | 26 +++++++++++-----------
3 files changed, 18 insertions(+), 14 deletions(-)
diff --git a/examples/vagrant/upstart/aurora-scheduler.conf b/examples/vagrant/upstart/aurora-scheduler.conf
index 91b27d7..851b5a1 100644
--- a/examples/vagrant/upstart/aurora-scheduler.conf
+++ b/examples/vagrant/upstart/aurora-scheduler.conf
@@ -40,7 +40,7 @@ exec bin/aurora-scheduler \
-native_log_file_path=/var/db/aurora \
-backup_dir=/var/lib/aurora/backups \
-thermos_executor_path=$DIST_DIR/thermos_executor.pex \
- -global_container_mounts=/home/vagrant/aurora/examples/vagrant/config:/home/vagrant/aurora/examples/vagrant/config:ro \
+ -global_container_mounts=/etc/rsyslog.d:rsyslog.d.container:ro \
-thermos_executor_flags="--announcer-ensemble localhost:2181 --announcer-zookeeper-auth-config /home/vagrant/aurora/examples/vagrant/config/announcer-auth.json --mesos-containerizer-path=/usr/libexec/mesos/mesos-containerizer" \
-allowed_container_types=MESOS,DOCKER \
-http_authentication_mechanism=BASIC \
diff --git a/src/test/sh/org/apache/aurora/e2e/run-server.sh b/src/test/sh/org/apache/aurora/e2e/run-server.sh
index 1fe0909..a0ee76f 100755
--- a/src/test/sh/org/apache/aurora/e2e/run-server.sh
+++ b/src/test/sh/org/apache/aurora/e2e/run-server.sh
@@ -1,6 +1,10 @@
#!/bin/bash
echo "Starting up server..."
+if [ ! -d "./rsyslog.d.container" ]; then
+ echo "Mountpoint Doesn't Exist";
+ exit 1;
+fi
while true
do
echo -e "HTTP/1.1 200 OK\r\n\r\nHello from a filesystem image." | nc -l "$1"
diff --git a/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh b/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
index c93be9b..094d776 100755
--- a/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
+++ b/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
@@ -514,27 +514,27 @@ trap collect_result EXIT
aurorabuild all
setup_ssh
-test_version
-test_http_example "${TEST_JOB_ARGS[@]}"
-test_health_check
+# test_version
+# test_http_example "${TEST_JOB_ARGS[@]}"
+# test_health_check
-test_http_example_basic "${TEST_JOB_REVOCABLE_ARGS[@]}"
+# test_http_example_basic "${TEST_JOB_REVOCABLE_ARGS[@]}"
-test_http_example_basic "${TEST_JOB_GPU_ARGS[@]}"
+# test_http_example_basic "${TEST_JOB_GPU_ARGS[@]}"
# build the test docker image
-sudo docker build -t http_example -f "${TEST_ROOT}/Dockerfile.python" ${TEST_ROOT}
-test_http_example "${TEST_JOB_DOCKER_ARGS[@]}"
+# sudo docker build -t http_example -f "${TEST_ROOT}/Dockerfile.python" ${TEST_ROOT}
+# test_http_example "${TEST_JOB_DOCKER_ARGS[@]}"
setup_image_stores
test_appc_unified
-test_docker_unified
+# test_docker_unified
-test_admin "${TEST_ADMIN_ARGS[@]}"
-test_basic_auth_unauthenticated "${TEST_JOB_ARGS[@]}"
+# test_admin "${TEST_ADMIN_ARGS[@]}"
+# test_basic_auth_unauthenticated "${TEST_JOB_ARGS[@]}"
-test_ephemeral_daemon_with_final "${TEST_JOB_EPHEMERAL_DAEMON_WITH_FINAL_ARGS[@]}"
+# test_ephemeral_daemon_with_final "${TEST_JOB_EPHEMERAL_DAEMON_WITH_FINAL_ARGS[@]}"
-/vagrant/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh
-/vagrant/src/test/sh/org/apache/aurora/e2e/test_bypass_leader_redirect_end_to_end.sh
+# /vagrant/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh
+# /vagrant/src/test/sh/org/apache/aurora/e2e/test_bypass_leader_redirect_end_to_end.sh
RETCODE=0
--
2.10.0
{noformat}
You can apply the patch by copying the content to a {{.patch}} file and running {{git am < file.patch}}
Run the e2e tests.
Observe that the tests fail because the tasks fail. The tasks fail because the mountpoint in their sandbox does not exist.
I observe the correct ContainerInfo being sent to Mesos so I suspect our executor is to blame here.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)