-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] omnictl error during config merge #683
Comments
@danktec what is |
Checking for file-not-exist error is not enough. Fixes siderolabs#683 Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
Greetings! Yeah, thats a bug which should be fixes by this PR, but it actually hides some other error. |
Not exactly closed, since we don't know the underlying error. |
|
Getting the same error.
If someone following this post to install and configure omnictl just use this command: |
@mrkhachaturov Something is wrong. The stacktrace you show is from omnictl |
rkadmin@runner:~$ omnictl -v
omnictl version v0.43.3 (API Version: 1)
rkadmin@runner:~$ mkdir -p ~/.config/omni/config
rkadmin@runner:~$ nano omniconfig.yaml
rkadmin@runner:~$ cp omniconfig.yaml ~/.config/omni/config
rkadmin@runner:~$ omnictl config merge ./omniconfig.yaml
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x102b51b]
goroutine 1 [running]:
github.com/siderolabs/omni/client/pkg/omnictl/config.(*Config).Merge(0x0, {0x7ffdfb988465?, 0x1?})
/src/client/pkg/omnictl/config/config.go:164 +0x19b
github.com/siderolabs/omni/client/pkg/omnictl.init.func8(0xc000500700?, {0xc0004e2690, 0x1, 0x16849e6?})
/src/client/pkg/omnictl/config.go:193 +0x74
github.com/spf13/cobra.(*Command).execute(0x264db60, {0xc0004e2660, 0x1, 0x1})
/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:985 +0xaaa
github.com/spf13/cobra.(*Command).ExecuteC(0x264f260)
/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(0x1697c9d?)
/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041 +0x13
main.main()
/src/cmd/omnictl/main.go:25 +0x171
rkadmin@runner:~$ |
This issue arises when you follow the instruction to We must first define the The merge functionality is also working after defining I have made PR to include this in documantation. |
Is there an existing issue for this?
Current Behavior
Expected Behavior
No error
Steps To Reproduce
linux-amd64
What browsers are you seeing the problem on?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: