Skip to content
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

panic: Internal inconsistency: Expected len(Interface '(.+)' was successfully created matches) >= 3: #2517

Open
sxiii opened this issue May 7, 2024 · 5 comments

Comments

@sxiii
Copy link

sxiii commented May 7, 2024

Describe the bug
Bosh director deployment bug. Regardless if I'm trying to deploy "manually" with:

bosh create-env ~/workspace/bosh-deployment/bosh.yml \
  --state ./state.json \
  -o ~/workspace/bosh-deployment/virtualbox/cpi.yml \
  -o ~/workspace/bosh-deployment/virtualbox/outbound-network.yml \
  -o ~/workspace/bosh-deployment/bosh-lite.yml \
  -o ~/workspace/bosh-deployment/bosh-lite-runc.yml \
  -o ~/workspace/bosh-deployment/uaa.yml \
  -o ~/workspace/bosh-deployment/credhub.yml \
  -o ~/workspace/bosh-deployment/jumpbox-user.yml \
  --vars-store ./creds.yml \
  -v director_name=bosh-lite \
  -v internal_ip=192.168.56.6 \
  -v internal_gw=192.168.56.1 \
  -v internal_cidr=192.168.56.0/24 \
  -v outbound_network_name=NatNetwork

Or "automagically" with:

./bosh-deployment/virtualbox/create-env.sh

I'm getting the same error:

Cleaning up rendered CPI jobs... Finished (00:00:00)

Deploying:
  Creating instance 'bosh/0':
    Creating VM:
      Creating vm with stemcell cid 'sc-b4b2c716-cb56-4b1b-4a18-cc3a81f8c9cf':
        Executing external CPI command: '/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/jobs/virtualbox_cpi/bin/cpi':
          Running command: '/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/jobs/virtualbox_cpi/bin/cpi', stdout: '', stderr: '[File System] 2024/05/07 15:15:15 DEBUG - Reading file /home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/jobs/virtualbox_cpi/config/cpi.json
[File System] 2024/05/07 15:15:15 DEBUG - Read content
********************
{"Host":"","Username":"ubuntu","PrivateKey":"","BinPath":"VBoxManage","StoreDir":"~/.bosh_virtualbox_cpi","StorageController":"sata","AutoEnableNetworks":true,"Agent":{"NTP":["0.pool.ntp.org","1.pool.ntp.org"],"mbus":"https://mbus:4yh8ibox80rqdn2qny54@0.0.0.0:6868"}}

