(venv) eunices-mbp:mobile-testkit eunicehuang$ pytest -s -rsx -k test_default_conflict_withConflicts_and_sgOffline --timeout 1800 --liteserv-version=2.1.2-2 --liteserv-host=localhost --liteserv-port=8080 --xattrs --sg-ssl --sync-gateway-version=2.5.0-271 --mode=cc --server-version=6.0.1-2037 --liteserv-platform=xamarin-ios --create-db-per-test=cbl-test testsuites/CBLTester/CBL_Functional_tests/TestSetup_FunctionalTests ========================================== test session starts =========================================== platform darwin -- Python 2.7.10, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 -- /Users/eunicehuang/dev/mobile-testkit/venv/bin/python cachedir: .cache rootdir: /Users/eunicehuang/dev/mobile-testkit, inifile: pytest.ini plugins: timeout-1.0.0, html-1.10.0 collected 122 items testsuites/CBLTester/CBL_Functional_tests/TestSetup_FunctionalTests/test_replication.py::test_default_conflict_withConflicts_and_sgOffline Downloading TestServer ... {u'load_generators': [], u'couchbase_servers': [{u'ip': u'192.168.33.10', u'name': u'cb1'}], u'sync_gateways': [{u'ip': u'192.168.33.11', u'name': u'sg1'}], u'environment': {u'delta_sync_enabled': False, u'x509_certs': False, u'sg_use_views': False, u'sg_lb_enabled': False, u'sync_gateway_ssl': True, u'no_conflicts_enabled': False, u'xattrs_enabled': True, u'number_replicas': 0, u'sync_gateway_version': u'2.1.3.1-2', u'ipv6_enabled': False, u'cbs_ssl_enabled': False, u'server_version': u'6.0.1-2037'}, u'hosts': [{u'ip': u'192.168.33.10', u'name': u'host1'}, {u'ip': u'192.168.33.11', u'name': u'host2'}], u'load_balancers': [], u'sg_accels': []} {u'load_generators': [], u'couchbase_servers': [{u'ip': u'192.168.33.10', u'name': u'cb1'}], u'sync_gateways': [{u'ip': u'192.168.33.11', u'name': u'sg1'}], u'environment': {u'delta_sync_enabled': False, u'x509_certs': False, u'sg_use_views': False, u'sg_lb_enabled': False, u'sync_gateway_ssl': True, u'no_conflicts_enabled': False, u'xattrs_enabled': True, u'number_replicas': 0, u'sync_gateway_version': u'2.1.3.1-2', u'ipv6_enabled': False, u'cbs_ssl_enabled': False, u'server_version': u'6.0.1-2037'}, u'hosts': [{u'ip': u'192.168.33.10', u'name': u'host1'}, {u'ip': u'192.168.33.11', u'name': u'host2'}], u'load_balancers': [], u'sg_accels': []} Extracted host (192.168.33.11) from url (https://192.168.33.11:4984) Enabling SSL on sync gateway Extracted host (192.168.33.10) from url (http://192.168.33.10:8091) Running tests with load balancer disabled Running test with server version 6.0.1-2037 Running test with sync_gateway version 2.5.0-271 Running test with xattrs for sync meta storage Running with allow conflicts Running tests with cbs <-> sg ssl disabled {u'load_generators': [], u'couchbase_servers': [{u'ip': u'192.168.33.10', u'name': u'cb1'}], u'sync_gateways': [{u'ip': u'192.168.33.11', u'name': u'sg1'}], u'environment': {u'delta_sync_enabled': False, u'x509_certs': False, u'sync_gateway_ssl': True, u'sg_lb_enabled': False, u'sg_use_views': False, u'no_conflicts_enabled': False, u'xattrs_enabled': True, u'number_replicas': 0, u'sync_gateway_version': u'2.5.0-271', u'ipv6_enabled': False, u'cbs_ssl_enabled': False, u'server_version': u'6.0.1-2037'}, u'hosts': [{u'ip': u'192.168.33.10', u'name': u'host1'}, {u'ip': u'192.168.33.11', u'name': u'host2'}], u'load_balancers': [], u'sg_accels': []} Extracted host (192.168.33.10) from url (http://192.168.33.10:8091) Installing Sync Gateway + Couchbase Server + Accels ('di' only) >>> Cluster info: Running test with server version 6.0.1-2037 Running test with sync_gateway version 2.5.0-271 [pool] ma1 ansible_host=192.168.33.10 ma2 ansible_host=192.168.33.11 [couchbase_servers] cb1 ansible_host=192.168.33.10 [sync_gateways] sg1 ansible_host=192.168.33.11 [sg_accels] [load_generators] [load_balancers] [webhook_ip] tf1 ansible_host=10.100.172.185 [environment] cbs_ssl_enabled=False xattrs_enabled=True sg_lb_enabled=False ipv6_enabled=False x509_certs=False delta_sync_enabled=False sync_gateway_ssl=True server_version=6.0.1-2037 sync_gateway_version=2.5.0-271 no_conflicts_enabled=False sg_use_views=False number_replicas=0 Couchbase Server configuration ------------------------------------------ version: 6.0.1 sync_gateway configuration ------------------------------------------ version: 2.5.0 build number: 271 commit: None config path: resources/sync_gateway_configs/sync_gateway_travel_sample_cc.json build flags: skip bucketcreation: False resources/cluster_configs/base_cc cbs: ['http://192.168.33.10:8091'] sgs: [{'ip': u'192.168.33.11', 'name': u'sg1'}] acs: [] ssl: False >>> Provisioning cluster... {u'load_generators': [], u'couchbase_servers': [{u'ip': u'192.168.33.10', u'name': u'cb1'}], u'sync_gateways': [{u'ip': u'192.168.33.11', u'name': u'sg1'}], u'environment': {u'delta_sync_enabled': False, u'x509_certs': False, u'sync_gateway_ssl': True, u'sg_lb_enabled': False, u'sg_use_views': False, u'no_conflicts_enabled': False, u'xattrs_enabled': True, u'number_replicas': 0, u'sync_gateway_version': u'2.5.0-271', u'ipv6_enabled': False, u'cbs_ssl_enabled': False, u'server_version': u'6.0.1-2037'}, u'hosts': [{u'ip': u'192.168.33.10', u'name': u'host1'}, {u'ip': u'192.168.33.11', u'name': u'host2'}], u'load_balancers': [], u'sg_accels': []} >>> Server package: http://latestbuilds.service.couchbase.com/builds/latestbuilds/couchbase-server/alice/2037/couchbase-server-enterprise-6.0.1-2037-centos7.x86_64.rpm >>> Using sync_gateway config: resources/sync_gateway_configs/sync_gateway_travel_sample_cc.json Cleaning cluster: resources/cluster_configs/base_cc Running playbook: libraries/provision/ansible/playbooks/remove-previous-installs.yml PLAY [pool] ******************************************************************** TASK [setup] ******************************************************************* ok: [ma2] ok: [ma1] TASK [Stop Couchbase Service] ************************************************** fatal: [ma2]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service couchbase-server: cannot check nor set state"} ...ignoring changed: [ma1] TASK [COUCHBASE SERVER | Try to stop Couchbase Service (Hack around 7.2 and CBS 4.1.0 issue)] *** skipping: [ma1] skipping: [ma2] TASK [COUCHBASE SERVER | Uninstall couchbase server] *************************** fatal: [ma2]: FAILED! => {"changed": true, "cmd": "rpm -e couchbase-server", "delta": "0:00:00.141795", "end": "2019-04-17 00:54:32.356607", "failed": true, "rc": 1, "start": "2019-04-17 00:54:32.214812", "stderr": "error: package couchbase-server is not installed", "stdout": "", "stdout_lines": [], "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]} ...ignoring changed: [ma1] [WARNING]: Consider using yum, dnf or zypper module rather than running rpm TASK [COUCHBASE SERVER | Uninstall couchbase server community] ***************** fatal: [ma1]: FAILED! => {"changed": true, "cmd": "rpm -e couchbase-server-community", "delta": "0:00:00.141942", "end": "2019-04-17 00:54:33.319350", "failed": true, "rc": 1, "start": "2019-04-17 00:54:33.177408", "stderr": "error: package couchbase-server-community is not installed", "stdout": "", "stdout_lines": [], "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]} ...ignoring fatal: [ma2]: FAILED! => {"changed": true, "cmd": "rpm -e couchbase-server-community", "delta": "0:00:00.141691", "end": "2019-04-17 00:54:33.320265", "failed": true, "rc": 1, "start": "2019-04-17 00:54:33.178574", "stderr": "error: package couchbase-server-community is not installed", "stdout": "", "stdout_lines": [], "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]} ...ignoring TASK [COUCHBASE SERVER | Kill epmd] ******************************************** fatal: [ma1]: FAILED! => {"changed": true, "cmd": "pkill epmd", "delta": "0:00:00.126751", "end": "2019-04-17 00:54:33.742539", "failed": true, "rc": 1, "start": "2019-04-17 00:54:33.615788", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} ...ignoring fatal: [ma2]: FAILED! => {"changed": true, "cmd": "pkill epmd", "delta": "0:00:00.127726", "end": "2019-04-17 00:54:33.749533", "failed": true, "rc": 1, "start": "2019-04-17 00:54:33.621807", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} ...ignoring TASK [COUCHBASE SERVER | Kill beam.smp] **************************************** fatal: [ma1]: FAILED! => {"changed": true, "cmd": "pkill beam.smp", "delta": "0:00:00.122379", "end": "2019-04-17 00:54:34.134036", "failed": true, "rc": 1, "start": "2019-04-17 00:54:34.011657", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} ...ignoring fatal: [ma2]: FAILED! => {"changed": true, "cmd": "pkill beam.smp", "delta": "0:00:00.123532", "end": "2019-04-17 00:54:34.134957", "failed": true, "rc": 1, "start": "2019-04-17 00:54:34.011425", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} ...ignoring TASK [COUCHBASE SERVER | Kill memcached] *************************************** fatal: [ma1]: FAILED! => {"changed": true, "cmd": "pkill memcached", "delta": "0:00:00.123989", "end": "2019-04-17 00:54:34.521517", "failed": true, "rc": 1, "start": "2019-04-17 00:54:34.397528", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} ...ignoring fatal: [ma2]: FAILED! => {"changed": true, "cmd": "pkill memcached", "delta": "0:00:00.124175", "end": "2019-04-17 00:54:34.523892", "failed": true, "rc": 1, "start": "2019-04-17 00:54:34.399717", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} ...ignoring TASK [COUCHBASE SERVER | Remove all couchbase server residue] ****************** ok: [ma2] changed: [ma1] TASK [SYNC GATEWAY | Stop sync_gateway service] ******************************** fatal: [ma1]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service sync_gateway: cannot check nor set state"} ...ignoring changed: [ma2] TASK [SYNC GATEWAY | Stop sync_gateway for CentOS 6] *************************** skipping: [ma1] skipping: [ma2] TASK [SYNC GATEWAY | Uninstall sync_gateway rpm] ******************************* fatal: [ma1]: FAILED! => {"changed": true, "cmd": "rpm -e couchbase-sync-gateway", "delta": "0:00:00.140131", "end": "2019-04-17 00:54:35.928752", "failed": true, "rc": 1, "start": "2019-04-17 00:54:35.788621", "stderr": "error: package couchbase-sync-gateway is not installed", "stdout": "", "stdout_lines": [], "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]} ...ignoring changed: [ma2] TASK [SYNC GATEWAY | Remove sync_gateway service] ****************************** ok: [ma2] ok: [ma1] TASK [SYNC GATEWAY | Delete sync_gateway binary] ******************************* ok: [ma1] ok: [ma2] TASK [SYNC GATEWAY | Remove sync gateway source] ******************************* changed: [ma1] [WARNING]: Consider using file module with state=absent rather than running rm changed: [ma2] TASK [SYNC GATEWAY | Remove sync gateway source .repo directory] *************** changed: [ma2] changed: [ma1] TASK [SYNC GATEWAY | Remove tmp logging dir (log rotation tests)] ************** changed: [ma2] changed: [ma1] TASK [SYNC GATEWAY | Uninstall sync_gateway] *********************************** skipping: [ma1] skipping: [ma2] TASK [SYNC GATEWAY | Delete sync_gateway install directory] ******************** skipping: [ma1] skipping: [ma2] TASK [SYNC GATEWAY | Delete sync_gateway install directory] ******************** skipping: [ma1] skipping: [ma2] TASK [SYNC GATEWAY | Remove tmp logging dir (log rotation tests)] ************** skipping: [ma1] skipping: [ma2] TASK [SG ACCEL | Stop sg_accel service] **************************************** fatal: [ma1]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service sg_accel: cannot check nor set state"} ...ignoring fatal: [ma2]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service sg_accel: cannot check nor set state"} ...ignoring TASK [SG ACCEL | Stop sg_accel for CentOS 6] *********************************** skipping: [ma1] skipping: [ma2] TASK [SG ACCEL | Uninstall sg_accel rpm] *************************************** fatal: [ma1]: FAILED! => {"changed": true, "cmd": "rpm -e couchbase-sg-accel", "delta": "0:00:00.139478", "end": "2019-04-17 00:54:39.050427", "failed": true, "rc": 1, "start": "2019-04-17 00:54:38.910949", "stderr": "error: package couchbase-sg-accel is not installed", "stdout": "", "stdout_lines": [], "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]} ...ignoring fatal: [ma2]: FAILED! => {"changed": true, "cmd": "rpm -e couchbase-sg-accel", "delta": "0:00:00.139729", "end": "2019-04-17 00:54:39.054864", "failed": true, "rc": 1, "start": "2019-04-17 00:54:38.915135", "stderr": "error: package couchbase-sg-accel is not installed", "stdout": "", "stdout_lines": [], "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]} ...ignoring TASK [SG ACCEL | Remove sg_accel service] ************************************** ok: [ma1] ok: [ma2] TASK [SG ACCEL | Delete sg_accel binary] *************************************** ok: [ma1] ok: [ma2] TASK [SG ACCEL | Remove sg accel source] *************************************** changed: [ma1] changed: [ma2] TASK [SG ACCEL | Remove sg accel source .repo directory] *********************** changed: [ma2] changed: [ma1] TASK [SG ACCEL | Remove tmp logging dir (log rotation tests)] ****************** changed: [ma1] changed: [ma2] TASK [SG ACCEL | Uninstall sync_gateway_accel] ********************************* skipping: [ma1] skipping: [ma2] TASK [SG ACCEL | Delete sync_gateway_accel install directory] ****************** skipping: [ma1] skipping: [ma2] TASK [SG ACCEL | Delete sync_gateway_accel install directory] ****************** skipping: [ma1] skipping: [ma2] TASK [SG ACCEL | Remove tmp logging dir (log rotation tests)] ****************** skipping: [ma1] skipping: [ma2] TASK [NGINX | stop nginx service] ********************************************** fatal: [ma1]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service nginx: cannot check nor set state"} ...ignoring fatal: [ma2]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service nginx: cannot check nor set state"} ...ignoring TASK [NGINX | Remove nginx package] ******************************************** ok: [ma2] ok: [ma1] TASK [SYNC GATEWAY | Remove sync_gateway user] ********************************* ok: [ma1] changed: [ma2] TASK [SG ACCEL | Remove sg_accel user] ***************************************** ok: [ma1] ok: [ma2] TASK [ALL | verify no sg_accel or sgs are running on 4985] ********************* ok: [ma2] ok: [ma1] TASK [ALL | verify no servers not listening on port 8081] ********************** ok: [ma1] ok: [ma2] PLAY RECAP ********************************************************************* ma1 : ok=28 changed=15 unreachable=0 failed=0 ma2 : ok=28 changed=15 unreachable=0 failed=0 Running playbook: libraries/provision/ansible/playbooks/flush-firewall.yml PLAY [pool] ******************************************************************** TASK [setup] ******************************************************************* ok: [ma2] ok: [ma1] TASK [OS | Flush Firewall] ***************************************************** changed: [ma1] changed: [ma2] PLAY RECAP ********************************************************************* ma1 : ok=2 changed=1 unreachable=0 failed=0 ma2 : ok=2 changed=1 unreachable=0 failed=0 Installing Couchbase Server resources/cluster_configs/base_cc Couchbase Server configuration ------------------------------------------ version: 6.0.1 {u'load_generators': [], u'couchbase_servers': [{u'ip': u'192.168.33.10', u'name': u'cb1'}], u'sync_gateways': [{u'ip': u'192.168.33.11', u'name': u'sg1'}], u'environment': {u'delta_sync_enabled': False, u'x509_certs': False, u'sync_gateway_ssl': True, u'sg_lb_enabled': False, u'sg_use_views': False, u'no_conflicts_enabled': False, u'xattrs_enabled': True, u'number_replicas': 0, u'sync_gateway_version': u'2.5.0-271', u'ipv6_enabled': False, u'cbs_ssl_enabled': False, u'server_version': u'6.0.1-2037'}, u'hosts': [{u'ip': u'192.168.33.10', u'name': u'host1'}, {u'ip': u'192.168.33.11', u'name': u'host2'}], u'load_balancers': [], u'sg_accels': []} >>> Installing Couchbase Server Running playbook: libraries/provision/ansible/playbooks/install-couchbase-server-package.yml [WARNING]: While constructing a mapping from /Users/eunicehuang/dev/mobile- testkit/libraries/provision/ansible/playbooks/install-couchbase-server-package.yml, line 71, column 7, found a duplicate dict key (shell). Using last defined value only. PLAY [couchbase_servers] ******************************************************* TASK [setup] ******************************************************************* ok: [cb1] TASK [debug] ******************************************************************* ok: [cb1] => { "msg": "Couchbase server primary node 192.168.33.10" } TASK [debug] ******************************************************************* ok: [cb1] => { "msg": "Couchbase server node 192.168.33.10" } TASK [debug] ******************************************************************* ok: [cb1] => { "msg": "Downloading Couchbase server v. http://latestbuilds.service.couchbase.com/builds/latestbuilds/couchbase-server/alice/2037/couchbase-server-enterprise-6.0.1-2037-centos7.x86_64.rpm" } TASK [debug] ******************************************************************* ok: [cb1] => { "msg": "IPv6 Enabled - False" } TASK [Stop Couchbase Service] ************************************************** ok: [cb1] TASK [COUCHBASE SERVER | Try to stop Couchbase Service (Hack around 7.2 and CBS 4.1.0 issue)] *** skipping: [cb1] TASK [COUCHBASE SERVER | Uninstall couchbase server] *************************** fatal: [cb1]: FAILED! => {"changed": true, "cmd": "rpm -e couchbase-server", "delta": "0:00:00.138406", "end": "2019-04-17 00:54:51.108117", "failed": true, "rc": 1, "start": "2019-04-17 00:54:50.969711", "stderr": "error: package couchbase-server is not installed", "stdout": "", "stdout_lines": [], "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]} ...ignoring TASK [COUCHBASE SERVER | Uninstall couchbase server community] ***************** fatal: [cb1]: FAILED! => {"changed": true, "cmd": "rpm -e couchbase-server-community", "delta": "0:00:00.139457", "end": "2019-04-17 00:54:51.483657", "failed": true, "rc": 1, "start": "2019-04-17 00:54:51.344200", "stderr": "error: package couchbase-server-community is not installed", "stdout": "", "stdout_lines": [], "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]} ...ignoring TASK [COUCHBASE SERVER | Kill epmd] ******************************************** fatal: [cb1]: FAILED! => {"changed": true, "cmd": "pkill epmd", "delta": "0:00:00.121789", "end": "2019-04-17 00:54:51.843071", "failed": true, "rc": 1, "start": "2019-04-17 00:54:51.721282", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} ...ignoring TASK [COUCHBASE SERVER | Kill beam.smp] **************************************** fatal: [cb1]: FAILED! => {"changed": true, "cmd": "pkill beam.smp", "delta": "0:00:00.122510", "end": "2019-04-17 00:54:52.202376", "failed": true, "rc": 1, "start": "2019-04-17 00:54:52.079866", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} ...ignoring TASK [COUCHBASE SERVER | Kill memcached] *************************************** fatal: [cb1]: FAILED! => {"changed": true, "cmd": "pkill memcached", "delta": "0:00:00.121460", "end": "2019-04-17 00:54:52.562032", "failed": true, "rc": 1, "start": "2019-04-17 00:54:52.440572", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} ...ignoring TASK [COUCHBASE SERVER | Remove all couchbase server residue] ****************** ok: [cb1] TASK [SYNC GATEWAY | Remove sync_gateway user] ********************************* ok: [cb1] TASK [SG ACCEL | Remove sg_accel user] ***************************************** ok: [cb1] TASK [COUCHBASE SERVER | Download couchbase server] **************************** ok: [cb1] TASK [Install Couchbase Server] ************************************************ changed: [cb1] TASK [Enabling CBS on IPV6 | Stopping CBS] ************************************* skipping: [cb1] TASK [Enabling CBS on IPV6 | Enabling IPv6 in static_config] ******************* skipping: [cb1] TASK [Enabling CBS on IPV6 | Deleting config.dat] ****************************** skipping: [cb1] TASK [Enabling CBS on IPV6 | Starting CBS] ************************************* skipping: [cb1] TASK [COUCHBASE SERVER | raise max file descriptors] *************************** ok: [cb1] TASK [COUCHBASE SERVER | Disable Transparent Huge Pages] *********************** changed: [cb1] TASK [COUCHBASE SERVER | Start Couchbase Service (Hack around 7.2 and CBS 4.1.0 issue)] *** skipping: [cb1] TASK [COUCHBASE SERVER | Restart Couchbase Service] **************************** changed: [cb1] TASK [debug] ******************************************************************* ok: [cb1] => { "msg": "Couchbase cluster RAM 2519" } TASK [debug] ******************************************************************* ok: [cb1] => { "msg": "Couchbase bucket RAM 1259" } TASK [COUCHBASE SERVER | Get major version] ************************************ changed: [cb1] TASK [COUCHBASE SERVER | Wait for node to be listening on port 8091] *********** ok: [cb1] TASK [COUCHBASE SERVER | Configure cluster settings (3.0.X and 3.1.X)] ********* skipping: [cb1] TASK [COUCHBASE SERVER | Configure cluster settings (4.0.X and 4.1.X)] ********* skipping: [cb1] TASK [COUCHBASE SERVER | Configure cluster settings (4.5.X and 4.6.X)] ********* skipping: [cb1] TASK [COUCHBASE SERVER | Configure cluster settings (4.7.X and up) | configure IPv4] *** changed: [cb1] TASK [COUCHBASE SERVER | Configure cluster settings (4.7.X and up) | configure IPv6] *** skipping: [cb1] TASK [COUCHBASE SERVER | Initialize primary node (3.x only)] ******************* skipping: [cb1] TASK [COUCHBASE SERVER | Initialize primary node | configure IPv4] ************* changed: [cb1] TASK [COUCHBASE SERVER | Initialize primary node | configure IPv6] ************* skipping: [cb1] TASK [COUCHBASE SERVER | Wait for node to be listening on port 8091] *********** ok: [cb1] TASK [COUCHBASE SERVER | Join additional cluster nodes | configure IPv4] ******* skipping: [cb1] TASK [COUCHBASE SERVER | Join additional cluster nodes | configure IPv6] ******* skipping: [cb1] TASK [COUCHBASE SERVER | Rebalance cluster | configure IPv4] ******************* changed: [cb1] TASK [COUCHBASE SERVER | Rebalance cluster | configure IPv6] ******************* skipping: [cb1] TASK [COUCHBASE SERVER | Enable auto failover | configure IPv4] **************** changed: [cb1] TASK [COUCHBASE SERVER | Enable auto failover | configure IPv6] **************** skipping: [cb1] PLAY RECAP ********************************************************************* cb1 : ok=28 changed=13 unreachable=0 failed=0 >>> Waiting for server to be in 'healthy' state GET http://192.168.33.10:8091/pools/nodes 200 All nodes are healthy Installing Sync Gateway sync_gateway configuration ------------------------------------------ version: 2.5.0 build number: 271 commit: None config path: resources/sync_gateway_configs/sync_gateway_travel_sample_cc.json build flags: skip bucketcreation: False resources/cluster_configs/base_cc cbs: ['http://192.168.33.10:8091'] sgs: [{'ip': u'192.168.33.11', 'name': u'sg1'}] acs: [] ssl: False {u'load_generators': [], u'couchbase_servers': [{u'ip': u'192.168.33.10', u'name': u'cb1'}], u'sync_gateways': [{u'ip': u'192.168.33.11', u'name': u'sg1'}], u'environment': {u'delta_sync_enabled': False, u'x509_certs': False, u'sync_gateway_ssl': True, u'sg_lb_enabled': False, u'sg_use_views': False, u'no_conflicts_enabled': False, u'xattrs_enabled': True, u'number_replicas': 0, u'sync_gateway_version': u'2.5.0-271', u'ipv6_enabled': False, u'cbs_ssl_enabled': False, u'server_version': u'6.0.1-2037'}, u'hosts': [{u'ip': u'192.168.33.10', u'name': u'host1'}, {u'ip': u'192.168.33.11', u'name': u'host2'}], u'load_balancers': [], u'sg_accels': []} GET http://192.168.33.10:8091/pools/default/buckets 200 Found buckets: [] GET http://192.168.33.10:8091/pools/default/buckets 200 Found buckets: [] Creating buckets: [u'travel-sample'] total_avail_ram_mb: 3789 effective_avail_ram_mb: 2519 Creating bucket travel-sample with RAM 2519 GET http://Administrator:password@192.168.33.10:8091/pools 200 POST http://192.168.33.10:8091/pools/default/buckets 202 Creating RBAC user travel-sample with password password and roles ro_admin,bucket_full_access[travel-sample] PUT http://192.168.33.10:8091/settings/rbac/users/local/travel-sample 200 Key not found error: Bucket is ready! GET http://192.168.33.10:8091/pools/nodes 200 All nodes are healthy Keyerror in getting loggingredactlevel revs_limit not found in resources/cluster_configs/base_cc, Ignoring Running playbook: libraries/provision/ansible/playbooks/install-sync-gateway-package.yml PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [SYNC GATEWAY | Stop sync_gateway service] ******************************** fatal: [sg1]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service sync_gateway: cannot check nor set state"} ...ignoring TASK [SYNC GATEWAY | Stop sync_gateway for CentOS 6] *************************** skipping: [sg1] TASK [SYNC GATEWAY | Uninstall sync_gateway rpm] ******************************* fatal: [sg1]: FAILED! => {"changed": true, "cmd": "rpm -e couchbase-sync-gateway", "delta": "0:00:00.138972", "end": "2019-04-17 00:55:49.882438", "failed": true, "rc": 1, "start": "2019-04-17 00:55:49.743466", "stderr": "error: package couchbase-sync-gateway is not installed", "stdout": "", "stdout_lines": [], "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]} ...ignoring TASK [SYNC GATEWAY | Remove sync_gateway service] ****************************** ok: [sg1] TASK [SYNC GATEWAY | Delete sync_gateway binary] ******************************* ok: [sg1] TASK [SYNC GATEWAY | Remove sync gateway source] ******************************* changed: [sg1] TASK [SYNC GATEWAY | Remove sync gateway source .repo directory] *************** changed: [sg1] TASK [SYNC GATEWAY | Remove tmp logging dir (log rotation tests)] ************** changed: [sg1] TASK [SYNC GATEWAY | Remove sync_gateway user] ********************************* ok: [sg1] TASK [SG ACCEL | Remove sg_accel user] ***************************************** ok: [sg1] TASK [SYNC GATEWAY | verify no service on 4985] ******************************** ok: [sg1] PLAY [couchbase_servers] ******************************************************* TASK [setup] ******************************************************************* ok: [cb1] PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [SYNC GATEWAY | Create sync gateway user] ********************************* changed: [sg1] TASK [SYNC GATEWAY | Create /tmp/sg_logs] ************************************** changed: [sg1] PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [SYNC GATEWAY | Download sync_gateway rpm http://latestbuilds.service.couchbase.com/builds/latestbuilds/sync_gateway/2.5.0/271/couchbase-sync-gateway-enterprise_2.5.0-271_x86_64.rpm] *** ok: [sg1] PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [SYNC GATEWAY | Install sync_gateway rpm] ********************************* changed: [sg1] TASK [SYNC GATEWAY | Stop sync_gateway service] ******************************** changed: [sg1] TASK [SYNC GATEWAY | Stop sync_gateway for CentOS 6] *************************** skipping: [sg1] TASK [SYNC GATEWAY | Verify sync_gateway not listening on port] **************** ok: [sg1] TASK [Copying certs.zip to /home/sync_gateway directory] *********************** skipping: [sg1] TASK [Deleting /home/sync_gateway/certs] *************************************** skipping: [sg1] TASK [Unzipping certs.zip] ***************************************************** skipping: [sg1] PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [SYNC GATEWAY | Copy sync gateway config to host] ************************* changed: [sg1] TASK [Deleting /home/sync_gateway/certs directory] ***************************** skipping: [sg1] TASK [Deleting /home/sync_gateway/certs.zip] *********************************** skipping: [sg1] TASK [Copying certs.zip to /home/sync_gateway directory] *********************** skipping: [sg1] TASK [Unzipping certs.zip] ***************************************************** skipping: [sg1] TASK [SYNC GATEWAY | Check deployed config] ************************************ changed: [sg1] TASK [SYNC GATEWAY | Print deployed config] ************************************ ok: [sg1] => { "out.stdout": { "SSLCert": "sg_cert.pem", "SSLKey": "sg_privkey.pem", "adminInterface": "0.0.0.0:4985", "compressResponses": false, "databases": { "db": { "bucket": "travel-sample", "enable_shared_bucket_access": true, "import_docs": "continuous", "num_index_replicas": 0, "password": "password", "server": "http://192.168.33.10:8091", "username": "travel-sample" } }, "interface": ":4984", "logging": { "debug": { "enabled": true } }, "maxCouchbaseConnections": 16, "maxFileDescriptors": 90000, "maxIncomingConnections": 0, "slowServerCallWarningThreshold": 500 } } TASK [SYNC GATEWAY | Deploying SSL Cert] *************************************** changed: [sg1] TASK [SYNC GATEWAY | Deploying SSL Private Key] ******************************** changed: [sg1] PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [debug] ******************************************************************* ok: [sg1] => { "msg": "Starting sync_gateway" } TASK [SYNC GATEWAY | Start sync gateway service] ******************************* changed: [sg1] TASK [SYNC GATEWAY | Wait until sync gateway to listen on port] **************** ok: [sg1] PLAY RECAP ********************************************************************* cb1 : ok=1 changed=0 unreachable=0 failed=0 sg1 : ok=30 changed=13 unreachable=0 failed=0 Running playbook: libraries/provision/ansible/playbooks/install-sg-accel-package.yml PLAY RECAP ********************************************************************* Running playbook: libraries/provision/ansible/playbooks/configure-sync-gateway-awslogs-forwarder.yml PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [SYNC GATEWAY | upload default awslogs config] **************************** ok: [sg1] TASK [SYNC GATEWAY | restart awslogs service] ********************************** changed: [sg1] [WARNING]: Consider using service module rather than running service PLAY RECAP ********************************************************************* sg1 : ok=3 changed=1 unreachable=0 failed=0 {u'load_generators': [], u'couchbase_servers': [{u'ip': u'192.168.33.10', u'name': u'cb1'}], u'sync_gateways': [{u'ip': u'192.168.33.11', u'name': u'sg1'}], u'environment': {u'delta_sync_enabled': False, u'x509_certs': False, u'sync_gateway_ssl': True, u'sg_lb_enabled': False, u'sg_use_views': False, u'no_conflicts_enabled': False, u'xattrs_enabled': True, u'number_replicas': 0, u'sync_gateway_version': u'2.5.0-271', u'ipv6_enabled': False, u'cbs_ssl_enabled': False, u'server_version': u'6.0.1-2037'}, u'hosts': [{u'ip': u'192.168.33.10', u'name': u'host1'}, {u'ip': u'192.168.33.11', u'name': u'host2'}], u'load_balancers': [], u'sg_accels': []} Upstream definition: server https://192.168.33.11:4984; Upstream definition admin: server https://192.168.33.11:4985; Running playbook: libraries/provision/ansible/playbooks/install-nginx.yml PLAY RECAP ********************************************************************* >>> Done provisioning cluster... Verfying versions for cluster: resources/cluster_configs/base_cc GET http://Administrator:password@192.168.33.10:8091/pools 200 Expected Server Version: 6.0.1-2037 Running Server Version: 6.0.1-2037 GET https://192.168.33.11:4984/ 200 'server' header: Couchbase Sync Gateway/2.5.0 EE vendor name: Couchbase Sync Gateway GET https://192.168.33.11:4984/ 200 Expected sync_gateway Version: 2.5.0-271 Running sync_gateway Version: 2.5.0-271 Running sync_gateway Vendor Version: 2.5 Verfying versions for cluster: resources/cluster_configs/base_cc GET http://Administrator:password@192.168.33.10:8091/pools 200 Expected Server Version: 6.0.1-2037 Running Server Version: 6.0.1-2037 GET https://192.168.33.11:4984/ 200 'server' header: Couchbase Sync Gateway/2.5.0 EE vendor name: Couchbase Sync Gateway GET https://192.168.33.11:4984/ 200 Expected sync_gateway Version: 2.5.0-271 Running sync_gateway Version: 2.5.0-271 Running sync_gateway Vendor Version: 2.5 {u'load_generators': [], u'couchbase_servers': [{u'ip': u'192.168.33.10', u'name': u'cb1'}], u'sync_gateways': [{u'ip': u'192.168.33.11', u'name': u'sg1'}], u'environment': {u'delta_sync_enabled': False, u'x509_certs': False, u'sync_gateway_ssl': True, u'sg_lb_enabled': False, u'sg_use_views': False, u'no_conflicts_enabled': False, u'xattrs_enabled': True, u'number_replicas': 0, u'sync_gateway_version': u'2.5.0-271', u'ipv6_enabled': False, u'cbs_ssl_enabled': False, u'server_version': u'6.0.1-2037'}, u'hosts': [{u'ip': u'192.168.33.10', u'name': u'host1'}, {u'ip': u'192.168.33.11', u'name': u'host2'}], u'load_balancers': [], u'sg_accels': []} Running test 'test_default_conflict_withConflicts_and_sgOffline' cluster_config: resources/cluster_configs/base_cc cluster_topology: {'load_balancers': [], 'sg_accels': [], 'sync_gateways': [{'admin': 'https://192.168.33.11:4985', 'public': 'https://192.168.33.11:4984'}], 'couchbase_servers': ['http://192.168.33.10:8091']} mode: cc xattrs_enabled: True Creating a Database cbl-test1555462583.21 at test setup Got response: "@1_10.100.172.185_net" Got response: "@2_10.100.172.185_net" Getting the database name Got response: "cbl-test1555462583.21" resources/cluster_configs/base_cc cbs: ['http://192.168.33.10:8091'] sgs: [{'ip': u'192.168.33.11', 'name': u'sg1'}] acs: [] ssl: False >>> Reseting cluster ... >>> CBS SSL enabled: False >>> Using xattrs: True >>> Stopping sync_gateway Running playbook: libraries/provision/ansible/playbooks/stop-sync-gateway.yml PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [SYNC GATEWAY | Stop sync_gateway service] ******************************** changed: [sg1] TASK [SYNC GATEWAY | Stop sync_gateway for CentOS 6] *************************** skipping: [sg1] TASK [SYNC GATEWAY | Verify sync_gateway not listening on port] **************** ok: [sg1] TASK [SYNC GATEWAY | Stop sync_gateway service on Windows] ********************* skipping: [sg1] PLAY RECAP ********************************************************************* sg1 : ok=3 changed=1 unreachable=0 failed=0 >>> Stopping sg_accel Running playbook: libraries/provision/ansible/playbooks/stop-sg-accel.yml PLAY RECAP ********************************************************************* >>> Deleting sync_gateway artifacts Running playbook: libraries/provision/ansible/playbooks/delete-sync-gateway-artifacts.yml PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [SYNC GATEWAY | Delete sync_gateway logs] ********************************* changed: [sg1] TASK [SYNC GATEWAY | Delete sync_gateway logs on Windows] ********************** skipping: [sg1] TASK [SYNC GATEWAY | Create sync_gateway logs directory on Windows] ************ skipping: [sg1] TASK [SYNC GATEWAY | Delete sync_gateway logs on Windows] ********************** skipping: [sg1] TASK [SYNC GATEWAY | Delete sync_gateway logs directory under Temp on Windows] * skipping: [sg1] TASK [SYNC GATEWAY | Delete sync_gateway logs on Windows] ********************** skipping: [sg1] TASK [SYNC GATEWAY | Create sync_gateway logs directory under c:/tmp on Windows] *** skipping: [sg1] PLAY RECAP ********************************************************************* sg1 : ok=2 changed=1 unreachable=0 failed=0 >>> Deleting sg_accel artifacts Running playbook: libraries/provision/ansible/playbooks/delete-sg-accel-artifacts.yml PLAY RECAP ********************************************************************* >>> Deleting buckets on: http://192.168.33.10:8091 GET http://192.168.33.10:8091/pools/default/buckets 200 Found buckets: [u'travel-sample'] Existing buckets: [u'travel-sample'] Deleting buckets: [u'travel-sample'] GET http://Administrator:password@192.168.33.10:8091/pools 200 Deleting RBAC user travel-sample DELETE http://192.168.33.10:8091/settings/rbac/users/local/travel-sample 200 DELETE http://192.168.33.10:8091/pools/default/buckets/travel-sample 200 GET http://192.168.33.10:8091/pools/default/buckets 200 Found buckets: [] >>> Creating buckets on: http://192.168.33.10:8091 >>> Creating buckets [u'travel-sample'] Creating buckets: [u'travel-sample'] total_avail_ram_mb: 3789 effective_avail_ram_mb: 2519 Creating bucket travel-sample with RAM 2519 GET http://Administrator:password@192.168.33.10:8091/pools 200 POST http://192.168.33.10:8091/pools/default/buckets 202 Creating RBAC user travel-sample with password password and roles ro_admin,bucket_full_access[travel-sample] PUT http://192.168.33.10:8091/settings/rbac/users/local/travel-sample 200 Key not found error: Bucket is ready! GET http://192.168.33.10:8091/pools/nodes 200 Node is still not healthy. Status: warmup Retrying ... GET http://192.168.33.10:8091/pools/nodes 200 Node is still not healthy. Status: warmup Retrying ... GET http://192.168.33.10:8091/pools/nodes 200 All nodes are healthy >>> Waiting for Server: http://192.168.33.10:8091 to be in a healthy state GET http://192.168.33.10:8091/pools/nodes 200 All nodes are healthy >>> Starting sync_gateway with configuration: /Users/eunicehuang/dev/mobile-testkit/resources/sync_gateway_configs/sync_gateway_travel_sample_cc.json Keyerror in getting loggingredactlevel revs_limit not found in resources/cluster_configs/base_cc, Ignoring Running playbook: libraries/provision/ansible/playbooks/start-sync-gateway.yml [WARNING]: While constructing a mapping from /Users/eunicehuang/dev/mobile- testkit/libraries/provision/ansible/playbooks/start-sync-gateway.yml, line 23, column 5, found a duplicate dict key (sudo). Using last defined value only. [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [SYNC GATEWAY | Copy sync gateway config to host] ************************* changed: [sg1] TASK [Deleting /home/sync_gateway/certs directory] ***************************** skipping: [sg1] TASK [Deleting /home/sync_gateway/certs.zip] *********************************** skipping: [sg1] TASK [Copying certs.zip to /home/sync_gateway directory] *********************** skipping: [sg1] TASK [Unzipping certs.zip] ***************************************************** skipping: [sg1] TASK [SYNC GATEWAY | Check deployed config] ************************************ changed: [sg1] TASK [SYNC GATEWAY | Print deployed config] ************************************ ok: [sg1] => { "out.stdout": { "SSLCert": "sg_cert.pem", "SSLKey": "sg_privkey.pem", "adminInterface": "0.0.0.0:4985", "compressResponses": false, "databases": { "db": { "bucket": "travel-sample", "enable_shared_bucket_access": true, "import_docs": "continuous", "num_index_replicas": 0, "password": "password", "server": "http://192.168.33.10:8091", "username": "travel-sample" } }, "interface": ":4984", "logging": { "debug": { "enabled": true } }, "maxCouchbaseConnections": 16, "maxFileDescriptors": 90000, "maxIncomingConnections": 0, "slowServerCallWarningThreshold": 500 } } TASK [SYNC GATEWAY | Deploying SSL Cert] *************************************** changed: [sg1] TASK [SYNC GATEWAY | Deploying SSL Private Key] ******************************** changed: [sg1] TASK [SYNC GATEWAY | Check if C:\PROGRA~2\Couchbase is present on Windows] ***** skipping: [sg1] TASK [SYNC GATEWAY | Copy sync gateway config to C:\PROGRA~2\Couchbase] ******** skipping: [sg1] TASK [SYNC GATEWAY | Check deployed config C:\PROGRA~2\Couchbase\serviceconfig.json] *** skipping: [sg1] TASK [SYNC GATEWAY | Check if C:\PROGRA~1\Couchbase\Sync Gateway is present on Windows] *** skipping: [sg1] TASK [SYNC GATEWAY | Copy sync gateway config to C:\PROGRA~1\Couchbase\Sync Gateway] *** skipping: [sg1] TASK [SYNC GATEWAY | Check deployed config C:\PROGRA~1\Couchbase\Sync Gateway\serviceconfig.json] *** skipping: [sg1] TASK [SYNC GATEWAY | Print deployed config] ************************************ skipping: [sg1] PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [debug] ******************************************************************* ok: [sg1] => { "msg": "Starting sync_gateway" } TASK [SYNC GATEWAY | Start sync gateway service] ******************************* changed: [sg1] TASK [SYNC GATEWAY | Wait until sync gateway to listen on port] **************** ok: [sg1] TASK [debug] ******************************************************************* skipping: [sg1] TASK [SYNC GATEWAY | Start sync_gateway service on Windows] ******************** skipping: [sg1] TASK [SYNC GATEWAY | Wait until sync gateway to listen on port] **************** skipping: [sg1] PLAY RECAP ********************************************************************* sg1 : ok=10 changed=5 unreachable=0 failed=0 >>> Running in channel cache POST https://192.168.33.11:4985/db/_user/ 201 POST https://192.168.33.11:4985/db/_session 200 cookie name SyncGatewaySession, session id c49affae0d13730edaabda123b099ebc4377aef7 GET https://192.168.33.11:4984/ 200 POST https://192.168.33.11:4984/db/_bulk_docs 201 GET https://192.168.33.11:4984/db/sg_docs_0?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_0?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_0?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_0?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_1?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_1?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_1?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_1?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_2?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_2?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_2?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_2?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_3?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_3?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_3?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_3?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_4?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_4?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_4?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_4?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_5?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_5?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_5?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_5?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_6?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_6?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_6?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_6?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_7?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_7?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_7?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_7?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_8?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_8?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_8?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_8?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_9?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_9?new_edits=false 201 GET https://192.168.33.11:4984/db/sg_docs_9?conflicts=true&revs=true&show_exp=true 200 PUT https://192.168.33.11:4984/db/sg_docs_9?new_edits=false 201 GET https://192.168.33.11:4984/db/_all_docs 200 GET https://192.168.33.11:4984/db/sg_docs_0?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_0: 1 times GET https://192.168.33.11:4984/db/sg_docs_1?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_1: 1 times GET https://192.168.33.11:4984/db/sg_docs_2?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_2: 1 times GET https://192.168.33.11:4984/db/sg_docs_3?conflicts=true&revs=true&show_exp=true 200 GET https://192.168.33.11:4984/db/sg_docs_4?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_4: 1 times Updating https://192.168.33.11:4984/db/sg_docs_3: 1 times GET https://192.168.33.11:4984/db/sg_docs_5?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_5: 1 times GET https://192.168.33.11:4984/db/sg_docs_6?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_6: 1 times GET https://192.168.33.11:4984/db/sg_docs_7?conflicts=true&revs=true&show_exp=true 200 GET https://192.168.33.11:4984/db/sg_docs_8?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_8: 1 times Updating https://192.168.33.11:4984/db/sg_docs_7: 1 times GET https://192.168.33.11:4984/db/sg_docs_9?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_9: 1 times Got response: "@3_10.100.172.185_net" Got response: "@4_10.100.172.185_net" Got response: "@5_10.100.172.185_net" Got response: I-1 Got response: "connecting" Activity level: connecting Got response: I-1 Got response: "idle" Running playbook: libraries/provision/ansible/playbooks/stop-sync-gateway.yml PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [SYNC GATEWAY | Stop sync_gateway service] ******************************** changed: [sg1] TASK [SYNC GATEWAY | Stop sync_gateway for CentOS 6] *************************** skipping: [sg1] TASK [SYNC GATEWAY | Verify sync_gateway not listening on port] **************** ok: [sg1] TASK [SYNC GATEWAY | Stop sync_gateway service on Windows] ********************* skipping: [sg1] PLAY RECAP ********************************************************************* sg1 : ok=3 changed=1 unreachable=0 failed=0 updating bulk docs Got response: I-1 Got response: "@6_10.100.172.185_net" Got response: I-1 Got response: "@7_10.100.172.185_net" Got response: I-1 Got response: "@8_10.100.172.185_net" Got response: I-1 Got response: "@9_10.100.172.185_net" Got response: I-1 Got response: "@10_10.100.172.185_net" Got response: I-1 Got response: "@11_10.100.172.185_net" Got response: I-1 Got response: "@12_10.100.172.185_net" Got response: I-1 Got response: "@13_10.100.172.185_net" Got response: I-1 Got response: "@14_10.100.172.185_net" Got response: I-1 Got response: "@15_10.100.172.185_net" Got response: I-1 2019-04-16 17:57:00,653 - INFO - start - >>> Starting sync_gateway with configuration: /Users/eunicehuang/dev/mobile-testkit/resources/sync_gateway_configs/sync_gateway_travel_sample_cc.json INFO:test_framework:>>> Starting sync_gateway with configuration: /Users/eunicehuang/dev/mobile-testkit/resources/sync_gateway_configs/sync_gateway_travel_sample_cc.json Keyerror in getting loggingredactlevel revs_limit no found in resources/cluster_configs/base_cc, Ignoring Running playbook: libraries/provision/ansible/playbooks/start-sync-gateway.yml PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [SYNC GATEWAY | Copy sync gateway config to host] ************************* ok: [sg1] TASK [Deleting /home/sync_gateway/certs directory] ***************************** skipping: [sg1] TASK [Deleting /home/sync_gateway/certs.zip] *********************************** skipping: [sg1] TASK [Copying certs.zip to /home/sync_gateway directory] *********************** skipping: [sg1] TASK [Unzipping certs.zip] ***************************************************** skipping: [sg1] TASK [SYNC GATEWAY | Check deployed config] ************************************ changed: [sg1] TASK [SYNC GATEWAY | Print deployed config] ************************************ ok: [sg1] => { "out.stdout": { "SSLCert": "sg_cert.pem", "SSLKey": "sg_privkey.pem", "adminInterface": "0.0.0.0:4985", "compressResponses": false, "databases": { "db": { "bucket": "travel-sample", "enable_shared_bucket_access": true, "import_docs": "continuous", "num_index_replicas": 0, "password": "password", "server": "http://192.168.33.10:8091", "username": "travel-sample" } }, "interface": ":4984", "logging": { "debug": { "enabled": true } }, "maxCouchbaseConnections": 16, "maxFileDescriptors": 90000, "maxIncomingConnections": 0, "slowServerCallWarningThreshold": 500 } } TASK [SYNC GATEWAY | Deploying SSL Cert] *************************************** ok: [sg1] TASK [SYNC GATEWAY | Deploying SSL Private Key] ******************************** ok: [sg1] TASK [SYNC GATEWAY | Check if C:\PROGRA~2\Couchbase is present on Windows] ***** skipping: [sg1] TASK [SYNC GATEWAY | Copy sync gateway config to C:\PROGRA~2\Couchbase] ******** skipping: [sg1] TASK [SYNC GATEWAY | Check deployed config C:\PROGRA~2\Couchbase\serviceconfig.json] *** skipping: [sg1] TASK [SYNC GATEWAY | Check if C:\PROGRA~1\Couchbase\Sync Gateway is present on Windows] *** skipping: [sg1] TASK [SYNC GATEWAY | Copy sync gateway config to C:\PROGRA~1\Couchbase\Sync Gateway] *** skipping: [sg1] TASK [SYNC GATEWAY | Check deployed config C:\PROGRA~1\Couchbase\Sync Gateway\serviceconfig.json] *** skipping: [sg1] TASK [SYNC GATEWAY | Print deployed config] ************************************ skipping: [sg1] PLAY [sync_gateways] *********************************************************** TASK [setup] ******************************************************************* ok: [sg1] TASK [debug] ******************************************************************* ok: [sg1] => { "msg": "Starting sync_gateway" } TASK [SYNC GATEWAY | Start sync gateway service] ******************************* changed: [sg1] TASK [SYNC GATEWAY | Wait until sync gateway to listen on port] **************** ok: [sg1] TASK [debug] ******************************************************************* skipping: [sg1] TASK [SYNC GATEWAY | Start sync_gateway service on Windows] ******************** skipping: [sg1] TASK [SYNC GATEWAY | Wait until sync gateway to listen on port] **************** skipping: [sg1] PLAY RECAP ********************************************************************* sg1 : ok=10 changed=2 unreachable=0 failed=0 Got response: "stopped" Got response: "stopped" Activity level: stopped GET https://192.168.33.11:4984/db/_all_docs?include_docs=true 200 GET https://192.168.33.11:4984/db/sg_docs_0?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_0: 1 times GET https://192.168.33.11:4984/db/sg_docs_1?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_1: 1 times GET https://192.168.33.11:4984/db/sg_docs_2?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_2: 1 times GET https://192.168.33.11:4984/db/sg_docs_3?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_3: 1 times GET https://192.168.33.11:4984/db/sg_docs_4?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_4: 1 times GET https://192.168.33.11:4984/db/sg_docs_5?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_5: 1 times GET https://192.168.33.11:4984/db/sg_docs_6?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_6: 1 times GET https://192.168.33.11:4984/db/sg_docs_7?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_7: 1 times GET https://192.168.33.11:4984/db/sg_docs_8?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_8: 1 times GET https://192.168.33.11:4984/db/sg_docs_9?conflicts=true&revs=true&show_exp=true 200 Updating https://192.168.33.11:4984/db/sg_docs_9: 1 times Got response: "stopped" Activity level: stopped Got response: [] Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: {} Got response: I-1 Got response: "stopped" Got response: "stopped" PASSEDTearing down test Deleting the database cbl-test at test teardown Got response: I-1 Stopping the test server per test Flushing server memory Got response: I-1 Clearing png files in resources/data ------------- generated xml file: /Users/eunicehuang/dev/mobile-testkit/results/results.xml -------------- ------------- generated html file: /Users/eunicehuang/dev/mobile-testkit/results/report.html ------------- ========================================== 121 tests deselected ========================================== =============================== 1 passed, 121 deselected in 199.41 seconds =============================== (venv) eunices-mbp:mobile-testkit eunicehuang$