在安装pike  compute node节点的时候遇到启动nova-compute失败,问题如下(注意红色字体):

[root@compute1 nova]# systemctl start openstack-nova-compute.service
Job for openstack-nova-compute.service failed because the control process exited with error code.
See "systemctl status openstack-nova-compute.service" and "journalctl -xe" for details.
[root@compute1 nova]# systemctl status openstack-nova-compute.service
● openstack-nova-compute.service - OpenStack Nova Compute Server
Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; vendor preset: disabled)
Active: activating (start) since Tue -- :: CST; 2s ago
Main PID: (nova-compute)
Tasks:
CGroup: /system.slice/openstack-nova-compute.service
└─ /usr/bin/python2 /usr/bin/nova-compute Sep :: compute1 systemd[]: openstack-nova-compute.service holdoff time over, scheduling restart.
Sep :: compute1 systemd[]: Starting OpenStack Nova Compute Server...
[root@compute1 nova]# date
Tue Sep :: CST
[root@compute1 nova]# journalctl -xe
Sep :: compute1 avahi-daemon[]: Withdrawing workstation service for lo.
Sep :: compute1 avahi-daemon[]: Withdrawing workstation service for virbr0-nic.
Sep :: compute1 avahi-daemon[]: Withdrawing address record for 192.168.122.1 on virbr0.
Sep :: compute1 avahi-daemon[]: Withdrawing workstation service for virbr0.
Sep :: compute1 avahi-daemon[]: Withdrawing address record for fe80::fc81:46e3:49a7:d1da on ens35.
Sep :: compute1 avahi-daemon[]: Withdrawing address record for fe80::8fb9:::d538 on ens35.
Sep :: compute1 avahi-daemon[]: Withdrawing address record for 192.168.70.73 on ens35.
Sep :: compute1 avahi-daemon[]: Withdrawing workstation service for ens35.
Sep :: compute1 avahi-daemon[]: Withdrawing address record for fe80::fe24:180a:91a7:8bdf on ens34.
Sep :: compute1 avahi-daemon[]: Host name conflict, retrying with compute1-
Sep :: compute1 avahi-daemon[]: Registering new address record for 192.168.122.1 on virbr0.IPv4.
Sep :: compute1 avahi-daemon[]: Registering new address record for fe80::fc81:46e3:49a7:d1da on ens35.*.
Sep :: compute1 avahi-daemon[]: Registering new address record for fe80::8fb9:::d538 on ens35.*.
Sep :: compute1 avahi-daemon[]: Registering new address record for 192.168.70.73 on ens35.IPv4.
Sep :: compute1 avahi-daemon[]: Registering new address record for fe80::fe24:180a:91a7:8bdf on ens34.*.
Sep :: compute1 avahi-daemon[]: Registering new address record for fe80:::9aae::6a4a on ens34.*.
Sep :: compute1 avahi-daemon[]: Registering new address record for 10.50.70.73 on ens34.IPv4.
Sep :: compute1 avahi-daemon[]: Registering new address record for 192.168.184.135 on ens33.IPv4.
Sep :: compute1 avahi-daemon[]: Registering HINFO record with values 'X86_64'/'LINUX'.
Sep :: compute1 systemd[]: openstack-nova-compute.service: main process exited, code=exited, status=/FAILURE
Sep :: compute1 systemd[]: Failed to start OpenStack Nova Compute Server.
-- Subject: Unit openstack-nova-compute.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit openstack-nova-compute.service has failed.
--
-- The result is failed.
Sep :: compute1 systemd[]: Unit openstack-nova-compute.service entered failed state.
Sep :: compute1 systemd[]: openstack-nova-compute.service failed.
Sep :: compute1 systemd[]: openstack-nova-compute.service holdoff time over, scheduling restart.
Sep :: compute1 systemd[]: Starting OpenStack Nova Compute Server...
[root@compute1 nova]#vim /var/log/nova/nova-compute.log 
... ERROR nova AccessRefused: (, ): () ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN.
For details see the broker logfile.

从上面的记录中可以推断应该message queue出了问题。导致无法login。

再想想涉及login到rabbit的使用的是用户名和密码:

查看rabbit server [on controller node]用户名密码:

[root@controller ~]# rabbitmq-plugins enable rabbitmq_management                 //开启rabbit web界面 
[root@controller ~]#lsof |grep rabbit                                            //查询rabbit web服务端口 15672
async_63   1089 2034       rabbitmq   49u     IPv4              32616       0t0        TCP *: (LISTEN)

在浏览器中输入controller:15672地址,如下图

再在compute node中的nova.conf中查找相关的用户名和密码

[DEFAULT]

。。。
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:rabbit@controller

用户名为openstack

密码为rabbit

login 失败

查看rabbit sever的用户列表发现没有openstack这个用户:

[root@controller ~]# rabbitmqctl list_users
Listing users ...
admin [administrator]
guest [administrator]

[重点]使用admin用户登录,由于忘记密码又不能直接查看明文密码,所以在rabbit_server[controller node]上重置用户为admin的用户密码:

[root@controller nova]# rabbitmqctl change_password admin admin

再次使用用户名和密码登录

用户名:admin

密码:admin

最后修改nova.conf [on compute node or controller node]

transport_url= rabbit://admin:admin@controller

启动nova-compute.service

