Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Openstack heat api和heat api cfn启动失败-错误:找不到配置文件_Openstack_Heat - Fatal编程技术网

Openstack heat api和heat api cfn启动失败-错误:找不到配置文件

Openstack heat api和heat api cfn启动失败-错误:找不到配置文件,openstack,heat,Openstack,Heat,亲爱的 我正在安装一个有热量的环境。在我安装heat之前,其他模块(中子、新星、扫视等)工作正常。我严格遵守了(.)中的手册,但当我尝试开始服务时: systemctl start openstack-heat-api.service openstack-heat-api-cfn.service openstack-heat-engine.service [root@controller-openstack ~]# systemctl | grep -i heat ● openstack-hea

亲爱的

我正在安装一个有热量的环境。在我安装heat之前,其他模块(中子、新星、扫视等)工作正常。我严格遵守了(.)中的手册,但当我尝试开始服务时:

systemctl start openstack-heat-api.service openstack-heat-api-cfn.service openstack-heat-engine.service
[root@controller-openstack ~]# systemctl | grep -i heat
● openstack-heat-api-cfn.service                                                      loaded failed     failed          Openstack Heat CFN-compatible API Service
● openstack-heat-api.service                                                          loaded failed     failed          OpenStack Heat API Service
  openstack-heat-engine.service                                                       loaded active     running         Openstack Heat Engine Service
。。。“heat api”和“heat api cfn”服务根本无法启动。在/var/log/message中显示了两个守护进程的错误:“heat api:错误:无法找到配置文件”。然而,“热机”正常启动

因此,我创建了配置文件“heat-api.conf”和“heat-api-cfn.conf”,这是基于我在Internet上捕获的一个示例(我安装在/etc/heat),但日志中的消息仍然是一样的

[root@controller-openstack ~]# cat /var/log/messages | grep heat-api
    Feb 16 21:53:04 controller-openstack heat-api: Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.
    Feb 16 21:53:04 controller-openstack heat-api: 2017-02-16 21:53:04.945 30360 WARNING oslo_config.cfg [-] Option "rpc_backend" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.
    Feb 16 21:53:04 controller-openstack heat-api: ERROR: Unable to locate config file
    Feb 16 21:53:05 controller-openstack systemd: openstack-heat-api.service: main process exited, code=exited, status=1/FAILURE
    Feb 16 21:53:05 controller-openstack systemd: Unit openstack-heat-api.service entered failed state.
    Feb 16 21:53:05 controller-openstack systemd: openstack-heat-api.service failed.

    Feb 16 21:53:05 controller-openstack heat-api-cfn: Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.
    Feb 16 21:53:05 controller-openstack heat-api-cfn: 2017-02-16 21:53:05.188 30361 WARNING oslo_config.cfg [-] Option "rpc_backend" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.
    Feb 16 21:53:05 controller-openstack heat-api-cfn: ERROR: Unable to locate config file
    Feb 16 21:53:05 controller-openstack systemd: openstack-heat-api-cfn.service: main process exited, code=exited, status=1/FAILURE
    Feb 16 21:53:05 controller-openstack systemd: Unit openstack-heat-api-cfn.service entered failed state.
    Feb 16 21:53:05 controller-openstack systemd: openstack-heat-api-cfn.service failed.
我假设守护进程以某种方式定位了文件,但是有什么东西阻止了守护进程的工作。我这样说是因为当我在配置文件中取消对rpc_backend行的注释时,它会停止显示消息“找不到配置文件”,并开始显示一个错误,表示它无法加载qpid驱动程序

[root@controller-openstack ~]# cat /etc/heat/heat-api-cfn.conf | grep rpc
rpc_backend=heat.openstack.common.rpc.impl_qpid

