Skip to content

Commit

Permalink
Merge pull request #606 from cgalibern/feature-podman
Browse files Browse the repository at this point in the history
feature-podman
  • Loading branch information
cgalibern authored Oct 22, 2024
2 parents 10daa87 + c0398a9 commit 9fdeb31
Show file tree
Hide file tree
Showing 52 changed files with 2,104 additions and 2,479 deletions.
2 changes: 2 additions & 0 deletions core/driverdb/drivers_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ import (
_ "github.com/opensvc/om3/drivers/poolloop"
_ "github.com/opensvc/om3/drivers/poolvg"
_ "github.com/opensvc/om3/drivers/rescontainerdocker"
_ "github.com/opensvc/om3/drivers/rescontainerdockercli"
_ "github.com/opensvc/om3/drivers/rescontainerkvm"
_ "github.com/opensvc/om3/drivers/rescontainerlxc"
_ "github.com/opensvc/om3/drivers/rescontainerpodman"
_ "github.com/opensvc/om3/drivers/rescontainervbox"
_ "github.com/opensvc/om3/drivers/resdiskcrypt"
_ "github.com/opensvc/om3/drivers/resdiskdrbd"
Expand Down
3 changes: 2 additions & 1 deletion core/nodeaction/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (
"sigs.k8s.io/yaml"

"github.com/google/uuid"
"github.com/rs/zerolog/log"

"github.com/opensvc/om3/core/actionrouter"
"github.com/opensvc/om3/core/client"
"github.com/opensvc/om3/core/event"
Expand All @@ -27,7 +29,6 @@ import (
"github.com/opensvc/om3/util/plog"
"github.com/opensvc/om3/util/pubsub"
"github.com/opensvc/om3/util/xsession"
"github.com/rs/zerolog/log"
)

type (
Expand Down
7 changes: 4 additions & 3 deletions core/object/core_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,12 @@ func (t *actor) action(ctx context.Context, fn resourceset.DoFunc) error {
Attr("argv", os.Args).
Attr("cwd", wd).
Attr("action", action.Name).
Attr("origin", env.Origin())
logger.Infof("do %s (origin %s)", os.Args, env.Origin())
Attr("origin", env.Origin()).
Attr("crm", "true")
logger.Infof("do %s %s (origin %s)", action.Name, os.Args, env.Origin())
beginTime := time.Now()
defer func() {
logger.Attr("duration", time.Now().Sub(beginTime)).Infof("done %s in %s", os.Args, time.Now().Sub(beginTime))
logger.Attr("duration", time.Now().Sub(beginTime)).Infof("done %s %s in %s", action.Name, os.Args, time.Now().Sub(beginTime))
}()

// daemon instance monitor updates
Expand Down
Loading

0 comments on commit 9fdeb31

Please sign in to comment.