jneo8 / charm-userdir-ldap Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Seen in a recent deployment of userdir-ldap:
ud-replicate fails, unable to find the requested file:
makedb: cannot open input file `juju-751555-prod-error-tracker-cassandra-0/passwd.tdb': No such file or directory
/var/lib/misc/thishost is a symlink to $(hostname).None: "lrwxrwxrwx 1 root root 47 Jul 19 09:49 thishost -> juju-751555-prod-error-tracker-cassandra-0.None"
This can be seen in the Juju unit logs:
2023-07-19 09:49:07 DEBUG unit.userdir-ldap/9.juju-log server.go:325 setup_udldap, config: {...'ciphers': ',,', 'domain': None, ...}
Note that this is not a string value - it's showing up as "None", not "'None'".
juju config shows that this value is "unset":
domain:
description: Fallback domain when none present. This is mostly to work around
MAAS's failure to add DNS for LXC containers - LP#1274947.
source: unset
type: string
And after setting it explicitly to an empty string, things start working:
domain:
description: Fallback domain when none present. This is mostly to work around
MAAS's failure to add DNS for LXC containers - LP#1274947.
source: user
type: string
value: ""
2023-09-20 04:57:18 DEBUG unit.userdir-ldap/9.juju-log server.go:325 setup_udldap, config: {'...'ciphers': ',,', 'domain': '',...}
ubuntu@juju-751555-prod-error-tracker-cassandra-0:~$ sudo ud-replicate
receiving file list ... done
...
sent 13,031 bytes received 9,258 bytes 8,915.60 bytes/sec
total size is 1,494,751 speedup is 67.06
Imported from Launchpad using lp2gh.
On Jammy install fails with python_hosts module missing
2023-05-15 14:03:37 WARNING unit.ud-ldap-standalone/1.install logger.go:60 Traceback (most recent call last):
2023-05-15 14:03:37 WARNING unit.ud-ldap-standalone/1.install logger.go:60 File "/var/lib/juju/agents/unit-ud-ldap-standalone-1/charm/hooks/install.real", line 26, in <module>
2023-05-15 14:03:37 WARNING unit.ud-ldap-standalone/1.install logger.go:60 import utils
2023-05-15 14:03:37 WARNING unit.ud-ldap-standalone/1.install logger.go:60 File "/var/lib/juju/agents/unit-ud-ldap-standalone-1/charm/hooks/utils.py", line 23, in <module>
2023-05-15 14:03:37 WARNING unit.ud-ldap-standalone/1.install logger.go:60 from python_hosts.hosts import Hosts, HostsEntry
2023-05-15 14:03:37 WARNING unit.ud-ldap-standalone/1.install logger.go:60 ModuleNotFoundError: No module named 'python_hosts.hosts'
2023-05-15 14:03:37 ERROR juju.worker.uniter.operation runhook.go:180 hook "install" (via explicit, bespoke hook script) failed: exit status 1
2023-05-15 14:04:49 DEBUG unit.ud-ldap-standalone/1.install logger.go:60 Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
workaround is to run on the unit
pip install python-hosts
Imported from Launchpad using lp2gh.
date created: 2023-05-15T14:38:37Z
owner: peppepetra
assignee: None
the launchpad url
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.