Skip to content

Commit 9eba47d

Browse files
committed
run the systemd service with debug log level.
It's only a one time run script so it should not be a problem to run with debug logs. Signed-off-by: Sebastian Sch <sebassch@gmail.com>
1 parent b80c553 commit 9eba47d

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

bindata/manifests/sriov-config-service/kubernetes/sriov-config-post-network-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ contents: |
66
77
[Service]
88
Type=oneshot
9-
ExecStart=/var/lib/sriov/sriov-network-config-daemon -v 2 --zap-log-level 2 service --phase post
9+
ExecStart=/var/lib/sriov/sriov-network-config-daemon service --phase post
1010
StandardOutput=journal+console
1111
1212
[Install]

bindata/manifests/sriov-config-service/kubernetes/sriov-config-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ contents: |
77
88
[Service]
99
Type=oneshot
10-
ExecStart=/var/lib/sriov/sriov-network-config-daemon -v 2 --zap-log-level 2 service --phase pre
10+
ExecStart=/var/lib/sriov/sriov-network-config-daemon service --phase pre
1111
StandardOutput=journal+console
1212
1313
[Install]

bindata/manifests/sriov-config-service/openshift/sriov-config-service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
2222
[Service]
2323
Type=oneshot
24-
ExecStart=/var/lib/sriov/sriov-network-config-daemon service -v {{ .LogLevel }} --zap-log-level {{ .LogLevel }} --phase pre
24+
ExecStart=/var/lib/sriov/sriov-network-config-daemon service --phase pre
2525
StandardOutput=journal+console
2626
2727
[Install]
@@ -38,7 +38,7 @@ spec:
3838
3939
[Service]
4040
Type=oneshot
41-
ExecStart=/var/lib/sriov/sriov-network-config-daemon service -v {{ .LogLevel }} --zap-log-level {{ .LogLevel }} --phase post
41+
ExecStart=/var/lib/sriov/sriov-network-config-daemon service --phase post
4242
StandardOutput=journal+console
4343
4444
[Install]

cmd/sriov-network-config-daemon/service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ func runServiceCmd(cmd *cobra.Command, args []string) error {
8585
}
8686
// init logger
8787
snolog.InitLog()
88+
snolog.SetLogLevel(2)
8889
setupLog := log.Log.WithName("sriov-config-service").WithValues("phase", phaseArg)
8990

9091
setupLog.V(0).Info("Starting sriov-config-service", "version", version.Version)
@@ -168,7 +169,7 @@ func phasePre(setupLog logr.Logger, conf *systemd.SriovConfig, hostHelpers helpe
168169

169170
func phasePost(setupLog logr.Logger, conf *systemd.SriovConfig, hostHelpers helper.HostHelpersInterface) error {
170171
setupLog.V(0).Info("check result of the Pre phase")
171-
prePhaseResult, err := systemd.ReadSriovResult()
172+
prePhaseResult, _, err := systemd.ReadSriovResult()
172173
if err != nil {
173174
return fmt.Errorf("failed to read result of the pre phase: %v", err)
174175
}

0 commit comments

Comments
 (0)