我尝试使用bosh micro来部署stcemcells。
我有一个干细胞bosh-stemcell-2719.2-openstack-kvm-centos-go_agent.tgz和一个部署文件micro_bosh.yml
他们在同一个文件夹" my-micro-deployment" 我的部署文件micro_bosh.yml的内容如下:
---
name: microbosh-openstack
logging:
level: DEBUG
network:
type: dynamic
vip: 172.24.10.131
cloud_properties:
net_id: 9e5a6fd5-fa2e-48da-94ce-f85337bc2451
resources:
persistent_disk: 20000
cloud_properties:
instance_type: m1.small
cloud:
plugin: openstack
properties:
openstack:
auth_url: http://172.24.10.128:5000/v2.0
username: demo
api_key: openstack
tenant: demo
default_security_groups: [bosh]
default_key_name: demokey
private_key: /home/roger/my-micro-deployment/demokey.pem
apply_spec:
properties:
director:
max_threads: 2
hm:
resurrector_enabled: true
ntp:
- time.asia.apple.com
然后我执行命令
bosh micro deployment micorbosh.yml
然后我执行命令
bosh micro deploy bosh-stemcell-2719.2-openstack-kvm-centos-go_agent.tgz
执行上述命令后,我收到错误
`/home/roger/.gem/ruby/gems/fog-aws-0.1.2/lib/fog/aws/auto_scaling.rb:4:in `<class:AutoScaling>': uninitialized constant Fog::AWS::CredentialFetcher (NameError)
from /home/roger/.gem/ruby/gems/fog-aws-0.1.2/lib/fog/aws/auto_scaling.rb:3:in `<module:AWS>'
from /home/roger/.gem/ruby/gems/fog-aws-0.1.2/lib/fog/aws/auto_scaling.rb:2:in `<module:Fog>'
from /home/roger/.gem/ruby/gems/fog-aws-0.1.2/lib/fog/aws/auto_scaling.rb:1:in `<top (required)>'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:73:in `require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:73:in `require'
from /home/roger/.gem/ruby/gems/fog-1.27.0/lib/fog/aws.rb:2:in `<top (required)>'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:73:in `require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:73:in `require'
from /home/roger/.gem/ruby/gems/fog-1.27.0/lib/fog.rb:23:in `<top (required)>'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:73:in `require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:73:in `require'
from /home/roger/.gem/ruby/gems/bosh-registry-1.2922.0/lib/bosh/registry.rb:10:in `<top (required)>'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:73:in `require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:73:in `require'
from /home/roger/.gem/ruby/gems/bosh-registry-1.2922.0/bin/bosh-registry:3:in `<top (required)>'
from /home/roger/bin/bosh-registry:23:in `load'
from /home/roger/bin/bosh-registry:23:in `<main>'
bosh-registry -c /tmp/d20150414-92091-1rc0vqs/bosh_registry_yml20150414- 92091-9n3izm` failed, exit status=1``
任何人都可以给我一些建议吗?
事先感谢它阻止了我3天。
答案 0 :(得分:1)
我最近也在我的MacOS机器上遇到过这个问题(我的Linux机器上的一切正常)。我还没有深入研究它,但作为一种解决方法,你可以放置
require_relative('.')
字符串位于/home/roger/.gem/ruby/gems/fog-aws-0.1.2/lib/fog/aws/auto_scaling.rb
的开头。