-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: sasl/binary-sasl.test.py fails #51
Labels
Comments
With patch: --- a/test/sasl/sasl.lua
+++ b/test/sasl/sasl.lua
@@ -67,6 +67,7 @@ env['SASL_CONF_PATH'] = fio.pathjoin(fio.cwd(), '../sasl/config/')
box.cfg{
wal_mode = 'none',
slab_alloc_arena = 0.1,
+ log_level = 7,
}
local memcached = require('memcached') log 'test/var/001_sasl/sasl.log' says:
|
Looks like SASL doesn't work: $ pip2 install python-binary-memcached==0.27.0
$ cat sasl-client.py
import bmemcached
client = bmemcached.Client(('127.0.0.1:8080', ), 'testuser', 'testpasswd')
client.set('key', 'value')
client.set('key1', 'value1')
print(client.get('key'))
print(client.get('key1'))
$ cat init.lua
box.cfg{
log_level = 7,
feedback_enabled = false,
}
mc = require('memcached')
m = mc.create('instance_1', '8080', {
expire_enabled = false,
verbosity = 3,
sasl = true
})
require('console'):start()
$ export SASL_CONF_PATH=$(pwd)/test/sasl/config
$ tarantool init.lua
...
$ python2 sasl-client.py:
Traceback (most recent call last):
File "sasl-client.py", line 3, in <module>
client.set('key', 'value')
File "/home/sergeyb/.local/lib/python2.7/site-packages/bmemcached/client/replicating.py", line 172, in set
returns.append(server.set(key, value, time, compress_level=compress_level))
File "/home/sergeyb/.local/lib/python2.7/site-packages/bmemcached/protocol.py", line 606, in set
return self._set_add_replace('set', key, value, time, compress_level=compress_level)
File "/home/sergeyb/.local/lib/python2.7/site-packages/bmemcached/protocol.py", line 573, in _set_add_replace
time, str_to_bytes(key), value))
File "/home/sergeyb/.local/lib/python2.7/site-packages/bmemcached/protocol.py", line 239, in _send
self._open_connection()
File "/home/sergeyb/.local/lib/python2.7/site-packages/bmemcached/protocol.py", line 151, in _open_connection
self._send_authentication()
File "/home/sergeyb/.local/lib/python2.7/site-packages/bmemcached/protocol.py", line 314, in _send_authentication
raise MemcachedException('Code: %d Message: %s' % (status, extra_content), status)
bmemcached.exceptions.MemcachedException Description of SASL commands is here https://github.com/couchbase/memcached/blob/master/docs/sasl.md |
Sample |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm going to disable the test in the scope of #49. It however need to be investigated and enabled back. Observed the following errors:
After that the test stuck.
If we'll install
sasl2-bin
package intest.sh
(forsaslpasswd2
tool, seetest/sasl/sasl.lua
) the errors will be gone, but the test still stucks:The text was updated successfully, but these errors were encountered: