-
Notifications
You must be signed in to change notification settings - Fork 0
/
steps_25.go
36 lines (34 loc) · 1.04 KB
/
steps_25.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2018 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package upgrades
// stateStepsFor25 returns upgrade steps for Juju 2.5.0 that manipulate state directly.
func stateStepsFor25() []Step {
return []Step{
&upgradeStep{
description: `migrate storage records to use "hostid" field`,
targets: []Target{DatabaseMaster},
run: func(context Context) error {
return context.State().MigrateStorageMachineIdFields()
},
},
&upgradeStep{
description: "migrate legacy leases into raft",
targets: []Target{Controller},
run: MigrateLegacyLeases,
},
&upgradeStep{
description: "migrate add-model permissions",
targets: []Target{DatabaseMaster},
run: func(context Context) error {
return context.State().MigrateAddModelPermissions()
},
},
&upgradeStep{
description: "set enable-disk-uuid (if on vsphere)",
targets: []Target{DatabaseMaster},
run: func(context Context) error {
return context.State().SetEnableDiskUUIDOnVsphere()
},
},
}
}