Details
Description
|
Job run:
|
http://qa.sc.couchbase.com/job/asterix-basic-query-tests
|
|
Test run:
|
python testrunner.py -i local.ini -c conf/cbas/py-tuq-analytics.conf -p analytics=True -p doc-per-day=1 -p standard_buckets=1
|
|
local.ini:
|
[global]
|
username:root
|
password:couchbase
|
#username:Administrator
|
#password:Membase123
|
port:8091
|
n1ql_port:8093
|
index_port:9102
|
|
data_path=/data
|
index_path=/data
|
|
[membase]
|
rest_username:Administrator
|
rest_password:password
|
|
[servers]
|
1:_1
|
|
[_1]
|
ip:172.23.108.232
|
services:kv,n1ql,index
|
|
Error seen during teardown:
|
"msg": "Cannot execute request, cluster is UNUSABLE"
|
|
I am able to reproduce it consistently on this machine.
|
|
|
What the teardown process does?
|
if self.analytics == True:
|
data = 'use Default ;' + "\n"
|
for bucket in self.buckets:
|
data += 'disconnect bucket {0} ;'.format(bucket.name) + "\n"
|
data += 'drop dataset {0}'.format(bucket.name) + "_shadow ;" + "\n"
|
data += 'drop bucket {0} ;'.format(bucket.name) + "\n"
|
filename = "file.txt"
|
f = open(filename,'w')
|
f.write(data)
|
f.close()
|
url = 'http://{0}:8095/analytics/service'.format(self.master.ip)
|
cmd = 'curl -s --data pretty=true --data-urlencode "statement@file.txt" ' + url
|
os.system(cmd)
|
|
|
Attaching cbas logs.
|
Please feel free to use the machine/ini file for some time.
|
|
|