Skip to content

mgmt takes very long at step "autoedge building" when ensuring package fish #840

@m8t

Description

@m8t

During workshop cfgmgmtcamp2026 I wrote a little MCL to ensure package "fish" and use it for user root.

In all odds this package in particular gets mgmt into a long loop for 3min+.

05:28:52 engine: autoedge: building...
05:32:15 engine: autoedge: the auto edge list is empty for: user[root]
05:32:15 main: auto edges took: 3m23.613527373s

os-release information from VM:

[root@workshop7 ~]# cat /etc/os-release 
NAME="Fedora Linux"
VERSION="42 (Adams)"
RELEASE_TYPE=stable
[...]

With mgmt pre-provisioned on it:

[root@workshop7 ~]# which mgmt
/usr/local/bin/mgmt
[root@workshop7 ~]# mgmt --version
1.0.1-91-g7e93bf1df-dirty

Following snippet has been executed with strace. Output is attached.
Trying to ^C will still keep mgmt busy in a loop, before it eventually quits properly.

mgmt-pkg-fish-output.txt
mgmt-pkg-fish-strace.txt

# Ensure fish shell and make it the default shell for user root

pkg "fish" {
  state => "installed",
}

user "root" {
  state => "exists",
  shell => "/bin/fish",

  # dependencies
  Depend => Pkg["fish"],
}

I re-executed by commenting the user resource, and reproduced again with just the resource pkg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions