分享

openstack【Kilo】入门 【nova篇】十二:安装配置nova

pig2 发表于 2015-5-13 17:37:06 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 52 299254
akqzx 发表于 2015-9-16 11:11:57
本帖最后由 akqzx 于 2015-9-16 11:15 编辑

Hi
按照配置,出现下面错误,正在核对NTP

2015-09-16 11:14:28.783 6103 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on localhost:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 7 seconds.
回复

使用道具 举报

NEOGX 发表于 2015-9-16 12:15:03
akqzx 发表于 2015-9-16 11:11
Hi
按照配置,出现下面错误,正在核对NTP

AMQP 安装是否有问题
回复

使用道具 举报

akqzx 发表于 2015-9-16 12:47:09
NEOGX 发表于 2015-9-16 12:15
AMQP 安装是否有问题

AMQP没有问题,
root@controller:~# service rabbitmq-server status
Status of node rabbit@controller ...
[{pid,2054},
{running_applications,[{rabbit,"RabbitMQ","3.4.3"},
                        {os_mon,"CPO  CXC 138 46","2.2.14"},
                        {mnesia,"MNESIA  CXC 138 12","4.11"},
                        {xmerl,"XML parser","1.3.5"},
                        {sasl,"SASL  CXC 138 11","2.3.4"},
                        {stdlib,"ERTS  CXC 138 10","1.19.4"},
                        {kernel,"ERTS  CXC 138 10","2.16.4"}]},
{os,{unix,linux}},
{erlang_version,"Erlang R16B03 (erts-5.10.4) [source] [64-bit] [smp:8:8] [async-threads:30] [kernel-poll:true]\n"},
{memory,[{total,88212680},
          {connection_readers,172216},
          {connection_writers,51952},
          {connection_channels,134368},
          {connection_other,340680},
          {queue_procs,325192},
          {queue_slave_procs,0},
          {plugins,0},
          {other_proc,13720888},
          {mnesia,102560},
          {mgmt_db,0},
          {msg_index,53160},
          {other_ets,783720},
          {binary,50678248},
          {code,16403685},
          {atom,561761},
          {other_system,4884250}]},
{alarms,[]},
{listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,13475664691},
{disk_free_limit,50000000},
{disk_free,1084525281280},
{file_descriptors,[{total_limit,924},
                    {total_used,22},
                    {sockets_limit,829},
                    {sockets_used,20}]},
{processes,[{limit,1048576},{used,338}]},
{run_queue,0},
{uptime,268}]                  


在计算节点也可以telnet到控制节点的5672
root@compute1:~# telnet controller 5672
Trying 10.0.0.11...
Connected to controller.
Escape character is '^]'.



