Project: mesos
Issue MESOS-4615: ContainerLoggerTest.DefaultToSandbox is flaky
Just saw this failure on the ASF CI: {code} [ RUN ] ContainerLoggerTest.DefaultToSandbox I0206 01:25:03.766458 2824 leveldb.cpp:174] Opened db in 72.979786ms I0206 01:25:03.811712 2824 leveldb.cpp:181] Compacted db in 45.162067ms I0206 01:25:03.811810 2824 leveldb.cpp:196] Created db iterator in 26090ns I0206 01:25:03.811828 2824 leveldb.cpp:202] Seeked to beginning of db in 3173ns I0206 01:25:03.811839 2824 leveldb.cpp:271] Iterated through 0 keys in the db in 497ns I0206 01:25:03.811900 2824 replica.cpp:779] Replica recovered with log positions 0 -> 0 with 1 holes and 0 unlearned I0206 01:25:03.812785 2849 recover.cpp:447] Starting replica recovery I0206 01:25:03.813043 2849 recover.cpp:473] Replica is in EMPTY status I0206 01:25:03.814668 2854 replica.cpp:673] Replica in EMPTY status received a broadcasted recover request from (371)@172.17.0.8:37843 I0206 01:25:03.815210 2849 recover.cpp:193] Received a recover response from a replica in EMPTY status I0206 01:25:03.815732 2854 recover.cpp:564] Updating replica status to STARTING I0206 01:25:03.819664 2857 master.cpp:376] Master 914b62f9-95f6-4c57-a7e3-9b06e2c1c8de (74ef606c4063) started on 172.17.0.8:37843 I0206 01:25:03.819703 2857 master.cpp:378] Flags at startup: --acls="" --allocation_interval="1secs" --allocator="HierarchicalDRF" --authenticate="true" --authenticate_http="true" --authenticate_slaves="true" --authenticators="crammd5" --authorizers="local" --credentials="/tmp/h5vu5I/credentials" --framework_sorter="drf" --help="false" --hostname_lookup="true" --http_authenticators="basic" --initialize_driver_logging="true" --log_auto_initialize="true" --logbufsecs="0" --logging_level="INFO" --max_completed_frameworks="50" --max_completed_tasks_per_framework="1000" --max_slave_ping_timeouts="5" --quiet="false" --recovery_slave_removal_limit="100%" --registry="replicated_log" --registry_fetch_timeout="1mins" --registry_store_timeout="100secs" --registry_strict="true" --root_submissions="true" --slave_ping_timeout="15secs" --slave_reregister_timeout="10mins" --user_sorter="drf" --version="false" --webui_dir="/mesos/mesos-0.28.0/_inst/share/mesos/webui" --work_dir="/tmp/h5vu5I/master" --zk_session_timeout="10secs" I0206 01:25:03.820241 2857 master.cpp:423] Master only allowing authenticated frameworks to register I0206 01:25:03.820257 2857 master.cpp:428] Master only allowing authenticated slaves to register I0206 01:25:03.820269 2857 credentials.hpp:35] Loading credentials for authentication from '/tmp/h5vu5I/credentials' I0206 01:25:03.821110 2857 master.cpp:468] Using default 'crammd5' authenticator I0206 01:25:03.821311 2857 master.cpp:537] Using default 'basic' HTTP authenticator I0206 01:25:03.821636 2857 master.cpp:571] Authorization enabled I0206 01:25:03.821979 2846 hierarchical.cpp:144] Initialized hierarchical allocator process I0206 01:25:03.822057 2846 whitelist_watcher.cpp:77] No whitelist given I0206 01:25:03.825460 2847 master.cpp:1712] The newly elected leader is master@172.17.0.8:37843 with id 914b62f9-95f6-4c57-a7e3-9b06e2c1c8de I0206 01:25:03.825512 2847 master.cpp:1725] Elected as the leading master! I0206 01:25:03.825533 2847 master.cpp:1470] Recovering from registrar I0206 01:25:03.825835 2847 registrar.cpp:307] Recovering registrar I0206 01:25:03.848212 2854 leveldb.cpp:304] Persisting metadata (8 bytes) to leveldb took 32.226093ms I0206 01:25:03.848299 2854 replica.cpp:320] Persisted replica status to STARTING I0206 01:25:03.848702 2854 recover.cpp:473] Replica is in STARTING status I0206 01:25:03.850728 2858 replica.cpp:673] Replica in STARTING status received a broadcasted recover request from (373)@172.17.0.8:37843 I0206 01:25:03.851230 2854 recover.cpp:193] Received a recover response from a replica in STARTING status I0206 01:25:03.852018 2854 recover.cpp:564] Updating replica status to VOTING I0206 01:25:03.881681 2854 leveldb.cpp:304] Persisting metadata (8 bytes) to leveldb took 29.184163ms I0206 01:25:03.881772 2854 replica.cpp:320] Persisted replica status to VOTING I0206 01:25:03.882058 2854 recover.cpp:578] Successfully joined the Paxos group I0206 01:25:03.882258 2854 recover.cpp:462] Recover process terminated I0206 01:25:03.883076 2854 log.cpp:659] Attempting to start the writer I0206 01:25:03.885040 2854 replica.cpp:493] Replica received implicit promise request from (374)@172.17.0.8:37843 with proposal 1 I0206 01:25:03.915132 2854 leveldb.cpp:304] Persisting metadata (8 bytes) to leveldb took 29.980589ms I0206 01:25:03.915215 2854 replica.cpp:342] Persisted promised to 1 I0206 01:25:03.916038 2856 coordinator.cpp:238] Coordinator attempting to fill missing positions I0206 01:25:03.917659 2856 replica.cpp:388] Replica received explicit promise request from (375)@172.17.0.8:37843 for position 0 with proposal 2 I0206 01:25:03.948698 2856 leveldb.cpp:341] Persisting action (8 bytes) to leveldb took 30.974607ms I0206 01:25:03.948786 2856 replica.cpp:712] Persisted action at 0 I0206 01:25:03.950920 2849 replica.cpp:537] Replica received write request for position 0 from (376)@172.17.0.8:37843 I0206 01:25:03.951011 2849 leveldb.cpp:436] Reading position from leveldb took 44263ns I0206 01:25:03.982026 2849 leveldb.cpp:341] Persisting action (14 bytes) to leveldb took 30.947321ms I0206 01:25:03.982225 2849 replica.cpp:712] Persisted action at 0 I0206 01:25:03.983867 2849 replica.cpp:691] Replica received learned notice for position 0 from @0.0.0.0:0 I0206 01:25:04.015499 2849 leveldb.cpp:341] Persisting action (16 bytes) to leveldb took 30.957888ms I0206 01:25:04.015591 2849 replica.cpp:712] Persisted action at 0 I0206 01:25:04.015682 2849 replica.cpp:697] Replica learned NOP action at position 0 I0206 01:25:04.016666 2849 log.cpp:675] Writer started with ending position 0 I0206 01:25:04.017881 2855 leveldb.cpp:436] Reading position from leveldb took 56779ns I0206 01:25:04.018934 2852 registrar.cpp:340] Successfully fetched the registry (0B) in 193.048064ms I0206 01:25:04.019076 2852 registrar.cpp:439] Applied 1 operations in 38180ns; attempting to update the 'registry' I0206 01:25:04.020100 2844 log.cpp:683] Attempting to append 170 bytes to the log I0206 01:25:04.020288 2855 coordinator.cpp:348] Coordinator attempting to write APPEND action at position 1 I0206 01:25:04.021323 2844 replica.cpp:537] Replica received write request for position 1 from (377)@172.17.0.8:37843 I0206 01:25:04.054726 2844 leveldb.cpp:341] Persisting action (189 bytes) to leveldb took 33.309419ms I0206 01:25:04.054818 2844 replica.cpp:712] Persisted action at 1 I0206 01:25:04.055933 2844 replica.cpp:691] Replica received learned notice for position 1 from @0.0.0.0:0 I0206 01:25:04.088142 2844 leveldb.cpp:341] Persisting action (191 bytes) to leveldb took 32.116643ms I0206 01:25:04.088230 2844 replica.cpp:712] Persisted action at 1 I0206 01:25:04.088265 2844 replica.cpp:697] Replica learned APPEND action at position 1 I0206 01:25:04.090070 2856 registrar.cpp:484] Successfully updated the 'registry' in 70.90816ms I0206 01:25:04.090338 2851 log.cpp:702] Attempting to truncate the log to 1 I0206 01:25:04.090358 2856 registrar.cpp:370] Successfully recovered registrar I0206 01:25:04.090507 2847 coordinator.cpp:348] Coordinator attempting to write TRUNCATE action at position 2 I0206 01:25:04.090867 2858 master.cpp:1522] Recovered 0 slaves from the Registry (131B) ; allowing 10mins for slaves to re-register I0206 01:25:04.091449 2858 hierarchical.cpp:171] Skipping recovery of hierarchical allocator: nothing to recover I0206 01:25:04.092280 2857 replica.cpp:537] Replica received write request for position 2 from (378)@172.17.0.8:37843 I0206 01:25:04.125702 2857 leveldb.cpp:341] Persisting action (16 bytes) to leveldb took 33.192265ms I0206 01:25:04.125804 2857 replica.cpp:712] Persisted action at 2 I0206 01:25:04.127400 2857 replica.cpp:691] Replica received learned notice for position 2 from @0.0.0.0:0 I0206 01:25:04.157727 2857 leveldb.cpp:341] Persisting action (18 bytes) to leveldb took 30.268594ms I0206 01:25:04.157905 2857 leveldb.cpp:399] Deleting ~1 keys from leveldb took 88436ns I0206 01:25:04.157941 2857 replica.cpp:712] Persisted action at 2 I0206 01:25:04.157984 2857 replica.cpp:697] Replica learned TRUNCATE action at position 2 I0206 01:25:04.166174 2824 containerizer.cpp:149] Using isolation: posix/cpu,posix/mem,filesystem/posix W0206 01:25:04.166954 2824 backend.cpp:48] Failed to create 'bind' backend: BindBackend requires root privileges I0206 01:25:04.172008 2844 slave.cpp:193] Slave started on 9)@172.17.0.8:37843 I0206 01:25:04.172046 2844 slave.cpp:194] Flags at startup: --appc_store_dir="/tmp/mesos/store/appc" --authenticatee="crammd5" --cgroups_cpu_enable_pids_and_tids_count="false" --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/ContainerLoggerTest_DefaultToSandbox_FMaKSw/credential" --default_role="*" --disk_watch_interval="1mins" --docker="docker" --docker_auth_server="https://auth.docker.io" --docker_kill_orphans="true" --docker_puller_timeout="60" --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/mesos/store/docker" --enforce_container_disk_quota="false" --executor_registration_timeout="1mins" --executor_shutdown_grace_period="5secs" --fetcher_cache_dir="/tmp/ContainerLoggerTest_DefaultToSandbox_FMaKSw/fetch" --fetcher_cache_size="2GB" --frameworks_home="" --gc_delay="1weeks" --gc_disk_headroom="0.1" --hadoop_home="" --help="false" --hostname_lookup="true" --image_provisioner_backend="copy" --initialize_driver_logging="true" --isolation="posix/cpu,posix/mem" --launcher_dir="/mesos/mesos-0.28.0/_build/src" --logbufsecs="0" --logging_level="INFO" --oversubscribed_resources_interval="15secs" --perf_duration="10secs" --perf_interval="1mins" --qos_correction_interval_min="0ns" --quiet="false" --recover="reconnect" --recovery_timeout="15mins" --registration_backoff_factor="10ms" --resources="cpus:2;mem:1024;disk:1024;ports:[31000-32000]" --revocable_cpu_low_priority="true" --sandbox_directory="/mnt/mesos/sandbox" --strict="true" --switch_user="true" --systemd_runtime_directory="/run/systemd/system" --version="false" --work_dir="/tmp/ContainerLoggerTest_DefaultToSandbox_FMaKSw" I0206 01:25:04.172569 2844 credentials.hpp:83] Loading credential for authentication from '/tmp/ContainerLoggerTest_DefaultToSandbox_FMaKSw/credential' I0206 01:25:04.172886 2844 slave.cpp:324] Slave using credential for: test-principal I0206 01:25:04.173141 2844 resources.cpp:564] Parsing resources as JSON failed: cpus:2;mem:1024;disk:1024;ports:[31000-32000] Trying semicolon-delimited string format instead I0206 01:25:04.173620 2844 slave.cpp:464] Slave resources: cpus(*):2; mem(*):1024; disk(*):1024; ports(*):[31000-32000] I0206 01:25:04.173686 2844 slave.cpp:472] Slave attributes: [ ] I0206 01:25:04.173702 2844 slave.cpp:477] Slave hostname: 74ef606c4063 I0206 01:25:04.174816 2847 state.cpp:58] Recovering state from '/tmp/ContainerLoggerTest_DefaultToSandbox_FMaKSw/meta' I0206 01:25:04.175441 2847 status_update_manager.cpp:200] Recovering status update manager I0206 01:25:04.175678 2858 containerizer.cpp:397] Recovering containerizer I0206 01:25:04.177573 2858 provisioner.cpp:245] Provisioner recovery complete I0206 01:25:04.178231 2847 slave.cpp:4496] Finished recovery I0206 01:25:04.178834 2847 slave.cpp:4668] Querying resource estimator for oversubscribable resources I0206 01:25:04.179405 2847 slave.cpp:796] New master detected at master@172.17.0.8:37843 I0206 01:25:04.179500 2847 slave.cpp:859] Authenticating with master master@172.17.0.8:37843 I0206 01:25:04.179525 2847 slave.cpp:864] Using default CRAM-MD5 authenticatee I0206 01:25:04.179656 2858 status_update_manager.cpp:174] Pausing sending status updates I0206 01:25:04.179798 2847 slave.cpp:832] Detecting new master I0206 01:25:04.179891 2852 authenticatee.cpp:121] Creating new client SASL connection I0206 01:25:04.179916 2847 slave.cpp:4682] Received oversubscribable resources from the resource estimator I0206 01:25:04.180286 2847 master.cpp:5523] Authenticating slave(9)@172.17.0.8:37843 I0206 01:25:04.180569 2847 authenticator.cpp:413] Starting authentication session for crammd5_authenticatee(32)@172.17.0.8:37843 I0206 01:25:04.181000 2847 authenticator.cpp:98] Creating new server SASL connection I0206 01:25:04.181315 2847 authenticatee.cpp:212] Received SASL authentication mechanisms: CRAM-MD5 I0206 01:25:04.181387 2847 authenticatee.cpp:238] Attempting to authenticate with mechanism 'CRAM-MD5' I0206 01:25:04.181562 2847 authenticator.cpp:203] Received SASL authentication start I0206 01:25:04.181648 2847 authenticator.cpp:325] Authentication requires more steps I0206 01:25:04.181843 2847 authenticatee.cpp:258] Received SASL authentication step I0206 01:25:04.182034 2853 authenticator.cpp:231] Received SASL authentication step I0206 01:25:04.182071 2853 auxprop.cpp:107] Request to lookup properties for user: 'test-principal' realm: '74ef606c4063' server FQDN: '74ef606c4063' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: false I0206 01:25:04.182093 2853 auxprop.cpp:179] Looking up auxiliary property '*userPassword' I0206 01:25:04.182145 2853 auxprop.cpp:179] Looking up auxiliary property '*cmusaslsecretCRAM-MD5' I0206 01:25:04.182173 2853 auxprop.cpp:107] Request to lookup properties for user: 'test-principal' realm: '74ef606c4063' server FQDN: '74ef606c4063' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: true I0206 01:25:04.182185 2853 auxprop.cpp:129] Skipping auxiliary property '*userPassword' since SASL_AUXPROP_AUTHZID == true I0206 01:25:04.182193 2853 auxprop.cpp:129] Skipping auxiliary property '*cmusaslsecretCRAM-MD5' since SASL_AUXPROP_AUTHZID == true I0206 01:25:04.182211 2853 authenticator.cpp:317] Authentication success I0206 01:25:04.182333 2849 authenticatee.cpp:298] Authentication success I0206 01:25:04.182422 2853 master.cpp:5553] Successfully authenticated principal 'test-principal' at slave(9)@172.17.0.8:37843 I0206 01:25:04.182510 2853 authenticator.cpp:431] Authentication session cleanup for crammd5_authenticatee(32)@172.17.0.8:37843 I0206 01:25:04.182945 2849 slave.cpp:927] Successfully authenticated with master master@172.17.0.8:37843 I0206 01:25:04.183178 2849 slave.cpp:1321] Will retry registration in 9.87937ms if necessary I0206 01:25:04.183466 2852 master.cpp:4237] Registering slave at slave(9)@172.17.0.8:37843 (74ef606c4063) with id 914b62f9-95f6-4c57-a7e3-9b06e2c1c8de-S0 I0206 01:25:04.184039 2845 registrar.cpp:439] Applied 1 operations in 89453ns; attempting to update the 'registry' I0206 01:25:04.185288 2856 log.cpp:683] Attempting to append 339 bytes to the log I0206 01:25:04.185672 2850 coordinator.cpp:348] Coordinator attempting to write APPEND action at position 3 I0206 01:25:04.186674 2846 replica.cpp:537] Replica received write request for position 3 from (392)@172.17.0.8:37843 I0206 01:25:04.195863 2856 slave.cpp:1321] Will retry registration in 11.038094ms if necessary I0206 01:25:04.196233 2856 master.cpp:4225] Ignoring register slave message from slave(9)@172.17.0.8:37843 (74ef606c4063) as admission is already in progress I0206 01:25:04.208094 2856 slave.cpp:1321] Will retry registration in 27.881223ms if necessary I0206 01:25:04.208472 2856 master.cpp:4225] Ignoring register slave message from slave(9)@172.17.0.8:37843 (74ef606c4063) as admission is already in progress I0206 01:25:04.216698 2846 leveldb.cpp:341] Persisting action (358 bytes) to leveldb took 29.961291ms I0206 01:25:04.216789 2846 replica.cpp:712] Persisted action at 3 I0206 01:25:04.218246 2845 replica.cpp:691] Replica received learned notice for position 3 from @0.0.0.0:0 I0206 01:25:04.237861 2846 slave.cpp:1321] Will retry registration in 1.006941ms if necessary I0206 01:25:04.238221 2846 master.cpp:4225] Ignoring register slave message from slave(9)@172.17.0.8:37843 (74ef606c4063) as admission is already in progress I0206 01:25:04.239858 2856 slave.cpp:1321] Will retry registration in 167.305686ms if necessary I0206 01:25:04.240044 2856 master.cpp:4225] Ignoring register slave message from slave(9)@172.17.0.8:37843 (74ef606c4063) as admission is already in progress I0206 01:25:04.241482 2845 leveldb.cpp:341] Persisting action (360 bytes) to leveldb took 23.193162ms I0206 01:25:04.241524 2845 replica.cpp:712] Persisted action at 3 I0206 01:25:04.241557 2845 replica.cpp:697] Replica learned APPEND action at position 3 I0206 01:25:04.243746 2844 registrar.cpp:484] Successfully updated the 'registry' in 59.587072ms I0206 01:25:04.244210 2857 log.cpp:702] Attempting to truncate the log to 3 I0206 01:25:04.244344 2845 coordinator.cpp:348] Coordinator attempting to write TRUNCATE action at position 4 I0206 01:25:04.244597 2856 master.cpp:4305] Registered slave 914b62f9-95f6-4c57-a7e3-9b06e2c1c8de-S0 at slave(9)@172.17.0.8:37843 (74ef606c4063) with cpus(*):2; mem(*):1024; disk(*):1024; ports(*):[31000-32000] I0206 01:25:04.244746 2843 slave.cpp:3436] Received ping from slave-observer(8)@172.17.0.8:37843 I0206 01:25:04.244976 2845 hierarchical.cpp:473] Added slave 914b62f9-95f6-4c57-a7e3-9b06e2c1c8de-S0 (74ef606c4063) with cpus(*):2; mem(*):1024; disk(*):1024; ports(*):[31000-32000] (allocated: ) I0206 01:25:04.245072 2843 slave.cpp:971] Registered with master master@172.17.0.8:37843; given slave ID 914b62f9-95f6-4c57-a7e3-9b06e2c1c8de-S0 I0206 01:25:04.245121 2843 fetcher.cpp:81] Clearing fetcher cache I0206 01:25:04.245146 2845 hierarchical.cpp:1403] No resources available to allocate! I0206 01:25:04.245178 2845 hierarchical.cpp:1116] Performed allocation for slave 914b62f9-95f6-4c57-a7e3-9b06e2c1c8de-S0 in 159744ns I0206 01:25:04.245465 2846 status_update_manager.cpp:181] Resuming sending status updates I0206 01:25:04.245776 2843 slave.cpp:994] Checkpointing SlaveInfo to '/tmp/ContainerLoggerTest_DefaultToSandbox_FMaKSw/meta/slaves/914b62f9-95f6-4c57-a7e3-9b06e2c1c8de-S0/slave.info' I0206 01:25:04.245745 2846 replica.cpp:537] Replica received write request for position 4 from (393)@172.17.0.8:37843 I0206 01:25:04.246273 2843 slave.cpp:1030] Forwarding total oversubscribed resources I0206 01:25:04.246507 2850 master.cpp:4646] Received update of slave 914b62f9-95f6-4c57-a7e3-9b06e2c1c8de-S0 at slave(9)@172.17.0.8:37843 (74ef606c4063) with total oversubscribed resources I0206 01:25:04.247180 2824 sched.cpp:222] Version: 0.28.0 I0206 01:25:04.247155 2850 hierarchical.cpp:531] Slave 914b62f9-95f6-4c57-a7e3-9b06e2c1c8de-S0 (74ef606c4063) updated with oversubscribed resources (total: cpus(*):2; mem(*):1024; disk(*):1024; ports(*):[31000-32000], allocated: ) I0206 01:25:04.247357 2850 hierarchical.cpp:1403] No resources available to allocate! I0206 01:25:04.247406 2850 hierarchical.cpp:1116] Performed allocation for slave 914b62f9-95f6-4c57-a7e3-9b06e2c1c8de-S0 in 183250ns I0206 01:25:04.247938 2854 sched.cpp:326] New master detected at master@172.17.0.8:37843 I0206 01:25:04.248157 2854 sched.cpp:382] Authenticating with master master@172.17.0.8:37843 I0206 01:25:04.248265 2854 sched.cpp:389] Using default CRAM-MD5 authenticatee I0206 01:25:04.248769 2854 authenticatee.cpp:121] Creating new client SASL connection I0206 01:25:04.249311 2854 master.cpp:5523] Authenticating scheduler-f50aad75-78d0-4d9f-b1a4-488d5ab932d6@172.17.0.8:37843 I0206 01:25:04.249646 2854 authenticator.cpp:413] Starting authentication sess...
Story points: 1