[root@compute1 nova]# systemctl start openstack-nova-compute.service
[root@compute1 nova]# systemctl status openstack-nova-compute.service
● openstack-nova-compute.service - OpenStack Nova Compute Server
Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; vendor preset: disabled)
Active: active (running) since Tue -- :: CST; 49s ago
Main PID: (nova-compute)
Tasks:
CGroup: /system.slice/openstack-nova-compute.service
└─ /usr/bin/python2 /usr/bin/nova-compute Sep :: compute1 systemd[]: Starting OpenStack Nova Compute Server...
Sep :: compute1 systemd[]: Started OpenStack Nova Compute Server.

问题解决

[原][openstack-pike][compute node][issue-1]openstack-nova-compute.service holdoff time over, scheduling restart.的更多相关文章

  1. 《转》 Openstack Grizzly 指定 compute node 创建 instance

    声明:此文档仅仅做学习交流使用,请勿用作其它商业用途 作者:朝阳_tony 邮箱:linzhaolover@gmail.com 2013年6月4日9:37:44 星期二 转载请注明出处:http:// ...

  2. Openstack组件部署 — Nova_Install and configure a compute node

    目录 目录 前文列表 Prerequisites 先决条件 Install and configure a compute node Install the packages Edit the etc ...

  3. openstack pike 集群高可用 安装 部署 目录汇总

    # openstack pike 集群高可用 安装部署#安装环境 centos 7 史上最详细的openstack pike版 部署文档欢迎经验分享,欢迎笔记分享欢迎留言,或加QQ群663105353 ...

  4. openstack pike 使用 openvswitch + vxlan

    # openstack pike 使用 openvswitch + vxlan# openstack pike linuxbridge-agent 换为 openvswitch-agent #open ...

  5. openstack pike 单机 一键安装 shell

    #openstack pike 单机  centos 一键安装 shell #openstack pike 集群高可用  安装部署 汇总 http://www.cnblogs.com/elvi/p/7 ...

  6. CentOS7.2非HA分布式部署Openstack Pike版 (实验)

    部署环境 一.组网拓扑 二.设备配置 笔记本:联想L440处理器:i3-4000M 2.40GHz内存:12G虚拟机软件:VMware® Workstation 12 Pro(12.5.2 build ...

  7. openstack pike与ceph集成

    openstack pike与ceph集成 Ceph luminous 安装配置 http://www.cnblogs.com/elvi/p/7897178.html openstack pike 集 ...

  8. OpenStack Pike超详细搭建文档 LinuxBridge版

    前言 搭建前必须看我 本文档搭建的是分布式P版openstack(1 controller + N compute + 1 cinder)的文档. openstack版本为Pike. 搭建的时候,请严 ...

  9. 照着官网来安装openstack pike之创建并启动instance

    有了之前组件(keystone.glance.nova.neutron)的安装后,那么就可以在命令行创建并启动instance了 照着官网来安装openstack pike之environment设置 ...

随机推荐

  1. 多个ip以逗号分隔

    /^(((?:(?:1[0-9][0-9]\.)|(?:2[0-4][0-9]\.)|(?:25[0-5]\.)|(?:[1-9][0-9]\.)|(?:[0-9]\.)){3}(?:(?:1[0-9 ...

  2. JS膏集01

    JS膏集01 1.动态页面: 向服务器发送请求,服务器那边没有页面,动态生成后,返回给客户端 由html/css/js组成. js还不是面向对象的语言,是基于对象的语言.js中没有类的概念,js的继承 ...

  3. pin-a-binary-instrumentation-tool

    https://software.intel.com/en-us/articles/pin-a-binary-instrumentation-tool-downloads Introduction t ...

  4. SharePoint JavaScript 更新用户和组字段

    前言 最近,需要更新列表字段,字段的类型是用户和组,so写了这么一段代码 function updateUserField(){ var ctx = new SP.ClientContext.get_ ...

  5. 《Python数据分析与挖掘实战》读书笔记

    大致扫了一遍,具体的代码基本都没看了,毕竟我还不懂python,并且在手机端的排版,这些代码没法看. 有收获,至少了解到以下几点: 一. Python的语法挺有意思的     有一些类似于JavaSc ...

  6. [Python设计模式] 第15章 如何兼容各种DB——抽象工厂模式

    github地址:https://github.com/cheesezh/python_design_patterns 题目 如何让一个程序,可以灵活替换数据库? 基础版本 class User(): ...

  7. 【原】Linux环境下Shell调用MySQL并实现定时任务

    对于一些周期性事务,我们可以在Linux下,使用shell脚本调用mysql数据库存储过程,并设置定时任务. 本来是要mysql数据库中创建事件任务来,定时执行存储过程,做数据传输的...使用cron ...

  8. Switch语句的参数是什么类型的?

    在Java5以前,switch(expr)中,exper只能是byte,short,char,int类型. 从Java5开始,java中引入了枚举类型,即enum类型. 从Java7开始,exper还 ...

  9. 修改openssh显示版本号

    问题描述: 漏洞安全对使用的软件扫描漏洞,都是依据软件的版本号探测的,直接升级软件风险太大,因此规避风险,修改软件版本号实现其目的! 问题解决: strings xxx |grep xxx   //实 ...

  10. Django表单介绍

    HTML 表单 在HTML中,表单是<form>...</form> 之间元素的集合,它们允许访问者输入文本.选择选项.操作对象和控制等等,然后将信息发送回服务器. 某些表单的 ...