3

将 stemcell 上传到 bosh director 时出现连接超时错误。我正在使用 bosh cli v2。以下是我的错误日志。

> bosh -e sdp-bosh-env upload-stemcell https://bosh.io/d/stemcells/bosh-openstack-kvm-ubuntu-trusty-go_agent?v=3541.12 --fix


Using environment '10.82.73.8' as client 'admin'

Task 13

Task 13 | 05:02:40 | Update stemcell: Downloading remote stemcell (00:00:51)
Task 13 | 05:03:31 | Update stemcell: Extracting stemcell archive (00:00:03)
Task 13 | 05:03:34 | Update stemcell: Verifying stemcell manifest (00:00:00)
Task 13 | 05:03:35 | Update stemcell: Checking if this stemcell already exists (00:00:00)
Task 13 | 05:03:35 | Update stemcell: Uploading stemcell bosh-openstack-kvm-ubuntu-trusty-go_agent/3541.12 to the cloud (00:10:41)
               L Error: CPI error 'Bosh::Clouds::CloudError' with message 'Unable to connect to the OpenStack Keystone API http://10.81.102.5:5000/v2.0/tokens
Connection timed out - connect(2) for 10.81.102.5:5000 (Errno::ETIMEDOUT)' in 'create_stemcell' CPI method


Task 13 | 05:14:16 | Error: CPI error 'Bosh::Clouds::CloudError' with message 'Unable to connect to the OpenStack Keystone API http://10.81.102.5:5000/v2.0/tokens
Connection timed out - connect(2) for 10.81.102.5:5000 (Errno::ETIMEDOUT)' in 'create_stemcell' CPI method

Task 13 Started  Sat Apr  7 05:02:40 UTC 2018
Task 13 Finished Sat Apr  7 05:14:16 UTC 2018
Task 13 Duration 00:11:36
Task 13 error



Uploading remote stemcell 'https://bosh.io/d/stemcells/bosh-openstack-kvm-ubuntu-trusty-go_agent?v=3541.12':
Expected task '13' to succeed but state is 'error'

Exit code 1
4

1 回答 1

1

检查 BOSH Director 机器的 OpenStack 安全组。SG 应该包含ALLOW IPv4 to 0.0.0.0/0,如果它没有在端口 5000 上添加至少出口 TCP 到 10.81.102.5。

使用 ssh 检查连接:

  • bbl ssh --director
  • nc -tvn 10.81.102.5 5000

如果它没有帮助检查网络/防火墙配置。

于 2019-10-10T09:37:43.520 回答