[root@controller-openstack ~]# cat /var/log/heat/api-cfn.log
...
    2017-02-16 23:58:53.807 24772 CRITICAL heat-api-cfn [-] DriverLoadFailure: Failed to load transport driver "qpid": No 'oslo.messaging.drivers' driver found, looking for 'qpid'
    2017-02-16 23:58:53.807 24772 ERROR heat-api-cfn Traceback (most recent call last):
    2017-02-16 23:58:53.807 24772 ERROR heat-api-cfn   File "/usr/bin/heat-api-cfn", line 10, in <module>
    2017-02-16 23:58:53.807 24772 ERROR heat-api-cfn     sys.exit(main())
    2017-02-16 23:58:53.807 24772 ERROR heat-api-cfn   File "/usr/lib/python2.7/site-packages/heat/cmd/api_cfn.py", line 53, in main
    2017-02-16 23:58:53.807 24772 ERROR heat-api-cfn     messaging.setup()
    2017-02-16 23:58:53.807 24772 ERROR heat-api-cfn   File "/usr/lib/python2.7/site-packages/heat/common/messaging.py", line 90, in setup
    2017-02-16 23:58:53.807 24772 ERROR heat-api-cfn     cfg.CONF, url, allowed_remote_exmods=exmods, aliases=_ALIASES)
    2017-02-16 23:58:53.807 24772 ERROR heat-api-cfn   File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 194, in get_transport
    2017-02-16 23:58:53.807 24772 ERROR heat-api-cfn     raise DriverLoadFailure(url.transport, ex)
    2017-02-16 23:58:53.807 24772 ERROR heat-api-cfn DriverLoadFailure: Failed to load transport driver "qpid": No 'oslo.messaging.drivers' driver found, looking for 'qpid'
    2017-02-16 23:58:53.807 24772 ERROR heat-api-cfn 
...
[root@controller-openstack~]#cat/etc/heat/heat-api-cfn.conf | grep-rpc
rpc_backend=heat.openstack.common.rpc.impl_qpid
[root@controller-openstack~]#cat/var/log/heat/api-cfn.log
...
2017-02-16 23:58:53.807 24772临界热api cfn[-]驱动程序加载失败:未能加载传输驱动程序“qpid”:未找到“oslo.messaging.drivers”驱动程序,正在查找“qpid”
2017-02-16 23:58:53.807 24772错误热api cfn回溯(最后一次调用):
2017-02-16 23:58:53.807 24772热处理api cfn文件“/usr/bin/heat api cfn”错误,第10行,in
2017-02-16 23:58:53.807 24772错误加热api cfn系统出口(主()
2017-02-16 23:58:53.807 24772错误热api cfn文件“/usr/lib/python2.7/site packages/heat/cmd/api_cfn.py”,第53行
2017-02-16 23:58:53.807 24772错误热api cfn消息传递。设置()
2017-02-16 23:58:53.807 24772错误热api cfn文件“/usr/lib/python2.7/site packages/heat/common/messaging.py”,第90行,在设置中
2017-02-16 23:58:53.807 24772错误api cfn cfg.CONF,url,允许\u remote\u exmods=exmods,别名=\u别名)
2017-02-16 23:58:53.807 24772错误热api cfn文件“/usr/lib/python2.7/site packages/oslo_messaging/transport.py”,第194行,在get_transport中
2017-02-16 23:58:53.807 24772错误加热api cfn提升驱动器负载故障(url.transport,ex)
2017-02-16 23:58:53.807 24772错误api cfn DriverLoadFailure:未能加载传输驱动程序“qpid”:未找到“oslo.messaging.drivers”驱动程序,正在查找“qpid”
2017-02-16 23:58:53.807 24772错误热量api cfn
...
对不起,我的英语不好,我很想知道如何解决这个问题。我尽了我所能,但没有成功

提前谢谢


Marcio Cavalcante

问题解决了!守护进程正在/etc/heat处查找文件api paste.ini,但它没有自动安装在那里。手册中没有提到这一点

完成的任务:

  • 从下载文件 并将其复制到/etc/heat
  • 在我的个人设置中,我必须编辑/etc/heat/api-paste.ini,并更改以下参数: paste.filter\u factory=keystenemiddleware.auth\u令牌:filter\u factory