openstack验证nova时执行openstack host list命令报错

这是执行命令后报的错误
The server is currently unavailable. Please try again at a later time.

(HTTP 503) (Request-ID: req-cc86ee4c-b854-4577-ba9a-57190d2cf39c)

这是日志中报的错误
2019-04-09 20:37:56.792 1778 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
2019-04-09 20:37:56.793 1778 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Identity server rejected authorization necessary to fetch token data

这是我改的配置文件(基于n版)
[root@bogon ~]# egrep "^[a-z]" /etc/nova/nova.conf
use_neutron=True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
enabled_apis=osapi_compute,metadata
auth_strategy=keystone
connection=mysql+pymysql://nova:nova@192.168.131.129/nova_api
connection=mysql+pymysql://nova:nova@192.168.131.129/nova
api_servers=http://192.168.131.129:9292
auth_uri = http://192.168.131.129:5000
auth_url = http://192.168.131.129:35357
memcached_servers = 192.168.131.129:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nova
lock_path=/var/lib/nova/tmp
transport_url=rabbit://openstack:openstack@192.168.131.129
vncserver_listen=0.0.0.0
vncserver_proxyclient_address=192.168.131.129

我确定nova的用户和密码是正确的,以及服务也创建成功了的

0

1个回答

0
qq_39170130
wwys 报的错都不一样
4 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
执行openstack命令报错
[root@server ~]# openstack extension list --networkMissing value auth-url required for auth plugin passwordRCA:没有source环境变量导致。在家的时候操作是没有问题的,因为我按文档export了环境变量,如下。export OS_PROJECT_DOMAIN_NAME=Defaultex...
OpenStack host list输出为空/Nova service-list为空
一直参考的[color=#000000]http://www.xuliangwei.com/xubusi/724.html[/color]做OpenStack all-in-one搭建实验,但是扑街在了Nova服务上面,每次配到需要验证Nova服务的时候(也就是题目提到执行openstack host list命令)命令行没有任何输出,输入nova service-list后命令行会等很久很久然后显示一行空的内容……rn相关的服务查看状态都是正常启动了的,数据库信息啊配置信息啊都仔细检查没有问题,查看nova-api.log只有一行是error信息,说是由于没有cell0而没法继续服务,度娘了一下cell是Ocata版本openstack新增的服务,newton版本没有这个要求,看的我也是一脸懵逼,还请各路大神看下这究竟是什么情况orz……
openstack命令无法执行
问题:执行openstack命令报“ERROR (ServiceUnavailable):Service Unavailable (HTTP 503)” No handlers could be found for logger "keystoneclient.auth.identity.generic.base" 解:1、用nova service-list --debug 查看报错信息 ...
openstack compute service list 执行报错
新手求教ORZrnrnrnrn目前已经完成了控制节点的NOVA配置,在验证的时候发现报错如下rnrn/srv/www/openstack-dashboard/openstack_dashboard/local # openstack compute service listrnUnknown Error (HTTP 503) (Request-ID: req-e10e4dff-66bf-4364-93ad-b01464fc73c4)rnrnrn调整成成Debug模式后的具体报错信息rn# openstack compute service list --debugrnSTART with options: ['compute', 'service', 'list', '--debug']rnoptions: Namespace(access_token_endpoint='', auth_type='', auth_url='http://linux-ana1.suse:35357/v3', cacert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_identity_api_version='3', os_image_api_version='2', os_key_manager_api_version='1', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_volume_api_version='', password='***', profile=None, project_domain_id='', project_domain_name='default', project_id='', project_name='admin', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='default', user_id='', username='admin', verbose_level=3, verify=None)rndefaults: u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, u'network_api_version': u'2', u'image_format': u'qcow2', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'disable_vendor_agent': rncloud cfg: 'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'timing': False, u'network_api_version': u'2', u'image_format': u'qcow2', u'image_api_version': '2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': 'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'default', 'auth_url': 'http://linux-ana1.suse:35357/v3', 'password': '***', 'project_domain_name': 'default', 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', u'interface': None, 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': rncompute API version 2, cmd group openstack.compute.v2rnnetwork API version 2, cmd group openstack.network.v2rnimage API version 2, cmd group openstack.image.v2rnvolume API version 2, cmd group openstack.volume.v2rnidentity API version 3, cmd group openstack.identity.v3rnobject_store API version 1, cmd group openstack.object_store.v1rnkey_manager API version 1, cmd group openstack.key_manager.v1rnorchestration API version 1, cmd group openstack.orchestration.v1rncommand: compute service list -> openstackclient.compute.v2.service.ListServicernAuth plugin password selectedrnauth_type: passwordrnUsing auth plugin: passwordrnUsing parameters 'username': 'admin', 'project_name': 'admin', 'auth_url': 'http://linux-ana1.suse:35357/v3', 'user_domain_name': 'default', 'password': '***', 'project_domain_name': 'default'rnGet auth_refrnREQ: curl -g -i -X GET http://linux-ana1.suse:35357/v3 -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.2.0 python-requests/2.9.1 CPython/2.7.9"rnStarting new HTTP connection (1): linux-ana1.susern"GET /v3 HTTP/1.1" 200 255rnRESP: [200] Content-Length: 255 Vary: X-Auth-Token Keep-Alive: timeout=15, max=100 Server: Apache Connection: Keep-Alive Date: Wed, 19 Oct 2016 10:25:46 GMT Content-Type: application/json x-openstack-request-id: req-59262ca5-b1ff-477a-98c9-dafddb17ff50rnRESP BODY: "version": "status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": ["base": "application/json", "type": "application/vnd.openstack.identity-v3+json"], "id": "v3.6", "links": ["href": "http://linux-ana1.suse:35357/v3/", "rel": "self"]rnrnMaking authentication request to http://linux-ana1.suse:35357/v3/auth/tokensrn"POST /v3/auth/tokens HTTP/1.1" 201 2898rnrun(Namespace(columns=[], formatter='table', host=None, max_width=0, noindent=False, quote_mode='nonnumeric', service=None))rnInstantiating compute client for VAPI Version Major: 2, Minor: 0rnMaking authentication request to http://linux-ana1.suse:35357/v3/auth/tokensrn"POST /v3/auth/tokens HTTP/1.1" 201 2898rnREQ: curl -g -i -X GET http://linux-ana1.suse:8774/v2.1/2df7e966501445c19c01d87c5161354b/os-services -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: SHA1b8c5c391a1bffcb6c6f9acf2db34abfbbf3c9744"rnStarting new HTTP connection (1): linux-ana1.susern"GET /v2.1/2df7e966501445c19c01d87c5161354b/os-services HTTP/1.1" 503 100rnRESP: [503] Date: Wed, 19 Oct 2016 10:25:57 GMT Connection: keep-alive Content-Type: text/plain; charset=UTF-8 Content-Length: 100 X-Compute-Request-Id: req-8cea88df-6083-47aa-8107-9ecd34e68035rnRESP BODY: 503 Service UnavailablernrnThe server is currently unavailable. Please try again at a later time.rnrnrnrnUnknown Error (HTTP 503) (Request-ID: req-8cea88df-6083-47aa-8107-9ecd34e68035)rnTraceback (most recent call last):rn File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommandrn result = cmd.run(parsed_args)rn File "/usr/lib/python2.7/site-packages/openstackclient/common/command.py", line 38, in runrn return super(Command, self).run(parsed_args)rn File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in runrn column_names, data = self.take_action(parsed_args)rn File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/service.py", line 66, in take_actionrn parsed_args.service)rn File "/usr/lib/python2.7/site-packages/novaclient/v2/services.py", line 52, in listrn return self._list(url, "services")rn File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 242, in _listrn resp, body = self.api.client.get(url)rn File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 173, in getrn return self.request(url, 'GET', **kwargs)rn File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 94, in requestrn raise exceptions.from_response(resp, body, url, method)rnClientException: Unknown Error (HTTP 503) (Request-ID: req-8cea88df-6083-47aa-8107-9ecd34e68035)rnclean_up ListService: Unknown Error (HTTP 503) (Request-ID: req-8cea88df-6083-47aa-8107-9ecd34e68035)rnTraceback (most recent call last):rn File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 118, in runrn ret_val = super(OpenStackShell, self).run(argv)rn File "/usr/lib/python2.7/site-packages/cliff/app.py", line 255, in runrn result = self.run_subcommand(remainder)rn File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 153, in run_subcommandrn ret_value = super(OpenStackShell, self).run_subcommand(argv)rn File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommandrn result = cmd.run(parsed_args)rn File "/usr/lib/python2.7/site-packages/openstackclient/common/command.py", line 38, in runrn return super(Command, self).run(parsed_args)rn File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in runrn column_names, data = self.take_action(parsed_args)rn File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/service.py", line 66, in take_actionrn parsed_args.service)rn File "/usr/lib/python2.7/site-packages/novaclient/v2/services.py", line 52, in listrn return self._list(url, "services")rn File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 242, in _listrn resp, body = self.api.client.get(url)rn File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 173, in getrn return self.request(url, 'GET', **kwargs)rn File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 94, in requestrn raise exceptions.from_response(resp, body, url, method)rnClientException: Unknown Error (HTTP 503) (Request-ID: req-8cea88df-6083-47aa-8107-9ecd34e68035)rnrnEND return value: 1rn[/code]
OpenStack源码分析-NOVA
OpenStack源码分析,学习nova的好材料
openstack从零开始(3)——nova
简介nova负责创建、管理云计算系统,是IaaS的核心部分。nova与openstack中的identity、image service、dashboard等组件交互。各个组件 API compute-api:接收、响应用户调用api的请求,强制执行某些policy、完成大部分初始化流程,例如启动一个云主机 compute-api-metadata:从实例接收metadata请求 Compute
OpenStack之Nova架构分析
在云平台的建设中,最重要的就是云平台资源的合理利用和部署的自动化,我们在搭建云平台的时候会虚拟出多个虚拟机来对外对内提供服务,但是如果将所有的服务器进行物理划分构建出来很多虚拟机让其一直开着会照成一些问题,如:        1. 资源的利用,也就是有的虚拟机比没有在使用,但还在运行        2. 部署的麻烦,也就是说我们按照计划的划分方法,创建出来计划个数的虚拟机,这样在人力上一定不是
openstack -- nova的组件消息队列
Nova组件 Nova是OpenStack云中的计算组织控制器组件,支持OpenStack云中实例(instances)生命周期的所有活动都由Nova处理。这样使得Nova成为一个负责管理计算资源、网络、认证、所需可扩展性的平台。但是,Nova自身并没有提供任何虚拟化能力,相反它使用libvirt API来与被支持的Hypervisors交互。Nova 通过一个与Amazon Web Servi...
openstack学习之-nova翻译
What is Nova? Nova是openstack提供创建计算实例的一种方式(即虚拟服务器)。Nova支持创建虚拟机,裸金属服务器(通过是使用ironic)并且对系统容器提供有限的支持。Nova作为一组守护进程在现有Linux服务器上运行,以提供该服务。 基本功能需要以下额外的openstack服务: Keystone:为所有的openstack服务提供身份认证服务 Glance: ...
OpenStack组件之Nova
OpenStack组件之Nova,一个组件介绍的文档,大家可以参考一下
openstack nova 部分原理
本文档详细介绍了nova的组件和启动虚拟机的流程,有助于初学者对于nova部分的了解。
OpenStack常用命令之nova
1、Nova nova flavor-list                 查看配置模板列表 nova image-list                查看镜像列表 nova secgroup-list           查看安全规则 nova boot  --flavor m1.tiny  --image cirros-0.3.4-x86_64  --nic net-id=
openstack nova源码分析
openstack nova 源码分析
openstack nova配置
openstack nova配置全部文档 官方提供 按照步骤一步步安装 能用
OpenStack Nova的工作流程
本课程面向具有初级的计算机理论基础,准备进入云计算/大数据领域,想了解虚拟化、云计算和软件定义基础设施等前沿技术的学习者。了解和掌握云计算技术基础概念与OpenStack简介,架构解析,安装部署OpenStack各服务组件的使用,通过OpenStack的计算,存储和网络的使用演示, 对OpenStack有一个基本的认识和了解。
openstack nova cfg
openstack nova cfg
openstack安装部署之Nova
下面的安装步骤承接上一篇博文 一、准备工作 1、启用网络接口的PROMISC功能 本示例将基于FlatDHCP网络模型,因此其所有工作可以仅通过一个网络接口完成。在所有的节点上,需要为此接口开启“promisc”标志,这可通过如下命令实现。 2、创建桥接接口br100 3、使用桥接管理工具查看桥接接口的信息 4、启动messagbus服务 ,有些功能需要依赖此服务
openstack中nova命令大全
以下是openstack命令大全,具体想看哪一条命令的具体执行,可以使用: nova  help +命令nova --helpusage: nova [--version] [--debug] [--os-cache] [--timings]            [--os-auth-token OS_AUTH_TOKEN]            [--os-tenant-name <au...
openstack nova 安装问题
大侠们: rn 最近在安装openstack,按照官方文档一步步的装下来,在安装nova里的导出项目管理凭证的时候出错了,nova-manage rnproject zipfile proj novaadmin /home/dingjun/creds/novacreds.zip,出错如下: rnrndingjun@server1:/var/lib/nova/CA$ sudo nova-manage project zipfile rnproj novaadmin /home/dingjun/creds/novacreds.zip rn[sudo] password for dingjun: rnUnexpected error while running command. rnCommand: openssl ca -batch -out /tmp/tmp2ETHWE/outbound.csr -config ./ rnopenssl.cnf -infiles /tmp/tmp2ETHWE/inbound.csr rnExit code: 1 rnStdout: '' rnStderr: "Using configuration from ./openssl.cnf\nerror loading the rnconfig file './openssl.cnf'\n5329:error:02001002:system rnlibrary:fopen:No such file or directory:bss_file.c:126:fopen('./ rnopenssl.cnf','rb')\n5329:error:2006D080:BIO routines:BIO_new_file:no rnsuch file:bss_file.c:129:\n5329:error:0E078072:configuration file rnroutines:DEF_LOAD:no such file:conf_def.c:197:\n" rnThe above error may show that the certificate db has not been created. rnPlease create a database by running a nova-api server on this host. rnrn但是我单独执行openssl ca -batch -out /tmp/tmp2ETHWE/outbound.csr -config ./ rnopenssl.cnf -infiles /tmp/tmp2ETHWE/inbound.csr,不会出错,如下: rnrn sudo openssl ca -batch -out /tmp/tmp2ETHWE/outbound.csr -config ./ rnopenssl.cnf -infiles /tmp/tmp2ETHWE/inbound.csr rnUsing configuration from ./openssl.cnf rnCheck that the request matches the signature rnSignature ok rnThe Subject's Distinguished Name is as follows rncountryName :PRINTABLE:'US' rnstateOrProvinceName :PRINTABLE:'California' rnlocalityName :PRINTABLE:'MountainView' rnorganizationName :PRINTABLE:'AnsoLabs' rnorganizationalUnitName:PRINTABLE:'NovaDev' rncommonName :PRINTABLE:'proj-novaadmin-2012-01-29T08:03:27Z' rnCertificate is to be certified until Jan 28 08:05:54 2013 GMT (365 rndays) rnrnWrite out database with 1 new entries rnData Base Updated rnrn该如何解决?请高人指点。。。。
OpenStack NOVA概述
OpenStack Compute作为OpenStack Cloud的“操作系统”,负责管理所有的资源、网络、认证以及可扩展性。OpenStack Compute的Austin版本所具有的特性如下: 支持的虚拟机类型有:Xen、KVM、Qemu,用户模式支持Linux 安全组应用
openstack nova求助!
大侠们:rn 最近在安装openstack,按照官方文档一步步的装下来,在安装nova里的导出项目管理凭证的时候出错了,nova-manage project zipfile proj novaadmin /home/dingjun/creds/novacreds.zip,出错如下:rnrndingjun@server1:/var/lib/nova/CA$ sudo nova-manage project zipfile proj novaadmin /home/dingjun/creds/novacreds.ziprn[sudo] password for dingjun: rnUnexpected error while running command.rnCommand: openssl ca -batch -out /tmp/tmp2ETHWE/outbound.csr -config ./openssl.cnf -infiles /tmp/tmp2ETHWE/inbound.csrrnExit code: 1rnStdout: ''rnStderr: "Using configuration from ./openssl.cnf\nerror loading the config file './openssl.cnf'\n5329:error:02001002:system library:fopen:No such file or directory:bss_file.c:126:fopen('./openssl.cnf','rb')\n5329:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:129:\n5329:error:0E078072:configuration file routines:DEF_LOAD:no such file:conf_def.c:197:\n"rnThe above error may show that the certificate db has not been created.rnPlease create a database by running a nova-api server on this host.rnrn但是我单独执行openssl ca -batch -out /tmp/tmp2ETHWE/outbound.csr -config ./openssl.cnf -infiles /tmp/tmp2ETHWE/inbound.csr,不会出错,如下:rnrn sudo openssl ca -batch -out /tmp/tmp2ETHWE/outbound.csr -config ./openssl.cnf -infiles /tmp/tmp2ETHWE/inbound.csrrnUsing configuration from ./openssl.cnfrnCheck that the request matches the signaturernSignature okrnThe Subject's Distinguished Name is as followsrncountryName :PRINTABLE:'US'rnstateOrProvinceName :PRINTABLE:'California'rnlocalityName :PRINTABLE:'MountainView'rnorganizationName :PRINTABLE:'AnsoLabs'rnorganizationalUnitName:PRINTABLE:'NovaDev'rncommonName :PRINTABLE:'proj-novaadmin-2012-01-29T08:03:27Z'rnCertificate is to be certified until Jan 28 08:05:54 2013 GMT (365 days)rnrnWrite out database with 1 new entriesrnData Base Updatedrnrn该如何解决?请高人指点。。。。
openstack nova源码分析.pdf
openstack nova源码分析.pdf
openstack mitaka版本nova reset api报错
curl命令调用nova reset api报错问题, token获取和认证是没有问题的rn[img=https://img-bbs.csdn.net/upload/201612/23/1482505070_595306.png][/img]rnrnnova api log如下:rn[img=https://img-bbs.csdn.net/upload/201612/23/1482505084_434155.png][/img]rnrn执行nova list命令正常rn[img=https://img-bbs.csdn.net/upload/201612/23/1482508454_320982.png][/img]rnrnnova --debug list如下:rn[img=https://img-bbs.csdn.net/upload/201612/23/1482508708_184775.png][/img]
openstack network agent list 报错
[root@openstack-node1 ~]# source admin-openrc rn[root@openstack-node1 ~]# nova-status upgrade checkrnError:rnTraceback (most recent call last):rn File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 456, in mainrn ret = fn(*fn_args, **fn_kwargs)rn File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 386, in checkrn result = func(self)rn File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 201, in _check_placementrn versions = self._placement_get("/")rn File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 189, in _placement_getrn return client.get(path, endpoint_filter=ks_filter).json()rn File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 758, in getrn return self.request(url, 'GET', **kwargs)rn File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in innerrn return wrapped(*args, **kwargs)rn File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 655, in requestrn raise exceptions.from_response(resp, method, url)rnServiceUnavailable: Service Unavailable (HTTP 503) (Request-ID: req-1fc449a3-51db-4bf7-8071-b68fa9903bbe)rnrn[root@openstack-node1 ~]# openstack network agent listrn'unicode' object has no attribute 'get'rn[root@openstack-node1 ~]#rnrn
openstack nova service 启动不了 或者报错
[code="java"] 如果service nova-compute restart 启动不了 那么就需要查看/var/log/upstart下面相对应的日志查看原因 一般有如下的几个原因 1.python six 模块安装的不对,这个时候需要 卸载掉python-six apt-get remove --purge python-six 然后重新安装正确的python-six 模...
【openstack】【nova】nova 删除云主机流程及代码分析
正常情况下删除云主机的操作,主要采用如下两个方式:1. is_local_delete = True 采用local_delete()2. is_local_delete = False 采用compute_rpcapi.terminate_instance()云主机在如下的状态下vm_statesvm_states.SHELVED, vm_states.SHELVED_OFFLOADED下,会采...
openstack nova 过滤器调度文档翻译
Filter Scheduler 调度过滤器支持过滤和加权以便在某一个节点创建实例时做出精确地决定。这个调度仅仅只支持在计算节点上工作。 图一filtering 在其工作期间过滤器调度程序遍历每一个被发现的计算节点。根据筛选器对每一个筛选器取值。最终的主机结果列表按照权重来排序的。调度程序为请求的实例数选择主机。选择权重大的主机。对于特殊的主机采用特定的过滤器。过滤器根据主机的状...
openstack计算组件Nova讲解
<p>n <span style="font-size:18px;">   本次课程主要讲解的是开源云平台openstack自动化安装课程,课程采用的4个虚拟机节点作为演示环境,首先给大家演示如何自动化快速搭建一套openstack云平台,然后开始对openstack每一个组件进行详细的讲解,最后开始讲解一个完整的云主机创建流程包括网络配置、镜像上传、实例类型创建、安全组创建、云主机动态调整、云主机动态迁移。</span>n</p>n<p>n <span style="font-size:18px;">  <span style="color:#E53333;">课程采用的操作系统下载地址</span><span style="color:#9BBB59;"><span style="color:#E53333;">https://pan.baidu.com/s/17yONN3caKIag6crBnA45MA</span><span style="color:#E53333;"> </span></span><span style="color:#E53333;">请使用该操作系统,课程提供openstack rocky离线包!</span></span>n</p>
OpenStack Nova组件讲解01
本次课程主要讲解opestack开源社区Q 版本,课程采用自动化部署方式,首先给大家讲解自动化安装部署,然后针对每一个常用组件进行讲解,包括云主机挂载数据盘,数据盘动态调整,云主机的动态调整以及迁移。
openstack nova scheduler中的问题
用3台机器配置了一个openstackrn请问它默认的是 随机调度算法rn怎么样做自己的算法 替换捏
【OpenStack】【Nova】安装与配置详解 (1)
文章目录centos-openstack-rocky仓库中Nova相关的包openstack-nova-common包openstack-nova-api包openstack-nova-conductor包openstack-nova-console包openstack-nova-novncproxy包openstack-nova-scheduler包openstack-nova-placemen...
OpenStack Nova开发与测试环境搭建
工作要求搭建一个可以用来进行Openstack开发的环境,Openstack官方给了一套指导 http://docs.openstack.org/developer/nova/devref/development.environment.html 。我便开始按照这个指导搭建环境,但是最初希望在windows开发,所以尝试在windows中搭建,但经过实际的搭建,在windows上是不可行的。好吧,还是按指导上写的来,过程中间遇到很多问题,幸运的是现在都一一解决,在这里回顾和记录一下:rnrn 系统要求:ubuntu10.10-64 ~12.04(我是在12.04上搭建的,11版本应该也没有问题)rnrn 其他的就没什么了,因为搭建过程中的脚本会将需要的软件都安装上。Ok,开始。在终端中执行:rn1 sudo apt-get install python-dev libssl-dev python-pip git-corernrn下面的一步比较重要,我开始的时候没有注意,导致了很多问题也浪费了很多时间。就是一定要用Virtualenv建立一个虚拟的python环境,然后在这个虚拟环境中进行开发与测试,关于Virtualenv社区里就有比较详细的介绍,我这里仅仅简单说一下如何使用:rnrn用easy_install或pip下载安装Virtualenvrn1 easy_install Virtualenvrnrn然后使用Virtualenv创建虚拟环境(需要在Virtualenv的安装路径中执行)rn1 virtualenv openTestrnrn 执行成功后会得到信息,然后使用刚创建的虚拟环境:rn1 cd openTest/rn2 source bin/activaternrn执行完之后会发现终端的用户名之前多了个括号,括号里的内容就是当前的虚拟环境。rnrn到这里之后开始跟Nova相关的内容,下载到nova的源代码:rn1 git clone https://github.com/openstack/nova.gitrn2 cd novarnrn接下来官方给出的指导是执行:rn1 ./run_tests.shrnrn但是这个脚本没有很顺利的执行完过(多次测试)。不清楚是为什么,现在暂时把这个放在一边,还有别的路径:rn1 python tools/install_venv.pyrnrn手动的安装nova需要的依赖包。这个我也尝试过多次,中间也失败过,至今已无法获知失败的原因了,但是现在确实执行成功了,见下图:rnrnNova development environment setup is complete.rnrnOk ,开发环境就这样搭建好了,看起来很简单,但是这个过程我实验了不知道多少次,可能是我运气比较差吧,过程中间有一点特别重要:就是一定要在虚拟的环境中运行脚本,官方文档中也有明确说明:”Nova development uses virtualenv to track and manage Python dependencies while in development and testing. This allows you to install all of the Python package dependencies in a virtual environment or “virtualenv” (a special subdirectory of your nova directory), instead of installing the packages at the system level.“rnrn这样做还有另外一个好处,就是虚拟环境可以创建很多个,一个实验不成功可以很轻松的换其他环境来实验,省去了很多麻烦。下面在运行测试的脚本就会得到有用的结果了rnrn[img=http://static.oschina.net/uploads/space/2012/0802/183528_i3qx_263977.png][/img]rnrn本文最早发布于开源中国社区(我即原文作者),因看到CSDN正在做活动,就转过来了。
openstack nova api dead 问题。
rn遇到openstack-nova-api dead问题。rnrn[root@keystone nova(keystone_admin)]#openstack-statusrn== Nova services ==rnopenstack-nova-api: deadrnopenstack-nova-cert: activernopenstack-nova-compute: activernopenstack-nova-network: activernopenstack-nova-scheduler: activernopenstack-nova-volume: deadrn== Glance services ==rnopenstack-glance-api: activernopenstack-glance-registry: activern== Keystone service ==rnopenstack-keystone: activern== Horizon service ==rnopenstack-dashboard: activern== Support services ==rnmysqld: activernlibvirtd: activernmessagebus: activerntgtd: activernqpidd: activernmemcached: activern== Keystone users ==rn+----------------------------------+---------+---------+-------+rn| id | name | enabled | email |rn+----------------------------------+---------+---------+-------+rn| 146c5f7176e349ff8434f956f6dc4b08 | quantum | True | |rn| 3768e8b8856e42fabfbb73dc1bf1b1ad | nova | True | |rn| 3d3242317aa24e398964653a1347993d | glance | True | |rn| 5bea43016198421b8471931eec70f461 | admin | True | |rn| 830f145a66ba449ebc442dae05d25e8e | swift | True | |rn| cc24277cf5694507bbdf8c294504d8e1 | cinder | True | |rn| e9198e24399e4a329ac5cbedc6db48dc | admini | True | |rn+----------------------------------+---------+---------+-------+rn== Glance images ==rn+--------------------------------------+--------------+-------------+------------------+----------+--------+rn| ID | Name | Disk Format | Container Format | Size | Status |rn+--------------------------------------+--------------+-------------+------------------+----------+--------+rn| 65a1c9a2-efc6-4fd1-a42e-d3b3cc89301c | CirrOS 0.3.1 | qcow2 | bare | 13147648 | active |rn+--------------------------------------+--------------+-------------+------------------+----------+--------+rn== Nova managed services ==rnERROR: The resource could not be found. (HTTP 404)rn== Nova networks ==rnERROR: The resource could not be found. (HTTP 404)rn== Nova instance flavors ==rnERROR: The resource could not be found. (HTTP 404)rn== Nova instances ==rnERROR: The resource could not be found. (HTTP 404)rnrn/var/log/nova/api.log 内容如下:rn2014-02-12 05:48:35 3744 DEBUG nova.wsgi [-] Loading app ec2 from /etc/nova/api-paste.ini load_app /usr/lib/python2.6/site-packages/nova/wsgi.py:371rn2014-02-12 05:48:35 3744 INFO nova.wsgi [-] ec2 listening on 0.0.0.0:8773rn2014-02-12 05:48:35 3744 INFO nova.service [-] Starting 1 workersrn2014-02-12 05:48:35 3744 INFO nova.service [-] Started child 3781rn2014-02-12 05:48:35 3744 DEBUG nova.wsgi [-] Loading app osapi_compute from /etc/nova/api-paste.ini load_app /usr/lib/python2.6/site-packages/nova/wsgi.py:371rn2014-02-12 05:48:35 3781 INFO nova.ec2.wsgi.server [-] (3781) wsgi starting up on http://0.0.0.0:8773/rnrn2014-02-12 05:48:35 3744 CRITICAL nova [-] No module named auth_tokenrn2014-02-12 05:48:35 3744 TRACE nova Traceback (most recent call last):rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/bin/nova-api", line 50, in rn2014-02-12 05:48:35 3744 TRACE nova server = service.WSGIService(api)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/nova/service.py", line 577, in __init__rn2014-02-12 05:48:35 3744 TRACE nova self.app = self.loader.load_app(name)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/nova/wsgi.py", line 372, in load_apprn2014-02-12 05:48:35 3744 TRACE nova return deploy.loadapp("config:%s" % self.config_path, name=name)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 247, in loadapprn2014-02-12 05:48:35 3744 TRACE nova return loadobj(APP, uri, name=name, **kw)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 272, in loadobjrn2014-02-12 05:48:35 3744 TRACE nova return context.create()rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 710, in creatern2014-02-12 05:48:35 3744 TRACE nova return self.object_type.invoke(self)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 144, in invokern2014-02-12 05:48:35 3744 TRACE nova **context.local_conf)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/util.py", line 56, in fix_callrn2014-02-12 05:48:35 3744 TRACE nova val = callable(*args, **kw)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/nova/api/openstack/urlmap.py", line 163, in urlmap_factoryrn2014-02-12 05:48:35 3744 TRACE nova app = loader.get_app(app_name, global_conf=global_conf)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 350, in get_apprn2014-02-12 05:48:35 3744 TRACE nova name=name, global_conf=global_conf).create()rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 710, in creatern2014-02-12 05:48:35 3744 TRACE nova return self.object_type.invoke(self)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 144, in invokern2014-02-12 05:48:35 3744 TRACE nova **context.local_conf)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/util.py", line 56, in fix_callrn2014-02-12 05:48:35 3744 TRACE nova val = callable(*args, **kw)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/nova/api/auth.py", line 49, in pipeline_factoryrn2014-02-12 05:48:35 3744 TRACE nova filters = [loader.get_filter(n) for n in pipeline[:-1]]rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 354, in get_filterrn2014-02-12 05:48:35 3744 TRACE nova name=name, global_conf=global_conf).create()rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 366, in filter_contextrn2014-02-12 05:48:35 3744 TRACE nova FILTER, name=name, global_conf=global_conf)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 458, in get_contextrn2014-02-12 05:48:35 3744 TRACE nova section)rn2014-02-12 05:48:35 3744 TRACE nova value = import_string(found_expr)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 22, in import_stringrn2014-02-12 05:48:35 3744 TRACE nova return pkg_resources.EntryPoint.parse("x=" + s).load(False)rn2014-02-12 05:48:35 3744 TRACE nova File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in loadrn2014-02-12 05:48:35 3744 TRACE nova entry = __import__(self.module_name, globals(),globals(), ['__name__'])rn2014-02-12 05:48:35 3744 TRACE nova ImportError: No module named auth_tokenrn2014-02-12 05:48:35 3744 TRACE nova rn2014-02-12 05:48:35 3781 INFO nova.service [-] Parent process has died unexpectedly, exitingrn2014-02-12 05:48:35 3781 INFO nova.wsgi [-] Stopping WSGI server.rnrnrn其中 /etc/nova/nova.conf配置如下:rn[DEFAULT]rnrn#LOGS/STATErnverbose=Truernlogdir=/var/log/novarnstate_path=/var/lib/novarnlock_path=/var/lock/novarnrootwrap_config=/etc/nova/rootwrap.confrnrn# SCHEDULERrncompute_scheduler_driver=nova.scheduler.filter_scheduler.FilterSchedulerrnrn# VOLUMESrnvolume_driver=nova.volume.driver.ISCSIDriverrnvolume_group=nova-volumesrnvolume_name_template=volume-%08xrniscsi_helper=tgtadmrnrn# DATABASErnsql_connection=mysql://nova:nova@192.168.1.102/novarnrn# COMPUTErnlibvirt_type=qemurncompute_driver=libvirt.LibvirtDriverrninstance_name_template=instance-%08xrnapi_paste_config=/etc/nova/api-paste.inirnrn# COMPUTE/APIS: if you have separate configs for separate servicesrn# this flag is required for both nova-api and nova-computernallow_resize_to_same_host=Truernrn# APISrnosapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensionsrnec2_dmz_host=192.168.1.102rns3_host=192.168.1.102rnrn# Qpidrnrpc_backend=nova.rpc.impl_qpidrnqpid_hostname=192.168.1.102rn# GLANCErnimage_service=nova.image.glance.GlanceImageServicernglance_api_servers=192.168.1.102:9292rnrn# NETWORKrnnetwork_manager=nova.network.manager.FlatDHCPManagerrndhcpbridge=/usr/bin/nova-dhcpbridgernforce_dhcp_release=Truerndhcpbridge_flagfile=/etc/nova/nova.confrnfirewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriverrn# Change my_ip to match each hostrnmy_ip=192.168.1.102rnpublic_interface=eth0rnvlan_interface=eth0rnflat_network_bridge=virbr0-nicrnflat_interface=eth0rnfixed_range=192.168.100.0/24rnrn# NOVNC CONSOLErnnovncproxy_base_url=http://192.168.1.102:6080/vnc_auto.htmlrn# Change vncserver_proxyclient_address and vncserver_listen to match each compute hostrnvncserver_proxyclient_address=192.168.1.102rnvncserver_listen=192.168.1.102rn# AUTHENTICATIONrnauth_strategy=keystonern[keystone_authtoken]rnauth_host = 192.168.1.102rnauth_port = 35357rnauth_protocol = httprnadmin_tenant_name = demornadmin_user = novarnadmin_password = novarnsigning_dirname = /tmp/keystone-signing-novarnrn求高手帮忙看下该怎么解决。rn
OPENSTACK 计算 (Compute) - Nova源码
OPENSTACK 计算 (Compute) - Nova源码,了解的请取用!
openstack使用命令行nova创建虚拟机
我们一台虚拟机需要的东西不多,大小、镜像、网络以及安全组。所以我们就只需要查出这些配置信息,然后就可以创建虚拟机了。说明一下,本人是利用公司里docker容器里部署的openstack,所以在创建之前,先用命令行进入相应容器中:docker exec -it -u 0 neutron-server /bin/bash进入到:neutron-server中,再继续以下命令:1.查看flavor使用n...
OpenStack Nova组件讲解02
本次课程主要讲解opestack开源社区Q 版本,课程采用自动化部署方式,首先给大家讲解自动化安装部署,然后针对每一个常用组件进行讲解,包括云主机挂载数据盘,数据盘动态调整,云主机的动态调整以及迁移。
OpenStack Nova组件讲解03
本次课程主要讲解opestack开源社区Q 版本,课程采用自动化部署方式,首先给大家讲解自动化安装部署,然后针对每一个常用组件进行讲解,包括云主机挂载数据盘,数据盘动态调整,云主机的动态调整以及迁移。
Openstack组件实现原理 — Nova 体系结构
目录 目录 前文列表 Nova体系结构 虚拟机实例化流程 前文列表 Openstack组件部署 — Overview和前期环境准备 Openstack组建部署 — Environment of Controller Node Openstack组件部署 — Keystone功能介绍与认证实现流程 Openst...
Openstack的Nova的性能生产测试
该才是结果来自于某项目的实际部署情况。 客户环境16台四路物理服务器配置如下: CPU:E7-4820v2 *4 内存:16GB DDR3 1600Mhz * 16 256GB 硬盘:1TB_7200_12G * 16 硬盘:480G_6G_MLC *2 系统盘;300G_10K_12G*2 RAID1Openstack 版本为Mitaka存储采用**科技统一存储。 NOVA的K
安装OpenStack计算服务(nova)
1. 配置数据库 数据库安装在控制节(controller)点上 $ mysql -u root -p 2.创建 glance 数据库 CREATE DATABASE nova; GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY '123456'; GRANT ALL PRIVILEGES ON