udconsumer should re-announce it's hostname to udprovider if config template-hostname is adjusted.

Bug #1895760 reported by Drew Freiberger
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
userdir-ldap-charms
Won't Fix
Low
Unassigned

Bug Description

When using relation between udprovider and udconsumer, if udconsumer side of relation is using a template-hostname, it should be passed to udprovider for udprovider to link that hosts' key(s) with the template rather than the actual hostname provided from the consumer.

Currently, the udconsumer is looking for /var/cache/userdir-ldap/hosts/<hostname>.<domain> instead of /var/cache/userdir-ldap/hosts/<template-hostname>.

The udconsumer can still request hostname.domain, but the provider should squash that to template-hostname within the sshdist user's auth-keys config.

Revision history for this message
Drew Freiberger (afreiberger) wrote :

Actually, this does seem to work properly, but the relation data does not properly change when config changes on the consumer side. udconsumer should re-announce it's hostname to udprovider if config template-hostname is adjusted.

Revision history for this message
Drew Freiberger (afreiberger) wrote :

Two issues, udconsumer relation needs to relation-set new hostname to udprovider when config changed for template-hostname.

Track this above issue on this bug.

Other issue, udprovider does not copy files pulled from upstream from /var/lib/misc to /var/cache/userdir-ldap/hosts/ for it's udconsumers. To be tracked in lp#1897134.

https://bugs.launchpad.net/charm-userdir-ldap/+bug/1897134

summary: - when udconsumer has template-hostname defined, serve up that template
- via ssh key file
+ when udconsumer changes hostname, reconfigure rsync/authorized_keys
summary: - when udconsumer changes hostname, reconfigure rsync/authorized_keys
+ When changing template-hostname, trigger relation-set toward udprovider
+ with new hostname
summary: - When changing template-hostname, trigger relation-set toward udprovider
- with new hostname
+ udconsumer should re-announce it's hostname to udprovider if config
+ template-hostname is adjusted.
Andrea Ieri (aieri)
Changed in charm-userdir-ldap:
status: New → Triaged
importance: Undecided → Low
information type: Proprietary → Public
Revision history for this message
Eric Chen (eric-chen) wrote :
Changed in charm-userdir-ldap:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.