发起问题

业余爱好者 的档案 - activity

2020-09-02 09:23:47 -0500 获得奖牌  受欢迎的问题 (source)
2020-09-02 09:23:47 -0500 获得奖牌  热门的问题 (source)
2020-06-22 22:27:44 -0500 获得奖牌  热门的问题 (source)
2020-06-22 22:27:44 -0500 获得奖牌  受欢迎的问题 (source)
2020-04-10 05:12:50 -0500 回答问题 nova创建instance报错 parse_file: cannot open /etc/ceph/ceph.conf: (13) Permission denied.

我这边集成ceph之后,计算节点的ceph.conf的own权限是root.nova。

2020-04-10 05:12:50 -0500 回答问题 nova控制节点找不到nova-compute

看计算节点的日信息,楼上这位仁兄的说的对,看下计算节点的nova.conf配置有没有问题。然后看看相关日志信息

2020-04-10 00:48:39 -0500 评论问题 luanch instance faile

thanks,i solve it by debug mode!

2020-04-09 05:14:30 -0500 问了问题 luanch instance faile

hi all there is an error when i luanch an instance,the following is the compute_node log:

2020-04-09 05:35:54.216 3561 INFO nova.virt.libvirt.driver [req-5bef2afe-1ffd-47e2-96c5-0a53b3035f8c a409cd9547a04cbf8c0fb65e812a9645 11ffde9fd4ca44c6b915f7d9a0f6eee2 - default default] [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9] Creating image
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [req-5bef2afe-1ffd-47e2-96c5-0a53b3035f8c a409cd9547a04cbf8c0fb65e812a9645 11ffde9fd4ca44c6b915f7d9a0f6eee2 - default default] [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9] Instance failed to spawn: OSError: [Errno 2] No such file or directory
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9] Traceback (most recent call last):
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2486, in _build_resources
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     yield resources
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2248, in _build_and_run_instance
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     block_device_info=block_device_info)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3137, in spawn
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     mdevs=mdevs)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5484, in _get_guest_xml
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     context, mdevs)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5270, in _get_guest_config
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     flavor, guest.os_type)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4052, in _get_guest_storage_config
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     inst_type)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3963, in _get_guest_disk_config
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     disk_unit=disk_unit)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 883, in libvirt_info
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     hosts, ports = self.driver.get_mon_addrs()
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/storage/rbd_utils.py", line 166, in get_mon_addrs
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     out, _ = processutils.execute(*args)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 391, in execute
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     env=env_variables)
2020-04-09 05:35:57 ...
(more)
2020-04-09 04:37:53 -0500 获得奖牌  著名问题 (source)
2020-01-21 04:40:29 -0500 问了问题 vm NIC is not configed with an IP

hi all! i create an instanc on openstack,the dhcp-agent.log indicate the instance get the ip address successfully. but the ip address not config on vm interface.

[root@controller neutron]# openstack server list

+--------------------------------------+------+--------+----------------------+---------+----------+

| ID | Name | Status | Networks | Image | Flavor |

+--------------------------------------+------+--------+----------------------+---------+----------+

| a2813868-2a16-406b-82f7-bf60d328f537 | test | ACTIVE | public=172.16.101.51 | cirrors | m1.small |

+--------------------------------------+------+--------+----------------------+---------+----------+

login to vm and run "ifconfig"

$ ifconfig

eth0 Link encap:Ethernet HWaddr FA:16:3E:E5:04:69
inet6 addr: fe80::f816:3eff:fee5:469/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:7 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:566 (566.0 B) TX bytes:1332 (1.3 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:1020 (1020.0 B) TX bytes:1020 (1020.0 B)

there is not IP address on eth0.

dose anybody can help me,thanks!

2019-12-27 22:20:50 -0500 获得奖牌  热门的问题 (source)
2019-12-27 10:26:54 -0500 获得奖牌  受欢迎的问题 (source)
2019-12-16 21:40:28 -0500 问了问题 placement raise MissingRequiredOptions

hi,all! when i start nova-compute service on compute node, the placement on controller node raise an exceptions and i can not access http://controller:8778 by command curl on compute node(error 500). the following was the log.

+++++++++++placemeng.log++++++++++++++++

2019-12-16 20:50:33.716 191022 WARNING placement.db_api [-] TransactionFactory already started
, not reconfiguring.\x1b[00m
2019-12-16 20:50:33.729 191022 WARNING keystonemiddleware.auth_token [-] AuthToken middleware 
is set with keystone_authtoken.service_token_roles_required set to False. This is backwards co
mpatible but deprecated behaviour. Please set this to True.\x1b[00m
**mod_wsgi (pid=191022): Target WSGI script '/usr/bin/placement-api' cannot be loaded as Python 
module.**
mod_wsgi (pid=191022): Exception occurred processing WSGI script '/usr/bin/placement-api'.
Traceback (most recent call last):
  File "/usr/bin/placement-api", line 52, in <module>
    application = init_application()
  File "/usr/lib/python2.7/site-packages/placement/wsgi.py", line 147, in init_application
    return deploy.loadapp(config)
  File "/usr/lib/python2.7/site-packages/placement/deploy.py", line 152, in loadapp
    application = deploy(config)
  File "/usr/lib/python2.7/site-packages/placement/deploy.py", line 114, in deploy
    application = middleware(application)
  File "/usr/lib/python2.7/site-packages/placement/auth.py", line 101, in auth_filter
    return PlacementAuthProtocol(app, conf)
  File "/usr/lib/python2.7/site-packages/placement/auth.py", line 86, in __init__
    super(PlacementAuthProtocol, self).__init__(app, conf)
  File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 627, in __init__
    self._auth = self._create_auth_plugin()
  File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 826, in _create_auth_plugin
    return plugin_loader.load_from_options_getter(getter)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/base.py", line 187, in load_from_options_getter
    return self.load_from_options(**kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/base.py", line 162, in load_from_options
    raise exceptions.MissingRequiredOptions(missing_required)
**MissingRequiredOptions: Auth plugin requires parameters which were not given: auth_url**

+++++++++++++++++nova-compute.log on compute node+++++++++++++

2019-12-16 20:52:34.678 32218 WARNING keystoneauth.discover [req-9e578c67-33ec-424a-bd64-1a403cd44e0a - - - - -] Failed to contact the endpoint at http://controller:8778 for discovery. Fallback to using that endpoint as the base url.: InternalServerError: Internal Server Error (HTTP 500)
2019-12-16 20:52:34.711 32218 ERROR nova.compute.resource_tracker [req-9e578c67-33ec-424a-bd64-1a403cd44e0a - - - - -] Skipping removal of allocations for deleted instances: Failed to retrieve allocations for resource provider c9a9fd06-6853-419d-b80e-74b7eab267bb: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at 
 root@localhost to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
: ResourceProviderAllocationRetrievalFailed: Failed to retrieve allocations for resource provider c9a9fd06-6853-419d-b80e-74b7eab267bb: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2019-12-16 20:52:34.747 32218 WARNING keystoneauth.discover [req-9e578c67-33ec-424a-bd64-1a403cd44e0a - - - - -] Failed to contact the endpoint at http://controller:8778 for discovery. Fallback to using that endpoint as the base url ...
(more)