diff options
author | Ritu Sood <ritu.sood@intel.com> | 2019-08-09 11:24:26 -0700 |
---|---|---|
committer | Ritu Sood <Ritu.Sood@intel.com> | 2019-08-16 13:06:16 +0000 |
commit | a6c37bf8c9c1e9f5072bfc3e43b6ec0061ee2108 (patch) | |
tree | ed3530b053600017c5ce5d7a07a04e531c6a98fe /internal/pkg/ovn/utils.go | |
parent | 8fe5ed0f2cc522d22d0ca556f48f2e5922c67d3e (diff) |
Add CRD Controller for Network
Add CRD controller functionality for
Network creation and deletion. Related
generated code is uploaded in patch:
https://gerrit.opnfv.org/gerrit/#/c/ovn4nfv-k8s-plugin/+/68324/
Change-Id: Ibd3e652edc56aa1084f684438597e1b978977bbf
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Diffstat (limited to 'internal/pkg/ovn/utils.go')
-rw-r--r-- | internal/pkg/ovn/utils.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/pkg/ovn/utils.go b/internal/pkg/ovn/utils.go index 2478ac2..615c2f9 100644 --- a/internal/pkg/ovn/utils.go +++ b/internal/pkg/ovn/utils.go @@ -84,15 +84,17 @@ func run(cmdPath string, args ...string) (*bytes.Buffer, *bytes.Buffer, error) { cmd := runner.exec.Command(cmdPath, args...) cmd.SetStdout(stdout) cmd.SetStderr(stderr) - log.Info("exec:", "cmdPath", cmdPath, "args", strings.Join(args, " ")) + log.V(1).Info("exec:", "cmdPath", cmdPath, "args", strings.Join(args, " ")) err := cmd.Run() if err != nil { - log.Error(err, "exec:", "cmdPath", cmdPath, "args", strings.Join(args, " ")) + log.Error(err, "Error:", "cmdPath", cmdPath, "args", strings.Join(args, " "), "stdout", stdout, "stderr", stderr) + } else { + log.V(1).Info("output:", "stdout", stdout) } return stdout, stderr, err } -// RunOVNSbctlWithTimeout runs command via ovn-nbctl with a specific timeout +// RunOVNNbctlWithTimeout runs command via ovn-nbctl with a specific timeout func RunOVNNbctlWithTimeout(timeout int, args ...string) (string, string, error) { var cmdArgs []string if len(runner.hostIP) > 0 { |