Comments (5)
I tried to create a reproducer that runs on a standard RHEL 9.4 cloud image (as that's where it fails most often, but it also fails on C8S, Fedora 39, etc.).
First, some prep:
systemctl stop firewalld
hostnamectl set-hostname x0.cockpit.lan
logout
# log back in to pick up changed host name
Set up the Samba container:
cat <<EOF > /tmp/samba-ad.json
{
"samba-container-config": "v0",
"configs": {
"demo": {
"instance_features": ["addc"],
"domain_settings": "sink",
"instance_name": "smb"
}
},
"domain_settings": {
"sink": {
"realm": "COCKPIT.LAN",
"short_domain": "COCKPIT",
"admin_password": "foobarFoo123"
}
}
}
EOF
SERVER_IP=$(ip route show | grep -oP 'src \K\S+' | head -n1)
# necessary?
# echo "$SERVER_IP x0.cockpit.lan x0" >> /etc/hosts
podman run -d --rm --name samba --privileged \
-p $SERVER_IP:53:53/udp -p 389:389 -p 389:389/udp -p 445:445 \
-p 88:88 \
-p 88:88/udp \
-p 135:135 \
-p 137-138:137-138/udp \
-p 139:139 \
-p 464:464 \
-p 464:464/udp \
-p 636:636 \
-p 1024-1044:1024-1044 \
-p 3268-3269:3268-3269 \
-v /tmp/samba-ad.json:/etc/samba/container.json \
-h smb.cockpit.lan \
quay.io/samba.org/samba-ad-server
nmcli con mod 'System eth0' ipv4.ignore-auto-dns yes ipv4.dns $SERVER_IP
systemctl restart NetworkManager
# echo "nameserver $SERVER_IP" > /etc/resolv.conf
# wait until server is running
until nslookup -type=SRV _ldap._tcp.cockpit.lan; do sleep 1; done
until nc -z $SERVER_IP 389; do sleep 1; done
# add AD user
podman exec -i samba samba-tool user add alice foobarFoo123
Now the AD client side:
printf '[cockpit.lan]\nfully-qualified-names = no\n' > /etc/realmd.conf
# this should see up COCKPIT.LAN
realm discover
# cockpit.lan type kerberos, client-software: sssd, etc
echo foobarFoo123 | realm join -vU Administrator cockpit.lan
This succeeds.
id alice
fails, and sssctl domain-status cockpit.lan
is in a semi-broken state: It says "Online" (instead of "offline" as our test does), but it still cannot find the global catalog:
Online status: Online
Active servers:
AD Global Catalog: not connected
AD Domain Controller: smb.cockpit.lan
Discovered AD Global Catalog servers:
None so far.
Discovered AD Domain Controller servers:
- smb.cockpit.lan
The sssd log is rather empty:
# cat /var/log/sssd/sssd_cockpit.lan.log
(2023-11-20 6:07:28): [be[cockpit.lan]] [server_setup] (0x3f7c0): Starting with debug level = 0x0070
all other log files look similar.
So this clearly does not reproduce the actual flake/error, but I'm lost here. Do you have a hint how to fix this CLI reproducer? Once it works in general, I hope I can make it flake/error like our actual test (which is hard to debug as there are so many moving parts).
Thanks!
from samba-container.
CC: @gd
from samba-container.
We moved back to https://github.com/Fmstrat/samba-domain a while ago, and while that made it better, we still see that bug a lot. As this happens on two completely different OSes/samba packaging (Fedora and Ubuntu), this looks like a regression in samba itself. Our current container has Samba 4.15.13. But I still have no idea where to go from here.
from samba-container.
We moved back to https://github.com/Fmstrat/samba-domain a while ago, and while that made it better, we still see that bug a lot.
I'm sorry to hear that. Both for the change and for the issue.
As this happens on two completely different OSes/samba packaging (Fedora and Ubuntu), this looks like a regression in samba itself. Our current container has Samba 4.15.13. But I still have no idea where to go from here.
It is certainly possible.
We build images tagged nightly
that include nightly builds of samba master. Could you try quay.io/samba.org/samba-ad-server:nightly
and see if the issue occurs there too? If so, we may want to report the issue at the samba bugzilla.
Also sorry for the lack of response ealier. I saw this issue when I was on vacation and pinged my manager at work hoping he'd have someone else look into it. But I guess not and from my POV it fell through the cracks.
from samba-container.
No worries at all @phlogistonjohn ! Thanks for the hint, I'll try the nightly image, in January (this is EOY for me as well). Happy holidays!
from samba-container.
Related Issues (20)
- github actions generates many warnings HOT 3
- toolbox image fails to push HOT 8
- Document the image publish workflow
- nightly builds not using nightly samba rpms
- Including additional VFS modules HOT 1
- Toolbox image build is failing HOT 9
- Migrate container images to fedora 37 at minimum
- install tdb-tools in (ad-server-) container HOT 2
- add gitlint commit linting
- add support for building debian/ubuntu based images HOT 1
- Fix centos toolbox container base image
- error in build-image script in CI
- Missing DNS forwarder setting HOT 4
- Add AARCH64 Support HOT 7
- Tests suites regularly failing: test-ad-server-kubernetes on default,opensuse,amd64 HOT 12
- How to get a [global] option into smb.conf? HOT 10
- Support to add local users to local groups HOT 1
- Update to actions/checkout@v4
- How to run with podman compose? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samba-container.