cloudfoundry / cloudfoundry/bosh-deployment

Bosh-Lite on VirtualBox 7.0.20 fails to install

Open
#470 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
138
Forks
234
Avg merge
1d 12h
Merged PRs (30d)
6

Description

Running on

$ vboxmanage --version
7.0.20r163906

$ bosh --version
version 7.7.0

Succeeded

as of 3f797c641424be1e7dd4cd039e7221a3a611035b, installation using the description at https://bosh.io/docs/bosh-lite/ fails with the following error message:

[driver.LocalRunner] 2024/08/24 18:19:09 DEBUG - Execute 'VBoxManage --version'
[Cmd Runner] 2024/08/24 18:19:09 DEBUG - Running command 'VBoxManage --version'
[Cmd Runner] 2024/08/24 18:19:09 DEBUG - Stdout: WARNING: Environment variable LOGNAME or USER does not correspond to effective user id.
7.0.20r163906
[Cmd Runner] 2024/08/24 18:19:09 DEBUG - Stderr:
[Cmd Runner] 2024/08/24 18:19:09 DEBUG - Successful: true (0)
panic: Internal inconsistency: Expected len(Interface '(.+)' was successfully created matches) >= 3:

goroutine 1 [running]:
bosh-virtualbox-cpi/vm/network.Networks.getVboxVersion({{0x6fd610, 0xc000012b40}, {0x702b48, 0xc000011260}})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/network
/system_info.go:61 +0x159
bosh-virtualbox-cpi/vm/network.Networks.NewSystemInfo({{0x6fd610, 0xc000012b40}, {0x702b48, 0xc000011260}})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/network/system_info.go:18 +0x4c
bosh-virtualbox-cpi/vm/network.Networks.HostOnlys({{0x6fd610, 0xc000012b40}, {0x702b48, 0xc000011260}})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/network/networks.go:149 +0x6e
bosh-virtualbox-cpi/vm.hostOnlysAdapter.List(...)
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/host.go:188
bosh-virtualbox-cpi/vm.(*hostNetwork).Enable(0xc000150308)
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/host.go:90 +0x42
bosh-virtualbox-cpi/vm.Host.EnableNetworks({{{0x6fd610, 0xc000012b40}, {0x702b48, 0xc000011260}}}, 0x4)
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/host.go:46 +0x2a7
bosh-virtualbox-cpi/vm.Factory.Create({{{0xc0001166a0, 0x1a}, {0xc00001971c, 0x4}, 0x1}, {0x6f9580, 0x8df5d0}, {0x6fd610, 0xc000012b40}, {0x6fe578, ...}, ...}, ...)
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/factory.go:86 +0x1ac
bosh-virtualbox-cpi/cpi.VMs.CreateVMV2({{0x6f92a0, 0xc000071c20}, {0x6f92e0, 0xc00017c000}, {0x6f9300, 0xc00017c100}}, {{{0xc000016840, 0x8b0440}}}, {{{0xc0000168a0, 0x27}}}, ...)
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/cpi/vms.go:40 +0xe2
github.com/cloudfoundry/bosh-cpi-go/apiv1.ActionFactory.Create.func4({{{0xc000016840, 0xc000150fa8}}}, {{{0xc0000168a0, 0x8}}}, {{0xc000016900, 0x9, 0x100000000000000}}, 0x7f3225c0a2a0, {0x8df5d0, 0x0, ...}, ...)
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vendor/github.com/cloudfoundry/bosh-cpi-go/apiv1/action_factory.go:56 +0x11a
reflect.Value.call({0x671300, 0xc00000c750, 0xc000122240}, {0x6a3c47, 0x4}, {0xc000122240, 0x6, 0x7045d0})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/packages/golang-1-linux/src/reflect/value.go:543 +0x814
reflect.Value.Call({0x671300, 0xc00000c750, 0xc00004c9c0}, {0xc000122240, 0x6, 0x8})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/packages/golang-1-linux/src/reflect/value.go:339 +0xc5
github.com/cloudfoundry/bosh-cpi-go/rpc.JSONCaller.Call({}, {0x671300, 0xc00000c750}, {0xc00004c9c0, 0x6, 0x6})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vendor/github.com/cloudfoundry/bosh-cpi-go/rpc/json_caller.go:44 +0x229
github.com/cloudfoundry/bosh-cpi-go/rpc.JSONDispatcher.Dispatch({{0x6f9480, 0xc000040bd0}, {0x6f9500, 0x8df5d0}, {0x6a7a18, 0x12}, {0x702b48, 0xc000011260}}, {0xc000170000, 0x196b, ...})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vendor/github.com/cloudfoundry/bosh-cpi-go/rpc/json_dispatcher.go:74 +0x2dc
github.com/cloudfoundry/bosh-cpi-go/rpc.CLI.ServeOnce({{0x6f8fc0, 0xc00000e010}, {0x6f8fe0, 0xc00000e018}, {0x6f9520, 0xc00006c6c0}, {0x6a3ad1, 0x3}, {0x702b48, 0xc000011260}})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vendor/github.com/cloudfoundry/bosh-cpi-go/rpc/cli.go:38 +0x16d
main.main()
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/main/main.go:43 +0x6f8
':
            exit status 2
Exit code 1

I assume that the warning message

WARNING: Environment variable LOGNAME or USER does not correspond to effective user id.

throws the parser off.

Note that VirtualBox 6.1 has not received any patch version since January 2024 and therefore needs to be assumed "end of life" (see also https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/2073267/comments/14).

Full DEBUG log files attached.
(I am aware that the log contains sensitive cryptographic data such as RSA private keys. They are used in a private environment and all keys have been deleted/rotated such that their publication will be of no use for any attacker).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with bosh-virtualbox-cpi/vm/network/system_info.go:61, where the stack trace shows the VirtualBox version output being parsed, and compare it with the attached debug log. Reproduce the Bosh-Lite installation using VirtualBox 7.0.20 and the linked instructions. Done means the warning no longer causes a panic and installation completes successfully; no specific test file is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, shell
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.