********************
[rpc.JSONDispatcher] 2024/05/07 15:15:15 DEBUG - Request bytes
********************
{"method":"create_vm","arguments":["ad812556-cbdc-49bc-7517-df272329252c","sc-b4b2c716-cb56-4b1b-4a18-cc3a81f8c9cf",{"cpus":4,"ephemeral_disk":16384,"memory":6144},{"default":{"cloud_properties":{},"dns":["8.8.8.8"],"gateway":"192.168.56.1","ip":"192.168.56.6","netmask":"255.255.255.0","type":"manual"},"outbound":{"cloud_properties":{"name":"NatNetwork","type":"natnetwork"},"default":["dns","gateway"],"type":"dynamic"}},[],{"bosh":{"blobstores":[{"options":{"blobstore_path":"/var/vcap/micro_bosh/data/cache"},"provider":"local"}],"mbus":{"cert":{"ca":"-----BEGIN CERTIFICATE-----\nMIIEUTCCArmgAwIBAgIQHCh/caDDUGNBwiOe+7yPsjANBgkqhkiG9w0BAQsFADAy\nMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNQ2xvdWQgRm91bmRyeTELMAkGA1UEAxMC\nY2EwHhcNMjQwNTA3MTUxMjIyWhcNMjUwNTA3MTUxMjIyWjAyMQswCQYDVQQGEwJV\nUzEWMBQGA1UEChMNQ2xvdWQgRm91bmRyeTELMAkGA1UEAxMCY2EwggGiMA0GCSqG\nSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDCOksKtIDNPr+Fh4ADLBAo21lUEr5WxqV2\n/mj0Td6K0gY1i+EXaNouRGAo9ZAYbvdMPijhdbu+34uZC7tlcWnPmFeAOMrsnBMs\n1h6MMbUQ4PBBQqJn5G39H+7SWpdzaXFyWW0EMeEplS1j1WyNh0ucGwpyzXLymOAT\ncnFfKr7kncXe/YuDshTHu9upfKN0IpvkJAuQmGIflj/pf9K/yqz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u4PlIcoKFOcCgcEAiv43MGEHDK+rn1qKu2kk\nsLYec6Ir++vdjS5G8px47Xjc7A/VbiYYzMpwzVqJoas1lVNP6nSY4/ud1/BSEbPV\nld0jUObQdkOAdGbRSkGuPy2wXvalcdKA1BDvYCvCSoKI7EvI8fyWPkpVyN+oPvGk\nlTZLqvXHgvtUGaoDYOYX32xxw5BnHZVW2r4VNr+9OieGLe+x3j7CvNj3DqYkv7ED\nGGp7j8dLcVaMHPv8wibiV4tiFH+IEYEodtEZ6ORm52rfAoHBAI/xnq9Wiw6ddDND\nWvTzeoEFwPHI0QTwgYmqRxhAitYyTtg9vlj2dqc+08tV8/hsiJX+kMKMvtf5kv1v\nreVHmXawkDODa0mYuFwN3Vhh1kRivDVq70rBfnlS847PpO8nEoYV98aiOb3S0PGv\nEZbpvAI2MPS0M5G0wbulBbiGJ+I0e1any/YLBLaNA/P+TWV3JETzHGY16FfxJKwj\nu11vxN2cVKlt5uPWI8dVSGr91oH8kiIh/0vzmAZagay3p4t+CQKBwB+7zGNoY/Wx\ns5NGuA1Bp7lvZp4Z95h6MTgGSckqtvVU5h+6MIHR1mbr9DqN5rilGOexjoq1TV1k\nAO0GrLWwucF4ynQm4gfqHskji9n/BbJawyknX20HjV/Dqvh0tF86mBeyjctozfhD\nfAMj3J/gcWJRn1dZauLRpLKuZ5rD5m3kAFVx+kXbbzNAG/nk+8DN8BGurB+1MPal\nWi47VbTyET8H5k2lqLSMX95hz4Lam6lMA6j7Jddybc5X+59/4ZJ6ww==\n-----END RSA PRIVATE KEY-----\n"}},"ntp":["0.pool.ntp.org","1.pool.ntp.org"],"password":"*"}}],"context":{"director_uuid":"92685b4c-5a7c-4664-69d4-8dfa025f2363","vm":{"stemcell":{"api_version":3}}},"api_version":2}
********************
[rpc.JSONDispatcher] 2024/05/07 15:15:15 DEBUG - Deserialized request
********************
{create_vm [ad812556-cbdc-49bc-7517-df272329252c sc-b4b2c716-cb56-4b1b-4a18-cc3a81f8c9cf map[cpus:%!!(MISSING)s(float64=4) ephemeral_disk:%!!(MISSING)s(float64=16384) memory:%!!(MISSING)s(float64=6144)] map[default:map[cloud_properties:map[] dns:[8.8.8.8] gateway:192.168.56.1 ip:192.168.56.6 netmask:255.255.255.0 type:manual] outbound:map[cloud_properties:map[name:NatNetwork type:natnetwork] default:[dns gateway] type:dynamic]] [] map[bosh:map[blobstores:[map[options:map[blobstore_path:/var/vcap/micro_bosh/data/cache] provider:local]] mbus:map[cert:map[ca:-----BEGIN CERTIFICATE-----

<LONG RSA KEY HERE>
-----END RSA PRIVATE KEY-----
]] ntp:[0.pool.ntp.org 1.pool.ntp.org] password:*]]] {{"director_uuid":"92685b4c-5a7c-4664-69d4-8dfa025f2363","vm":{"stemcell":{"api_version":3}}}} %!!(MISSING)s(int=2)}
********************
[driver.LocalRunner] 2024/05/07 15:15:15 DEBUG - Execute 'VBoxManage --version'
[Cmd Runner] 2024/05/07 15:15:15 DEBUG - Running command 'VBoxManage --version'
[Cmd Runner] 2024/05/07 15:15:15 DEBUG - Stdout: WARNING: Environment variable LOGNAME or USER does not correspond to effective user id.
7.0.18r162988
[Cmd Runner] 2024/05/07 15:15:15 DEBUG - Stderr: 
[Cmd Runner] 2024/05/07 15:15:15 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({{0x6fd5f0, 0xc000012b40}, {0x702b08, 0xc000011260}})
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/bosh-virtualbox-cpi/vm/network/system_info.go:61 +0x159
bosh-virtualbox-cpi/vm/network.Networks.NewSystemInfo({{0x6fd5f0, 0xc000012b40}, {0x702b08, 0xc000011260}})
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/bosh-virtualbox-cpi/vm/network/system_info.go:18 +0x4c
bosh-virtualbox-cpi/vm/network.Networks.HostOnlys({{0x6fd5f0, 0xc000012b40}, {0x702b08, 0xc000011260}})
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/bosh-virtualbox-cpi/vm/network/networks.go:149 +0x6e
bosh-virtualbox-cpi/vm.hostOnlysAdapter.List(...)
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/bosh-virtualbox-cpi/vm/host.go:188
bosh-virtualbox-cpi/vm.(*hostNetwork).Enable(0xc00016e328)
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/bosh-virtualbox-cpi/vm/host.go:90 +0x42
bosh-virtualbox-cpi/vm.Host.EnableNetworks({{{0x6fd5f0, 0xc000012b40}, {0x702b08, 0xc000011260}}}, 0x4)
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/bosh-virtualbox-cpi/vm/host.go:46 +0x2a7
bosh-virtualbox-cpi/vm.Factory.Create({{{0xc0000166e0, 0x1a}, {0xc00001972c, 0x4}, 0x1}, {0x6f9560, 0x8e05d0}, {0x6fd5f0, 0xc000012b40}, {0x6fe558, ...}, ...}, ...)
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/bosh-virtualbox-cpi/vm/factory.go:86 +0x1ac
bosh-virtualbox-cpi/cpi.VMs.CreateVMV2({{0x6f9280, 0xc000115b80}, {0x6f92c0, 0xc0001a2000}, {0x6f92e0, 0xc0001a2100}}, {{{0xc00001a810, 0x8b1440}}}, {{{0xc00001a870, 0x27}}}, ...)
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/bosh-virtualbox-cpi/cpi/vms.go:40 +0xe2
github.com/cloudfoundry/bosh-cpi-go/apiv1.ActionFactory.Create.func4({{{0xc00001a810, 0xc00016efa8}}}, {{{0xc00001a870, 0x8}}}, {{0xc00001a8d0, 0x9, 0x100000000000000}}, 0x7fac831c52a0, {0x8e05d0, 0x0, ...}, ...)
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/bosh-virtualbox-cpi/vendor/github.com/cloudfoundry/bosh-cpi-go/apiv1/action_factory.go:56 +0x11a
reflect.Value.call({0x671300, 0xc00000c750, 0xc000140240}, {0x6a3c47, 0x4}, {0xc000140240, 0x6, 0x704590})
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/packages/golang-1-linux/src/reflect/value.go:543 +0x814
reflect.Value.Call({0x671300, 0xc00000c750, 0xc00006e9c0}, {0xc000140240, 0x6, 0x8})
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/packages/golang-1-linux/src/reflect/value.go:339 +0xc5
github.com/cloudfoundry/bosh-cpi-go/rpc.JSONCaller.Call({}, {0x671300, 0xc00000c750}, {0xc00006e9c0, 0x6, 0x6})
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/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({{0x6f9460, 0xc000060bd0}, {0x6f94e0, 0x8e05d0}, {0x6a7a09, 0x12}, {0x702b08, 0xc000011260}}, {0xc00018e000, 0x196a, ...})
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/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({{0x6f8fa0, 0xc00000e010}, {0x6f8fc0, 0xc00000e018}, {0x6f9500, 0xc0001106c0}, {0x6a3ad1, 0x3}, {0x702b08, 0xc000011260}})
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/bosh-virtualbox-cpi/vendor/github.com/cloudfoundry/bosh-cpi-go/rpc/cli.go:38 +0x16d
main.main()
	/home/arch/.bosh/installations/9ecd086f-3630-437c-4798-f581a872d368/tmp/bosh-release-pkg2138950747/bosh-virtualbox-cpi/main/main.go:43 +0x6f8
