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

Bosh-Lite Install: ERROR - Asking for confirmation: inappropriate ioctl for device #471

Open
eaglerainbow opened this issue Aug 25, 2024 · 0 comments

Comments

@eaglerainbow
Copy link

eaglerainbow commented Aug 25, 2024

Running on

$ uname -a
Linux **REDACTED** 5.15.0-119-generic #129-Ubuntu SMP Fri Aug 2 19:25:20 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:       jammy

$ vboxmanage --version
6.1.50_Ubuntur161033

$ bosh --version
version 7.7.0

Succeeded

(only working combination at ubuntu jammy hosts right now - see also https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/2073267 ) as of 3f797c6, installation using the description at https://bosh.io/docs/bosh-lite/ fails with the following error message:

[clientRetryable] 2024/08/25 09:23:56 DEBUG - [requestID=75f51fee-b4a6-4325-7c24-da394fc1789a] Requesting (attempt=1): Request{ Method: 'GET', URL: 'https://192.168.56.6:25555/info' }
[director.clientRequest] 2024/08/25 09:23:56 DEBUG - Dumping Director client request:
GET /info HTTP/1.1
Host: 192.168.56.6:25555

[director.clientRequest] 2024/08/25 09:23:56 DEBUG - Dumping Director client response:
HTTP/1.1 200 OK
Connection: close
Content-Length: 480
Content-Type: application/json
Date: Sun, 25 Aug 2024 09:23:56 GMT
Server: nginx
X-Content-Type-Options: nosniff

{"name":"bosh-lite","uuid":"25ef685b-2cdd-4974-b481-a2471ef65473","version":"280.1.4 (00000000)","user":null,"cpi":"warden_cpi","stemcell_os":"-","stemcell_version":"1.531","user_authentication":{"type":"uaa","options":{"url":"https://192.168.56.6:8443","urls":["https://192.168.56.6:8443"]}},"features":{"local_dns":{"status":true,"extras":{"domain_name":"bosh"}},"snapshots":{"status":false},"config_server":{"status":true,"extras":{"urls":["https://192.168.56.6:8844/api/"]}}}}
[uaa.Factory] 2024/08/25 09:23:56 DEBUG - Using custom root CAs
[director.Factory] 2024/08/25 09:23:56 DEBUG - Using custom root CAs
[httpClient] 2024/08/25 09:23:56 DEBUG - Sending POST request to endpoint 'https://192.168.56.6:25555/cloud_configs/diff?name='
[httpClient] 2024/08/25 09:23:56 DEBUG - Sending POST request to endpoint 'https://192.168.56.6:8443/oauth/token'
[attemptRetryStrategy] 2024/08/25 09:23:56 DEBUG - Making attempt #0 for *httpclient.RequestRetryable
[clientRetryable] 2024/08/25 09:23:56 DEBUG - [requestID=20a78154-bbb0-40a3-6c8b-a276d8378c88] Requesting (attempt=1): Request{ Method: 'POST', URL: 'https://192.168.56.6:8443/oauth/token' }
[attemptRetryStrategy] 2024/08/25 09:23:56 DEBUG - Making attempt #0 for *httpclient.RequestRetryable
[clientRetryable] 2024/08/25 09:23:56 DEBUG - [requestID=041479b5-5c73-4574-60dd-685df0524e0b] Requesting (attempt=1): Request{ Method: 'POST', URL: 'https://192.168.56.6:25555/cloud_configs/diff?name=' }
[director.clientRequest] 2024/08/25 09:23:56 DEBUG - Dumping Director client request:
POST /cloud_configs/diff?name= HTTP/1.1
Host: 192.168.56.6:25555
Authorization: [removed]
Content-Type: text/yaml

[director.clientRequest] 2024/08/25 09:23:56 DEBUG - Dumping Director client response:
HTTP/1.1 200 OK
Connection: close
Content-Length: 830
Content-Type: text/html;charset=utf-8
Date: Sun, 25 Aug 2024 09:23:56 GMT
Server: nginx
Www-Authenticate: Basic realm="BOSH Director"
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

{"diff":[["azs:","added"],["- name: z1","added"],["- name: z2","added"],["- name: z3","added"],["",null],["vm_types:","added"],["- name: default","added"],["",null],["compilation:","added"],["  az: z1","added"],["  network: default","added"],["  reuse_compilation_vms: true","added"],["  vm_type: default","added"],["  workers: 5","added"],["",null],["networks:","added"],["- name: default","added"],["  subnets:","added"],["  - azs:","added"],["    - z1","added"],["    - z2","added"],["    - z3","added"],["    dns:","added"],["    - 8.8.8.8","added"],["    gateway: 10.244.0.1","added"],["    range: 10.244.0.0/24","added"],["    reserved: []","added"],["    static:","added"],["    - 10.244.0.34","added"],["  type: manual","added"],["",null],["disk_types:","added"],["- disk_size: 1024","added"],["  name: default","added"]]}
[CLI] 2024/08/25 09:23:56 ERROR - Asking for confirmation: inappropriate ioctl for device
Asking for confirmation:
  inappropriate ioctl for device
Exit code 1

The following log statements also caught my attention:

[httpClient] 2024/08/25 09:22:06 DEBUG - Sending POST request to endpoint 'https://mbus:***REDACTED***@192.168.56.6:6868/agent'
[httpAgentClient] 2024/08/25 09:22:06 DEBUG - get_task response value: map[string]interface {}{"agent_task_id":"69f0c184-14d6-4b3b-6d9d-f8c79244c293", "state":"running"}
[unlimitedRetryStrategy] 2024/08/25 09:22:07 DEBUG - Making attempt #119
[httpClient] 2024/08/25 09:22:07 DEBUG - Sending POST request to endpoint 'https://mbus:***REDACTED***@192.168.56.6:6868/agent'
[httpAgentClient] 2024/08/25 09:22:07 DEBUG - get_task response value: map[string]interface {}{}
[vm] 2024/08/25 09:22:07 DEBUG - Starting agent
[httpClient] 2024/08/25 09:22:07 DEBUG - Sending POST request to endpoint 'https://mbus:***REDACTED***@192.168.56.6:6868/agent'
[attemptRetryStrategy] 2024/08/25 09:22:08 DEBUG - Making attempt #0 for *agentclient.getStateRetryable
[attemptRetryStrategy] 2024/08/25 09:22:08 DEBUG - Making attempt #0 for *retrystrategy.retryable 

Note that the response apparently suddenly turns into

[httpAgentClient] 2024/08/25 09:22:07 DEBUG - get_task response value: map[string]interface {}{}

Full DEBUG log files attached: create-director-vm-stderr-ioctl.zip
(I am aware that the log contains sensitive cryptographic data such as RSA private keys and passwords. 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).

Side note: I even tried to change sizing of the VM at cpi.yml to 32GB disk plus 24GB RAM.

diff --git a/virtualbox/cpi.yml b/virtualbox/cpi.yml
index ed8e1d53..d7ef79ed 100644
--- a/virtualbox/cpi.yml
+++ b/virtualbox/cpi.yml
@@ -16,8 +16,8 @@
   type: replace
   value:
     cpus: 4
-    ephemeral_disk: 16384
-    memory: 6144
+    ephemeral_disk: 32786
+    memory: 24500
 - path: /instance_groups/name=bosh/jobs/-
   type: replace
   value:

No avail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Waiting for Changes | Open for Contribution
Development

No branches or pull requests

1 participant