【问题标题】:Service gnocchi-api not found未找到服务 gnocchi-api
【发布时间】:2017-11-27 22:17:54
【问题描述】:

我一直在使用 this install guide 在 Ubuntu 16.04 LTS 上为 Openstack Pike 安装 Ceilometer。

到目前为止一切正常,但当我尝试重新启动 gnocchi-api 时收到消息

启动 gnocchi-api.service 失败:未找到单元 gnocchi-api.service。

我检查了/etc/init.d 并且没有脚本gnocchi-api(尽管gnocchi-metricd 是,并且它工作正常)。尝试重新安装包gnocchi-api,但没有帮助。当正常启动gnocchi-api 时,从命令行它可以工作,虽然会发送一堆警告(but I think they are common

我正在寻找一种让它正常工作的方法——比如服务和使用 conf 文件。

2017-11-27 20:01:40.593 6059 信息 gnocchi.rest.app [-] 使用的 WSGI 配置:/usr/lib/python2.7/dist-packages/gnocchi/rest/api-paste.ini

2017-11-27 20:01:40.753 6059 警告 keystonemiddleware._common.config [-] auth_token 不知道 conf 中的选项 "__file__"

2017-11-27 20:01:40.759 6059 警告 keystonemiddleware._common.config [-] auth_token 不知道 conf 中的选项“configkey”

2017-11-27 20:01:40.760 6059 警告 keystonemiddleware._common.config [-] auth_token 不知道 conf 中的选项“here”

2017-11-27 20:01:40.762 6059 警告 keystonemiddleware.auth_token [-] AuthToken 中间件设置为 keystone_authtoken.service_token_roles_required 设置为 False。这是向后兼容但已弃用的行为。请将此设置为 True。

2017-11-27 20:01:40.768 6059 警告 keystonemiddleware.auth_token [-] 需要将 auth_uri 配置为指向公共身份端点;客户端可能无法针对管理端点进行身份验证

开始测试服务器 gnocchi.rest.app.build_wsgi_app 可在http://127.0.1.1:8000/ 危险!仅供测试,请勿在生产中使用

【问题讨论】:

    标签: service openstack ceilometer


    【解决方案1】:

    apt-get 当前提取 gnocchi-api 的 3.1.9 版本。如果你手动安装 gnocchi-api 3.1.2,这个服务文件就在里面。 service gnocchi-api start 可以正常工作。

    但我不确定功能是否正常,或者这是否是 3.1.9 的预期更改.. 仍然要检查这些。

    【讨论】:

      【解决方案2】:

      Ubuntu 16.04 / gnocchi 版本 4.2.0 上的最新版本也是如此

      目前已确认的错误:https://bugs.launchpad.net/ceilometer/+bug/1750933

      gnocchi-api.service unit 无法启动,因为它尚未创建。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-11-29
        • 2020-01-09
        • 2015-10-25
        • 2017-05-14
        • 1970-01-01
        • 1970-01-01
        • 2016-10-30
        • 2021-11-29
        相关资源
        最近更新 更多