Andrei Sekretenko created MESOS-10019: -----------------------------------------
Summary: MasterTest.AgentRestartNoReregisterRateLimit is flaky Key: MESOS-10019 URL: https://issues.apache.org/jira/browse/MESOS-10019 Project: Mesos Issue Type: Bug Reporter: Andrei Sekretenko Observed in an internal CI: {noformat} [ RUN ] MasterTest.AgentRestartNoReregisterRateLimit I1024 00:41:40.489032 21857 cluster.cpp:177] Creating default 'local' authorizer I1024 00:41:40.490108 21863 master.cpp:440] Master 05e6917e-c84f-4458-a163-ea4f19a9e22e (localhost) started on 127.0.0.1:34115 I1024 00:41:40.490131 21863 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/JtmSIu/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/JtmSIu/master" --zk_session_timeout="10secs" W1024 00:41:40.490252 21863 master.cpp:446] ************************************************** Master bound to loopback interface! Cannot communicate with remote schedulers or agents. You might want to set '--ip' flag to a routable IP address. ************************************************** I1024 00:41:40.490270 21863 master.cpp:492] Master only allowing authenticated frameworks to register I1024 00:41:40.490278 21863 master.cpp:498] Master only allowing authenticated agents to register I1024 00:41:40.490283 21863 master.cpp:504] Master only allowing authenticated HTTP frameworks to register I1024 00:41:40.490288 21863 credentials.hpp:37] Loading credentials for authentication from '/tmp/JtmSIu/credentials' I1024 00:41:40.490358 21863 master.cpp:548] Using default 'crammd5' authenticator I1024 00:41:40.490408 21863 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-master-readonly' I1024 00:41:40.490489 21863 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-master-readwrite' I1024 00:41:40.490540 21863 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-master-scheduler' I1024 00:41:40.490568 21863 master.cpp:629] Authorization enabled I1024 00:41:40.490725 21860 hierarchical.cpp:567] Initialized hierarchical allocator process I1024 00:41:40.490774 21858 whitelist_watcher.cpp:77] No whitelist given I1024 00:41:40.491458 21860 master.cpp:2169] Elected as the leading master! I1024 00:41:40.491479 21860 master.cpp:1665] Recovering from registrar I1024 00:41:40.491520 21860 registrar.cpp:339] Recovering registrar I1024 00:41:40.491894 21860 registrar.cpp:383] Successfully fetched the registry (0B) in 360960ns I1024 00:41:40.491935 21860 registrar.cpp:487] Applied 1 operations in 8405ns; attempting to update the registry I1024 00:41:40.492404 21865 registrar.cpp:544] Successfully updated the registry in 246016ns I1024 00:41:40.492447 21865 registrar.cpp:416] Successfully recovered registrar I1024 00:41:40.492538 21865 master.cpp:1818] Recovered 0 agents from the registry (136B); allowing 10mins for agents to reregister I1024 00:41:40.492573 21859 hierarchical.cpp:606] Skipping recovery of hierarchical allocator: nothing to recover I1024 00:41:40.493685 21857 containerizer.cpp:318] Using isolation { environment_secret, posix/cpu, posix/mem, filesystem/posix, network/cni } I1024 00:41:40.495545 21857 linux_launcher.cpp:144] Using /sys/fs/cgroup/freezer as the freezer hierarchy for the Linux launcher I1024 00:41:40.496160 21857 provisioner.cpp:294] Using default backend 'overlay' W1024 00:41:40.497972 21857 process.cpp:2877] Attempted to spawn already running process files@127.0.0.1:34115 I1024 00:41:40.498291 21857 cluster.cpp:524] Creating default 'local' authorizer I1024 00:41:40.499109 21864 slave.cpp:267] Mesos agent started on @127.0.0.1:34115 W1024 00:41:40.499248 21857 sched.cpp:1849] ************************************************** Scheduler driver bound to loopback interface! Cannot communicate with remote master(s). You might want to set 'LIBPROCESS_IP' environment variable to use a routable IP address. ************************************************** W1024 00:41:40.499276 21857 process.cpp:2877] Attempted to spawn already running process version@127.0.0.1:34115 I1024 00:41:40.499126 21864 slave.cpp:268] Flags at startup: --acls="" --appc_simple_discovery_uri_prefix="http://" --appc_store_dir="/tmp/JtmSIu/X5kr3I/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/JtmSIu/X5kr3I/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/JtmSIu/X5kr3I/store/docker" --docker_volume_checkpoint_dir="/var/run/mesos/isolators/docker/volume" --docker_volume_chown="false" --enforce_container_disk_quota="false" --executor_registration_timeout="1mins" --executor_reregistration_timeout="2secs" --executor_shutdown_grace_period="5secs" --fetcher_cache_dir="/tmp/JtmSIu/X5kr3I/fetch" --fetcher_cache_size="2GB" --fetcher_stall_timeout="1mins" --frameworks_home="/tmp/JtmSIu/X5kr3I/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/JtmSIu/X5kr3I/http_credentials" --http_heartbeat_interval="30secs" --initialize_driver_logging="true" --isolation="posix/cpu,posix/mem" --jwt_secret_key="/tmp/JtmSIu/X5kr3I/jwt_secret_key" --launcher="linux" --launcher_dir="/home/admin/workspace/mesos/Mesos_CI-build/FLAG/SSL/label/mesos-ec2-debian-9/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/MasterTest_AgentRestartNoReregisterRateLimit_5ppfhE" --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/MasterTest_AgentRestartNoReregisterRateLimit_OzL3uz" --zk_session_timeout="10secs" W1024 00:41:40.499303 21864 slave.cpp:271] ************************************************** Agent bound to loopback interface! Cannot communicate with remote master(s). You might want to set '--ip' flag to a routable IP address. ************************************************** I1024 00:41:40.499313 21864 credentials.hpp:86] Loading credential for authentication from '/tmp/JtmSIu/X5kr3I/credential' I1024 00:41:40.499357 21864 slave.cpp:300] Agent using credential for: test-principal I1024 00:41:40.499366 21864 credentials.hpp:37] Loading credentials for authentication from '/tmp/JtmSIu/X5kr3I/http_credentials' I1024 00:41:40.499433 21864 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-agent-executor' I1024 00:41:40.499464 21864 http.cpp:996] Creating default 'jwt' HTTP authenticator for realm 'mesos-agent-executor' I1024 00:41:40.499505 21864 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-agent-readonly' I1024 00:41:40.499522 21864 http.cpp:996] Creating default 'jwt' HTTP authenticator for realm 'mesos-agent-readonly' I1024 00:41:40.499541 21857 sched.cpp:239] Version: 1.10.0 I1024 00:41:40.499548 21864 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-agent-readwrite' I1024 00:41:40.499565 21864 http.cpp:996] Creating default 'jwt' HTTP authenticator for realm 'mesos-agent-readwrite' I1024 00:41:40.499611 21864 disk_profile_adaptor.cpp:78] Creating default disk profile adaptor module I1024 00:41:40.499816 21864 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"}] I1024 00:41:40.499862 21864 slave.cpp:623] Agent attributes: [ ] I1024 00:41:40.499867 21864 slave.cpp:632] Agent hostname: localhost I1024 00:41:40.500087 21864 task_status_update_manager.cpp:181] Pausing sending task status updates I1024 00:41:40.500099 21864 status_update_manager_process.hpp:379] Pausing operation status update manager I1024 00:41:40.500180 21864 state.cpp:67] Recovering state from '/tmp/MasterTest_AgentRestartNoReregisterRateLimit_OzL3uz/meta' I1024 00:41:40.500229 21864 slave.cpp:7492] Finished recovering checkpointed state from '/tmp/MasterTest_AgentRestartNoReregisterRateLimit_OzL3uz/meta', beginning agent recovery I1024 00:41:40.500274 21864 sched.cpp:343] New master detected at master@127.0.0.1:34115 I1024 00:41:40.500289 21864 sched.cpp:408] Authenticating with master master@127.0.0.1:34115 I1024 00:41:40.500294 21864 sched.cpp:415] Using default CRAM-MD5 authenticatee I1024 00:41:40.500334 21864 task_status_update_manager.cpp:207] Recovering task status update manager I1024 00:41:40.500370 21864 authenticatee.cpp:121] Creating new client SASL connection I1024 00:41:40.500452 21864 master.cpp:10594] Authenticating scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 I1024 00:41:40.500499 21864 authenticator.cpp:414] Starting authentication session for crammd5-authenticatee(678)@127.0.0.1:34115 I1024 00:41:40.500524 21864 containerizer.cpp:821] Recovering Mesos containers I1024 00:41:40.500566 21864 authenticator.cpp:98] Creating new server SASL connection I1024 00:41:40.500613 21864 linux_launcher.cpp:286] Recovering Linux launcher I1024 00:41:40.500690 21864 authenticatee.cpp:213] Received SASL authentication mechanisms: CRAM-MD5 I1024 00:41:40.500700 21864 authenticatee.cpp:239] Attempting to authenticate with mechanism 'CRAM-MD5' I1024 00:41:40.500715 21864 containerizer.cpp:1161] Recovering isolators I1024 00:41:40.500751 21864 authenticator.cpp:204] Received SASL authentication start I1024 00:41:40.500777 21864 authenticator.cpp:326] Authentication requires more steps I1024 00:41:40.500860 21864 authenticatee.cpp:259] Received SASL authentication step I1024 00:41:40.500885 21864 containerizer.cpp:1200] Recovering provisioner I1024 00:41:40.500903 21864 authenticator.cpp:232] Received SASL authentication step I1024 00:41:40.500912 21864 auxprop.cpp:109] Request to lookup properties for user: 'test-principal' realm: 'ip-172-16-10-34' server FQDN: 'ip-172-16-10-34' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: false I1024 00:41:40.500917 21864 auxprop.cpp:181] Looking up auxiliary property '*userPassword' I1024 00:41:40.500924 21864 auxprop.cpp:181] Looking up auxiliary property '*cmusaslsecretCRAM-MD5' I1024 00:41:40.500929 21864 auxprop.cpp:109] Request to lookup properties for user: 'test-principal' realm: 'ip-172-16-10-34' server FQDN: 'ip-172-16-10-34' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: true I1024 00:41:40.500936 21864 auxprop.cpp:131] Skipping auxiliary property '*userPassword' since SASL_AUXPROP_AUTHZID == true I1024 00:41:40.500939 21864 auxprop.cpp:131] Skipping auxiliary property '*cmusaslsecretCRAM-MD5' since SASL_AUXPROP_AUTHZID == true I1024 00:41:40.500947 21864 authenticator.cpp:318] Authentication success I1024 00:41:40.501013 21864 authenticatee.cpp:299] Authentication success I1024 00:41:40.501039 21864 master.cpp:10626] Successfully authenticated principal 'test-principal' at scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 I1024 00:41:40.501052 21864 authenticator.cpp:432] Authentication session cleanup for crammd5-authenticatee(678)@127.0.0.1:34115 I1024 00:41:40.501091 21864 provisioner.cpp:518] Provisioner recovery complete I1024 00:41:40.501128 21864 sched.cpp:520] Successfully authenticated with master master@127.0.0.1:34115 I1024 00:41:40.501135 21864 sched.cpp:835] Sending SUBSCRIBE call to master@127.0.0.1:34115 I1024 00:41:40.501163 21864 sched.cpp:870] Will retry registration in 937.733339ms if necessary I1024 00:41:40.501235 21864 master.cpp:2909] Received SUBSCRIBE call for framework 'default' at scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 I1024 00:41:40.501245 21864 master.cpp:2241] Authorizing framework principal 'test-principal' to receive offers for roles '{ * }' I1024 00:41:40.501343 21864 master.cpp:2996] Subscribing framework default with checkpointing disabled and capabilities [ MULTI_ROLE, RESERVATION_REFINEMENT ] I1024 00:41:40.501490 21864 master.cpp:10824] Adding framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 (default) at scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 with roles { } suppressed I1024 00:41:40.501617 21864 hierarchical.cpp:700] Added framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 I1024 00:41:40.501650 21864 hierarchical.cpp:1843] Performed allocation for 0 agents in 9812ns I1024 00:41:40.501680 21864 sched.cpp:751] Framework registered with 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 I1024 00:41:40.501693 21864 sched.cpp:770] Scheduler::registered took 7236ns I1024 00:41:40.501714 21864 composing.cpp:339] Finished recovering all containerizers I1024 00:41:40.501750 21864 slave.cpp:7974] Recovering executors I1024 00:41:40.501762 21864 slave.cpp:8127] Finished recovery I1024 00:41:40.501988 21864 slave.cpp:1351] New master detected at master@127.0.0.1:34115 I1024 00:41:40.502019 21864 slave.cpp:1416] Detecting new master I1024 00:41:40.502046 21864 task_status_update_manager.cpp:181] Pausing sending task status updates I1024 00:41:40.502060 21864 status_update_manager_process.hpp:379] Pausing operation status update manager I1024 00:41:40.512204 21864 slave.cpp:1443] Authenticating with master master@127.0.0.1:34115 I1024 00:41:40.512235 21864 slave.cpp:1452] Using default CRAM-MD5 authenticatee I1024 00:41:40.512382 21860 authenticatee.cpp:121] Creating new client SASL connection I1024 00:41:40.512471 21860 master.cpp:10594] Authenticating agent@127.0.0.1:34115 I1024 00:41:40.512511 21860 authenticator.cpp:414] Starting authentication session for crammd5-authenticatee(679)@127.0.0.1:34115 I1024 00:41:40.512557 21860 authenticator.cpp:98] Creating new server SASL connection I1024 00:41:40.512625 21860 authenticatee.cpp:213] Received SASL authentication mechanisms: CRAM-MD5 I1024 00:41:40.512636 21860 authenticatee.cpp:239] Attempting to authenticate with mechanism 'CRAM-MD5' I1024 00:41:40.512660 21860 authenticator.cpp:204] Received SASL authentication start I1024 00:41:40.512682 21860 authenticator.cpp:326] Authentication requires more steps I1024 00:41:40.512706 21860 authenticatee.cpp:259] Received SASL authentication step I1024 00:41:40.512735 21860 authenticator.cpp:232] Received SASL authentication step I1024 00:41:40.512748 21860 auxprop.cpp:109] Request to lookup properties for user: 'test-principal' realm: 'ip-172-16-10-34' server FQDN: 'ip-172-16-10-34' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: false I1024 00:41:40.512755 21860 auxprop.cpp:181] Looking up auxiliary property '*userPassword' I1024 00:41:40.512763 21860 auxprop.cpp:181] Looking up auxiliary property '*cmusaslsecretCRAM-MD5' I1024 00:41:40.512771 21860 auxprop.cpp:109] Request to lookup properties for user: 'test-principal' realm: 'ip-172-16-10-34' server FQDN: 'ip-172-16-10-34' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: true I1024 00:41:40.512778 21860 auxprop.cpp:131] Skipping auxiliary property '*userPassword' since SASL_AUXPROP_AUTHZID == true I1024 00:41:40.512782 21860 auxprop.cpp:131] Skipping auxiliary property '*cmusaslsecretCRAM-MD5' since SASL_AUXPROP_AUTHZID == true I1024 00:41:40.512792 21860 authenticator.cpp:318] Authentication success I1024 00:41:40.512831 21860 authenticatee.cpp:299] Authentication success I1024 00:41:40.512853 21860 master.cpp:10626] Successfully authenticated principal 'test-principal' at agent@127.0.0.1:34115 I1024 00:41:40.512873 21860 authenticator.cpp:432] Authentication session cleanup for crammd5-authenticatee(679)@127.0.0.1:34115 I1024 00:41:40.515769 21864 slave.cpp:1543] Successfully authenticated with master master@127.0.0.1:34115 I1024 00:41:40.515959 21859 master.cpp:7083] Received register agent message from agent@127.0.0.1:34115 (localhost) I1024 00:41:40.516053 21859 master.cpp:4189] Authorizing agent providing resources 'cpus:2; mem:1024; disk:1024; ports:[31000-32000]' with principal 'test-principal' I1024 00:41:40.516191 21859 master.cpp:7150] Authorized registration of agent at agent@127.0.0.1:34115 (localhost) I1024 00:41:40.516227 21859 master.cpp:7262] Registering agent at agent@127.0.0.1:34115 (localhost) with id 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 I1024 00:41:40.516364 21859 registrar.cpp:487] Applied 1 operations in 41097ns; attempting to update the registry I1024 00:41:40.516487 21859 registrar.cpp:544] Successfully updated the registry in 101120ns I1024 00:41:40.516556 21859 master.cpp:7310] Admitted agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 at agent@127.0.0.1:34115 (localhost) I1024 00:41:40.516665 21859 master.cpp:7355] Registered agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 at agent@127.0.0.1:34115 (localhost) with cpus:2; mem:1024; disk:1024; ports:[31000-32000] I1024 00:41:40.516772 21859 hierarchical.cpp:955] Added agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 (localhost) with cpus:2; mem:1024; disk:1024; ports:[31000-32000] (offered or allocated: {}) I1024 00:41:40.516937 21859 hierarchical.cpp:1843] Performed allocation for 1 agents in 119433ns I1024 00:41:40.517045 21859 master.cpp:10409] Sending offers [ 05e6917e-c84f-4458-a163-ea4f19a9e22e-O0 ] to framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 (default) at scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 I1024 00:41:40.517163 21859 sched.cpp:934] Scheduler::resourceOffers took 14459ns I1024 00:41:40.517431 21864 slave.cpp:1993] Will retry registration in 18.891861ms if necessary I1024 00:41:40.517467 21864 slave.cpp:924] Agent terminating I1024 00:41:40.517669 21864 master.cpp:1296] Agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 at agent@127.0.0.1:34115 (localhost) disconnected I1024 00:41:40.517694 21864 master.cpp:3391] Disconnecting agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 at agent@127.0.0.1:34115 (localhost) I1024 00:41:40.517711 21864 master.cpp:3410] Deactivating agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 at agent@127.0.0.1:34115 (localhost) I1024 00:41:40.518039 21863 hierarchical.cpp:1146] Agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 deactivated I1024 00:41:40.518062 21858 sched.cpp:960] Rescinded offer 05e6917e-c84f-4458-a163-ea4f19a9e22e-O0 I1024 00:41:40.518086 21858 sched.cpp:971] Scheduler::offerRescinded took 10425ns I1024 00:41:40.518250 21857 containerizer.cpp:318] Using isolation { environment_secret, posix/cpu, posix/mem, filesystem/posix, network/cni } I1024 00:41:40.518324 21862 hierarchical.cpp:1566] Recovered ports(allocated: *):[31000-32000]; cpus(allocated: *):2; mem(allocated: *):1024; disk(allocated: *):1024 (total: cpus:2; mem:1024; disk:1024; ports:[31000-32000], offered or allocated: {}) on agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 from framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 I1024 00:41:40.518745 21864 master.cpp:12706] Removing offer 05e6917e-c84f-4458-a163-ea4f19a9e22e-O0 I1024 00:41:40.520515 21857 linux_launcher.cpp:144] Using /sys/fs/cgroup/freezer as the freezer hierarchy for the Linux launcher I1024 00:41:40.521003 21857 provisioner.cpp:294] Using default backend 'overlay' W1024 00:41:40.523260 21857 process.cpp:2877] Attempted to spawn already running process files@127.0.0.1:34115 I1024 00:41:40.523545 21857 cluster.cpp:524] Creating default 'local' authorizer I1024 00:41:40.524297 21861 slave.cpp:267] Mesos agent started on @127.0.0.1:34115 I1024 00:41:40.524315 21861 slave.cpp:268] Flags at startup: --acls="" --appc_simple_discovery_uri_prefix="http://" --appc_store_dir="/tmp/JtmSIu/X5kr3I/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/JtmSIu/X5kr3I/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/JtmSIu/X5kr3I/store/docker" --docker_volume_checkpoint_dir="/var/run/mesos/isolators/docker/volume" --docker_volume_chown="false" --enforce_container_disk_quota="false" --executor_registration_timeout="1mins" --executor_reregistration_timeout="2secs" --executor_shutdown_grace_period="5secs" --fetcher_cache_dir="/tmp/JtmSIu/X5kr3I/fetch" --fetcher_cache_size="2GB" --fetcher_stall_timeout="1mins" --frameworks_home="/tmp/JtmSIu/X5kr3I/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/JtmSIu/X5kr3I/http_credentials" --http_heartbeat_interval="30secs" --initialize_driver_logging="true" --isolation="posix/cpu,posix/mem" --jwt_secret_key="/tmp/JtmSIu/X5kr3I/jwt_secret_key" --launcher="linux" --launcher_dir="/home/admin/workspace/mesos/Mesos_CI-build/FLAG/SSL/label/mesos-ec2-debian-9/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/MasterTest_AgentRestartNoReregisterRateLimit_5ppfhE" --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/MasterTest_AgentRestartNoReregisterRateLimit_OzL3uz" --zk_session_timeout="10secs" W1024 00:41:40.524484 21861 slave.cpp:271] ************************************************** Agent bound to loopback interface! Cannot communicate with remote master(s). You might want to set '--ip' flag to a routable IP address. ************************************************** I1024 00:41:40.524494 21861 credentials.hpp:86] Loading credential for authentication from '/tmp/JtmSIu/X5kr3I/credential' I1024 00:41:40.524533 21861 slave.cpp:300] Agent using credential for: test-principal I1024 00:41:40.524543 21861 credentials.hpp:37] Loading credentials for authentication from '/tmp/JtmSIu/X5kr3I/http_credentials' I1024 00:41:40.524583 21861 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-agent-executor' I1024 00:41:40.524606 21861 http.cpp:996] Creating default 'jwt' HTTP authenticator for realm 'mesos-agent-executor' I1024 00:41:40.524629 21861 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-agent-readonly' I1024 00:41:40.524641 21861 http.cpp:996] Creating default 'jwt' HTTP authenticator for realm 'mesos-agent-readonly' I1024 00:41:40.524660 21861 http.cpp:975] Creating default 'basic' HTTP authenticator for realm 'mesos-agent-readwrite' I1024 00:41:40.524672 21861 http.cpp:996] Creating default 'jwt' HTTP authenticator for realm 'mesos-agent-readwrite' I1024 00:41:40.524708 21861 disk_profile_adaptor.cpp:78] Creating default disk profile adaptor module I1024 00:41:40.524843 21861 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"}] I1024 00:41:40.524878 21861 slave.cpp:623] Agent attributes: [ ] I1024 00:41:40.524881 21861 slave.cpp:632] Agent hostname: localhost I1024 00:41:40.525234 21861 task_status_update_manager.cpp:181] Pausing sending task status updates I1024 00:41:40.525249 21861 status_update_manager_process.hpp:379] Pausing operation status update manager I1024 00:41:40.525257 21861 state.cpp:67] Recovering state from '/tmp/MasterTest_AgentRestartNoReregisterRateLimit_OzL3uz/meta' I1024 00:41:40.525276 21861 state.cpp:874] No committed checkpointed resources and operations found at '/tmp/MasterTest_AgentRestartNoReregisterRateLimit_OzL3uz/meta/resources/resources_and_operations.state' I1024 00:41:40.525285 21861 state.cpp:880] No committed checkpointed resources found at '/tmp/MasterTest_AgentRestartNoReregisterRateLimit_OzL3uz/meta/resources/resources.info' I1024 00:41:40.525323 21861 state.cpp:111] Failed to find the latest agent from '/tmp/MasterTest_AgentRestartNoReregisterRateLimit_OzL3uz/meta' I1024 00:41:40.525349 21861 slave.cpp:7492] Finished recovering checkpointed state from '/tmp/MasterTest_AgentRestartNoReregisterRateLimit_OzL3uz/meta', beginning agent recovery I1024 00:41:40.525396 21861 task_status_update_manager.cpp:207] Recovering task status update manager I1024 00:41:40.525441 21861 containerizer.cpp:821] Recovering Mesos containers I1024 00:41:40.525465 21861 linux_launcher.cpp:286] Recovering Linux launcher I1024 00:41:40.525532 21861 containerizer.cpp:1161] Recovering isolators I1024 00:41:40.525624 21861 containerizer.cpp:1200] Recovering provisioner I1024 00:41:40.525681 21861 provisioner.cpp:518] Provisioner recovery complete I1024 00:41:40.525765 21861 composing.cpp:339] Finished recovering all containerizers I1024 00:41:40.525802 21861 slave.cpp:7974] Recovering executors I1024 00:41:40.525815 21861 slave.cpp:8127] Finished recovery I1024 00:41:40.526007 21861 slave.cpp:1351] New master detected at master@127.0.0.1:34115 I1024 00:41:40.526022 21861 slave.cpp:1416] Detecting new master I1024 00:41:40.526037 21861 task_status_update_manager.cpp:181] Pausing sending task status updates I1024 00:41:40.526046 21861 status_update_manager_process.hpp:379] Pausing operation status update manager I1024 00:41:40.526849 21860 slave.cpp:1443] Authenticating with master master@127.0.0.1:34115 I1024 00:41:40.526876 21860 slave.cpp:1452] Using default CRAM-MD5 authenticatee I1024 00:41:40.526937 21860 authenticatee.cpp:121] Creating new client SASL connection I1024 00:41:40.527024 21860 master.cpp:10594] Authenticating agent@127.0.0.1:34115 I1024 00:41:40.527062 21860 authenticator.cpp:414] Starting authentication session for crammd5-authenticatee(680)@127.0.0.1:34115 I1024 00:41:40.527108 21860 authenticator.cpp:98] Creating new server SASL connection I1024 00:41:40.527177 21860 authenticatee.cpp:213] Received SASL authentication mechanisms: CRAM-MD5 I1024 00:41:40.527189 21860 authenticatee.cpp:239] Attempting to authenticate with mechanism 'CRAM-MD5' I1024 00:41:40.527218 21860 authenticator.cpp:204] Received SASL authentication start I1024 00:41:40.527254 21860 authenticator.cpp:326] Authentication requires more steps I1024 00:41:40.527287 21860 authenticatee.cpp:259] Received SASL authentication step I1024 00:41:40.527318 21860 authenticator.cpp:232] Received SASL authentication step I1024 00:41:40.527331 21860 auxprop.cpp:109] Request to lookup properties for user: 'test-principal' realm: 'ip-172-16-10-34' server FQDN: 'ip-172-16-10-34' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: false I1024 00:41:40.527338 21860 auxprop.cpp:181] Looking up auxiliary property '*userPassword' I1024 00:41:40.527346 21860 auxprop.cpp:181] Looking up auxiliary property '*cmusaslsecretCRAM-MD5' I1024 00:41:40.527354 21860 auxprop.cpp:109] Request to lookup properties for user: 'test-principal' realm: 'ip-172-16-10-34' server FQDN: 'ip-172-16-10-34' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: true I1024 00:41:40.527360 21860 auxprop.cpp:131] Skipping auxiliary property '*userPassword' since SASL_AUXPROP_AUTHZID == true I1024 00:41:40.527366 21860 auxprop.cpp:131] Skipping auxiliary property '*cmusaslsecretCRAM-MD5' since SASL_AUXPROP_AUTHZID == true I1024 00:41:40.527376 21860 authenticator.cpp:318] Authentication success I1024 00:41:40.527410 21860 authenticatee.cpp:299] Authentication success I1024 00:41:40.527443 21860 master.cpp:10626] Successfully authenticated principal 'test-principal' at agent@127.0.0.1:34115 I1024 00:41:40.527462 21860 authenticator.cpp:432] Authentication session cleanup for crammd5-authenticatee(680)@127.0.0.1:34115 I1024 00:41:40.527513 21860 slave.cpp:1543] Successfully authenticated with master master@127.0.0.1:34115 I1024 00:41:40.527583 21860 slave.cpp:1993] Will retry registration in 17.08936ms if necessary I1024 00:41:40.527663 21860 master.cpp:7083] Received register agent message from agent@127.0.0.1:34115 (localhost) I1024 00:41:40.527750 21860 master.cpp:4189] Authorizing agent providing resources 'cpus:2; mem:1024; disk:1024; ports:[31000-32000]' with principal 'test-principal' I1024 00:41:40.527855 21860 master.cpp:7150] Authorized registration of agent at agent@127.0.0.1:34115 (localhost) I1024 00:41:40.527879 21860 master.cpp:7234] Removing old disconnected agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 at agent@127.0.0.1:34115 (localhost) because a registration attempt occurred I1024 00:41:40.527891 21860 master.cpp:11612] Removing agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 at agent@127.0.0.1:34115 (localhost): a new agent registered at the same address I1024 00:41:40.527923 21860 master.cpp:7262] Registering agent at agent@127.0.0.1:34115 (localhost) with id 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 I1024 00:41:40.528008 21860 registrar.cpp:487] Applied 1 operations in 17576ns; attempting to update the registry I1024 00:41:40.528110 21860 registrar.cpp:544] Successfully updated the registry in 0ns I1024 00:41:40.528169 21860 registrar.cpp:487] Applied 1 operations in 32625ns; attempting to update the registry I1024 00:41:40.528250 21864 master.cpp:11654] Removed agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 at agent@127.0.0.1:34115 (localhost): a new agent registered at the same address I1024 00:41:40.528306 21864 master.cpp:2086] Notifying framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 (default) at scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 of lost agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 (localhost) I1024 00:41:40.528419 21864 hierarchical.cpp:1122] Removed all filters for agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 I1024 00:41:40.528430 21864 hierarchical.cpp:998] Removed agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 I1024 00:41:40.528470 21864 sched.cpp:1104] Lost agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0 GMOCK WARNING: Uninteresting mock function call - returning directly. Function call: slaveLost(0x7ffea318c3b0, @0x7f3280147ad8 05e6917e-c84f-4458-a163-ea4f19a9e22e-S0) 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. I1024 00:41:40.528497 21864 sched.cpp:1115] Scheduler::slaveLost took 18882ns I1024 00:41:40.529183 21860 registrar.cpp:544] Successfully updated the registry in 0ns I1024 00:41:40.529237 21860 master.cpp:7310] Admitted agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 at agent@127.0.0.1:34115 (localhost) I1024 00:41:40.529397 21858 hierarchical.cpp:955] Added agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 (localhost) with cpus:2; mem:1024; disk:1024; ports:[31000-32000] (offered or allocated: {}) I1024 00:41:40.529531 21858 hierarchical.cpp:1843] Performed allocation for 1 agents in 86800ns I1024 00:41:40.529646 21858 slave.cpp:1576] Registered with master master@127.0.0.1:34115; given agent ID 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 I1024 00:41:40.529635 21860 master.cpp:7355] Registered agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 at agent@127.0.0.1:34115 (localhost) with cpus:2; mem:1024; disk:1024; ports:[31000-32000] I1024 00:41:40.529767 21860 master.cpp:10409] Sending offers [ 05e6917e-c84f-4458-a163-ea4f19a9e22e-O1 ] to framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 (default) at scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 I1024 00:41:40.529820 21860 task_status_update_manager.cpp:188] Resuming sending task status updates I1024 00:41:40.529834 21858 slave.cpp:1611] Checkpointing SlaveInfo to '/tmp/MasterTest_AgentRestartNoReregisterRateLimit_OzL3uz/meta/slaves/05e6917e-c84f-4458-a163-ea4f19a9e22e-S1/slave.info' ../../src/tests/master_tests.cpp:7872: Failure Mock function called more times than expected - returning directly. Function call: resourceOffers(0x7ffea318c3b0, @0x7f32a910b980 { 160-byte object <58-97 8E-B7 32-7F 00-00 00-00 00-00 00-00 00-00 5F-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 04-00 00-00 04-00 00-00 60-33 03-90 32-7F 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 ... 00-1F 05-90 32-7F 00-00 30-1F 05-90 32-7F 00-00 C0-1F 05-90 32-7F 00-00 D0-33 03-90 32-7F 00-00 C0-FB 05-90 32-7F 00-00 00-00 00-00 00-00 00-00 20-FD 05-90 32-7F 00-00 00-00 00-00 00-00 00-00> }) Expected: to be called once Actual: called twice - over-saturated and active I1024 00:41:40.529989 21860 sched.cpp:934] Scheduler::resourceOffers took 98239ns I1024 00:41:40.530025 21860 status_update_manager_process.hpp:385] Resuming operation status update manager I1024 00:41:40.530119 21858 slave.cpp:1663] Forwarding agent update {"operations":{},"resource_providers":{},"resource_version_uuid":{"value":"SEd6onnHRGK57RzLcdJS3A=="},"slave_id":{"value":"05e6917e-c84f-4458-a163-ea4f19a9e22e-S1"},"update_oversubscribed_resources":false} I1024 00:41:40.530316 21858 master.cpp:8474] Ignoring update on agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 at agent@127.0.0.1:34115 (localhost) as it reports no changes ../../src/tests/master_tests.cpp:7904: Failure Failed to wait 15secs for reregisterSlave I1024 00:41:55.535876 21857 slave.cpp:924] Agent terminating I1024 00:41:55.539957 21864 master.cpp:1411] Framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 (default) at scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 disconnected I1024 00:41:55.539985 21864 master.cpp:3356] Deactivating framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 (default) at scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 I1024 00:41:55.540040 21865 hierarchical.cpp:813] Deactivated framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 I1024 00:41:55.540127 21864 master.cpp:12706] Removing offer 05e6917e-c84f-4458-a163-ea4f19a9e22e-O1 I1024 00:41:55.540149 21864 master.cpp:3333] Disconnecting framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 (default) at scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 I1024 00:41:55.540163 21864 master.cpp:1426] Giving framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 (default) at scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 0ns to failover I1024 00:41:55.540160 21859 hierarchical.cpp:1566] Recovered ports(allocated: *):[31000-32000]; cpus(allocated: *):2; mem(allocated: *):1024; disk(allocated: *):1024 (total: cpus:2; mem:1024; disk:1024; ports:[31000-32000], offered or allocated: {}) on agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 from framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 I1024 00:41:55.540211 21864 master.cpp:1296] Agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 at agent@127.0.0.1:34115 (localhost) disconnected I1024 00:41:55.540222 21864 master.cpp:3391] Disconnecting agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 at agent@127.0.0.1:34115 (localhost) I1024 00:41:55.540238 21864 master.cpp:3410] Deactivating agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 at agent@127.0.0.1:34115 (localhost) I1024 00:41:55.540321 21863 master.cpp:10195] Framework failover timeout, removing framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 (default) at scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 I1024 00:41:55.540336 21863 master.cpp:11197] Removing framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 (default) at scheduler-eaa62e1e-01ef-4596-a08e-531eed150fab@127.0.0.1:34115 I1024 00:41:55.540416 21859 hierarchical.cpp:1146] Agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 deactivated I1024 00:41:55.540436 21859 hierarchical.cpp:1767] Allocation paused I1024 00:41:55.540496 21859 hierarchical.cpp:757] Removed framework 05e6917e-c84f-4458-a163-ea4f19a9e22e-0000 I1024 00:41:55.540513 21859 hierarchical.cpp:1777] Allocation resumed I1024 00:41:55.540851 21865 hierarchical.cpp:1843] Performed allocation for 1 agents in 16253ns I1024 00:41:55.549850 21857 master.cpp:1137] Master terminating I1024 00:41:55.550053 21862 hierarchical.cpp:1122] Removed all filters for agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 I1024 00:41:55.550071 21862 hierarchical.cpp:998] Removed agent 05e6917e-c84f-4458-a163-ea4f19a9e22e-S1 ../../3rdparty/libprocess/include/process/gmock.hpp:504: Failure Actual function call count doesn't match EXPECT_CALL(filter->mock, filter(to, testing::A<const MessageEvent&>()))... Expected args: message matcher (32-byte object <80-A2 E7-DD C0-55 00-00 25-00 00-00 00-00 00-00 25-00 00-00 00-00 00-00 63-00 00-00 FE-7F 00-00>, 1-byte object <80>) Expected: to be called once Actual: never called - unsatisfied and active [ FAILED ] MasterTest.AgentRestartNoReregisterRateLimit (15076 ms) {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)