Skip to content

Commit d1afa98

Browse files
authored
Merge pull request ceph#65551 from adk3798/cephadm-migration-logging
mgr/cephadm: fix migrations logging Reviewed-by: Redouane Kachach <[email protected]>
2 parents 6fdff2e + e28a774 commit d1afa98

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/pybind/mgr/cephadm/migrations.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,41 +86,48 @@ def verify_no_migration(self) -> None:
8686
"cephadm migration still ongoing. Please wait, until the migration is complete.")
8787

8888
def migrate(self, startup: bool = False) -> None:
89-
logger.info('running migrations')
90-
9189
if self.mgr.migration_current == 0:
90+
logger.info('Running migration 0 -> 1')
9291
if self.migrate_0_1():
9392
self.set(1)
9493

9594
if self.mgr.migration_current == 1:
95+
logger.info('Running migration 1 -> 2')
9696
if self.migrate_1_2():
9797
self.set(2)
9898

9999
if self.mgr.migration_current == 2 and not startup:
100+
logger.info('Running migration 2 -> 3')
100101
if self.migrate_2_3():
101102
self.set(3)
102103

103104
if self.mgr.migration_current == 3:
105+
logger.info('Running migration 3 -> 4')
104106
if self.migrate_3_4():
105107
self.set(4)
106108

107109
if self.mgr.migration_current == 4:
110+
logger.info('Running migration 4 -> 5')
108111
if self.migrate_4_5():
109112
self.set(5)
110113

111114
if self.mgr.migration_current == 5:
115+
logger.info('Running migration 5 -> 6')
112116
if self.migrate_5_6():
113117
self.set(6)
114118

115119
if self.mgr.migration_current == 6:
120+
logger.info('Running migration 6 -> 7')
116121
if self.migrate_6_7():
117122
self.set(7)
118123

119124
if self.mgr.migration_current == 7:
125+
logger.info('Running migration 7 -> 8')
120126
if self.migrate_7_8():
121127
self.set(8)
122128

123129
if self.mgr.migration_current == 8:
130+
logger.info('Running migration 8 -> 9')
124131
if self.migrate_8_9():
125132
self.set(9)
126133

0 commit comments

Comments
 (0)