Fuel9.0部署Openstack报错Could not prefetch cinder_type provider 'openstack': .......

司空修贤
2023-12-01

环境:Vbox虚拟模拟平台部署Openstack

在使用Fuel9.0部署Openstack时,在controller节点部署Openstack80%左右报错。部署了5次报同样错误。其他设置都检查没问题。

报错内容ERR Could not prefetch cinder_type provider 'openstack': Command: 'openstack ["volume type", "list", "--quiet", "--format", "csv", "--long"]' has been running for more then 20 seconds!



下面是打印的日志信息:




2018-04-02 03:24:59 NOTICE Finished catalog run in 95.08 seconds
2018-04-02 03:24:58 ERR (/Stage[main]/Openstack_tasks::Openstack_cinder::Create_cinder_types/Osnailyfacter::Openstack::Manage_cinder_types[volumes_lvm]/Cinder_type[volumes_lvm]/ensure) change from absent to present failed: Command: 'openstack ["volume type", "create", "--format", "shell", ["--property", "volume_backend_name=LVM-backend", "volumes_lvm"]]' has been running for more then 20 seconds!
2018-04-02 03:24:58 ERR /usr/bin/puppet:8:in `<main>'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `run'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet.rb:246:in `override'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/context.rb:64:in `override'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:236:in `block in main'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:302:in `apply_catalog'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:133:in `run'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet.rb:246:in `override'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/context.rb:64:in `override'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:119:in `apply_catalog'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
2018-04-02 03:24:58 ERR /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:120:in `block in apply_catalog'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:168:in `apply'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:112:in `as_logging_destination'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:149:in `with_destination'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:169:in `block in apply'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/util.rb:334:in `thinmark'
2018-04-02 03:24:58 ERR /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/util.rb:335:in `block in thinmark'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:217:in `eval_resource'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:128:in `sync_if_needed'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:204:in `sync'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/property.rb:581:in `sync'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/property.rb:498:in `set'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:16:in `block in defaultvalues'
2018-04-02 03:24:58 ERR /etc/puppet/modules/cinder/lib/puppet/provider/cinder_type/openstack.rb:20:in `create'
2018-04-02 03:24:58 ERR /etc/puppet/modules/cinder/lib/puppet/provider/cinder.rb:23:in `request'
2018-04-02 03:24:58 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack/auth.rb:42:in `request'
2018-04-02 03:24:58 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack.rb:73:in `request'
2018-04-02 03:24:58 ERR /usr/lib/ruby/vendor_ruby/puppet/util.rb:43:in `withenv'
2018-04-02 03:24:58 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack.rb:76:in `block in request'
2018-04-02 03:24:58 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack.rb:76:in `loop'
2018-04-02 03:24:58 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack.rb:98:in `block (2 levels) in request'
2018-04-02 03:24:58 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack.rb:43:in `openstack'
2018-04-02 03:24:58 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack.rb:48:in `rescue in openstack'
2018-04-02 03:24:58 ERR Command: 'openstack ["volume type", "create", "--format", "shell", ["--property", "volume_backend_name=LVM-backend", "volumes_lvm"]]' has been running for more then 20 seconds!
2018-04-02 03:24:35 ERR /usr/bin/puppet:8:in `<main>'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `run'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet.rb:246:in `override'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/context.rb:64:in `override'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:236:in `block in main'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:302:in `apply_catalog'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:133:in `run'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet.rb:246:in `override'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/context.rb:64:in `override'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:119:in `apply_catalog'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
2018-04-02 03:24:35 ERR /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:120:in `block in apply_catalog'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:168:in `apply'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:112:in `as_logging_destination'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:149:in `with_destination'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:169:in `block in apply'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:116:in `traverse'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:116:in `call'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:96:in `block in evaluate'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:197:in `prefetch_if_necessary'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:307:in `prefetch'
2018-04-02 03:24:35 ERR /etc/puppet/modules/cinder/lib/puppet/provider/cinder_type/openstack.rb:59:in `prefetch'
2018-04-02 03:24:35 ERR /etc/puppet/modules/cinder/lib/puppet/provider/cinder_type/openstack.rb:47:in `instances'
2018-04-02 03:24:35 ERR /etc/puppet/modules/cinder/lib/puppet/provider/cinder.rb:23:in `request'
2018-04-02 03:24:35 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack/auth.rb:42:in `request'
2018-04-02 03:24:35 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack.rb:73:in `request'
2018-04-02 03:24:35 ERR /usr/lib/ruby/vendor_ruby/puppet/util.rb:43:in `withenv'
2018-04-02 03:24:35 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack.rb:76:in `block in request'
2018-04-02 03:24:35 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack.rb:76:in `loop'
2018-04-02 03:24:35 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack.rb:81:in `block (2 levels) in request'
2018-04-02 03:24:35 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack.rb:43:in `openstack'
2018-04-02 03:24:35 ERR /etc/puppet/modules/openstacklib/lib/puppet/provider/openstack.rb:48:in `rescue in openstack'
2018-04-02 03:24:35 ERR Could not prefetch cinder_type provider 'openstack': Command: 'openstack ["volume type", "list", "--quiet", "--format", "csv", "--long"]' has been running for more then 20 seconds!
2018-04-02 03:23:23 NOTICE Compiled catalog for node-4.domain.tld in environment production in 0.96 seconds
2018-04-02 03:23:22 NOTICE (Scope(Class[Openstack_tasks::Openstack_cinder::Create_cinder_types])) MODULAR: openstack_cinder/create_cinder_types.pp

2018-04-02 03:23:14 NOTICE Finished catalog run in 16.73 seconds


解决方案:把controller节点内存由原来的2G改为4G,问题解决

 类似资料: