Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9927

ExecutorAuthorizationTest.FailedSubscribe is flaky

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Docs Text:
      Hide
      Observed in an internal CI.

      {code}

      [ RUN ] ExecutorAuthorizationTest.FailedSubscribe
      I0806 08:38:46.905747 27669 cluster.cpp:177] Creating default 'local' authorizer
      I0806 08:38:46.906975 27670 master.cpp:440] Master 48bb922a-c3a8-4ec7-b851-f836c795ce10 (ip-172-16-10-172.ec2.internal) started on 172.16.10.172:38017
      I0806 08:38:46.906996 27670 master.cpp:443] Flags at startup: --acls="" --agent_ping_timeout="15secs" --agent_reregister_timeout="10mins" --allocation_interval="1secs" --allocator="hierarchical" --authenticate_agents="true" --authenticate_frameworks="true" --authenticate_http_frameworks="true" --authenticate_http_readonly="true" --authenticate_http_readwrite="true" --authentication_v0_timeout="15secs" --authenticators="crammd5" --authorizers="local" --credentials="/tmp/Y8Tq68/credentials" --filter_gpu_resources="true" --framework_sorter="drf" --help="false" --hostname_lookup="true" --http_authenticators="basic" --http_framework_authenticators="basic" --initialize_driver_logging="true" --log_auto_initialize="true" --logbufsecs="0" --logging_level="INFO" --max_agent_ping_timeouts="5" --max_completed_frameworks="50" --max_completed_tasks_per_framework="1000" --max_operator_event_stream_subscribers="1000" --max_unreachable_tasks_per_framework="1000" --memory_profiling="false" --min_allocatable_resources="cpus:0.01|mem:32" --port="5050" --publish_per_framework_metrics="true" --quiet="false" --recovery_agent_removal_limit="100%" --registry="in_memory" --registry_fetch_timeout="1mins" --registry_gc_interval="15mins" --registry_max_agent_age="2weeks" --registry_max_agent_count="102400" --registry_store_timeout="100secs" --registry_strict="false" --require_agent_domain="false" --role_sorter="drf" --root_submissions="true" --version="false" --webui_dir="/usr/local/share/mesos/webui" --work_dir="/tmp/Y8Tq68/master" --zk_session_timeout="10secs"
      I0806 08:38:46.907128 27670 master.cpp:492] Master only allowing authenticated frameworks to register
      I0806 08:38:46.907136 27670 master.cpp:498] Master only allowing authenticated agents to register
      I0806 08:38:46.907141 27670 master.cpp:504] Master only allowing authenticated HTTP frameworks to register
      I0806 08:38:46.907147 27670 credentials.hpp:37] Loading credentials for authentication from '/tmp/Y8Tq68/credentials'
      I0806 08:38:46.907230 27670 master.cpp:548] Using default 'crammd5' authenticator
      I0806 08:38:46.907274 27670 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-master-readonly'
      I0806 08:38:46.907305 27670 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-master-readwrite'
      I0806 08:38:46.907322 27670 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-master-scheduler'
      I0806 08:38:46.907342 27670 master.cpp:629] Authorization enabled
      I0806 08:38:46.907855 27670 hierarchical.cpp:241] Initialized hierarchical allocator process
      I0806 08:38:46.907891 27670 whitelist_watcher.cpp:77] No whitelist given
      I0806 08:38:46.908224 27670 master.cpp:2168] Elected as the leading master!
      I0806 08:38:46.908242 27670 master.cpp:1664] Recovering from registrar
      I0806 08:38:46.908274 27670 registrar.cpp:339] Recovering registrar
      I0806 08:38:46.908392 27670 registrar.cpp:383] Successfully fetched the registry (0B) in 105984ns
      I0806 08:38:46.908422 27670 registrar.cpp:487] Applied 1 operations in 7186ns; attempting to update the registry
      I0806 08:38:46.908530 27670 registrar.cpp:544] Successfully updated the registry in 94976ns
      I0806 08:38:46.908551 27670 registrar.cpp:416] Successfully recovered registrar
      I0806 08:38:46.908601 27670 master.cpp:1817] Recovered 0 agents from the registry (184B); allowing 10mins for agents to reregister
      I0806 08:38:46.908630 27670 hierarchical.cpp:280] Skipping recovery of hierarchical allocator: nothing to recover
      W0806 08:38:46.910559 27669 process.cpp:2877] Attempted to spawn already running process files@172.16.10.172:38017
      I0806 08:38:46.911214 27672 slave.cpp:267] Mesos agent started on (554)@172.16.10.172:38017
      I0806 08:38:46.911384 27669 scheduler.cpp:189] Version: 1.9.0
      I0806 08:38:46.911228 27672 slave.cpp:268] Flags at startup: --acls="permissive: true
      " --appc_simple_discovery_uri_prefix="http://" --appc_store_dir="/tmp/Y8Tq68/0fh9Ev/store/appc" --authenticate_http_executors="true" --authenticate_http_readonly="true" --authenticate_http_readwrite="true" --authenticatee="crammd5" --authentication_backoff_factor="1secs" --authentication_timeout_max="1mins" --authentication_timeout_min="5secs" --authorizer="local" --cgroups_cpu_enable_pids_and_tids_count="false" --cgroups_destroy_timeout="1mins" --cgroups_enable_cfs="false" --cgroups_hierarchy="/sys/fs/cgroup" --cgroups_limit_swap="false" --cgroups_root="mesos" --container_disk_watch_interval="15secs" --containerizers="mesos" --credential="/tmp/Y8Tq68/0fh9Ev/credential" --default_role="*" --disallow_sharing_agent_ipc_namespace="false" --disallow_sharing_agent_pid_namespace="false" --disk_watch_interval="1mins" --docker="docker" --docker_ignore_runtime="false" --docker_kill_orphans="true" --docker_registry="https://registry-1.docker.io" --docker_remove_delay="6hrs" --docker_socket="/var/run/docker.sock" --docker_stop_timeout="0ns" --docker_store_dir="/tmp/Y8Tq68/0fh9Ev/store/docker" --docker_volume_checkpoint_dir="/var/run/mesos/isolators/docker/volume" --enforce_container_disk_quota="false" --executor_registration_timeout="1mins" --executor_reregistration_timeout="2secs" --executor_shutdown_grace_period="5secs" --fetcher_cache_dir="/tmp/Y8Tq68/0fh9Ev/fetch" --fetcher_cache_size="2GB" --fetcher_stall_timeout="1mins" --frameworks_home="/tmp/Y8Tq68/0fh9Ev/frameworks" --gc_delay="1weeks" --gc_disk_headroom="0.1" --gc_non_executor_container_sandboxes="false" --help="false" --hostname_lookup="true" --http_command_executor="false" --http_credentials="/tmp/Y8Tq68/0fh9Ev/http_credentials" --http_heartbeat_interval="30secs" --initialize_driver_logging="true" --isolation="posix/cpu,posix/mem" --jwt_secret_key="/tmp/Y8Tq68/0fh9Ev/jwt_secret_key" --launcher="linux" --launcher_dir="/home/ubuntu/workspace/mesos/Mesos_CI-build/FLAG/SSL/label/mesos-ec2-ubuntu-14.04/mesos/build/src" --logbufsecs="0" --logging_level="INFO" --max_completed_executors_per_framework="150" --memory_profiling="false" --network_cni_metrics="true" --network_cni_root_dir_persist="false" --oversubscribed_resources_interval="15secs" --perf_duration="10secs" --perf_interval="1mins" --port="5051" --qos_correction_interval_min="0ns" --quiet="false" --reconfiguration_policy="equal" --recover="reconnect" --recovery_timeout="15mins" --registration_backoff_factor="10ms" --resources="cpus:2;gpus:0;mem:1024;disk:1024;ports:[31000-32000]" --revocable_cpu_low_priority="true" --runtime_dir="/tmp/ExecutorAuthorizationTest_FailedSubscribe_s5ZeOI" --sandbox_directory="/mnt/mesos/sandbox" --strict="true" --switch_user="true" --systemd_enable_support="true" --systemd_runtime_directory="/run/systemd/system" --version="false" --work_dir="/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV" --zk_session_timeout="10secs"
      I0806 08:38:46.911406 27672 credentials.hpp:86] Loading credential for authentication from '/tmp/Y8Tq68/0fh9Ev/credential'
      I0806 08:38:46.911466 27672 slave.cpp:300] Agent using credential for: test-principal
      I0806 08:38:46.911476 27672 credentials.hpp:37] Loading credentials for authentication from '/tmp/Y8Tq68/0fh9Ev/http_credentials'
      I0806 08:38:46.911546 27672 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-agent-executor'
      I0806 08:38:46.911578 27672 http.cpp:996] Creating default 'jwt' HTTP authenticator for realm 'mesos-agent-executor'
      I0806 08:38:46.911625 27672 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-agent-readonly'
      I0806 08:38:46.911646 27672 http.cpp:996] Creating default 'jwt' HTTP authenticator for realm 'mesos-agent-readonly'
      I0806 08:38:46.911687 27672 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-agent-readwrite'
      I0806 08:38:46.911712 27672 http.cpp:996] Creating default 'jwt' HTTP authenticator for realm 'mesos-agent-readwrite'
      I0806 08:38:46.911767 27673 scheduler.cpp:342] Using default 'basic' HTTP authenticatee
      I0806 08:38:46.911919 27673 scheduler.cpp:525] New master detected at master@172.16.10.172:38017
      I0806 08:38:46.911939 27673 scheduler.cpp:534] Waiting for 0ns before initiating a re-(connection) attempt with the master
      I0806 08:38:46.912405 27672 disk_profile_adaptor.cpp:78] Creating default disk profile adaptor module
      I0806 08:38:46.912892 27676 scheduler.cpp:416] Connected with the master at http://172.16.10.172:38017/master/api/v1/scheduler
      I0806 08:38:46.913101 27672 slave.cpp:615] Agent resources: [{"name":"cpus","scalar":{"value":2.0},"type":"SCALAR"},{"name":"mem","scalar":{"value":1024.0},"type":"SCALAR"},{"name":"disk","scalar":{"value":1024.0},"type":"SCALAR"},{"name":"ports","ranges":{"range":[{"begin":31000,"end":32000}]},"type":"RANGES"}]
      I0806 08:38:46.913159 27672 slave.cpp:623] Agent attributes: [ ]
      I0806 08:38:46.913166 27672 slave.cpp:632] Agent hostname: ip-172-16-10-172.ec2.internal
      I0806 08:38:46.913378 27674 task_status_update_manager.cpp:181] Pausing sending task status updates
      I0806 08:38:46.913400 27674 status_update_manager_process.hpp:379] Pausing operation status update manager
      I0806 08:38:46.913465 27672 state.cpp:67] Recovering state from '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/meta'
      I0806 08:38:46.913584 27676 slave.cpp:7444] Finished recovering checkpointed state from '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/meta', beginning agent recovery
      I0806 08:38:46.913643 27676 task_status_update_manager.cpp:207] Recovering task status update manager
      I0806 08:38:46.913940 27675 composing.cpp:339] Finished recovering all containerizers
      I0806 08:38:46.914194 27671 slave.cpp:7908] Recovering executors
      I0806 08:38:46.914219 27671 slave.cpp:8061] Finished recovery
      I0806 08:38:46.917971 27671 slave.cpp:1351] New master detected at master@172.16.10.172:38017
      I0806 08:38:46.918004 27671 slave.cpp:1416] Detecting new master
      I0806 08:38:46.918032 27671 task_status_update_manager.cpp:181] Pausing sending task status updates
      I0806 08:38:46.918038 27670 status_update_manager_process.hpp:379] Pausing operation status update manager
      I0806 08:38:46.918404 27672 scheduler.cpp:246] Adding authentication headers to SUBSCRIBE call to http://172.16.10.172:38017/master/api/v1/scheduler
      I0806 08:38:46.918499 27672 scheduler.cpp:600] Sending SUBSCRIBE call to http://172.16.10.172:38017/master/api/v1/scheduler
      I0806 08:38:46.918918 27676 process.cpp:3671] Handling HTTP event for process 'master' with path: '/master/api/v1/scheduler'
      I0806 08:38:46.919324 27676 http.cpp:1115] HTTP POST for /master/api/v1/scheduler from 172.16.10.172:56689
      I0806 08:38:46.919405 27676 master.cpp:2668] Received subscription request for HTTP framework 'default'
      I0806 08:38:46.919428 27676 master.cpp:2240] Authorizing framework principal 'test-principal' to receive offers for roles '{ * }'
      I0806 08:38:46.919546 27675 master.cpp:2740] Subscribing framework 'default' with checkpointing disabled and capabilities [ MULTI_ROLE, RESERVATION_REFINEMENT ]
      I0806 08:38:46.919962 27675 master.cpp:10808] Adding framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) with roles { } suppressed
      I0806 08:38:46.920186 27675 hierarchical.cpp:368] Added framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:38:46.920231 27675 hierarchical.cpp:1508] Performed allocation for 0 agents in 13752ns
      I0806 08:38:46.920796 27671 scheduler.cpp:847] Enqueuing event SUBSCRIBED received from http://172.16.10.172:38017/master/api/v1/scheduler
      I0806 08:38:46.920903 27671 scheduler.cpp:847] Enqueuing event HEARTBEAT received from http://172.16.10.172:38017/master/api/v1/scheduler
      I0806 08:38:46.924731 27674 slave.cpp:1443] Authenticating with master master@172.16.10.172:38017
      I0806 08:38:46.924757 27674 slave.cpp:1452] Using default CRAM-MD5 authenticatee
      I0806 08:38:46.924829 27674 authenticatee.cpp:121] Creating new client SASL connection
      I0806 08:38:46.925292 27674 master.cpp:10578] Authenticating slave(554)@172.16.10.172:38017
      I0806 08:38:46.925449 27674 authenticator.cpp:414] Starting authentication session for crammd5-authenticatee(1131)@172.16.10.172:38017
      I0806 08:38:46.925595 27677 authenticator.cpp:98] Creating new server SASL connection
      I0806 08:38:46.925948 27677 authenticatee.cpp:213] Received SASL authentication mechanisms: CRAM-MD5
      I0806 08:38:46.925969 27677 authenticatee.cpp:239] Attempting to authenticate with mechanism 'CRAM-MD5'
      I0806 08:38:46.926036 27677 authenticator.cpp:204] Received SASL authentication start
      I0806 08:38:46.926074 27677 authenticator.cpp:326] Authentication requires more steps
      I0806 08:38:46.926105 27677 authenticatee.cpp:259] Received SASL authentication step
      I0806 08:38:46.926141 27677 authenticator.cpp:232] Received SASL authentication step
      I0806 08:38:46.926156 27677 auxprop.cpp:109] Request to lookup properties for user: 'test-principal' realm: 'ip-172-16-10-172.ec2.internal' server FQDN: 'ip-172-16-10-172.ec2.internal' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: false
      I0806 08:38:46.926163 27677 auxprop.cpp:181] Looking up auxiliary property '*userPassword'
      I0806 08:38:46.926169 27677 auxprop.cpp:181] Looking up auxiliary property '*cmusaslsecretCRAM-MD5'
      I0806 08:38:46.926174 27677 auxprop.cpp:109] Request to lookup properties for user: 'test-principal' realm: 'ip-172-16-10-172.ec2.internal' server FQDN: 'ip-172-16-10-172.ec2.internal' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: true
      I0806 08:38:46.926178 27677 auxprop.cpp:131] Skipping auxiliary property '*userPassword' since SASL_AUXPROP_AUTHZID == true
      I0806 08:38:46.926182 27677 auxprop.cpp:131] Skipping auxiliary property '*cmusaslsecretCRAM-MD5' since SASL_AUXPROP_AUTHZID == true
      I0806 08:38:46.926192 27677 authenticator.cpp:318] Authentication success
      I0806 08:38:46.926239 27676 authenticatee.cpp:299] Authentication success
      I0806 08:38:46.926350 27675 authenticator.cpp:432] Authentication session cleanup for crammd5-authenticatee(1131)@172.16.10.172:38017
      I0806 08:38:46.926375 27677 master.cpp:10610] Successfully authenticated principal 'test-principal' at slave(554)@172.16.10.172:38017
      I0806 08:38:46.926862 27675 slave.cpp:1543] Successfully authenticated with master master@172.16.10.172:38017
      I0806 08:38:46.926961 27675 slave.cpp:1993] Will retry registration in 17.625046ms if necessary
      I0806 08:38:46.927031 27675 master.cpp:7086] Received register agent message from slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal)
      I0806 08:38:46.927088 27675 master.cpp:4202] Authorizing agent providing resources 'cpus:2; mem:1024; disk:1024; ports:[31000-32000]' with principal 'test-principal'
      I0806 08:38:46.927213 27675 master.cpp:7153] Authorized registration of agent at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal)
      I0806 08:38:46.927242 27675 master.cpp:7265] Registering agent at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) with id 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0
      I0806 08:38:46.927351 27675 registrar.cpp:487] Applied 1 operations in 35128ns; attempting to update the registry
      I0806 08:38:46.927467 27675 registrar.cpp:544] Successfully updated the registry in 98048ns
      I0806 08:38:46.927706 27675 master.cpp:7313] Admitted agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal)
      I0806 08:38:46.927855 27675 master.cpp:7358] Registered agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) with cpus:2; mem:1024; disk:1024; ports:[31000-32000]
      I0806 08:38:46.927904 27675 slave.cpp:1576] Registered with master master@172.16.10.172:38017; given agent ID 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0
      I0806 08:38:46.927917 27674 hierarchical.cpp:617] Added agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 (ip-172-16-10-172.ec2.internal) with cpus:2; mem:1024; disk:1024; ports:[31000-32000] (allocated: {})
      I0806 08:38:46.928055 27675 slave.cpp:1611] Checkpointing SlaveInfo to '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/meta/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/slave.info'
      I0806 08:38:46.928282 27670 task_status_update_manager.cpp:188] Resuming sending task status updates
      I0806 08:38:46.928310 27670 status_update_manager_process.hpp:385] Resuming operation status update manager
      I0806 08:38:46.928354 27675 slave.cpp:1663] Forwarding agent update {"operations":{},"resource_providers":{},"resource_version_uuid":{"value":"4Tjl852hTDC6D6mtIyZl3g=="},"slave_id":{"value":"48bb922a-c3a8-4ec7-b851-f836c795ce10-S0"},"update_oversubscribed_resources":false}
      I0806 08:38:46.928401 27670 master.cpp:10393] Sending offers [ 48bb922a-c3a8-4ec7-b851-f836c795ce10-O0 ] to framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default)
      I0806 08:38:46.928592 27670 master.cpp:8457] Ignoring update on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) as it reports no changes
      I0806 08:38:46.928941 27671 scheduler.cpp:847] Enqueuing event OFFERS received from http://172.16.10.172:38017/master/api/v1/scheduler
      I0806 08:38:46.928058 27674 hierarchical.cpp:1508] Performed allocation for 1 agents in 98695ns
      I0806 08:38:46.929642 27673 scheduler.cpp:246] Adding authentication headers to ACCEPT call to http://172.16.10.172:38017/master/api/v1/scheduler
      I0806 08:38:46.929759 27673 scheduler.cpp:600] Sending ACCEPT call to http://172.16.10.172:38017/master/api/v1/scheduler
      I0806 08:38:46.930150 27674 process.cpp:3671] Handling HTTP event for process 'master' with path: '/master/api/v1/scheduler'
      I0806 08:38:46.930430 27677 http.cpp:1115] HTTP POST for /master/api/v1/scheduler from 172.16.10.172:56688
      I0806 08:38:46.930630 27677 master.cpp:12685] Removing offer 48bb922a-c3a8-4ec7-b851-f836c795ce10-O0
      I0806 08:38:46.930735 27677 master.cpp:4739] Processing ACCEPT call for offers: [ 48bb922a-c3a8-4ec7-b851-f836c795ce10-O0 ] on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) for framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default)
      I0806 08:38:46.930774 27677 master.cpp:3756] Authorizing framework principal 'test-principal' to launch task 879faecc-d68a-4d6b-98e8-7695ff820803
      I0806 08:38:46.931285 27674 master.cpp:4274] Adding executor 'default' with resources cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal)
      I0806 08:38:46.931362 27674 master.cpp:4300] Adding task 879faecc-d68a-4d6b-98e8-7695ff820803 with resources cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal)
      I0806 08:38:46.931424 27674 master.cpp:5941] Launching task group { 879faecc-d68a-4d6b-98e8-7695ff820803 } of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) with resources cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) on new executor
      I0806 08:38:46.931535 27674 hierarchical.cpp:1432] Allocation paused
      I0806 08:38:46.931615 27671 slave.cpp:2130] Got assigned task group containing tasks [ 879faecc-d68a-4d6b-98e8-7695ff820803 ] for framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:38:46.931622 27674 hierarchical.cpp:1218] Recovered cpus(allocated: *):1.8; mem(allocated: *):960; disk(allocated: *):960; ports(allocated: *):[31000-32000] (total: cpus:2; mem:1024; disk:1024; ports:[31000-32000], allocated: cpus(allocated: *):0.2; mem(allocated: *):64; disk(allocated: *):64) on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 from framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:38:46.931648 27674 hierarchical.cpp:1264] Framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 filtered agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 for 5secs
      I0806 08:38:46.931689 27674 hierarchical.cpp:1442] Allocation resumed
      I0806 08:38:46.931919 27671 slave.cpp:2504] Authorizing task group containing tasks [ 879faecc-d68a-4d6b-98e8-7695ff820803 ] for framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:38:46.931943 27671 slave.cpp:9400] Authorizing framework principal 'test-principal' to launch task 879faecc-d68a-4d6b-98e8-7695ff820803
      I0806 08:38:46.932536 27671 slave.cpp:2977] Launching task group containing tasks [ 879faecc-d68a-4d6b-98e8-7695ff820803 ] for framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:38:46.932588 27671 paths.cpp:810] Creating sandbox '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/0449add1-c7d1-4936-88c3-ad92130b5fa2' for user 'root'
      I0806 08:38:46.932893 27671 slave.cpp:9938] Launching executor 'default' of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 with resources [{"allocation_info":{"role":"*"},"name":"cpus","scalar":{"value":0.1},"type":"SCALAR"},{"allocation_info":{"role":"*"},"name":"mem","scalar":{"value":32.0},"type":"SCALAR"},{"allocation_info":{"role":"*"},"name":"disk","scalar":{"value":32.0},"type":"SCALAR"}] in work directory '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/0449add1-c7d1-4936-88c3-ad92130b5fa2'
      I0806 08:38:46.933145 27671 slave.cpp:3203] Queued task group containing tasks [ 879faecc-d68a-4d6b-98e8-7695ff820803 ] for executor 'default' of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:38:46.933276 27671 slave.cpp:3651] Launching container 0449add1-c7d1-4936-88c3-ad92130b5fa2 for executor 'default' of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:38:46.933496 27671 slave.cpp:1084] Successfully attached '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/0449add1-c7d1-4936-88c3-ad92130b5fa2' to virtual path '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/latest'
      I0806 08:38:46.933514 27671 slave.cpp:1084] Successfully attached '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/0449add1-c7d1-4936-88c3-ad92130b5fa2' to virtual path '/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/latest'
      I0806 08:38:46.933526 27671 slave.cpp:1084] Successfully attached '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/0449add1-c7d1-4936-88c3-ad92130b5fa2' to virtual path '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/0449add1-c7d1-4936-88c3-ad92130b5fa2'
      I0806 08:38:46.933643 27671 executor.cpp:206] Version: 1.9.0
      W0806 08:38:46.933655 27671 process.cpp:2877] Attempted to spawn already running process version@172.16.10.172:38017
      I0806 08:38:46.934464 27673 executor.cpp:432] Connected with the agent
      I0806 08:38:46.934666 27673 executor.cpp:328] Sending SUBSCRIBE call to http://172.16.10.172:38017/slave(554)/api/v1/executor
      I0806 08:38:46.934891 27674 process.cpp:3671] Handling HTTP event for process 'slave(554)' with path: '/slave(554)/api/v1/executor'
      I0806 08:38:46.935328 27674 http.cpp:1115] HTTP POST for /slave(554)/api/v1/executor from 172.16.10.172:56690
      I0806 08:38:46.935675 27674 executor.cpp:745] Enqueuing locally injected event ERROR

      GMOCK WARNING:
      Uninteresting mock function call - returning directly.
          Function call: error(0x7fce4007fee0, @0x7fce4402cb60 32-byte object <D0-D0 31-68 CE-7F 00-00 00-00 00-00 00-00 00-00 01-00 00-00 00-00 00-00 D0-A0 05-44 CE-7F 00-00>)
      NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/master/googlemock/docs/CookBook.md#knowing-when-to-expect for details.
      I0806 08:38:47.908803 27672 hierarchical.cpp:2358] Filtered offer with cpus:1.8; mem:960; disk:960; ports:[31000-32000] on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 for role * of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:38:47.908864 27672 hierarchical.cpp:1508] Performed allocation for 1 agents in 128164ns
      I0806 08:38:48.909757 27675 hierarchical.cpp:2358] Filtered offer with cpus:1.8; mem:960; disk:960; ports:[31000-32000] on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 for role * of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:38:48.909816 27675 hierarchical.cpp:1508] Performed allocation for 1 agents in 124393ns
      I0806 08:38:49.910807 27671 hierarchical.cpp:2358] Filtered offer with cpus:1.8; mem:960; disk:960; ports:[31000-32000] on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 for role * of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:38:49.910898 27671 hierarchical.cpp:1508] Performed allocation for 1 agents in 203564ns
      I0806 08:38:50.911904 27674 hierarchical.cpp:2358] Filtered offer with cpus:1.8; mem:960; disk:960; ports:[31000-32000] on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 for role * of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:38:50.911963 27674 hierarchical.cpp:1508] Performed allocation for 1 agents in 128624ns
      I0806 08:38:51.913167 27673 hierarchical.cpp:2358] Filtered offer with cpus:1.8; mem:960; disk:960; ports:[31000-32000] on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 for role * of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:38:51.913225 27673 hierarchical.cpp:1508] Performed allocation for 1 agents in 125358ns
      I0806 08:38:52.913841 27677 hierarchical.cpp:1508] Performed allocation for 1 agents in 139160ns
      I0806 08:38:52.913942 27671 master.cpp:10393] Sending offers [ 48bb922a-c3a8-4ec7-b851-f836c795ce10-O1 ] to framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default)
      I0806 08:38:52.914567 27675 scheduler.cpp:847] Enqueuing event OFFERS received from http://172.16.10.172:38017/master/api/v1/scheduler
      I0806 08:38:53.914562 27676 hierarchical.cpp:1508] Performed allocation for 1 agents in 35033ns
      I0806 08:38:54.915772 27677 hierarchical.cpp:1508] Performed allocation for 1 agents in 35148ns
      I0806 08:38:55.916126 27672 hierarchical.cpp:1508] Performed allocation for 1 agents in 34080ns
      I0806 08:38:56.917241 27675 hierarchical.cpp:1508] Performed allocation for 1 agents in 35548ns
      I0806 08:38:57.917816 27672 hierarchical.cpp:1508] Performed allocation for 1 agents in 33416ns
      I0806 08:38:58.918292 27677 hierarchical.cpp:1508] Performed allocation for 1 agents in 34795ns
      I0806 08:38:59.918936 27673 hierarchical.cpp:1508] Performed allocation for 1 agents in 52737ns
      I0806 08:39:00.919754 27675 hierarchical.cpp:1508] Performed allocation for 1 agents in 36676ns
      I0806 08:39:01.920635 27673 hierarchical.cpp:1508] Performed allocation for 1 agents in 35612ns
      I0806 08:39:01.921164 27676 scheduler.cpp:847] Enqueuing event HEARTBEAT received from http://172.16.10.172:38017/master/api/v1/scheduler
      ../../src/tests/slave_authorization_tests.cpp:922: Failure
      Failed to wait 15secs for error
      I0806 08:39:01.937613 27671 master.cpp:1410] Framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) disconnected
      I0806 08:39:01.937631 27671 master.cpp:3360] Deactivating framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default)
      W0806 08:39:01.937749 27671 master.hpp:2708] Unable to send message to framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default): connection closed
      I0806 08:39:01.937760 27671 master.cpp:12685] Removing offer 48bb922a-c3a8-4ec7-b851-f836c795ce10-O1
      I0806 08:39:01.937775 27671 master.cpp:3337] Disconnecting framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default)
      I0806 08:39:01.937783 27671 master.cpp:1425] Giving framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) 0ns to failover
      I0806 08:39:01.937847 27671 hierarchical.cpp:475] Deactivated framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:39:01.937952 27671 hierarchical.cpp:1218] Recovered cpus(allocated: *):1.8; mem(allocated: *):960; disk(allocated: *):960; ports(allocated: *):[31000-32000] (total: cpus:2; mem:1024; disk:1024; ports:[31000-32000], allocated: cpus(allocated: *):0.2; mem(allocated: *):64; disk(allocated: *):64) on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 from framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:39:01.938006 27671 master.cpp:10185] Framework failover timeout, removing framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default)
      I0806 08:39:01.938016 27671 master.cpp:11184] Removing framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default)
      I0806 08:39:01.938063 27671 master.cpp:12034] Updating the state of task 879faecc-d68a-4d6b-98e8-7695ff820803 of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (latest state: TASK_KILLED, status update state: TASK_KILLED)
      I0806 08:39:01.938143 27671 master.cpp:12132] Removing task 879faecc-d68a-4d6b-98e8-7695ff820803 with resources cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal)
      I0806 08:39:01.938220 27671 master.cpp:12172] Removing executor 'default' with resources cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal)
      I0806 08:39:01.938321 27671 slave.cpp:4056] Asked to shut down framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 by master@172.16.10.172:38017
      I0806 08:39:01.938334 27671 slave.cpp:4081] Shutting down framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:39:01.938344 27671 slave.cpp:7175] Shutting down executor 'default' of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      W0806 08:39:01.938350 27671 slave.hpp:1004] Unable to send event to executor 'default' of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000: unknown connection type
      I0806 08:39:01.938421 27671 hierarchical.cpp:1218] Recovered cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 (total: cpus:2; mem:1024; disk:1024; ports:[31000-32000], allocated: cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32) on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 from framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:39:01.938489 27671 hierarchical.cpp:1218] Recovered cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 (total: cpus:2; mem:1024; disk:1024; ports:[31000-32000], allocated: {}) on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 from framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:39:01.938518 27671 hierarchical.cpp:1432] Allocation paused
      I0806 08:39:01.938566 27671 hierarchical.cpp:417] Removed framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000
      I0806 08:39:01.938583 27671 hierarchical.cpp:1442] Allocation resumed
      I0806 08:39:01.938980 27669 slave.cpp:924] Agent terminating
      I0806 08:39:01.938999 27669 slave.cpp:4056] Asked to shut down framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 by @0.0.0.0:0
      W0806 08:39:01.939009 27669 slave.cpp:4077] Ignoring shutdown framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 because it is terminating
      I0806 08:39:01.939287 27675 master.cpp:1295] Agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) disconnected
      I0806 08:39:01.939306 27675 master.cpp:3397] Disconnecting agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal)
      I0806 08:39:01.939318 27675 master.cpp:3416] Deactivating agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal)
      I0806 08:39:01.939363 27675 hierarchical.cpp:799] Agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 deactivated
      ../../src/tests/slave_authorization_tests.cpp:919: Failure
      Actual function call count doesn't match EXPECT_CALL(*executor, error(_, _))...
               Expected: to be called once
                 Actual: never called - unsatisfied and active
      I0806 08:39:01.941174 27669 master.cpp:1135] Master terminating
      I0806 08:39:01.941269 27671 hierarchical.cpp:775] Removed all filters for agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0
      I0806 08:39:01.941282 27671 hierarchical.cpp:650] Removed agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0
      [ FAILED ] ExecutorAuthorizationTest.FailedSubscribe (15045 ms)

      {code}

      The root cause looks pretty simple - there is nothing that would prevent the error message from arriving before EXPECT_CALL(*executor, error(_, _)) :
      https://github.com/apache/mesos/blob/e6edb0a1cf9fd2f8ab7fcb5c291b7a14389118a6/src/tests/slave_authorization_tests.cpp#L919
      Show
      Observed in an internal CI. {code} [ RUN ] ExecutorAuthorizationTest.FailedSubscribe I0806 08:38:46.905747 27669 cluster.cpp:177] Creating default 'local' authorizer I0806 08:38:46.906975 27670 master.cpp:440] Master 48bb922a-c3a8-4ec7-b851-f836c795ce10 (ip-172-16-10-172.ec2.internal) started on 172.16.10.172:38017 I0806 08:38:46.906996 27670 master.cpp:443] Flags at startup: --acls="" --agent_ping_timeout="15secs" --agent_reregister_timeout="10mins" --allocation_interval="1secs" --allocator="hierarchical" --authenticate_agents="true" --authenticate_frameworks="true" --authenticate_http_frameworks="true" --authenticate_http_readonly="true" --authenticate_http_readwrite="true" --authentication_v0_timeout="15secs" --authenticators="crammd5" --authorizers="local" --credentials="/tmp/Y8Tq68/credentials" --filter_gpu_resources="true" --framework_sorter="drf" --help="false" --hostname_lookup="true" --http_authenticators="basic" --http_framework_authenticators="basic" --initialize_driver_logging="true" --log_auto_initialize="true" --logbufsecs="0" --logging_level="INFO" --max_agent_ping_timeouts="5" --max_completed_frameworks="50" --max_completed_tasks_per_framework="1000" --max_operator_event_stream_subscribers="1000" --max_unreachable_tasks_per_framework="1000" --memory_profiling="false" --min_allocatable_resources="cpus:0.01|mem:32" --port="5050" --publish_per_framework_metrics="true" --quiet="false" --recovery_agent_removal_limit="100%" --registry="in_memory" --registry_fetch_timeout="1mins" --registry_gc_interval="15mins" --registry_max_agent_age="2weeks" --registry_max_agent_count="102400" --registry_store_timeout="100secs" --registry_strict="false" --require_agent_domain="false" --role_sorter="drf" --root_submissions="true" --version="false" --webui_dir="/usr/local/share/mesos/webui" --work_dir="/tmp/Y8Tq68/master" --zk_session_timeout="10secs" I0806 08:38:46.907128 27670 master.cpp:492] Master only allowing authenticated frameworks to register I0806 08:38:46.907136 27670 master.cpp:498] Master only allowing authenticated agents to register I0806 08:38:46.907141 27670 master.cpp:504] Master only allowing authenticated HTTP frameworks to register I0806 08:38:46.907147 27670 credentials.hpp:37] Loading credentials for authentication from '/tmp/Y8Tq68/credentials' I0806 08:38:46.907230 27670 master.cpp:548] Using default 'crammd5' authenticator I0806 08:38:46.907274 27670 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-master-readonly' I0806 08:38:46.907305 27670 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-master-readwrite' I0806 08:38:46.907322 27670 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-master-scheduler' I0806 08:38:46.907342 27670 master.cpp:629] Authorization enabled I0806 08:38:46.907855 27670 hierarchical.cpp:241] Initialized hierarchical allocator process I0806 08:38:46.907891 27670 whitelist_watcher.cpp:77] No whitelist given I0806 08:38:46.908224 27670 master.cpp:2168] Elected as the leading master! I0806 08:38:46.908242 27670 master.cpp:1664] Recovering from registrar I0806 08:38:46.908274 27670 registrar.cpp:339] Recovering registrar I0806 08:38:46.908392 27670 registrar.cpp:383] Successfully fetched the registry (0B) in 105984ns I0806 08:38:46.908422 27670 registrar.cpp:487] Applied 1 operations in 7186ns; attempting to update the registry I0806 08:38:46.908530 27670 registrar.cpp:544] Successfully updated the registry in 94976ns I0806 08:38:46.908551 27670 registrar.cpp:416] Successfully recovered registrar I0806 08:38:46.908601 27670 master.cpp:1817] Recovered 0 agents from the registry (184B); allowing 10mins for agents to reregister I0806 08:38:46.908630 27670 hierarchical.cpp:280] Skipping recovery of hierarchical allocator: nothing to recover W0806 08:38:46.910559 27669 process.cpp:2877] Attempted to spawn already running process files@172.16.10.172 :38017 I0806 08:38:46.911214 27672 slave.cpp:267] Mesos agent started on (554)@172.16.10.172:38017 I0806 08:38:46.911384 27669 scheduler.cpp:189] Version: 1.9.0 I0806 08:38:46.911228 27672 slave.cpp:268] Flags at startup: --acls="permissive: true " --appc_simple_discovery_uri_prefix="http://" --appc_store_dir="/tmp/Y8Tq68/0fh9Ev/store/appc" --authenticate_http_executors="true" --authenticate_http_readonly="true" --authenticate_http_readwrite="true" --authenticatee="crammd5" --authentication_backoff_factor="1secs" --authentication_timeout_max="1mins" --authentication_timeout_min="5secs" --authorizer="local" --cgroups_cpu_enable_pids_and_tids_count="false" --cgroups_destroy_timeout="1mins" --cgroups_enable_cfs="false" --cgroups_hierarchy="/sys/fs/cgroup" --cgroups_limit_swap="false" --cgroups_root="mesos" --container_disk_watch_interval="15secs" --containerizers="mesos" --credential="/tmp/Y8Tq68/0fh9Ev/credential" --default_role="*" --disallow_sharing_agent_ipc_namespace="false" --disallow_sharing_agent_pid_namespace="false" --disk_watch_interval="1mins" --docker="docker" --docker_ignore_runtime="false" --docker_kill_orphans="true" --docker_registry=" https://registry-1.docker.io " --docker_remove_delay="6hrs" --docker_socket="/var/run/docker.sock" --docker_stop_timeout="0ns" --docker_store_dir="/tmp/Y8Tq68/0fh9Ev/store/docker" --docker_volume_checkpoint_dir="/var/run/mesos/isolators/docker/volume" --enforce_container_disk_quota="false" --executor_registration_timeout="1mins" --executor_reregistration_timeout="2secs" --executor_shutdown_grace_period="5secs" --fetcher_cache_dir="/tmp/Y8Tq68/0fh9Ev/fetch" --fetcher_cache_size="2GB" --fetcher_stall_timeout="1mins" --frameworks_home="/tmp/Y8Tq68/0fh9Ev/frameworks" --gc_delay="1weeks" --gc_disk_headroom="0.1" --gc_non_executor_container_sandboxes="false" --help="false" --hostname_lookup="true" --http_command_executor="false" --http_credentials="/tmp/Y8Tq68/0fh9Ev/http_credentials" --http_heartbeat_interval="30secs" --initialize_driver_logging="true" --isolation="posix/cpu,posix/mem" --jwt_secret_key="/tmp/Y8Tq68/0fh9Ev/jwt_secret_key" --launcher="linux" --launcher_dir="/home/ubuntu/workspace/mesos/Mesos_CI-build/FLAG/SSL/label/mesos-ec2-ubuntu-14.04/mesos/build/src" --logbufsecs="0" --logging_level="INFO" --max_completed_executors_per_framework="150" --memory_profiling="false" --network_cni_metrics="true" --network_cni_root_dir_persist="false" --oversubscribed_resources_interval="15secs" --perf_duration="10secs" --perf_interval="1mins" --port="5051" --qos_correction_interval_min="0ns" --quiet="false" --reconfiguration_policy="equal" --recover="reconnect" --recovery_timeout="15mins" --registration_backoff_factor="10ms" --resources="cpus:2;gpus:0;mem:1024;disk:1024;ports:[31000-32000]" --revocable_cpu_low_priority="true" --runtime_dir="/tmp/ExecutorAuthorizationTest_FailedSubscribe_s5ZeOI" --sandbox_directory="/mnt/mesos/sandbox" --strict="true" --switch_user="true" --systemd_enable_support="true" --systemd_runtime_directory="/run/systemd/system" --version="false" --work_dir="/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV" --zk_session_timeout="10secs" I0806 08:38:46.911406 27672 credentials.hpp:86] Loading credential for authentication from '/tmp/Y8Tq68/0fh9Ev/credential' I0806 08:38:46.911466 27672 slave.cpp:300] Agent using credential for: test-principal I0806 08:38:46.911476 27672 credentials.hpp:37] Loading credentials for authentication from '/tmp/Y8Tq68/0fh9Ev/http_credentials' I0806 08:38:46.911546 27672 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-agent-executor' I0806 08:38:46.911578 27672 http.cpp:996] Creating default 'jwt' HTTP authenticator for realm 'mesos-agent-executor' I0806 08:38:46.911625 27672 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-agent-readonly' I0806 08:38:46.911646 27672 http.cpp:996] Creating default 'jwt' HTTP authenticator for realm 'mesos-agent-readonly' I0806 08:38:46.911687 27672 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-agent-readwrite' I0806 08:38:46.911712 27672 http.cpp:996] Creating default 'jwt' HTTP authenticator for realm 'mesos-agent-readwrite' I0806 08:38:46.911767 27673 scheduler.cpp:342] Using default 'basic' HTTP authenticatee I0806 08:38:46.911919 27673 scheduler.cpp:525] New master detected at master@172.16.10.172 :38017 I0806 08:38:46.911939 27673 scheduler.cpp:534] Waiting for 0ns before initiating a re-(connection) attempt with the master I0806 08:38:46.912405 27672 disk_profile_adaptor.cpp:78] Creating default disk profile adaptor module I0806 08:38:46.912892 27676 scheduler.cpp:416] Connected with the master at http://172.16.10.172:38017/master/api/v1/scheduler I0806 08:38:46.913101 27672 slave.cpp:615] Agent resources: [{"name":"cpus","scalar":{"value":2.0},"type":"SCALAR"},{"name":"mem","scalar":{"value":1024.0},"type":"SCALAR"},{"name":"disk","scalar":{"value":1024.0},"type":"SCALAR"},{"name":"ports","ranges":{"range":[{"begin":31000,"end":32000}]},"type":"RANGES"}] I0806 08:38:46.913159 27672 slave.cpp:623] Agent attributes: [ ] I0806 08:38:46.913166 27672 slave.cpp:632] Agent hostname: ip-172-16-10-172.ec2.internal I0806 08:38:46.913378 27674 task_status_update_manager.cpp:181] Pausing sending task status updates I0806 08:38:46.913400 27674 status_update_manager_process.hpp:379] Pausing operation status update manager I0806 08:38:46.913465 27672 state.cpp:67] Recovering state from '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/meta' I0806 08:38:46.913584 27676 slave.cpp:7444] Finished recovering checkpointed state from '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/meta', beginning agent recovery I0806 08:38:46.913643 27676 task_status_update_manager.cpp:207] Recovering task status update manager I0806 08:38:46.913940 27675 composing.cpp:339] Finished recovering all containerizers I0806 08:38:46.914194 27671 slave.cpp:7908] Recovering executors I0806 08:38:46.914219 27671 slave.cpp:8061] Finished recovery I0806 08:38:46.917971 27671 slave.cpp:1351] New master detected at master@172.16.10.172 :38017 I0806 08:38:46.918004 27671 slave.cpp:1416] Detecting new master I0806 08:38:46.918032 27671 task_status_update_manager.cpp:181] Pausing sending task status updates I0806 08:38:46.918038 27670 status_update_manager_process.hpp:379] Pausing operation status update manager I0806 08:38:46.918404 27672 scheduler.cpp:246] Adding authentication headers to SUBSCRIBE call to http://172.16.10.172:38017/master/api/v1/scheduler I0806 08:38:46.918499 27672 scheduler.cpp:600] Sending SUBSCRIBE call to http://172.16.10.172:38017/master/api/v1/scheduler I0806 08:38:46.918918 27676 process.cpp:3671] Handling HTTP event for process 'master' with path: '/master/api/v1/scheduler' I0806 08:38:46.919324 27676 http.cpp:1115] HTTP POST for /master/api/v1/scheduler from 172.16.10.172:56689 I0806 08:38:46.919405 27676 master.cpp:2668] Received subscription request for HTTP framework 'default' I0806 08:38:46.919428 27676 master.cpp:2240] Authorizing framework principal 'test-principal' to receive offers for roles '{ * }' I0806 08:38:46.919546 27675 master.cpp:2740] Subscribing framework 'default' with checkpointing disabled and capabilities [ MULTI_ROLE, RESERVATION_REFINEMENT ] I0806 08:38:46.919962 27675 master.cpp:10808] Adding framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) with roles { } suppressed I0806 08:38:46.920186 27675 hierarchical.cpp:368] Added framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:38:46.920231 27675 hierarchical.cpp:1508] Performed allocation for 0 agents in 13752ns I0806 08:38:46.920796 27671 scheduler.cpp:847] Enqueuing event SUBSCRIBED received from http://172.16.10.172:38017/master/api/v1/scheduler I0806 08:38:46.920903 27671 scheduler.cpp:847] Enqueuing event HEARTBEAT received from http://172.16.10.172:38017/master/api/v1/scheduler I0806 08:38:46.924731 27674 slave.cpp:1443] Authenticating with master master@172.16.10.172 :38017 I0806 08:38:46.924757 27674 slave.cpp:1452] Using default CRAM-MD5 authenticatee I0806 08:38:46.924829 27674 authenticatee.cpp:121] Creating new client SASL connection I0806 08:38:46.925292 27674 master.cpp:10578] Authenticating slave(554)@172.16.10.172:38017 I0806 08:38:46.925449 27674 authenticator.cpp:414] Starting authentication session for crammd5-authenticatee(1131)@172.16.10.172:38017 I0806 08:38:46.925595 27677 authenticator.cpp:98] Creating new server SASL connection I0806 08:38:46.925948 27677 authenticatee.cpp:213] Received SASL authentication mechanisms: CRAM-MD5 I0806 08:38:46.925969 27677 authenticatee.cpp:239] Attempting to authenticate with mechanism 'CRAM-MD5' I0806 08:38:46.926036 27677 authenticator.cpp:204] Received SASL authentication start I0806 08:38:46.926074 27677 authenticator.cpp:326] Authentication requires more steps I0806 08:38:46.926105 27677 authenticatee.cpp:259] Received SASL authentication step I0806 08:38:46.926141 27677 authenticator.cpp:232] Received SASL authentication step I0806 08:38:46.926156 27677 auxprop.cpp:109] Request to lookup properties for user: 'test-principal' realm: 'ip-172-16-10-172.ec2.internal' server FQDN: 'ip-172-16-10-172.ec2.internal' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: false I0806 08:38:46.926163 27677 auxprop.cpp:181] Looking up auxiliary property '*userPassword' I0806 08:38:46.926169 27677 auxprop.cpp:181] Looking up auxiliary property '*cmusaslsecretCRAM-MD5' I0806 08:38:46.926174 27677 auxprop.cpp:109] Request to lookup properties for user: 'test-principal' realm: 'ip-172-16-10-172.ec2.internal' server FQDN: 'ip-172-16-10-172.ec2.internal' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: true I0806 08:38:46.926178 27677 auxprop.cpp:131] Skipping auxiliary property '*userPassword' since SASL_AUXPROP_AUTHZID == true I0806 08:38:46.926182 27677 auxprop.cpp:131] Skipping auxiliary property '*cmusaslsecretCRAM-MD5' since SASL_AUXPROP_AUTHZID == true I0806 08:38:46.926192 27677 authenticator.cpp:318] Authentication success I0806 08:38:46.926239 27676 authenticatee.cpp:299] Authentication success I0806 08:38:46.926350 27675 authenticator.cpp:432] Authentication session cleanup for crammd5-authenticatee(1131)@172.16.10.172:38017 I0806 08:38:46.926375 27677 master.cpp:10610] Successfully authenticated principal 'test-principal' at slave(554)@172.16.10.172:38017 I0806 08:38:46.926862 27675 slave.cpp:1543] Successfully authenticated with master master@172.16.10.172 :38017 I0806 08:38:46.926961 27675 slave.cpp:1993] Will retry registration in 17.625046ms if necessary I0806 08:38:46.927031 27675 master.cpp:7086] Received register agent message from slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) I0806 08:38:46.927088 27675 master.cpp:4202] Authorizing agent providing resources 'cpus:2; mem:1024; disk:1024; ports:[31000-32000]' with principal 'test-principal' I0806 08:38:46.927213 27675 master.cpp:7153] Authorized registration of agent at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) I0806 08:38:46.927242 27675 master.cpp:7265] Registering agent at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) with id 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 I0806 08:38:46.927351 27675 registrar.cpp:487] Applied 1 operations in 35128ns; attempting to update the registry I0806 08:38:46.927467 27675 registrar.cpp:544] Successfully updated the registry in 98048ns I0806 08:38:46.927706 27675 master.cpp:7313] Admitted agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) I0806 08:38:46.927855 27675 master.cpp:7358] Registered agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) with cpus:2; mem:1024; disk:1024; ports:[31000-32000] I0806 08:38:46.927904 27675 slave.cpp:1576] Registered with master master@172.16.10.172 :38017; given agent ID 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 I0806 08:38:46.927917 27674 hierarchical.cpp:617] Added agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 (ip-172-16-10-172.ec2.internal) with cpus:2; mem:1024; disk:1024; ports:[31000-32000] (allocated: {}) I0806 08:38:46.928055 27675 slave.cpp:1611] Checkpointing SlaveInfo to '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/meta/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/slave.info' I0806 08:38:46.928282 27670 task_status_update_manager.cpp:188] Resuming sending task status updates I0806 08:38:46.928310 27670 status_update_manager_process.hpp:385] Resuming operation status update manager I0806 08:38:46.928354 27675 slave.cpp:1663] Forwarding agent update {"operations":{},"resource_providers":{},"resource_version_uuid":{"value":"4Tjl852hTDC6D6mtIyZl3g=="},"slave_id":{"value":"48bb922a-c3a8-4ec7-b851-f836c795ce10-S0"},"update_oversubscribed_resources":false} I0806 08:38:46.928401 27670 master.cpp:10393] Sending offers [ 48bb922a-c3a8-4ec7-b851-f836c795ce10-O0 ] to framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) I0806 08:38:46.928592 27670 master.cpp:8457] Ignoring update on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) as it reports no changes I0806 08:38:46.928941 27671 scheduler.cpp:847] Enqueuing event OFFERS received from http://172.16.10.172:38017/master/api/v1/scheduler I0806 08:38:46.928058 27674 hierarchical.cpp:1508] Performed allocation for 1 agents in 98695ns I0806 08:38:46.929642 27673 scheduler.cpp:246] Adding authentication headers to ACCEPT call to http://172.16.10.172:38017/master/api/v1/scheduler I0806 08:38:46.929759 27673 scheduler.cpp:600] Sending ACCEPT call to http://172.16.10.172:38017/master/api/v1/scheduler I0806 08:38:46.930150 27674 process.cpp:3671] Handling HTTP event for process 'master' with path: '/master/api/v1/scheduler' I0806 08:38:46.930430 27677 http.cpp:1115] HTTP POST for /master/api/v1/scheduler from 172.16.10.172:56688 I0806 08:38:46.930630 27677 master.cpp:12685] Removing offer 48bb922a-c3a8-4ec7-b851-f836c795ce10-O0 I0806 08:38:46.930735 27677 master.cpp:4739] Processing ACCEPT call for offers: [ 48bb922a-c3a8-4ec7-b851-f836c795ce10-O0 ] on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) for framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) I0806 08:38:46.930774 27677 master.cpp:3756] Authorizing framework principal 'test-principal' to launch task 879faecc-d68a-4d6b-98e8-7695ff820803 I0806 08:38:46.931285 27674 master.cpp:4274] Adding executor 'default' with resources cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) I0806 08:38:46.931362 27674 master.cpp:4300] Adding task 879faecc-d68a-4d6b-98e8-7695ff820803 with resources cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) I0806 08:38:46.931424 27674 master.cpp:5941] Launching task group { 879faecc-d68a-4d6b-98e8-7695ff820803 } of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) with resources cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) on new executor I0806 08:38:46.931535 27674 hierarchical.cpp:1432] Allocation paused I0806 08:38:46.931615 27671 slave.cpp:2130] Got assigned task group containing tasks [ 879faecc-d68a-4d6b-98e8-7695ff820803 ] for framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:38:46.931622 27674 hierarchical.cpp:1218] Recovered cpus(allocated: *):1.8; mem(allocated: *):960; disk(allocated: *):960; ports(allocated: *):[31000-32000] (total: cpus:2; mem:1024; disk:1024; ports:[31000-32000], allocated: cpus(allocated: *):0.2; mem(allocated: *):64; disk(allocated: *):64) on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 from framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:38:46.931648 27674 hierarchical.cpp:1264] Framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 filtered agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 for 5secs I0806 08:38:46.931689 27674 hierarchical.cpp:1442] Allocation resumed I0806 08:38:46.931919 27671 slave.cpp:2504] Authorizing task group containing tasks [ 879faecc-d68a-4d6b-98e8-7695ff820803 ] for framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:38:46.931943 27671 slave.cpp:9400] Authorizing framework principal 'test-principal' to launch task 879faecc-d68a-4d6b-98e8-7695ff820803 I0806 08:38:46.932536 27671 slave.cpp:2977] Launching task group containing tasks [ 879faecc-d68a-4d6b-98e8-7695ff820803 ] for framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:38:46.932588 27671 paths.cpp:810] Creating sandbox '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/0449add1-c7d1-4936-88c3-ad92130b5fa2' for user 'root' I0806 08:38:46.932893 27671 slave.cpp:9938] Launching executor 'default' of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 with resources [{"allocation_info":{"role":"*"},"name":"cpus","scalar":{"value":0.1},"type":"SCALAR"},{"allocation_info":{"role":"*"},"name":"mem","scalar":{"value":32.0},"type":"SCALAR"},{"allocation_info":{"role":"*"},"name":"disk","scalar":{"value":32.0},"type":"SCALAR"}] in work directory '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/0449add1-c7d1-4936-88c3-ad92130b5fa2' I0806 08:38:46.933145 27671 slave.cpp:3203] Queued task group containing tasks [ 879faecc-d68a-4d6b-98e8-7695ff820803 ] for executor 'default' of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:38:46.933276 27671 slave.cpp:3651] Launching container 0449add1-c7d1-4936-88c3-ad92130b5fa2 for executor 'default' of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:38:46.933496 27671 slave.cpp:1084] Successfully attached '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/0449add1-c7d1-4936-88c3-ad92130b5fa2' to virtual path '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/latest' I0806 08:38:46.933514 27671 slave.cpp:1084] Successfully attached '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/0449add1-c7d1-4936-88c3-ad92130b5fa2' to virtual path '/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/latest' I0806 08:38:46.933526 27671 slave.cpp:1084] Successfully attached '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/0449add1-c7d1-4936-88c3-ad92130b5fa2' to virtual path '/tmp/ExecutorAuthorizationTest_FailedSubscribe_F6NkXV/slaves/48bb922a-c3a8-4ec7-b851-f836c795ce10-S0/frameworks/48bb922a-c3a8-4ec7-b851-f836c795ce10-0000/executors/default/runs/0449add1-c7d1-4936-88c3-ad92130b5fa2' I0806 08:38:46.933643 27671 executor.cpp:206] Version: 1.9.0 W0806 08:38:46.933655 27671 process.cpp:2877] Attempted to spawn already running process version@172.16.10.172 :38017 I0806 08:38:46.934464 27673 executor.cpp:432] Connected with the agent I0806 08:38:46.934666 27673 executor.cpp:328] Sending SUBSCRIBE call to http://172.16.10.172:38017/slave(554)/api/v1/executor I0806 08:38:46.934891 27674 process.cpp:3671] Handling HTTP event for process 'slave(554)' with path: '/slave(554)/api/v1/executor' I0806 08:38:46.935328 27674 http.cpp:1115] HTTP POST for /slave(554)/api/v1/executor from 172.16.10.172:56690 I0806 08:38:46.935675 27674 executor.cpp:745] Enqueuing locally injected event ERROR GMOCK WARNING: Uninteresting mock function call - returning directly.     Function call: error(0x7fce4007fee0, @0x7fce4402cb60 32-byte object <D0-D0 31-68 CE-7F 00-00 00-00 00-00 00-00 00-00 01-00 00-00 00-00 00-00 D0-A0 05-44 CE-7F 00-00>) NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/master/googlemock/docs/CookBook.md#knowing-when-to-expect for details. I0806 08:38:47.908803 27672 hierarchical.cpp:2358] Filtered offer with cpus:1.8; mem:960; disk:960; ports:[31000-32000] on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 for role * of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:38:47.908864 27672 hierarchical.cpp:1508] Performed allocation for 1 agents in 128164ns I0806 08:38:48.909757 27675 hierarchical.cpp:2358] Filtered offer with cpus:1.8; mem:960; disk:960; ports:[31000-32000] on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 for role * of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:38:48.909816 27675 hierarchical.cpp:1508] Performed allocation for 1 agents in 124393ns I0806 08:38:49.910807 27671 hierarchical.cpp:2358] Filtered offer with cpus:1.8; mem:960; disk:960; ports:[31000-32000] on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 for role * of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:38:49.910898 27671 hierarchical.cpp:1508] Performed allocation for 1 agents in 203564ns I0806 08:38:50.911904 27674 hierarchical.cpp:2358] Filtered offer with cpus:1.8; mem:960; disk:960; ports:[31000-32000] on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 for role * of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:38:50.911963 27674 hierarchical.cpp:1508] Performed allocation for 1 agents in 128624ns I0806 08:38:51.913167 27673 hierarchical.cpp:2358] Filtered offer with cpus:1.8; mem:960; disk:960; ports:[31000-32000] on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 for role * of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:38:51.913225 27673 hierarchical.cpp:1508] Performed allocation for 1 agents in 125358ns I0806 08:38:52.913841 27677 hierarchical.cpp:1508] Performed allocation for 1 agents in 139160ns I0806 08:38:52.913942 27671 master.cpp:10393] Sending offers [ 48bb922a-c3a8-4ec7-b851-f836c795ce10-O1 ] to framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) I0806 08:38:52.914567 27675 scheduler.cpp:847] Enqueuing event OFFERS received from http://172.16.10.172:38017/master/api/v1/scheduler I0806 08:38:53.914562 27676 hierarchical.cpp:1508] Performed allocation for 1 agents in 35033ns I0806 08:38:54.915772 27677 hierarchical.cpp:1508] Performed allocation for 1 agents in 35148ns I0806 08:38:55.916126 27672 hierarchical.cpp:1508] Performed allocation for 1 agents in 34080ns I0806 08:38:56.917241 27675 hierarchical.cpp:1508] Performed allocation for 1 agents in 35548ns I0806 08:38:57.917816 27672 hierarchical.cpp:1508] Performed allocation for 1 agents in 33416ns I0806 08:38:58.918292 27677 hierarchical.cpp:1508] Performed allocation for 1 agents in 34795ns I0806 08:38:59.918936 27673 hierarchical.cpp:1508] Performed allocation for 1 agents in 52737ns I0806 08:39:00.919754 27675 hierarchical.cpp:1508] Performed allocation for 1 agents in 36676ns I0806 08:39:01.920635 27673 hierarchical.cpp:1508] Performed allocation for 1 agents in 35612ns I0806 08:39:01.921164 27676 scheduler.cpp:847] Enqueuing event HEARTBEAT received from http://172.16.10.172:38017/master/api/v1/scheduler ../../src/tests/slave_authorization_tests.cpp:922: Failure Failed to wait 15secs for error I0806 08:39:01.937613 27671 master.cpp:1410] Framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) disconnected I0806 08:39:01.937631 27671 master.cpp:3360] Deactivating framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) W0806 08:39:01.937749 27671 master.hpp:2708] Unable to send message to framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default): connection closed I0806 08:39:01.937760 27671 master.cpp:12685] Removing offer 48bb922a-c3a8-4ec7-b851-f836c795ce10-O1 I0806 08:39:01.937775 27671 master.cpp:3337] Disconnecting framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) I0806 08:39:01.937783 27671 master.cpp:1425] Giving framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) 0ns to failover I0806 08:39:01.937847 27671 hierarchical.cpp:475] Deactivated framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:39:01.937952 27671 hierarchical.cpp:1218] Recovered cpus(allocated: *):1.8; mem(allocated: *):960; disk(allocated: *):960; ports(allocated: *):[31000-32000] (total: cpus:2; mem:1024; disk:1024; ports:[31000-32000], allocated: cpus(allocated: *):0.2; mem(allocated: *):64; disk(allocated: *):64) on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 from framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:39:01.938006 27671 master.cpp:10185] Framework failover timeout, removing framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) I0806 08:39:01.938016 27671 master.cpp:11184] Removing framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (default) I0806 08:39:01.938063 27671 master.cpp:12034] Updating the state of task 879faecc-d68a-4d6b-98e8-7695ff820803 of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 (latest state: TASK_KILLED, status update state: TASK_KILLED) I0806 08:39:01.938143 27671 master.cpp:12132] Removing task 879faecc-d68a-4d6b-98e8-7695ff820803 with resources cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) I0806 08:39:01.938220 27671 master.cpp:12172] Removing executor 'default' with resources cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) I0806 08:39:01.938321 27671 slave.cpp:4056] Asked to shut down framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 by master@172.16.10.172 :38017 I0806 08:39:01.938334 27671 slave.cpp:4081] Shutting down framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:39:01.938344 27671 slave.cpp:7175] Shutting down executor 'default' of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 W0806 08:39:01.938350 27671 slave.hpp:1004] Unable to send event to executor 'default' of framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000: unknown connection type I0806 08:39:01.938421 27671 hierarchical.cpp:1218] Recovered cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 (total: cpus:2; mem:1024; disk:1024; ports:[31000-32000], allocated: cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32) on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 from framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:39:01.938489 27671 hierarchical.cpp:1218] Recovered cpus(allocated: *):0.1; mem(allocated: *):32; disk(allocated: *):32 (total: cpus:2; mem:1024; disk:1024; ports:[31000-32000], allocated: {}) on agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 from framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:39:01.938518 27671 hierarchical.cpp:1432] Allocation paused I0806 08:39:01.938566 27671 hierarchical.cpp:417] Removed framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 I0806 08:39:01.938583 27671 hierarchical.cpp:1442] Allocation resumed I0806 08:39:01.938980 27669 slave.cpp:924] Agent terminating I0806 08:39:01.938999 27669 slave.cpp:4056] Asked to shut down framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 by @0.0.0.0:0 W0806 08:39:01.939009 27669 slave.cpp:4077] Ignoring shutdown framework 48bb922a-c3a8-4ec7-b851-f836c795ce10-0000 because it is terminating I0806 08:39:01.939287 27675 master.cpp:1295] Agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) disconnected I0806 08:39:01.939306 27675 master.cpp:3397] Disconnecting agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) I0806 08:39:01.939318 27675 master.cpp:3416] Deactivating agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 at slave(554)@172.16.10.172:38017 (ip-172-16-10-172.ec2.internal) I0806 08:39:01.939363 27675 hierarchical.cpp:799] Agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 deactivated ../../src/tests/slave_authorization_tests.cpp:919: Failure Actual function call count doesn't match EXPECT_CALL(*executor, error(_, _))...          Expected: to be called once            Actual: never called - unsatisfied and active I0806 08:39:01.941174 27669 master.cpp:1135] Master terminating I0806 08:39:01.941269 27671 hierarchical.cpp:775] Removed all filters for agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 I0806 08:39:01.941282 27671 hierarchical.cpp:650] Removed agent 48bb922a-c3a8-4ec7-b851-f836c795ce10-S0 [ FAILED ] ExecutorAuthorizationTest.FailedSubscribe (15045 ms) {code} The root cause looks pretty simple - there is nothing that would prevent the error message from arriving before EXPECT_CALL(*executor, error(_, _)) : https://github.com/apache/mesos/blob/e6edb0a1cf9fd2f8ab7fcb5c291b7a14389118a6/src/tests/slave_authorization_tests.cpp#L919

      Attachments

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            asekretenko Andrei Sekretenko
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: