cloudfoundry / bosh-deployment

Collection of BOSH manifests referenced by cloudfoundry/docs-bosh
Apache License 2.0
134 stars 232 forks source link

[BOSH Lite] [Ubuntu 24] [Virtualbox 7.0] Deployments fail with unresponsive agents #472

Closed jan-the-one closed 1 week ago

jan-the-one commented 1 week ago

I am following the guide in https://bosh.io/docs/bosh-lite/ but I cannot seem to deploy anything. I tried the zookeper deployment, as well as another simple app, but they both fail with the following:

Task 4 | 17:08:07 | Preparing deployment: Preparing deployment (00:00:00)
Task 4 | 17:08:07 | Preparing deployment: Rendering templates (00:00:00)
Task 4 | 17:08:07 | Preparing package compilation: Finding packages to compile (00:00:00)
Task 4 | 17:08:07 | Compiling packages: python-2.7/7063c9f4e43bf49374c2f6cc6c2f74a5467f2298
Task 4 | 17:08:07 | Compiling packages: zookeeper/c98c52595749d4a264d28ebaf39c805fa27fbf148c3086c37cfc59aeca5799a9
Task 4 | 17:08:07 | Compiling packages: golang-1.10-linux/48c842421b6f05acf88dc6ec17f7574dade28a86
Task 4 | 17:08:07 | Compiling packages: openjdk-8/5e72bbc5151b0248ff5925636fdd7d328f7dea20
Task 4 | 17:08:25 | Compiling packages: zookeeper/c98c52595749d4a264d28ebaf39c805fa27fbf148c3086c37cfc59aeca5799a9 (00:00:18)
Task 4 | 17:08:27 | Compiling packages: openjdk-8/5e72bbc5151b0248ff5925636fdd7d328f7dea20 (00:00:20)
Task 4 | 17:08:37 | Compiling packages: golang-1.10-linux/48c842421b6f05acf88dc6ec17f7574dade28a86 (00:00:30)
Task 4 | 17:08:37 | Compiling packages: smoke-tests/dd70a2d1692bd94aeccc257b5668549d2eb29d66ff21abd420257ac1df42ff0f (00:00:04)
Task 4 | 17:09:35 | Compiling packages: python-2.7/7063c9f4e43bf49374c2f6cc6c2f74a5467f2298 (00:01:28)
Task 4 | 17:09:36 | Creating missing vms: zookeeper/4890f767-904f-4468-bdcd-592ad83255ed (0)
Task 4 | 17:09:36 | Creating missing vms: zookeeper/67fbaca7-016f-497e-8667-110c91616de6 (3)
Task 4 | 17:09:36 | Creating missing vms: zookeeper/b317bfdb-8891-4df4-874c-2eef23724082 (4)
Task 4 | 17:09:36 | Creating missing vms: zookeeper/9261b319-ed3e-4fa3-84e4-2dde5f923dca (1)
Task 4 | 17:09:36 | Creating missing vms: zookeeper/15188c49-2a21-4588-bacc-6d136da5d7e1 (2)
Task 4 | 17:09:43 | Creating missing vms: zookeeper/9261b319-ed3e-4fa3-84e4-2dde5f923dca (1) (00:00:07)
Task 4 | 17:09:44 | Creating missing vms: zookeeper/15188c49-2a21-4588-bacc-6d136da5d7e1 (2) (00:00:08)
Task 4 | 17:09:44 | Creating missing vms: zookeeper/67fbaca7-016f-497e-8667-110c91616de6 (3) (00:00:08)
Task 4 | 17:09:44 | Creating missing vms: zookeeper/b317bfdb-8891-4df4-874c-2eef23724082 (4) (00:00:08)
Task 4 | 17:09:44 | Creating missing vms: zookeeper/4890f767-904f-4468-bdcd-592ad83255ed (0) (00:00:08)
Task 4 | 17:09:44 | Updating instance zookeeper: zookeeper/4890f767-904f-4468-bdcd-592ad83255ed (0) (canary)
Task 4 | 17:09:45 | L executing pre-stop: zookeeper/4890f767-904f-4468-bdcd-592ad83255ed (0) (canary)
Task 4 | 17:09:45 | L executing drain: zookeeper/4890f767-904f-4468-bdcd-592ad83255ed (0) (canary)
Task 4 | 17:09:46 | L stopping jobs: zookeeper/4890f767-904f-4468-bdcd-592ad83255ed (0) (canary)
Task 4 | 17:09:47 | L executing post-stop: zookeeper/4890f767-904f-4468-bdcd-592ad83255ed (0) (canary) (00:03:51)
                  L Error: Timed out sending 'get_task' to instance: 'zookeeper/4890f767-904f-4468-bdcd-592ad83255ed', agent-id: '6bc31798-a8d0-4cc4-9c77-9645d725c283' after 45 seconds
Task 4 | 17:13:35 | Error: Timed out sending 'get_task' to instance: 'zookeeper/4890f767-904f-4468-bdcd-592ad83255ed', agent-id: '6bc31798-a8d0-4cc4-9c77-9645d725c283' after 45 seconds

Task 4 Started  Sat Sep  7 17:08:07 UTC 2024
Task 4 Finished Sat Sep  7 17:13:35 UTC 2024
Task 4 Duration 00:05:28
Task 4 error

The agents are shown as unresponsive when running bosh vms or so.

I was thinking perhaps this was an issue with the Virtualbox or Ubuntu versions, but I am not sure:

$ VBoxManage --version
7.0.16_Ubuntur162802

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04 LTS
Release:    24.04
Codename:   noble

I also considered there being some issue with the resources, but my machine seems to have enough available Memory/CPU.

jan-the-one commented 1 week ago

I am closing this as I found the fix; I was using the wrong stemcell for bosh-lite.