root@compute1:~# cat /etc/nova/nova.conf
[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 10.0.0.31
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.0.0.31
novncproxy_base_url = http://controller:6080/vnc_auto.html
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = 123123123
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = 123123123
[glance]
host = controller
[oslo_concurrency]
lock_path = /var/lib/nova/tmp


2015-09-16 12:44:10.502 1922 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on localhost:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 7 seconds.
怎么会是连接到localhost:5672呢?




回复

使用道具 举报

lyyy 发表于 2015-9-16 13:49:15
4.创建nova 服务 API endpoint
提示 ERROR: openstack  是什么原因?

点评

这些都看不出问题的。看详细日志  发表于 2015-9-16 15:08
回复

使用道具 举报

lyyy 发表于 2015-9-16 15:31:10
lyyy 发表于 2015-9-16 13:49
4.创建nova 服务 API endpoint
提示 ERROR: openstack  是什么原因?

root@controller:~# openstack endpoint create  --publicurl http://controller:8774/v2/%\(tenant_id\)s   --internalurl http://controller:8774/v2/%\(tenant_id\)s   --adminurl http://controller:8774/v2/%\(tenant_id\)s   --region regionOne compute
ERROR: openstack

我输入这段就提示这个,我也很郁闷,详细的log怎么查看?


回复

使用道具 举报

lyyy 发表于 2015-9-16 15:41:55
lyyy 发表于 2015-9-16 13:49
4.创建nova 服务 API endpoint
提示 ERROR: openstack  是什么原因?

root@controller:~# openstack --debug endpoint create  --publicurl http://controller:8774/v2/%\(tenant_id\)s   --internalurl http://controller:8774/v2/%\(tenant_id\)s   --adminurl http://controller:8774/v2/%\(tenant_id\)s   --region regionOne compute
DEBUG: cliff.commandmanager found command 'hypervisor_stats_show'
DEBUG: cliff.commandmanager found command 'security_group_create'
DEBUG: cliff.commandmanager found command 'security_group_rule_list'
DEBUG: cliff.commandmanager found command 'keypair_list'
DEBUG: cliff.commandmanager found command 'security_group_rule_delete'
DEBUG: cliff.commandmanager found command 'host_show'
DEBUG: cliff.commandmanager found command 'host_list'
DEBUG: cliff.commandmanager found command 'hypervisor_show'
DEBUG: cliff.commandmanager found command 'server_pause'
DEBUG: cliff.commandmanager found command 'server_reboot'
DEBUG: cliff.commandmanager found command 'server_migrate'
DEBUG: cliff.commandmanager found command 'server_set'
DEBUG: cliff.commandmanager found command 'server_add_security_group'
DEBUG: cliff.commandmanager found command 'server_unrescue'
DEBUG: cliff.commandmanager found command 'usage_list'
DEBUG: cliff.commandmanager found command 'keypair_show'
DEBUG: cliff.commandmanager found command 'security_group_set'
DEBUG: cliff.commandmanager found command 'compute_agent_create'
DEBUG: cliff.commandmanager found command 'server_rescue'
DEBUG: cliff.commandmanager found command 'console_log_show'
DEBUG: cliff.commandmanager found command 'compute_agent_delete'
DEBUG: cliff.commandmanager found command 'server_ssh'
DEBUG: cliff.commandmanager found command 'server_lock'
DEBUG: cliff.commandmanager found command 'server_unset'
DEBUG: cliff.commandmanager found command 'server_show'
DEBUG: cliff.commandmanager found command 'server_suspend'
DEBUG: cliff.commandmanager found command 'server_add_volume'
DEBUG: cliff.commandmanager found command 'server_image_create'
DEBUG: cliff.commandmanager found command 'flavor_list'
DEBUG: cliff.commandmanager found command 'server_remove_volume'
DEBUG: cliff.commandmanager found command 'compute_agent_set'
DEBUG: cliff.commandmanager found command 'aggregate_add_host'
DEBUG: cliff.commandmanager found command 'aggregate_remove_host'
DEBUG: cliff.commandmanager found command 'compute_service_set'
DEBUG: cliff.commandmanager found command 'aggregate_create'
DEBUG: cliff.commandmanager found command 'keypair_create'
DEBUG: cliff.commandmanager found command 'ip_floating_list'
DEBUG: cliff.commandmanager found command 'aggregate_delete'
DEBUG: cliff.commandmanager found command 'aggregate_show'
DEBUG: cliff.commandmanager found command 'security_group_rule_create'
DEBUG: cliff.commandmanager found command 'security_group_delete'
DEBUG: cliff.commandmanager found command 'server_rebuild'
DEBUG: cliff.commandmanager found command 'flavor_delete'
DEBUG: cliff.commandmanager found command 'server_delete'
DEBUG: cliff.commandmanager found command 'project_usage_list'
DEBUG: cliff.commandmanager found command 'availability_zone_list'
DEBUG: cliff.commandmanager found command 'hypervisor_list'
DEBUG: cliff.commandmanager found command 'flavor_create'
DEBUG: cliff.commandmanager found command 'console_url_show'
DEBUG: cliff.commandmanager found command 'ip_fixed_add'
DEBUG: cliff.commandmanager found command 'server_remove_security_group'
DEBUG: cliff.commandmanager found command 'usage_show'
DEBUG: cliff.commandmanager found command 'compute_agent_list'
DEBUG: cliff.commandmanager found command 'flavor_show'
DEBUG: cliff.commandmanager found command 'ip_fixed_remove'
DEBUG: cliff.commandmanager found command 'ip_floating_create'
DEBUG: cliff.commandmanager found command 'server_list'
DEBUG: cliff.commandmanager found command 'server_create'
DEBUG: cliff.commandmanager found command 'ip_floating_pool_list'
DEBUG: cliff.commandmanager found command 'ip_floating_add'
DEBUG: cliff.commandmanager found command 'security_group_show'
DEBUG: cliff.commandmanager found command 'keypair_delete'
DEBUG: cliff.commandmanager found command 'server_resize'
DEBUG: cliff.commandmanager found command 'ip_floating_delete'
DEBUG: cliff.commandmanager found command 'ip_floating_remove'
DEBUG: cliff.commandmanager found command 'security_group_list'
DEBUG: cliff.commandmanager found command 'server_resume'
DEBUG: cliff.commandmanager found command 'aggregate_set'
DEBUG: cliff.commandmanager found command 'aggregate_list'
DEBUG: cliff.commandmanager found command 'server_unpause'
DEBUG: cliff.commandmanager found command 'compute_service_list'
DEBUG: cliff.commandmanager found command 'server_unlock'
DEBUG: openstackclient.shell compute API version 2, cmd group openstack.compute.v2
DEBUG: cliff.commandmanager found command 'network_set'
DEBUG: cliff.commandmanager found command 'network_delete'
DEBUG: cliff.commandmanager found command 'network_list'
DEBUG: cliff.commandmanager found command 'network_show'
DEBUG: cliff.commandmanager found command 'network_create'
DEBUG: openstackclient.shell network API version 2, cmd group openstack.network.v2
DEBUG: cliff.commandmanager found command 'image_show'
DEBUG: cliff.commandmanager found command 'image_list'
DEBUG: cliff.commandmanager found command 'image_save'
DEBUG: cliff.commandmanager found command 'image_delete'
DEBUG: openstackclient.shell image API version 2, cmd group openstack.image.v2
DEBUG: cliff.commandmanager found command 'snapshot_show'
DEBUG: cliff.commandmanager found command 'backup_create'
DEBUG: cliff.commandmanager found command 'volume_list'
DEBUG: cliff.commandmanager found command 'volume_show'
DEBUG: cliff.commandmanager found command 'snapshot_unset'
DEBUG: cliff.commandmanager found command 'volume_set'
DEBUG: cliff.commandmanager found command 'backup_delete'
DEBUG: cliff.commandmanager found command 'volume_create'
DEBUG: cliff.commandmanager found command 'volume_type_list'
DEBUG: cliff.commandmanager found command 'volume_type_create'
DEBUG: cliff.commandmanager found command 'backup_restore'
DEBUG: cliff.commandmanager found command 'backup_list'
DEBUG: cliff.commandmanager found command 'volume_unset'
DEBUG: cliff.commandmanager found command 'backup_show'
DEBUG: cliff.commandmanager found command 'volume_type_delete'
DEBUG: cliff.commandmanager found command 'volume_type_set'
DEBUG: cliff.commandmanager found command 'snapshot_set'
DEBUG: cliff.commandmanager found command 'snapshot_list'
DEBUG: cliff.commandmanager found command 'snapshot_delete'
DEBUG: cliff.commandmanager found command 'volume_delete'
DEBUG: cliff.commandmanager found command 'snapshot_create'
DEBUG: cliff.commandmanager found command 'volume_type_unset'
DEBUG: openstackclient.shell volume API version 1, cmd group openstack.volume.v1
DEBUG: cliff.commandmanager found command 'project_create'
DEBUG: cliff.commandmanager found command 'project_list'
DEBUG: cliff.commandmanager found command 'ec2_credentials_list'
DEBUG: cliff.commandmanager found command 'service_list'
DEBUG: cliff.commandmanager found command 'role_add'
DEBUG: cliff.commandmanager found command 'project_show'
DEBUG: cliff.commandmanager found command 'role_show'
DEBUG: cliff.commandmanager found command 'endpoint_delete'
DEBUG: cliff.commandmanager found command 'project_set'
DEBUG: cliff.commandmanager found command 'service_create'
DEBUG: cliff.commandmanager found command 'service_show'
DEBUG: cliff.commandmanager found command 'endpoint_show'
DEBUG: cliff.commandmanager found command 'ec2_credentials_create'
DEBUG: cliff.commandmanager found command 'catalog_list'
DEBUG: cliff.commandmanager found command 'ec2_credentials_delete'
DEBUG: cliff.commandmanager found command 'service_delete'
DEBUG: cliff.commandmanager found command 'token_issue'
DEBUG: cliff.commandmanager found command 'project_delete'
DEBUG: cliff.commandmanager found command 'endpoint_list'
DEBUG: cliff.commandmanager found command 'role_list'
DEBUG: cliff.commandmanager found command 'user_create'
DEBUG: cliff.commandmanager found command 'user_delete'
DEBUG: cliff.commandmanager found command 'user_show'
DEBUG: cliff.commandmanager found command 'role_create'
DEBUG: cliff.commandmanager found command 'role_remove'
DEBUG: cliff.commandmanager found command 'role_delete'
DEBUG: cliff.commandmanager found command 'catalog_show'
DEBUG: cliff.commandmanager found command 'token_revoke'
DEBUG: cliff.commandmanager found command 'endpoint_create'
DEBUG: cliff.commandmanager found command 'user_role_list'
DEBUG: cliff.commandmanager found command 'user_set'
DEBUG: cliff.commandmanager found command 'user_list'
DEBUG: cliff.commandmanager found command 'ec2_credentials_show'
DEBUG: openstackclient.shell identity API version 2, cmd group openstack.identity.v2
DEBUG: cliff.commandmanager found command 'object_create'
DEBUG: cliff.commandmanager found command 'object_list'
DEBUG: cliff.commandmanager found command 'object_delete'
DEBUG: cliff.commandmanager found command 'container_list'
DEBUG: cliff.commandmanager found command 'object_show'
DEBUG: cliff.commandmanager found command 'container_delete'
DEBUG: cliff.commandmanager found command 'container_create'
DEBUG: cliff.commandmanager found command 'container_show'
DEBUG: cliff.commandmanager found command 'container_save'
DEBUG: cliff.commandmanager found command 'object_save'
DEBUG: openstackclient.shell object_store API version 1, cmd group openstack.object_store.v1
DEBUG: cliff.commandmanager found command 'extension_list'
DEBUG: cliff.commandmanager found command 'quota_set'
DEBUG: cliff.commandmanager found command 'quota_show'
DEBUG: cliff.commandmanager found command 'limits_show'
INFO: openstackclient.shell command: <none> -> openstackclient.identity.v2_0.endpoint.CreateEndpoint
DEBUG: openstackclient.api.auth Auth plugin osc_password selected
DEBUG: openstackclient.api.auth auth_type: osc_password
DEBUG: openstackclient.api.auth fetching option os_auth_url
DEBUG: openstackclient.api.auth fetching option os_domain_id
DEBUG: openstackclient.api.auth fetching option os_domain_name
DEBUG: openstackclient.api.auth fetching option os_tenant_id
DEBUG: openstackclient.api.auth fetching option os_tenant_name
DEBUG: openstackclient.api.auth fetching option os_project_id
DEBUG: openstackclient.api.auth fetching option os_project_name
DEBUG: openstackclient.api.auth fetching option os_project_domain_id
DEBUG: openstackclient.api.auth fetching option os_project_domain_name
DEBUG: openstackclient.api.auth fetching option os_trust_id
DEBUG: openstackclient.api.auth fetching option os_user_id
DEBUG: openstackclient.api.auth fetching option os_username
DEBUG: openstackclient.api.auth fetching option os_user_domain_id
DEBUG: openstackclient.api.auth fetching option os_user_domain_name
DEBUG: openstackclient.api.auth fetching option os_password
INFO: openstackclient.common.clientmanager Using auth plugin: osc_password
DEBUG: openstackclient.common.clientmanager Get auth_ref
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO: urllib3.connectionpool Starting new HTTP connection (1): controller
DEBUG: urllib3.connectionpool "GET /v3 HTTP/1.1" 200 250
DEBUG: keystoneclient.session RESP: [200] content-length: 250 vary: X-Auth-Token keep-alive: timeout=5, max=100 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Wed, 16 Sep 2015 07:38:41 GMT x-openstack-request-id: req-ab85e8fa-85f0-4858-b696-72390caf8cf8 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}