':
            exit status 2

Exit code 1

To Reproduce
Steps to reproduce the behavior (example):

  1. Try to deploy a bosh director on Local Server with Default config options (nothing changed!)
  2. Fail with error above

Expected behavior
Bosh director should be deployed.

Logs
Logs are provided in the error description.

Versions (please complete the following information):

  • Infrastructure: Local Server [OVH]
  • BOSH version: [DEV BUILD]
  • BOSH CLI version [DEV BUILD]
  • OS: Arch Linux Rolling
  • Kernel: 6.8.9-arch1-1

Deployment info:
N/A (just deploying the default director with no changes in config)

@sxiii
Copy link
Author

sxiii commented May 7, 2024

I was thinking if the Go version installed on the server matters or not, maybe it's wrong (too new) version of it?

@aramprice
Copy link
Member

The panic is coming from within the virtualbox CPI (cloud provider interface):

based on the code there it seems like an issue with the value being returned when the CPI tries to determine the virtualbox version.

Have you validated that you have all of the requirements for that CPI?

@sxiii
Copy link
Author

sxiii commented May 8, 2024

Hi @aramprice ! Thanks for quick answer.

Yes, I think you might be right about Virtualbox CPI issue. I followed the link you provided and couldn't find list of requirements for CPI there. Can you point me to the right direction? I've read these documents: See [bosh-deployment's BOSH Lite on VirtualBox](https://github.com/cloudfoundry/bosh-deployment/blob/master/docs/bosh-lite-on-vbox.md) or [Concourse deployment](https://github.com/cppforlife/concourse-deployment) for example usage. but couldn't see what is extra on requirements list that I don't match.

Maybe I should try with extra small/demo VM like "hello world" and go from there? Or are there any other debug steps?

  • I have installed virtualbox extensions (didn't helped)
  • VBoxManage --version is 7.0.18r162988
  • Virtualbox itself is same Oracle VM Virtualbox v7.0.18
  • Extension pack is also 7.0.18

Another (maybe related) point is that I'm trying to deploy this in a OVH Machine that apparently uses OpenStack for it's own configuration. I don't know if I'm OK in following the steps I'm following or if I should instead follow the steps in the manual for OpenStack? Or maybe even make a new debian/ubuntu based VM for this... (Edit: tried with Terraform and OpenStack, but this way looks so much more complicated and I'm stuck on earlier stage (auth) with OpenStack).

Thanks!

@aramprice
Copy link
Member

Hi @sxiii - unfortunately that's about all I can contribute. I can't remember if I've ever used the virtualbox CPI, or what expectations it might have.

For some reason the n.driver.Execute("--version") line of code isn't getting a three-part . separated string. Maybe the executable isn't being found? Maybe the output isn't the same as it used to be?

-aram

@aramprice
Copy link
Member

Can this be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pending Review | Discussion
Development

No branches or pull requests

2 participants