上传干细胞错误 - Keystone连接超时

时间:2018-04-08 05:25:53

标签: openstack bosh

在将stemcell上传到bosh导演时,我收到连接超时错误。我正在使用波什cli v2。以下是myerror日志。

> 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

1 个答案:

答案 0 :(得分:1)

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

使用ssh检查连接:

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

如果这不能帮助检查网络/防火墙配置。