|
Pablo Greco |
40546a |
From 8a9a0815510ef6de1ee34b865a768d0c6fd7b828 Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
40546a |
Message-Id: <8a9a0815510ef6de1ee34b865a768d0c6fd7b828@dist-git>
|
|
Pablo Greco |
40546a |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
Date: Thu, 27 Jun 2019 15:18:14 +0200
|
|
Pablo Greco |
40546a |
Subject: [PATCH] daemon: Register secret driver before storage driver
|
|
Pablo Greco |
40546a |
MIME-Version: 1.0
|
|
Pablo Greco |
40546a |
Content-Type: text/plain; charset=UTF-8
|
|
Pablo Greco |
40546a |
Content-Transfer-Encoding: 8bit
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
The order in which drivers are registered is important because
|
|
Pablo Greco |
40546a |
their stateInitialize and stateAutoStart callback are called in
|
|
Pablo Greco |
40546a |
that order. Well, stateAutoStart is going away and therefore if
|
|
Pablo Greco |
40546a |
there is some dependency between two drivers (e.g. when
|
|
Pablo Greco |
40546a |
initializing storage driver expects secret driver to be available
|
|
Pablo Greco |
40546a |
already), the registration of such drivers must happen in correct
|
|
Pablo Greco |
40546a |
order.
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
Pablo Greco |
40546a |
(cherry picked from commit c6266ddb0214512200c5043f3196d3ca3e73919d)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
https://bugzilla.redhat.com/show_bug.cgi?id=1685151
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
Message-Id: <f67abc5158c74a295438b5e2f1b8106e8910bfde.1561641375.git.mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
Pablo Greco |
40546a |
---
|
|
Pablo Greco |
40546a |
src/remote/remote_daemon.c | 8 ++++----
|
|
Pablo Greco |
40546a |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
diff --git a/src/remote/remote_daemon.c b/src/remote/remote_daemon.c
|
|
Pablo Greco |
40546a |
index 9f3a5f38ad..4cd6784099 100644
|
|
Pablo Greco |
40546a |
--- a/src/remote/remote_daemon.c
|
|
Pablo Greco |
40546a |
+++ b/src/remote/remote_daemon.c
|
|
Pablo Greco |
40546a |
@@ -314,6 +314,10 @@ static int daemonInitialize(void)
|
|
Pablo Greco |
40546a |
if (virDriverLoadModule("interface", "interfaceRegister", false) < 0)
|
|
Pablo Greco |
40546a |
return -1;
|
|
Pablo Greco |
40546a |
#endif
|
|
Pablo Greco |
40546a |
+#ifdef WITH_SECRETS
|
|
Pablo Greco |
40546a |
+ if (virDriverLoadModule("secret", "secretRegister", false) < 0)
|
|
Pablo Greco |
40546a |
+ return -1;
|
|
Pablo Greco |
40546a |
+#endif
|
|
Pablo Greco |
40546a |
#ifdef WITH_STORAGE
|
|
Pablo Greco |
40546a |
if (virDriverLoadModule("storage", "storageRegister", false) < 0)
|
|
Pablo Greco |
40546a |
return -1;
|
|
Pablo Greco |
40546a |
@@ -322,10 +326,6 @@ static int daemonInitialize(void)
|
|
Pablo Greco |
40546a |
if (virDriverLoadModule("nodedev", "nodedevRegister", false) < 0)
|
|
Pablo Greco |
40546a |
return -1;
|
|
Pablo Greco |
40546a |
#endif
|
|
Pablo Greco |
40546a |
-#ifdef WITH_SECRETS
|
|
Pablo Greco |
40546a |
- if (virDriverLoadModule("secret", "secretRegister", false) < 0)
|
|
Pablo Greco |
40546a |
- return -1;
|
|
Pablo Greco |
40546a |
-#endif
|
|
Pablo Greco |
40546a |
#ifdef WITH_NWFILTER
|
|
Pablo Greco |
40546a |
if (virDriverLoadModule("nwfilter", "nwfilterRegister", false) < 0)
|
|
Pablo Greco |
40546a |
return -1;
|
|
Pablo Greco |
40546a |
--
|
|
Pablo Greco |
40546a |
2.22.0
|
|
Pablo Greco |
40546a |
|