bosh—cli部署micro bosh出现报错,求解答。
各位好,小弟在实际部署cloudfoundry的时候遇到一个问题特此求救。问题现象:在vsphere上部署cloudfoundry在部署microbosh的时候出现问题。
boshcli上执行的命令如下:
root@ubuntu:~/deployments# bosh micro deployment micro01
WARNING! Your target has been changed to `http://10.32.187.160:25555'!
Deployment set to '/root/deployments/micro01/micro_bosh.yml'
root@ubuntu:~/deployments# bosh micro deploy ~/stemcells/micro-bosh-stemcell-vsphere-0.6.4.tgz
Deploying new micro BOSH instance `micro01/micro_bosh.yml' to `http://10.32.187.160:25555' (type 'yes' to continue): yes
Verifying stemcell...
File exists and readable OK
Using cached manifest...
Stemcell properties OK
Stemcell info
-------------
Name: micro-bosh-stemcell
Version: 0.6.4
Deploy Micro BOSH
Unpacking stemcell | | 0/11 00:00:04 ETA: --:--:--/usr/local/rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/uri/common.rb:156:in `split': bad URI(is not URI?): https://10.32.187.159 # ip address of vCenter/sdk/vimService (URI::InvalidURIError)
from /usr/local/rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/uri/common.rb:174:in `parse'
from /usr/local/rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/uri/common.rb:628:in `parse'
from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/ruby_vim_sdk-0.0.3/lib。。。。。。。
这里的uri不知怎么出现这个问题的,相应的配置如下(各种照搬官网)。
这是我的micro.yml
name: micro01 #the same name as your folder name
#XXX using micro01
network:
ip: 10.32.187.160 #define ip for micro BOSH
netmask: 255.255.255.128
gateway: 10.32.187.254
dns:
- 10.32.255.10
- 8.8.8.8
cloud_properties:
name: "VM Network" #this should be the same as the ?°Network?± of all your virtual machines
resources:
persistent_disk: 51200
cloud_properties:
ram: 2048
disk: 51200
cpu: 1
cloud:
plugin: vsphere
properties:
agent:
ntp:
- time.windows.com
- ntp02.las01.emcatmos.com
vcenters:
- host: 10.32.187.159 # ip address of vCenter
user: Administrator #user of vCenter
password: hichinap0o9i8u&
datacenters:
- name: vDataCenter #name of the datacenter you created
vm_folder: vm_folder #folder for vms
template_folder: template_folder #folder for templates
disk_path: boshdeployer #disk path where VMs are stored.
datastore_pattern: NFSdatastore #name of a datastore or some regular expression matching the datastore name.
persistent_datastore_pattern: NFSdatastore #name of a datastore or some regular expression matching the persistent datastore
allow_mixed_datastores: true #true if two datastore patterns are the same
clusters:
- vCluster #name of your cluster in your datacenter
以下是我的vCenter目录截图,不知道uri怎么会无效
159是我的vcenter
160是我准备分给microbosh的ip
--------------------编程问答-------------------- 楼上的哥们,我暑假成功部署过cloudfoundry,我们可以交流一下。但是现在实验室网速不给力,我想下一个micro-bosh-stemcell-vsphere-0.6.4.tgz,你可以把下载好的文件打包给我么???谢谢 --------------------编程问答--------------------
补充:云计算 , Cloud Foundry