Ensure PROCESS perm for sstuser on series-upgrade
This patch ensures that the PROCESS permission is added to the sstuser
user during a series upgrade from xenial to bionic. Also patches the
README to correct some of the commands in terms of order of parameters.
Closes-Bug: #1838044
(cherry picked from commit 15e5042854
)
Change-Id: Iede2faaa1a06228e12c0b03882ddccd56bcb99f8
This commit is contained in:
parent
2baf173cbe
commit
203b96135d
|
@ -207,7 +207,7 @@ the cluster.
|
|||
|
||||
3. Prepare the leader node
|
||||
|
||||
juju upgrade-series prepare $MACHINE_NUMBER $SERIES
|
||||
juju upgrade-series $MACHINE_NUMBER prepare $SERIES
|
||||
|
||||
4. Administratively perform the upgrade.
|
||||
* do-release-upgrade plus any further steps administratively required steps for an upgrade.
|
||||
|
@ -216,7 +216,7 @@ the cluster.
|
|||
|
||||
6. Complete the series upgrade on the leader:
|
||||
|
||||
juju upgrade-series complete $MACHINE_NUMBER
|
||||
juju upgrade-series $MACHINE_NUMBER complete
|
||||
|
||||
7. Administratively validate the leader node database is up and running
|
||||
* Connect to the database and check for expected data
|
||||
|
@ -224,10 +224,10 @@ the cluster.
|
|||
|
||||
8. Upgrade the non-leader nodes one at a time following the same pattern summarized bellow:
|
||||
|
||||
* juju upgrade-series prepare $MACHINE_NUMBER $SERIES
|
||||
* juju upgrade-series $MACHINE_NUMBER prepare $SERIES
|
||||
* Administratively Upgrade
|
||||
* Reboot
|
||||
* juju upgrade-series complete $MACHINE_NUMBER
|
||||
* juju upgrade-series $MACHINE_NUMBER complete
|
||||
* Validate
|
||||
|
||||
9. Finalize the upgrade
|
||||
|
|
|
@ -461,6 +461,12 @@ def series_upgrade():
|
|||
|
||||
resume_unit_helper(register_configs())
|
||||
|
||||
# finally update the sstuser if needed.
|
||||
# BUG: #1838044
|
||||
_sst_password = sst_password()
|
||||
if _sst_password:
|
||||
configure_sstuser(_sst_password)
|
||||
|
||||
|
||||
@hooks.hook('upgrade-charm')
|
||||
@harden()
|
||||
|
|
Loading…
Reference in New Issue