DEBUG: keystoneclient.auth.identity.v3 Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG: urllib3.connectionpool "POST /v3/auth/tokens HTTP/1.1" 201 3655
DEBUG: openstackclient.identity.v2_0.endpoint.CreateEndpoint take_action(Namespace(adminurl='http://controller:8774/v2/%(tenant_id)s', columns=[], formatter='table', internalurl='http://controller:8774/v2/%(tenant_id)s', max_width=0, prefix='', publicurl='http://controller:8774/v2/%(tenant_id)s', region='regionOne', service='compute', variables=[]))
DEBUG: openstackclient.identity.client Instantiating identity client: <class 'openstackclient.identity.client.IdentityClientv2'>
DEBUG: keystoneclient.auth.identity.v3 Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG: urllib3.connectionpool "POST /v3/auth/tokens HTTP/1.1" 201 3655
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:35357/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: urllib3.connectionpool "GET / HTTP/1.1" 300 591
DEBUG: keystoneclient.session RESP: [300] content-length: 591 vary: X-Auth-Token keep-alive: timeout=5, max=97 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Wed, 16 Sep 2015 07:38:42 GMT content-type: application/json x-distribution: Ubuntu
RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}, {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://controller:35357/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}

DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:35357/v2.0/OS-KSADM/services/compute -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0c66c80cf8ca743165153b054b57c09595de4f86"
DEBUG: urllib3.connectionpool "GET /v2.0/OS-KSADM/services/compute HTTP/1.1" 404 92
DEBUG: keystoneclient.session RESP:
DEBUG: keystoneclient.session Request returned failure status: 404
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:35357/v2.0/OS-KSADM/services -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0c66c80cf8ca743165153b054b57c09595de4f86"
DEBUG: urllib3.connectionpool "GET /v2.0/OS-KSADM/services HTTP/1.1" 200 1223
DEBUG: keystoneclient.session RESP: [200] content-length: 1223 vary: X-Auth-Token keep-alive: timeout=5, max=95 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Wed, 16 Sep 2015 07:38:42 GMT x-openstack-request-id: req-e2d44c37-74e5-4fdb-b53d-7003c4bd67eb content-type: application/json x-distribution: Ubuntu
RESP BODY: {"OS-KSADM:services": [{"id": "1490d01b68e141c49ec6f14c61a7e257", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "495fd68254854d6ea131081d2a0e129a", "enabled": true, "type": "identity", "name": "keystone", "description": "OpenStack Identity"}, {"id": "5cfa02c30cd043e2a934667dc884d77b", "enabled": true, "type": "image", "name": "glance", "description": "OpenStack Image service"}, {"id": "73c19d8c0b66448c8854ccfaa446fc7f", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "96f161bd0a974a9fb9e290a5a5d104f6", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "b6147f87e9034b108b0ebfee9b7604d9", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "c139d54c0f164b9a8805d372bdb85fa4", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "db5eb246802444b3a896966f4440012d", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "e1539bc6c70e4e0e93860c2f5fa1b38e", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}]}

DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:35357/v2.0/OS-KSADM/services -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0c66c80cf8ca743165153b054b57c09595de4f86"
DEBUG: urllib3.connectionpool "GET /v2.0/OS-KSADM/services HTTP/1.1" 200 1223
DEBUG: keystoneclient.session RESP: [200] content-length: 1223 vary: X-Auth-Token keep-alive: timeout=5, max=94 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Wed, 16 Sep 2015 07:38:42 GMT x-openstack-request-id: req-83adde55-4ffb-4dee-ab63-e590d7ebbd94 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"OS-KSADM:services": [{"id": "1490d01b68e141c49ec6f14c61a7e257", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "495fd68254854d6ea131081d2a0e129a", "enabled": true, "type": "identity", "name": "keystone", "description": "OpenStack Identity"}, {"id": "5cfa02c30cd043e2a934667dc884d77b", "enabled": true, "type": "image", "name": "glance", "description": "OpenStack Image service"}, {"id": "73c19d8c0b66448c8854ccfaa446fc7f", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "96f161bd0a974a9fb9e290a5a5d104f6", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "b6147f87e9034b108b0ebfee9b7604d9", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "c139d54c0f164b9a8805d372bdb85fa4", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "db5eb246802444b3a896966f4440012d", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "e1539bc6c70e4e0e93860c2f5fa1b38e", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}]}

