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. Change-Id: I8ddc21e3914e3da0f64ffcedef7a6a4bb18ba4cb Closes-Bug: #1838044
This commit is contained in:
parent
d8b13606e4
commit
15e5042854
|
@ -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