Fix mariadb status after upgrade
For now, after upgrading mariadb in guestagent logs we were constantly getting message: "DB server is not installed or is in restart mode, so for now we'll skip determining the status of DB on this instance." It is caused by the fact that we do not exit restart mode. This patch adds exiting restart mode after successful upgrade. Change-Id: Iabf2466f3f68838a54ca15714e832968b2803572 Story: #2005396 Task: #30389 Signed-off-by: Kasper Hasior <k.hasior@samsung.com>
This commit is contained in:
parent
d98edf6798
commit
603c5114eb
|
@ -291,6 +291,7 @@ class MySqlManager(manager.Manager):
|
|||
preserve=True, as_root=True)
|
||||
self.configuration_manager.refresh_cache()
|
||||
app.start_mysql()
|
||||
app.status.end_restart()
|
||||
|
||||
def restart(self, context):
|
||||
app = self.mysql_app(self.mysql_app_status.get())
|
||||
|
|
Loading…
Reference in New Issue