ERROR: openstack
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 303, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/dist-packages/openstackclient/identity/v2_0/endpoint.py", line 68, in take_action
    service = common.find_service(identity_client, parsed_args.service)
  File "/usr/lib/python2.7/dist-packages/openstackclient/identity/common.py", line 33, in find_service
    return identity_client.services.find(type=name_type_or_id)
  File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 250, in find
    raise exceptions.NoUniqueMatch
NoUniqueMatch
DEBUG: openstackclient.shell clean_up CreateEndpoint
DEBUG: openstackclient.shell got an error:
ERROR: openstackclient.shell Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 176, in run
    return super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 238, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 303, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/dist-packages/openstackclient/identity/v2_0/endpoint.py", line 68, in take_action
    service = common.find_service(identity_client, parsed_args.service)
  File "/usr/lib/python2.7/dist-packages/openstackclient/identity/common.py", line 33, in find_service
    return identity_client.services.find(type=name_type_or_id)
  File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 250, in find
    raise exceptions.NoUniqueMatch
NoUniqueMatch

回复

使用道具 举报

akqzx 发表于 2015-9-18 11:35:26
控制节点安装完nova服务之后,查看日志就有错误,大神要怎么破?
[mw_shl_code=bash,true]root@controller:~# tail -f /var/log/nova/nova-cert.log
2015-09-18 10:53:41.930 3659 INFO nova.openstack.common.service [req-7eee4bf5-c4fb-414e-b852-ccaf0e119897 - - - - -] Caught SIGTERM, exiting
2015-09-18 10:53:42.086 3659 ERROR oslo_messaging._drivers.impl_rabbit [-] Failed to consume message from queue:
2015-09-18 10:53:43.105 4038 INFO nova.service [-] Starting cert node (version 2015.1.1)
2015-09-18 10:53:43.631 4038 INFO oslo_messaging._drivers.impl_rabbit [req-621d38db-6bf7-4a66-a590-41dc1b14a9e6 - - - - -] Connecting to AMQP server on controller:5672
2015-09-18 10:53:43.640 4038 INFO oslo_messaging._drivers.impl_rabbit [req-621d38db-6bf7-4a66-a590-41dc1b14a9e6 - - - - -] Connected to AMQP server on controller:5672
2015-09-18 11:21:25.796 4038 INFO nova.openstack.common.service [req-34c026cb-44f5-4472-8f2c-cdb6244d703b - - - - -] Caught SIGTERM, exiting
2015-09-18 11:21:26.292 4038 ERROR oslo_messaging._drivers.impl_rabbit [-] Failed to consume message from queue:
2015-09-18 11:21:27.308 4692 INFO nova.service [-] Starting cert node (version 2015.1.1)
2015-09-18 11:21:27.842 4692 INFO oslo_messaging._drivers.impl_rabbit [req-93f56dec-cf86-40f5-ae7f-49725d038b96 - - - - -] Connecting to AMQP server on controller:5672
2015-09-18 11:21:27.853 4692 INFO oslo_messaging._drivers.impl_rabbit [req-93f56dec-cf86-40f5-ae7f-49725d038b96 - - - - -] Connected to AMQP server on controller:5672  [/mw_shl_code]
回复

使用道具 举报

bob007 发表于 2015-9-18 11:40:19
akqzx 发表于 2015-9-18 11:35
控制节点安装完nova服务之后,查看日志就有错误,大神要怎么破?
[mw_shl_code=bash,true]root@controller ...

从这里看不出什么问题的。
N个原因会产生这个问题
比如下面:
【已解决】启动云主机时,No valid host was found.
http://www.aboutyun.com/thread-11203-1-1.html



需要从其它日志或则自己操作找问题
回复

使用道具 举报

modestyong 发表于 2015-9-25 22:05:25
ygtlovezf 发表于 2015-6-26 10:55
楼主,您好,我遇到的问题如下:
apt-get install nova-api nova-cert nova-conductor nova-consoleauth \ ...

正常,你跟着文档继续把没有的加进去就是了。

回复

使用道具 举报

modestyong 发表于 2015-9-25 22:34:52
请问下,在整个nova装完后验证时,nova endpoints的结果只显示了keystone的public endpoint和nova的public endpoint以及glance的admin endpoint,按照文档应该总共会显示九个endpoint啊~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条