分享

openstack O版创建云主机报错

445433045 发表于 2017-2-28 13:49:08 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 5 38369
以下为报错日志:
2017-02-27 10:39:35.975 2803 WARNING oslo_config.cfg [-] Option "use_neutron" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.
2017-02-27 10:39:36.011 2803 INFO nova.virt.driver [req-d2d10c2a-16d7-4d90-80de-e367f7c0dcb5 - - - - -] Loading compute driver 'libvirt.LibvirtDriver'
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /resource_providers
on this server.</p>
</body></html>
.
2017-02-28 00:05:47.000 4028 WARNING nova.scheduler.client.report [req-7bc17fb5-7ca3-4b31-ae1a-3db7627944bd - - - - -] Unable to refresh my resource provider record
2017-02-28 00:05:47.045 4028 INFO nova.compute.resource_tracker [req-7bc17fb5-7ca3-4b31-ae1a-3db7627944bd - - - - -] Final resource view: name=compute phys_ram=1824MB used_ram=512MB phys_disk=17GB used_disk=0GB total_vcpus=1 used_vcpus=0 pci_stats=[]
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task [req-7bc17fb5-7ca3-4b31-ae1a-3db7627944bd - - - - -] Error during ComputeManager.update_available_resource
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task Traceback (most recent call last):
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/oslo_service/periodic_task.py", line 220, in run_periodic_tasks
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task     task(self, context)
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 6572, in update_available_resource
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task     use_slave=True)
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 6595, in _get_compute_nodes_in_db
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task     use_slave=use_slave)
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 177, in wrapper
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task     args, kwargs)
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/nova/conductor/rpcapi.py", line 239, in object_class_action_versions
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task     args=args, kwargs=kwargs)
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task     retry=self.retry)
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 97, in _send
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task     timeout=timeout, retry=retry)
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 458, in send
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task     retry=retry)
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 447, in _send
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task     result = self._waiter.wait(msg_id, timeout)
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 339, in wait
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task     message = self.waiters.get(msg_id, timeout=timeout)
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 238, in get
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task     'to message ID %s' % msg_id)
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task MessagingTimeout: Timed out waiting for a reply to message ID b9765cbe354346998189b29461a6614f
2017-02-28 00:07:47.911 4028 ERROR oslo_service.periodic_task
2017-02-28 00:07:51.492 4028 WARNING oslo.service.loopingcall [-] Function 'nova.servicegroup.drivers.db.DbDriver._report_state' run outlasted interval by 48.04 sec
2017-02-28 00:07:51.531 4028 INFO nova.compute.manager [req-7bc17fb5-7ca3-4b31-ae1a-3db7627944bd - - - - -] Updating bandwidth usage cache
2017-02-28 00:07:51.616 4028 INFO nova.compute.manager [req-7bc17fb5-7ca3-4b31-ae1a-3db7627944bd - - - - -] Bandwidth usage not supported by hypervisor.
2017-02-28 00:08:45.338 4028 ERROR nova.scheduler.client.report [req-7bc17fb5-7ca3-4b31-ae1a-3db7627944bd - - - - -] Failed to retrieve resource provider record from placement API for UUID f4933477-bdf0-493f-98df-b39b5f60957f. Got 403: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /resource_providers/f4933477-bdf0-493f-98df-b39b5f60957f
on this server.</p>
</body></html>
.
2017-02-28 00:08:45.340 4028 ERROR nova.scheduler.client.report [req-7bc17fb5-7ca3-4b31-ae1a-3db7627944bd - - - - -] Failed to create resource provider record in placement API for UUID f4933477-bdf0-493f-98df-b39b5f60957f. Got 403: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /resource_providers
on this server.</p>
</body></html>

已有(5)人评论

跳转到指定楼层
desehawk 发表于 2017-2-28 13:56:02
用户不具有访问这个资源的权限。应该是权限问题
回复

使用道具 举报

445433045 发表于 2017-2-28 14:08:34
desehawk 发表于 2017-2-28 13:56
用户不具有访问这个资源的权限。应该是权限问题

该怎么解决呢?
回复

使用道具 举报

desehawk 发表于 2017-2-28 14:22:28

应该有个policy.json,修改这个文件试试
回复

使用道具 举报

alexfu 发表于 2017-3-8 08:46:30
你装的O版本吧,0版本的库是http 2.4,权限跟以前的httpd 2.2不太一样。需要手工配置WSGI目录的权限,在nova-placement-api.conf的增加如下:
[mw_shl_code=html,false]Listen 8778

<VirtualHost *:8778>
  WSGIProcessGroup nova-placement-api
  WSGIApplicationGroup %{GLOBAL}
  WSGIPassAuthorization On
  WSGIDaemonProcess nova-placement-api processes=3 threads=1 user=nova group=nova
  WSGIScriptAlias / /usr/bin/nova-placement-api
  <Directory /usr/bin>
   Options FollowSymlinks
   AllowOverride none
   Require all granted
  </Directory>
  <IfVersion >= 2.4>
    ErrorLogFormat "%M"
  </IfVersion>
  ErrorLog /var/log/nova/nova-placement-api.log
  #SSLEngine On
  #SSLCertificateFile ...
  #SSLCertificateKeyFile ...
</VirtualHost>[/mw_shl_code]
回复

使用道具 举报

445433045 发表于 2017-3-8 13:18:39
alexfu 发表于 2017-3-8 08:46
你装的O版本吧,0版本的库是http 2.4,权限跟以前的httpd 2.2不太一样。需要手工配置WSGI目录的权限,在nova ...

非常感谢!
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条