Project: mesos
Issue MESOS-5844: PersistentVolumeEndpointsTest.OfferCreateThenEndpointRemove test is flaky
Observed on ASF CI: https://builds.apache.org/job/Mesos/BUILDTOOL=autotools,COMPILER=gcc,CONFIGURATION=--verbose,ENVIRONMENT=GLOG_v=1%20MESOS_VERBOSE=1,OS=ubuntu%3A14.04,label_exp=(docker%7C%7CHadoop)&&(!ubuntu-us1)&&(!ubuntu-6)/2497/changes {code} [ RUN ] PersistentVolumeEndpointsTest.OfferCreateThenEndpointRemove I0713 18:43:55.968503 28220 cluster.cpp:155] Creating default 'local' authorizer I0713 18:43:56.082345 28220 leveldb.cpp:174] Opened db in 113.403661ms I0713 18:43:56.131445 28220 leveldb.cpp:181] Compacted db in 49.034774ms I0713 18:43:56.131533 28220 leveldb.cpp:196] Created db iterator in 28012ns I0713 18:43:56.131552 28220 leveldb.cpp:202] Seeked to beginning of db in 3046ns I0713 18:43:56.131564 28220 leveldb.cpp:271] Iterated through 0 keys in the db in 255ns I0713 18:43:56.131614 28220 replica.cpp:779] Replica recovered with log positions 0 -> 0 with 1 holes and 0 unlearned I0713 18:43:56.134064 28246 recover.cpp:451] Starting replica recovery I0713 18:43:56.134627 28246 recover.cpp:477] Replica is in EMPTY status I0713 18:43:56.136396 28252 replica.cpp:673] Replica in EMPTY status received a broadcasted recover request from (9553)@172.17.0.8:35418 I0713 18:43:56.136759 28252 recover.cpp:197] Received a recover response from a replica in EMPTY status I0713 18:43:56.137676 28246 recover.cpp:568] Updating replica status to STARTING I0713 18:43:56.148720 28242 master.cpp:382] Master 2258d072-b0c9-4c40-874c-6cf933ee345a (500c3e866abe) started on 172.17.0.8:35418 I0713 18:43:56.148759 28242 master.cpp:384] Flags at startup: --acls="" --agent_ping_timeout="15secs" --agent_reregister_timeout="10mins" --allocation_interval="50ms" --allocator="HierarchicalDRF" --authenticate_agents="true" --authenticate_frameworks="true" --authenticate_http="true" --authenticate_http_frameworks="true" --authenticators="crammd5" --authorizers="local" --credentials="/tmp/LrwRl4/credentials" --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" --quiet="false" --recovery_agent_removal_limit="100%" --registry="replicated_log" --registry_fetch_timeout="1mins" --registry_store_timeout="100secs" --registry_strict="true" --roles="role1" --root_submissions="true" --user_sorter="drf" --version="false" --webui_dir="/mesos/mesos-1.1.0/_inst/share/mesos/webui" --work_dir="/tmp/LrwRl4/master" --zk_session_timeout="10secs" I0713 18:43:56.149247 28242 master.cpp:434] Master only allowing authenticated frameworks to register I0713 18:43:56.149265 28242 master.cpp:448] Master only allowing authenticated agents to register I0713 18:43:56.149273 28242 master.cpp:461] Master only allowing authenticated HTTP frameworks to register I0713 18:43:56.149283 28242 credentials.hpp:37] Loading credentials for authentication from '/tmp/LrwRl4/credentials' I0713 18:43:56.149780 28242 master.cpp:506] Using default 'crammd5' authenticator I0713 18:43:56.149940 28242 master.cpp:578] Using default 'basic' HTTP authenticator I0713 18:43:56.150091 28242 master.cpp:658] Using default 'basic' HTTP framework authenticator I0713 18:43:56.150209 28242 master.cpp:705] Authorization enabled W0713 18:43:56.150233 28242 master.cpp:768] The '--roles' flag is deprecated. This flag will be removed in the future. See the Mesos 0.27 upgrade notes for more information I0713 18:43:56.150760 28240 hierarchical.cpp:151] Initialized hierarchical allocator process I0713 18:43:56.151018 28249 whitelist_watcher.cpp:77] No whitelist given I0713 18:43:56.155668 28242 master.cpp:1973] The newly elected leader is master@172.17.0.8:35418 with id 2258d072-b0c9-4c40-874c-6cf933ee345a I0713 18:43:56.155781 28242 master.cpp:1986] Elected as the leading master! I0713 18:43:56.155848 28242 master.cpp:1673] Recovering from registrar I0713 18:43:56.156065 28254 registrar.cpp:332] Recovering registrar I0713 18:43:56.201568 28245 hierarchical.cpp:1537] No allocations performed I0713 18:43:56.201666 28245 hierarchical.cpp:1172] Performed allocation for 0 agents in 167962ns I0713 18:43:56.218626 28246 leveldb.cpp:304] Persisting metadata (8 bytes) to leveldb took 80.746657ms I0713 18:43:56.218705 28246 replica.cpp:320] Persisted replica status to STARTING I0713 18:43:56.219219 28246 recover.cpp:477] Replica is in STARTING status I0713 18:43:56.221391 28246 replica.cpp:673] Replica in STARTING status received a broadcasted recover request from (9556)@172.17.0.8:35418 I0713 18:43:56.221869 28253 recover.cpp:197] Received a recover response from a replica in STARTING status I0713 18:43:56.222760 28249 recover.cpp:568] Updating replica status to VOTING I0713 18:43:56.252303 28254 hierarchical.cpp:1537] No allocations performed I0713 18:43:56.252404 28254 hierarchical.cpp:1172] Performed allocation for 0 agents in 167038ns I0713 18:43:56.270256 28249 leveldb.cpp:304] Persisting metadata (8 bytes) to leveldb took 47.316392ms I0713 18:43:56.270387 28249 replica.cpp:320] Persisted replica status to VOTING I0713 18:43:56.270700 28250 recover.cpp:582] Successfully joined the Paxos group I0713 18:43:56.271121 28250 recover.cpp:466] Recover process terminated I0713 18:43:56.271503 28248 log.cpp:553] Attempting to start the writer I0713 18:43:56.273140 28240 replica.cpp:493] Replica received implicit promise request from (9557)@172.17.0.8:35418 with proposal 1 I0713 18:43:56.303086 28254 hierarchical.cpp:1537] No allocations performed I0713 18:43:56.303175 28254 hierarchical.cpp:1172] Performed allocation for 0 agents in 155905ns I0713 18:43:56.312978 28240 leveldb.cpp:304] Persisting metadata (8 bytes) to leveldb took 39.718643ms I0713 18:43:56.313405 28240 replica.cpp:342] Persisted promised to 1 I0713 18:43:56.314775 28245 coordinator.cpp:238] Coordinator attempting to fill missing positions I0713 18:43:56.316547 28250 replica.cpp:388] Replica received explicit promise request from (9558)@172.17.0.8:35418 for position 0 with proposal 2 I0713 18:43:56.354794 28239 hierarchical.cpp:1537] No allocations performed I0713 18:43:56.354898 28239 hierarchical.cpp:1172] Performed allocation for 0 agents in 178033ns I0713 18:43:56.363484 28250 leveldb.cpp:341] Persisting action (8 bytes) to leveldb took 46.846904ms I0713 18:43:56.363585 28250 replica.cpp:712] Persisted action at 0 I0713 18:43:56.365622 28250 replica.cpp:537] Replica received write request for position 0 from (9559)@172.17.0.8:35418 I0713 18:43:56.365727 28250 leveldb.cpp:436] Reading position from leveldb took 45172ns I0713 18:43:56.406314 28252 hierarchical.cpp:1537] No allocations performed I0713 18:43:56.406421 28252 hierarchical.cpp:1172] Performed allocation for 0 agents in 177001ns I0713 18:43:56.421867 28250 leveldb.cpp:341] Persisting action (14 bytes) to leveldb took 56.06514ms I0713 18:43:56.421968 28250 replica.cpp:712] Persisted action at 0 I0713 18:43:56.423286 28254 replica.cpp:691] Replica received learned notice for position 0 from @0.0.0.0:0 I0713 18:43:56.458665 28250 hierarchical.cpp:1537] No allocations performed I0713 18:43:56.458799 28250 hierarchical.cpp:1172] Performed allocation for 0 agents in 250863ns I0713 18:43:56.470486 28254 leveldb.cpp:341] Persisting action (16 bytes) to leveldb took 47.13918ms I0713 18:43:56.470552 28254 replica.cpp:712] Persisted action at 0 I0713 18:43:56.470584 28254 replica.cpp:697] Replica learned NOP action at position 0 I0713 18:43:56.471782 28247 log.cpp:569] Writer started with ending position 0 I0713 18:43:56.475908 28253 leveldb.cpp:436] Reading position from leveldb took 79764ns I0713 18:43:56.479058 28247 registrar.cpp:365] Successfully fetched the registry (0B) in 322.939904ms I0713 18:43:56.479388 28247 registrar.cpp:464] Applied 1 operations in 50643ns; attempting to update the 'registry' I0713 18:43:56.483093 28247 log.cpp:577] Attempting to append 168 bytes to the log I0713 18:43:56.483269 28249 coordinator.cpp:348] Coordinator attempting to write APPEND action at position 1 I0713 18:43:56.484673 28245 replica.cpp:537] Replica received write request for position 1 from (9560)@172.17.0.8:35418 I0713 18:43:56.509866 28239 hierarchical.cpp:1537] No allocations performed I0713 18:43:56.509959 28239 hierarchical.cpp:1172] Performed allocation for 0 agents in 157789ns I0713 18:43:56.512147 28245 leveldb.cpp:341] Persisting action (187 bytes) to leveldb took 27.358967ms I0713 18:43:56.512193 28245 replica.cpp:712] Persisted action at 1 I0713 18:43:56.513278 28250 replica.cpp:691] Replica received learned notice for position 1 from @0.0.0.0:0 I0713 18:43:56.537894 28250 leveldb.cpp:341] Persisting action (189 bytes) to leveldb took 24.568093ms I0713 18:43:56.537973 28250 replica.cpp:712] Persisted action at 1 I0713 18:43:56.538008 28250 replica.cpp:697] Replica learned APPEND action at position 1 I0713 18:43:56.539737 28252 registrar.cpp:509] Successfully updated the 'registry' in 60.26496ms I0713 18:43:56.539949 28252 registrar.cpp:395] Successfully recovered registrar I0713 18:43:56.540544 28252 master.cpp:1781] Recovered 0 agents from the Registry (129B) ; allowing 10mins for agents to re-register I0713 18:43:56.540832 28250 hierarchical.cpp:178] Skipping recovery of hierarchical allocator: nothing to recover I0713 18:43:56.541285 28251 log.cpp:596] Attempting to truncate the log to 1 I0713 18:43:56.541637 28248 coordinator.cpp:348] Coordinator attempting to write TRUNCATE action at position 2 I0713 18:43:56.542763 28240 replica.cpp:537] Replica received write request for position 2 from (9561)@172.17.0.8:35418 I0713 18:43:56.571691 28240 leveldb.cpp:341] Persisting action (16 bytes) to leveldb took 28.798341ms I0713 18:43:56.571889 28240 replica.cpp:712] Persisted action at 2 I0713 18:43:56.573218 28240 replica.cpp:691] Replica received learned notice for position 2 from @0.0.0.0:0 I0713 18:43:56.620200 28240 leveldb.cpp:341] Persisting action (18 bytes) to leveldb took 46.927607ms I0713 18:43:56.620338 28240 leveldb.cpp:399] Deleting ~1 keys from leveldb took 59898ns I0713 18:43:56.620512 28240 replica.cpp:712] Persisted action at 2 I0713 18:43:56.620630 28240 replica.cpp:697] Replica learned TRUNCATE action at position 2 I0713 18:43:56.624091 28249 hierarchical.cpp:1537] No allocations performed I0713 18:43:56.624169 28249 hierarchical.cpp:1172] Performed allocation for 0 agents in 140818ns I0713 18:43:56.628180 28220 containerizer.cpp:196] Using isolation: posix/cpu,posix/mem,filesystem/posix,network/cni W0713 18:43:56.629341 28220 backend.cpp:75] Failed to create 'aufs' backend: AufsBackend requires root privileges, but is running as user mesos W0713 18:43:56.629616 28220 backend.cpp:75] Failed to create 'bind' backend: BindBackend requires root privileges I0713 18:43:56.631988 28220 cluster.cpp:432] Creating default 'local' authorizer I0713 18:43:56.635001 28243 slave.cpp:205] Agent started on 251)@172.17.0.8:35418 I0713 18:43:56.635308 28220 resources.cpp:572] Parsing resources as JSON failed: disk:512 Trying semicolon-delimited string format instead I0713 18:43:56.635026 28243 slave.cpp:206] Flags at startup: --acls="" --appc_simple_discovery_uri_prefix="http://" --appc_store_dir="/tmp/mesos/store/appc" --authenticate_http="true" --authenticatee="crammd5" --authentication_backoff_factor="1secs" --authorizer="local" --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/PersistentVolumeEndpointsTest_OfferCreateThenEndpointRemove_gqStXQ/credential" --default_role="*" --disk_watch_interval="1mins" --docker="docker" --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/mesos/store/docker" --docker_volume_checkpoint_dir="/var/run/mesos/isolators/docker/volume" --enforce_container_disk_quota="false" --executor_registration_timeout="1mins" --executor_shutdown_grace_period="5secs" --fetcher_cache_dir="/tmp/PersistentVolumeEndpointsTest_OfferCreateThenEndpointRemove_gqStXQ/fetch" --fetcher_cache_size="2GB" --frameworks_home="" --gc_delay="1weeks" --gc_disk_headroom="0.1" --hadoop_home="" --help="false" --hostname_lookup="true" --http_authenticators="basic" --http_command_executor="false" --http_credentials="/tmp/PersistentVolumeEndpointsTest_OfferCreateThenEndpointRemove_gqStXQ/http_credentials" --image_provisioner_backend="copy" --initialize_driver_logging="true" --isolation="posix/cpu,posix/mem" --launcher_dir="/mesos/mesos-1.1.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="disk(*):1024" --revocable_cpu_low_priority="true" --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/PersistentVolumeEndpointsTest_OfferCreateThenEndpointRemove_gqStXQ" I0713 18:43:56.635709 28243 credentials.hpp:86] Loading credential for authentication from '/tmp/PersistentVolumeEndpointsTest_OfferCreateThenEndpointRemove_gqStXQ/credential' I0713 18:43:56.635892 28243 slave.cpp:343] Agent using credential for: test-principal I0713 18:43:56.635924 28243 credentials.hpp:37] Loading credentials for authentication from '/tmp/PersistentVolumeEndpointsTest_OfferCreateThenEndpointRemove_gqStXQ/http_credentials' I0713 18:43:56.636272 28243 slave.cpp:395] Using default 'basic' HTTP authenticator I0713 18:43:56.636615 28243 resources.cpp:572] Parsing resources as JSON failed: disk(*):1024 Trying semicolon-delimited string format instead I0713 18:43:56.636878 28243 resources.cpp:572] Parsing resources as JSON failed: disk(*):1024 Trying semicolon-delimited string format instead I0713 18:43:56.637318 28243 slave.cpp:594] Agent resources: disk(*):1024; cpus(*):16; mem(*):47270; ports(*):[31000-32000] I0713 18:43:56.637859 28243 slave.cpp:602] Agent attributes: [ ] I0713 18:43:56.638073 28220 sched.cpp:226] Version: 1.1.0 I0713 18:43:56.638074 28243 slave.cpp:607] Agent hostname: 500c3e866abe I0713 18:43:56.640148 28253 sched.cpp:330] New master detected at master@172.17.0.8:35418 I0713 18:43:56.640650 28253 sched.cpp:396] Authenticating with master master@172.17.0.8:35418 I0713 18:43:56.640738 28253 sched.cpp:403] Using default CRAM-MD5 authenticatee I0713 18:43:56.640801 28239 state.cpp:57] Recovering state from '/tmp/PersistentVolumeEndpointsTest_OfferCreateThenEndpointRemove_gqStXQ/meta' I0713 18:43:56.640976 28243 authenticatee.cpp:121] Creating new client SASL connection I0713 18:43:56.641319 28253 status_update_manager.cpp:200] Recovering status update manager I0713 18:43:56.641477 28243 master.cpp:6006] Authenticating scheduler-398078e0-6dae-4c02-8197-af69d9eb230a@172.17.0.8:35418 I0713 18:43:56.641636 28239 authenticator.cpp:414] Starting authentication session for crammd5_authenticatee(554)@172.17.0.8:35418 I0713 18:43:56.641542 28240 containerizer.cpp:522] Recovering containerizer I0713 18:43:56.642201 28239 authenticator.cpp:98] Creating new server SASL connection I0713 18:43:56.642602 28252 authenticatee.cpp:213] Received SASL authentication mechanisms: CRAM-MD5 I0713 18:43:56.642634 28252 authenticatee.cpp:239] Attempting to authenticate with mechanism 'CRAM-MD5' I0713 18:43:56.642714 28239 authenticator.cpp:204] Received SASL authentication start I0713 18:43:56.642792 28239 authenticator.cpp:326] Authentication requires more steps I0713 18:43:56.642882 28239 authenticatee.cpp:259] Received SASL authentication step I0713 18:43:56.642978 28239 authenticator.cpp:232] Received SASL authentication step I0713 18:43:56.643009 28239 auxprop.cpp:109] Request to lookup properties for user: 'test-principal' realm: '500c3e866abe' server FQDN: '500c3e866abe' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: false I0713 18:43:56.643026 28239 auxprop.cpp:181] Looking up auxiliary property '*userPassword' I0713 18:43:56.643064 28239 auxprop.cpp:181] Looking up auxiliary property '*cmusaslsecretCRAM-MD5' I0713 18:43:56.643091 28239 auxprop.cpp:109] Request to lookup properties for user: 'test-principal' realm: '500c3e866abe' server FQDN: '500c3e866abe' SASL_AUXPROP_VERIFY_AGAINST_HASH: false SASL_AUXPROP_OVERRIDE: false SASL_AUXPROP_AUTHZID: true I0713 18:43:56.643107 28239 auxprop.cpp:131] Skipping auxiliary property '*userPassword' since SASL_AUXPROP_AUTHZID == true I0713 18:43:56.643117 28239 auxprop.cpp:131] Skipping auxiliary property '*cmusaslsecretCRAM-MD5' since SASL_AUXPROP_AUTHZID == true I0713 18:43:56.643136 28239 authenticator.cpp:318] Authentication success I0713 18:43:56.643290 28239 authenticatee.cpp:299] Authentication success I0713 18:43:56.643379 28239 master.cpp:6036] Successfully authenticated principal 'test-principal' at scheduler-398078e0-6dae-4c02-8197-af69d9eb230a@172.17.0.8:35418 I0713 18:43:56.643501 28244 authenticator.cpp:432] Authentication session cleanup for crammd5_authenticatee(554)@172.17.0.8:35418 I0713 18:43:56.643987 28244 sched.cpp:502] Successfully authenticated with master master@172.17.0.8:35418 I0713 18:43:56.644011 28244 sched.cpp:820] Sending SUBSCRIBE call to master@172.17.0.8:35418 I0713 18:43:56.644103 28244 sched.cpp:853] Will retry registration in 809.142674ms if necessary I0713 18:43:56.644287 28244 master.cpp:2550] Received SUBSCRIBE call for framework 'default' at scheduler-398078e0-6dae-4c02-8197-af69d9eb230a@172.17.0.8:35418 I0713 18:43:56.644346 28244 master.cpp:2012] Authorizing framework principal 'test-principal' to receive offers for role 'role1' I0713 18:43:56.644675 28249 provisioner.cpp:253] Provisioner recovery complete I0713 18:43:56.645089 28245 master.cpp:2626] Subscribing framework default with checkpointing disabled and capabilities [ ] I0713 18:43:56.645783 28249 hierarchical.cpp:271] Added framework 2258d072-b0c9-4c40-874c-6cf933ee345a-0000 I0713 18:43:56.645916 28249 hierarchical.cpp:1537] No allocations performed I0713 18:43:56.646000 28249 hierarchical.cpp:1632] No inverse offers to send out! I0713 18:43:56.646083 28248 sched.cpp:743] Framework registered with 2258d072-b0c9-4c40-874c-6cf933ee345a-0000 I0713 18:43:56.646116 28249 hierarchical.cpp:1172] Performed allocation for 0 agents in 249850ns I0713 18:43:56.646163 28248 sched.cpp:757] Scheduler::registered took 21831ns I0713 18:43:56.646317 28246 slave.cpp:4856] Finished recovery I0713 18:43:56.663516 28246 slave.cpp:5028] Querying resource estimator for oversubscribable resources I0713 18:43:56.664029 28254 status_update_manager.cpp:174] Pausing sending status updates I0713 18:43:56.664043 28246 slave.cpp:969] New master detected at master@172.17.0.8:35418 I0713 18:43:56.664567 28246 slave.cpp:1028] Authenticating with master master@172.17.0.8:35418 I0713 18:43:56.665148 28246 slave.cpp:1039] Using default CRAM-MD5 authenticatee I0713 18:43:56.665555 28246 slave.cpp:1001] Detecting new master I0713 18:43:56.665590 28244 authenticatee.cpp:121] Creating new client SASL connection I0713 18:43:56.665889 28246 slave.cpp:5042] Received oversubscribable resources from the resource estimator I0713 18:43:56.666071 28253 master.cpp:6006] Authenticating slave(251)@172.17.0.8:35418 I0713 18:43:56.666316 28244 authenticator.cpp:414] Starting authentication session for crammd5_authenticat...
Story points: 1