-
Notifications
You must be signed in to change notification settings - Fork 56
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
Get integration tests running in CI #98
Comments
I have setup a new branch CircleCi without travis. |
Awesome.
The python package's name is `python-ldap`, the Debian package calls it
`python-ldap` or `python3-ldap`. So don't put python3-ldap in
requirements.txt.
How are you testing your Circle config?
…On Sat, 2 Nov 2019 at 05:43, 3c2b2ff5 ***@***.***> wrote:
I have setup a new branch CircleCi
<https://github.com/3c2b2ff5/nsscache/tree/CircleCi> without travis.
I noticed that when ahving python3-ldap in requirements.txt the build
will fail, with python-ldap the build succeeds, even when running the
tests with Python 3.
Next step will be to spinn up a docker container with samba 4 AD and
another one with openldap or slapd.
I still need to figure out how to test against the source server.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#98?email_source=notifications&email_token=AAXFX62JPQJAV5OQYCIXCPDQRR2G3A5CNFSM4JHUUQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC32GAA#issuecomment-548905728>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXFX65XFGRPJIVANO4YWQLQRR2G3ANCNFSM4JHUUQDQ>
.
|
currently I created a circleci account and it runs successfully, with the difference to travisci that you cannot choose a branch, at least I couldn't finde it.
But it is really fast. The CI runs in less than a minute. |
Now the build in CircleCi runs successful, samba is installed and the domain provisioned, the users, the groups and the group members are are successfully added, there are still some issues to be solved.
And a lot of:
|
I am tending now to run CircleCi loacally or on CircleCi just to test the config and to run
Do you have further ideas? |
I have managed to install samba4 AD with Travis. |
I fixed the verify command by adding a |
I fixed it in the last commit. I had to switch the verify and the update commands, otherwise when running the verify at the end, it gives the error that the cache entries in passwd/group/shadow are not available via NSS. |
Any ideas why running |
I haven't had a chance to test yet, but I'll investigate layer today or
tomorrow.
…On Fri, 8 Nov 2019, 13:32 3c2b2ff5, ***@***.***> wrote:
Any ideas why running verify after update result in the mentioned error?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#98?email_source=notifications&email_token=AAXFX6ZI7HPHDFVM3HQ2RBDQSVL7RA5CNFSM4JHUUQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDRH57I#issuecomment-551714557>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXFX6YCAAO24QDTDSBPYRDQSVL7RANCNFSM4JHUUQDQ>
.
|
cool. Thanks |
Fix all broken tests, or skip a few at least, that did not work under pytest. Issue #98
The CircleCI build now runs the OpenLDAP regression test as par tof the release. I discovered that the sambaSID changes broke this, so that's good that it caught them. I think making sambaSID an essential attribute only if use_rid is configured is the right thing to do. I tried to get the samba4 script running, but I got stuck trying to figure out how to run samba as a non-root user. |
Indeed! Running openldap without samba3 schema will break the tests and nsscache. Normally you have the smaba3 schema integration within openldap. Using openldap without any extensions for authentication or as a directory service we need to modify the code at this point to satisfy a plain openldap installation. To install and run samba4 AD you need to run the script |
I cannot test now with CircleCi. I keep get the following error at the coveralls stage:
I already created an account on coveralls. I have no prior experience with coveralls. |
You can instal lthe python package 'python-coveralls' to get the command.
All it's doing isuplodaing the coverage information to http://coveralls.io.
If you want you can ignore that, comment it out on your own branch, but
also I don't think you need to run your own circleci now. If you can get a
shell script doing the full setup locally we can work from there.
…On Mon, 11 Nov 2019 at 18:22, 3c2b2ff5 ***@***.***> wrote:
I cannot test now with CircleCi. I keep get the following error at the
coveralls stage:
#!/bin/bash -eo pipefail
coveralls
/bin/bash: coveralls: command not found
Exited with code 127
I already created an account on coveralls. I have no prior experience with
coveralls.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#98?email_source=notifications&email_token=AAXFX632YZEJDKJGOENI3MDQTGPFNA5CNFSM4JHUUQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDXVPPA#issuecomment-552556476>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXFX66DBMP7IKEMDEPQUOLQTGPFNANCNFSM4JHUUQDQ>
.
|
Well I could get the samba script running on travisci but not on circleci, circleci seems to use filesystem not supporting posix acl's, which is required for the domain provision. |
I have a solution for this issue, we need to compile samba with non default options to fake acl's. I'll be working on it today. |
So compiling samba takes 20 - 25 minutes. I don't think this a good idea to compile in CI. |
Maybe there is a docker image we can reuse?
…On Fri, 15 Nov 2019, 17:41 3c2b2ff5, ***@***.***> wrote:
So compiling samba takes 20 - 25 minutes. I don't think this a good idea
to compile in CI.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#98?email_source=notifications&email_token=AAXFX67XHWD7QGEMW4NB5EDQT3GMRA5CNFSM4JHUUQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEGAHSA#issuecomment-554435528>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXFX63T2TASJWSPMROBKALQT3GMRANCNFSM4JHUUQDQ>
.
|
Indeed, there are several images out there, but can they be used with circleci? or are we stuck with what circleci provides? |
we still have the possibility to compile samba4 from source and create a Debian package locally and provide it to the CI, but this is also not the best idea. |
after some tests, the image doesn't provide neither sudo nor apt-get, so I cannot install any requirements within a container. It seems it is a standard behavior of docker images. |
or may be create a custom nsscache docker image? |
I tested further images from docker hub, unfortunately we still have the same issue with filesytem. The problem seems that circleci mounts the filesystem from whatever image we use without posix ACLs support. |
I got it to work, but with the machine executor, non of the docker images or orbs support posix ACLs. If we want to provision a Samba4 AD, then we have to use the machine executor. |
If you decided to provision a Samba4 AD, there are some challenges to achieve, since the machine executor is not a Python build. |
I am stuck with the with the machine executor. Please take a look to the config.yml. |
The last commit works. |
I don't understand what the problem is with the POSIX acls on the
filesystem, can you explain what errors you got?
…On Sun, 17 Nov 2019 at 22:54, 3c2b2ff5 ***@***.***> wrote:
The last commit
<https://github.com/3c2b2ff5/nsscache/blob/CircleCi/.circleci/config.yml>
works.
The regtest of openldap doesn't work, there is an error Can't contact
LDAP server (-1).
Further more the Samba4 AD test is not implemented yet.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#98?email_source=notifications&email_token=AAXFX6YUUJ7RWOWNPVBP24LQUHDRDA5CNFSM4JHUUQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEIYRDI#issuecomment-554797197>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXFX64COQBCX3JNQXMOI5DQUHDRDANCNFSM4JHUUQDQ>
.
|
to provision a Samba4 domain, the filesystem must support posix ACLs, otherwise you get the following error:
Either the filesystem supports posix ACLs, or we remount the filesystem with something like: It is your call if you want test against Samba4 AD. The previous error is related to dns resolver for my understanding. Since example.com can be resolved and there is no LDAP server running there, I guess we need to resolve |
I opened an issue on CircleCI-Public/python-orb, maybe they can add the posix ACLs support. |
Thanks for the detailed explanation, I really appreciate you taking the
time.
I don't know what to do about it yet, but for now will leave this bug open.
…On Mon, 18 Nov 2019, 13:45 3c2b2ff5, ***@***.***> wrote:
I opend an issue on CircleCI-Public/python-orb
<CircleCI-Public/python-orb#25>, maybe they can
add the posix ACLs support.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#98?email_source=notifications&email_token=AAXFX66O25VAUO5IINGQGJTQUKL6LA5CNFSM4JHUUQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEKPGVI#issuecomment-555021141>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXFX663B2Q5P6QCXL6Y7WTQUKL6LANCNFSM4JHUUQDQ>
.
|
No problem at all. I feel committed as well, and I would like to make things perfect as long as it is possible. I don't like half solutions. |
Hi, we would like to roll out nsscache on Debian buster in production, any ideas when the new Debian package will be available? Thanks |
Hi Jamie, |
https://tracker.debian.org/pkg/nsscache says that nsscache has been 0.39-2
since november in testing. Sorry I didn't mention that sooner.
…On Wed, 15 Jan 2020 at 19:00, 3c2b2ff5 ***@***.***> wrote:
Hi Jamie,
any news about the Debian package?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#98?email_source=notifications&email_token=AAXFX62JBS3MPJZQVVECCT3Q527C7A5CNFSM4JHUUQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI7M6IQ#issuecomment-574541602>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXFX6ZAEPGPWH22ARW4XKLQ527C7ANCNFSM4JHUUQDQ>
.
|
Thanks a lot. |
Tested with `podman build .` Issue: #98
`bdb` is deprecated, we now use `hdb`. Issue: #98
Tested with `podman build .` Issue: #98
`bdb` is deprecated, we now use `hdb`. Issue: #98
`bdb` is deprecated, we now use `hdb`. Issue: #98
@3c2b2ff5 contrinubted a samba integration test script but it needs a bit of work to run in Travis CI. I'd also like to turn my (not submitted) OpenLDAP test script into an integration test.
So two goals:
The text was updated successfully, but these errors were encountered: