The max_users_per_team setting can't be increased beyond 1000 if use_canonical_defaults is True

Bug #2037746 reported by Barry Price
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-k8s-mattermost
Fix Released
High
Barry Price

Bug Description

Modifying the charm setting `max_users_per_team` *ought* to update the pod spec and spawn a new pod with the new value in place.

Having just attempted this though, nothing appears to have happened, and the running unit and pod appear to have been unaffected.

Manually editing the deployment (e.g. `kubectl edit deployment mattermost`) shows the old value (for MM_TEAMSETTINGS_MAXUSERSPERTEAM) in place of the new one.

Modifying the value to the desired number within that `kubectl edit` session and saving it to apply seems to be a valid short-term workaround, but this can then come undone later when the charm notices the discrepancy.

Unsetting `use_canonical_defaults` would unfortunately introduce other operational changes which can't be worked around via current config options.

Related branches

Barry Price (barryprice)
description: updated
description: updated
description: updated
Revision history for this message
Barry Price (barryprice) wrote :

Okay, I've dug into the code and it appears we do read this value from config, but then override it via the _update_pod_spec_for_canonical_defaults method if `use_canonical_defaults` is set:

https://git.launchpad.net/charm-k8s-mattermost/tree/src/charm.py#n399

I think we need to either rethink that, or increase the default value from 1000 to say 2000 - 1000 is no longer enough for our deployments.

Barry Price (barryprice)
summary: - Modifying max_users_per_team has no effect
+ The max_users_per_team setting can't be increased beyond 1000 if
+ use_canonical_defaults is True
description: updated
description: updated
description: updated
Haw Loeung (hloeung)
Changed in charm-k8s-mattermost:
status: New → Confirmed
Barry Price (barryprice)
Changed in charm-k8s-mattermost:
status: Confirmed → Fix Committed
assignee: nobody → Barry Price (barryprice)
importance: Undecided → High
Barry Price (barryprice)
Changed in charm-k8s-mattermost:
status: Fix Committed → Fix Released
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.