Skip to content
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

[QA] docker/eos-ocis builds without tagging #814

Closed
wants to merge 1 commit into from

Conversation

jnweiger
Copy link
Contributor

@jnweiger jnweiger commented Nov 6, 2020

Seen in ocis v1.0.0-rc3 using ocis/ocis/docker-compose-eos-test.yml

The Dockerfile in docker/eos-ocis is run without a BRANCH build arg, and thus currently always defaults to master.

In general, version pinning is very important for reproducable results, but:
CAUTION: With v1.0.0-rc3, ldap stops working, when we apply this PR.

nslcd -d is running, but id einstein fails with no such user.

docker logs

Attaching to ocis
ocis          | 2020-11-06 10:46:01.968715 I | handleSearchRequest error LDAP Result Code 1 "Operations Error": search error: error listing users
ocis          | nslcd: [7b23c6] <passwd=20000> ldap_result() failed: Operations error
ocis          | 2020-11-06T10:46:17Z DBG refreshing external service-registration service={"endpoints":[],"metadata":null,"name":"com.owncloud.storage","nodes":[{"address":"0.0.0.0:9142","id":"com.owncloud.storage-0a36ed03-abe8-4961-b1db-39b8c1614a42","metadata":{"broker":"http","protocol":"grpc","registry":"mdns","server":"grpc","transport":"grpc"}}],"version":""}
ocis          | 2020-11-06T10:46:47Z DBG refreshing external service-registration service={"endpoints":[],"metadata":null,"name":"com.owncloud.storage","nodes":[{"address":"0.0.0.0:9142","id":"com.owncloud.storage-0a36ed03-abe8-4961-b1db-39b8c1614a42","metadata":{"broker":"http","protocol":"grpc","registry":"mdns","server":"grpc","transport":"grpc"}}],"version":""}
ocis          | 2020-11-06T10:47:17Z DBG refreshing external service-registration service={"endpoints":[],"metadata":null,"name":"com.owncloud.storage","nodes":[{"address":"0.0.0.0:9142","id":"com.owncloud.storage-0a36ed03-abe8-4961-b1db-39b8c1614a42","metadata":{"broker":"http","protocol":"grpc","registry":"mdns","server":"grpc","transport":"grpc"}}],"version":""}
ocis          | 2020-11-06T10:47:47Z DBG refreshing external service-registration service={"endpoints":[],"metadata":null,"name":"com.owncloud.storage","nodes":[{"address":"0.0.0.0:9142","id":"com.owncloud.storage-0a36ed03-abe8-4961-b1db-39b8c1614a42","metadata":{"broker":"http","protocol":"grpc","registry":"mdns","server":"grpc","transport":"grpc"}}],"version":""}
ocis          | 2020-11-06T10:48:17Z DBG refreshing external service-registration service={"endpoints":[],"metadata":null,"name":"com.owncloud.storage","nodes":[{"address":"0.0.0.0:9142","id":"com.owncloud.storage-0a36ed03-abe8-4961-b1db-39b8c1614a42","metadata":{"broker":"http","protocol":"grpc","registry":"mdns","server":"grpc","transport":"grpc"}}],"version":""}
ocis          | 2020-11-06T10:48:47Z DBG refreshing external service-registration service={"endpoints":[],"metadata":null,"name":"com.owncloud.storage","nodes":[{"address":"0.0.0.0:9142","id":"com.owncloud.storage-0a36ed03-abe8-4961-b1db-39b8c1614a42","metadata":{"broker":"http","protocol":"grpc","registry":"mdns","server":"grpc","transport":"grpc"}}],"version":""}
ocis          | 2020-11-06T10:49:17Z DBG refreshing external service-registration service={"endpoints":[],"metadata":null,"name":"com.owncloud.storage","nodes":[{"address":"0.0.0.0:9142","id":"com.owncloud.storage-0a36ed03-abe8-4961-b1db-39b8c1614a42","metadata":{"broker":"http","protocol":"grpc","registry":"mdns","server":"grpc","transport":"grpc"}}],"version":""}
ocis          | 2020-11-06T10:49:47Z DBG refreshing external service-registration service={"endpoints":[],"metadata":null,"name":"com.owncloud.storage","nodes":[{"address":"0.0.0.0:9142","id":"com.owncloud.storage-0a36ed03-abe8-4961-b1db-39b8c1614a42","metadata":{"broker":"http","protocol":"grpc","registry":"mdns","server":"grpc","transport":"grpc"}}],"version":""}
ocis          | nslcd: [3c9869] DEBUG: connection from pid=317 uid=0 gid=0
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: myldap_search(base="dc=example,dc=org", filter="(&(objectClass=posixAccount)(uid=einstein))")
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: ldap_initialize(ldap://ocis.testnet:9125/)
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: ldap_set_rebind_proc()
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: ldap_set_option(LDAP_OPT_PROTOCOL_VERSION,3)
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: ldap_set_option(LDAP_OPT_DEREF,0)
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: ldap_set_option(LDAP_OPT_TIMELIMIT,0)
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: ldap_set_option(LDAP_OPT_TIMEOUT,0)
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: ldap_set_option(LDAP_OPT_NETWORK_TIMEOUT,0)
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: ldap_set_option(LDAP_OPT_REFERRALS,LDAP_OPT_ON)
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: ldap_set_option(LDAP_OPT_RESTART,LDAP_OPT_ON)
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: ldap_simple_bind_s("cn=reva,ou=sysusers,dc=example,dc=org","***") (uri="ldap://ocis.testnet:9125/")
ocis          | 2020-11-06T10:50:13Z DBG Bind request basedn=dc=example,dc=org binddn=cn=reva,ou=sysusers,dc=example,dc=org handler=ocis service=glauth src={"IP":"172.18.0.7","Port":49908,"Zone":""}
ocis          | nslcd: DEBUG: accept() failed (ignored): Resource temporarily unavailable
ocis          | 2020-11-06T10:50:14Z DBG Bind success binddn=cn=reva,ou=sysusers,dc=example,dc=org handler=ocis service=glauth src={"IP":"172.18.0.7","Port":49908,"Zone":""}
ocis          | 2020-11-06T10:50:14Z DBG Search request basedn=dc=example,dc=org binddn=cn=reva,ou=sysusers,dc=example,dc=org filter=(&(objectClass=posixAccount)(uid=einstein)) handler=ocis service=glauth src={"IP":"172.18.0.7","Port":49908,"Zone":""}
ocis          | 2020-11-06T10:50:14Z DBG parsed query basedn=dc=example,dc=org binddn=cn=reva,ou=sysusers,dc=example,dc=org filter=(&(objectClass=posixAccount)(uid=einstein)) handler=ocis qtype=users query="on_premises_sam_account_name eq 'einstein'" service=glauth
ocis          | 2020-11-06T10:50:14Z DBG found account AccountEnabled=true CreatedDateTime=null DeletedDateTime=null Description= DisplayName="Albert Einstein" GidNumber=30000 Id=4c510ada-c86b-4815-8820-42cdf82c3d51 Identities=null IsResourceAccount=false Mail=einstein@example.org MemberOf=[{"id":"509a9dcd-bb37-4f4f-a01a-19dca27d9cfa"},{"id":"6040aa17-9c64-4fef-9bd0-77234d71bad0"},{"id":"dd58e5ec-842e-498b-8800-61f2ec6f911f"},{"id":"262982c1-2362-4afa-bfdf-8cbfef64a06e"}] OnPremisesDistinguishedName= OnPremisesLastSyncDateTime=null OnPremisesSamAccountName=einstein OnPremisesSecurityIdentifier= OnPremisesSyncEnabled=false OnPremisesUserPrincipalName= PreferredName=einstein UidNumber=20000 service=accounts
ocis          | 2020-11-06T10:50:14Z DBG AP: Search OK basedn=dc=example,dc=org binddn=cn=reva,ou=sysusers,dc=example,dc=org filter=(&(objectClass=posixAccount)(uid=einstein)) handler=ocis num_entries=1 service=glauth src={"IP":"172.18.0.7","Port":49908,"Zone":""}
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: ldap_result(): cn=einstein,ou=users,dc=example,dc=org
ocis          | nslcd: [3c9869] <passwd="einstein"> cn=einstein,ou=users,dc=example,dc=org: homeDirectory: missing
ocis          | nslcd: [3c9869] <passwd="einstein"> DEBUG: ldap_result(): end of results (1 total)
ocis          | nslcd: [334873] DEBUG: connection from pid=317 uid=0 gid=0
ocis          | nslcd: [334873] <passwd=20000> DEBUG: myldap_search(base="dc=example,dc=org", filter="(&(objectClass=posixAccount)(uidNumber=20000))")
ocis          | nslcd: [334873] <passwd=20000> ldap_search_ext() failed: Can't contact LDAP server: Broken pipe
ocis          | nslcd: [334873] <passwd=20000> DEBUG: ldap_unbind()
ocis          | nslcd: [334873] <passwd=20000> no available LDAP server found, sleeping 1 seconds
ocis          | nslcd: [334873] <passwd=20000> DEBUG: ldap_initialize(ldap://ocis.testnet:9125/)
ocis          | nslcd: [334873] <passwd=20000> DEBUG: ldap_set_rebind_proc()
ocis          | nslcd: [334873] <passwd=20000> DEBUG: ldap_set_option(LDAP_OPT_PROTOCOL_VERSION,3)
ocis          | nslcd: [334873] <passwd=20000> DEBUG: ldap_set_option(LDAP_OPT_DEREF,0)
ocis          | nslcd: [334873] <passwd=20000> DEBUG: ldap_set_option(LDAP_OPT_TIMELIMIT,0)
ocis          | nslcd: [334873] <passwd=20000> DEBUG: ldap_set_option(LDAP_OPT_TIMEOUT,0)
ocis          | nslcd: [334873] <passwd=20000> DEBUG: ldap_set_option(LDAP_OPT_NETWORK_TIMEOUT,0)
ocis          | nslcd: [334873] <passwd=20000> DEBUG: ldap_set_option(LDAP_OPT_REFERRALS,LDAP_OPT_ON)
ocis          | nslcd: [334873] <passwd=20000> DEBUG: ldap_set_option(LDAP_OPT_RESTART,LDAP_OPT_ON)
ocis          | nslcd: [334873] <passwd=20000> DEBUG: ldap_simple_bind_s("cn=reva,ou=sysusers,dc=example,dc=org","***") (uri="ldap://ocis.testnet:9125/")
ocis          | 2020-11-06T10:50:15Z DBG Bind request basedn=dc=example,dc=org binddn=cn=reva,ou=sysusers,dc=example,dc=org handler=ocis service=glauth src={"IP":"172.18.0.7","Port":49914,"Zone":""}
ocis          | 2020-11-06T10:50:15Z DBG Bind success binddn=cn=reva,ou=sysusers,dc=example,dc=org handler=ocis service=glauth src={"IP":"172.18.0.7","Port":49914,"Zone":""}
ocis          | nslcd: [334873] <passwd=20000> connected to LDAP server ldap://ocis.testnet:9125/
ocis          | 2020-11-06T10:50:15Z DBG Search request basedn=dc=example,dc=org binddn=cn=reva,ou=sysusers,dc=example,dc=org filter=(&(objectClass=posixAccount)(uidNumber=20000)) handler=ocis service=glauth src={"IP":"172.18.0.7","Port":49914,"Zone":""}
ocis          | 2020-11-06T10:50:15Z DBG parsed query basedn=dc=example,dc=org binddn=cn=reva,ou=sysusers,dc=example,dc=org filter=(&(objectClass=posixAccount)(uidNumber=20000)) handler=ocis qtype=users query="uid_number eq 20000" service=glauth
ocis          | 2020-11-06T10:50:15Z ERR Could not list accounts error="{\"id\":\"com.owncloud.api.accounts\",\"code\":400,\"detail\":\"unsupported query uid_number eq 20000\",\"status\":\"Bad Request\"}" basedn=dc=example,dc=org binddn=cn=reva,ou=sysusers,dc=example,dc=org filter=(&(objectClass=posixAccount)(uidNumber=20000)) handler=ocis query="uid_number eq 20000" service=glauth src={"IP":"172.18.0.7","Port":49914,"Zone":""}
ocis          | 2020-11-06 10:50:15.256272 I | handleSearchRequest error LDAP Result Code 1 "Operations Error": search error: error listing users
ocis          | nslcd: [334873] <passwd=20000> ldap_result() failed: Operations error
ocis          | 2020-11-06T10:50:17Z DBG refreshing external service-registration service={"endpoints":[],"metadata":null,"name":"com.owncloud.storage","nodes":[{"address":"0.0.0.0:9142","id":"com.owncloud.storage-0a36ed03-abe8-4961-b1db-39b8c1614a42","metadata":{"broker":"http","protocol":"grpc","registry":"mdns","server":"grpc","transport":"grpc"}}],"version":""}

@jnweiger jnweiger requested a review from butonic November 6, 2020 10:53
@update-docs
Copy link

update-docs bot commented Nov 6, 2020

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@jnweiger
Copy link
Contributor Author

jnweiger commented Nov 6, 2020

This error does not happen when we let docker/eos-ocis build with default master.

@micbar
Copy link
Contributor

micbar commented Nov 12, 2020

@jnweiger I don't get it :-) it is pinned by the tag.

@felixboehm
Copy link
Contributor

@jnweiger is there an issue with the setup?
Or another issue with ldap?

@jnweiger
Copy link
Contributor Author

jnweiger commented Nov 17, 2020

@jnweiger is there an issue with the setup?
Or another issue with ldap?

When I try to pin the branch in the dockerfile, users cannot log in. My diagnosis was that ldap did not load correctly then.
We will retry with RC5 later today.

@jnweiger I don't get it :-) it is pinned by the tag.

Apparently it makes a difference. If I add the tag name as a BRANCH build arg we get a differnt behaviour than when we run the dockerfile without that build arg.
The dockerfile checks out a fresh copy of master instead of using the current branch.

So my dilemma here is that I could only run tests without such pinning.

@butonic
Copy link
Member

butonic commented Jul 1, 2021

eos tests are no longer covered by ocis ci. it should run in reva or elsewhere.

@butonic butonic closed this Jul 1, 2021
@pascalwengerter pascalwengerter deleted the release-1.0.0-rc3-pinning branch August 4, 2021 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants