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的用户和密码是正确的,以及服务也创建成功了的

1个回答

qq_39170130
wwys 报的错都不一样
大约一年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
openstack启动实例报错No valid host was found

计算节点的nova错误日志: ``` 2020-02-11 17:05:07.817 1295 ERROR nova.virt.libvirt.guest [req-740339df-c3c4-450b-9787-9c7336c461a3 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] Error launching a defined domain with XML: <domain type='kvm'> 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [req-740339df-c3c4-450b-9787-9c7336c461a3 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] Instance failed to spawn 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] Traceback (most recent call last): 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2229, in _build_resources 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] yield resources 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2075, in _build_and_run_instance 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] block_device_info=block_device_info) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2779, in spawn 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] block_device_info=block_device_info) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4923, in _create_domain_and_network 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] xml, pause=pause, power_on=power_on) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4854, in _create_domain 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] guest.launch(pause=pause) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 142, in launch 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] self._encoded_xml, errors='ignore') 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] self.force_reraise() 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] six.reraise(self.type_, self.value, self.tb) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 137, in launch 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] return self._domain.createWithFlags(flags) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] result = proxy_call(self._autowrap, f, *args, **kwargs) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] rv = execute(f, *args, **kwargs) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] six.reraise(c, e, tb) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] rv = meth(*args, **kwargs) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1110, in createWithFlags 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] libvirtError: internal error: process exited while connecting to monitor: 2020-02-11T09:05:07.623239Z qemu-kvm: -drive file=/var/lib/nova/instances/8020d30b-33ec-4836-8f61-f23516aa2508/disk,format=qcow2,if=none,id=drive-virtio-disk0,cache=none: Could not open '/var/lib/nova/instances/8020d30b-33ec-4836-8f61-f23516aa2508/disk': Permission denied 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] ``` 控制节点的nova-conductor.log ``` 2020-02-11 17:05:08.365 958 ERROR nova.scheduler.utils [req-740339df-c3c4-450b-9787-9c7336c461a3 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] Error from last host: compute (node compute): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1937, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2127, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance 8020d30b-33ec-4836-8f61-f23516aa2508 was re-scheduled: internal error: process exited while connecting to monitor: 2020-02-11T09:05:07.623239Z qemu-kvm: -drive file=/var/lib/nova/instances/8020d30b-33ec-4836-8f61-f23516aa2508/disk,format=qcow2,if=none,id=drive-virtio-disk0,cache=none: Could not open '/var/lib/nova/instances/8020d30b-33ec-4836-8f61-f23516aa2508/disk': Permission denied\n"] 2020-02-11 17:05:08.450 958 WARNING nova.scheduler.utils [req-740339df-c3c4-450b-9787-9c7336c461a3 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] Setting instance to ERROR state. ``` dashboard上报错 ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581412785_788625.png) ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581413291_261638.png) 我的网络配置是 ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581412842_430142.png) ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581412854_59896.png) 不知道有没有路过的大师指导这是什么原因啊,在网上找了好多方法没有解决。万分感谢!

在Ubuntu中配置openstack 配置Nova中

# nova-manage db sync 2015-07-31 16:16:23 WARNING nova.utils [-] /usr/lib/python2.7/dist-packages/sqlalchemy/pool.py:639: SADeprecationWarning: The 'listeners' argument to Pool (and create_engine()) is deprecated. Use event.listen(). Pool.__init__(self, creator, **kw) 2015-07-31 16:16:23 WARNING nova.utils [-] /usr/lib/python2.7/dist-packages/sqlalchemy/pool.py:145: SADeprecationWarning: Pool.add_listener is deprecated. Use event.listen() self.add_listener(l)这是怎么回事呢?求大神给予解答!跪谢!

openstack创建实例失败placement

当我创建实例时一直失败,显示No valid host was found. There are not enough hosts available. 然后查看api发现placement服务没有服务端点,排查错误好长时间了,还没解决。求大神帮忙,已经卡着快一星期了。 ![图片说明](https://img-ask.csdn.net/upload/201709/25/1506316579_749377.png)

为何OPENSTACK-210模拟环境中执行 openstack compute service list 报错?

本人刚开始学红帽openstack 210的课程,在导入模拟环境到VMware中后,在开启classroom,workstation,power,director,后,在director上以用户stack执行命令 openstack compute service list 时,报错代码如下,请各位大神指点下,谢谢。 ``` [stack@director ~]$ openstack compute service list Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL. SSL exception connecting to https://172.25.249.201:13000/v2.0/tokens: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed ``` 以下是日志信息: ``` May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main [-] Periodic clean up of node cache failed May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main Traceback (most recent call last): May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/ironic_inspector/main.py", line 325, in periodic_clean_up May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main sync_with_ironic() May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/ironic_inspector/main.py", line 333, in sync_with_ironic May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main ironic_nodes = ironic.node.list(limit=0) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/ironicclient/v1/node.py", line 135, in list May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main limit=limit) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/ironicclient/common/base.py", line 129, in _list_pagination May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main resp, body = self.api.json_request('GET', url) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/ironicclient/common/http.py", line 553, in json_request May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main resp = self._http_request(url, method, **kwargs) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/ironicclient/common/http.py", line 190, in wrapper May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main return func(self, url, method, **kwargs) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/ironicclient/common/http.py", line 526, in _http_request May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main raise_exc=False, **kwargs) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main return wrapped(*args, **kwargs) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 462, in request May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main auth_headers = self.get_auth_headers(auth) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 733, in get_auth_headers May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main return auth.get_headers(self, **kwargs) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/keystoneauth1/plugin.py", line 90, in get_headers May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main token = self.get_token(session) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 90, in get_token May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main return self.get_access(session).auth_token May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 136, in get_access May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main self.auth_ref = self.get_auth_ref(session) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 181, in get_auth_ref May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main return self._plugin.get_auth_ref(session, **kwargs) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v2.py", line 65, in get_auth_ref May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main authenticated=False, log=False) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 681, in post May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main return self.request(url, 'POST', **kwargs) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main return wrapped(*args, **kwargs) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 555, in request May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main resp = send(**kwargs) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 593, in _send_request May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main raise exceptions.SSLError(msg) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main SSLError: SSL exception connecting to https://172.25.249.201:13000/v2.0/tokens: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579) May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main ```

[Openstack] 实例创建成功,但是无法启动,看日志也没有报错

安装的是ocata版,完全按照官网教程安装,能成功创建实例,但是实例启动一直卡在首屏。使用的是cirros镜像,使用其他镜像也是这个样子。新手一枚,求大神指点。 ![实例创建成功](https://img-ask.csdn.net/upload/201704/05/1491373558_34964.png) ![实例运行界面](https://img-ask.csdn.net/upload/201704/05/1491373587_6132.png) 实例配置 ``` <domain type='kvm' id='3'> <name>instance-00000006</name> <uuid>ae16fac3-d418-497a-9959-4f2de116ad87</uuid> <metadata> <nova:instance xmlns:nova="http://openstack.org/xmlns/libvirt/nova/1.0"> <nova:package version="15.0.0-1.el7"/> <nova:name>test</nova:name> <nova:creationTime>2017-04-04 17:53:38</nova:creationTime> <nova:flavor name="m1.nano"> <nova:memory>64</nova:memory> <nova:disk>1</nova:disk> <nova:swap>0</nova:swap> <nova:ephemeral>0</nova:ephemeral> <nova:vcpus>1</nova:vcpus> </nova:flavor> <nova:owner> <nova:user uuid="c4eadda47b5e41e9940dd418962b0ab8">admin</nova:user> <nova:project uuid="ac2906f775a24cb48b1040c22f7d07ec">admin</nova:project> </nova:owner> <nova:root type="image" uuid="c92a6bae-b1a0-4296-af5c-a6b34189c0eb"/> </nova:instance> </metadata> <memory unit='KiB'>65536</memory> <currentMemory unit='KiB'>65536</currentMemory> <vcpu placement='static'>1</vcpu> <cputune> <shares>1024</shares> </cputune> <resource> <partition>/machine</partition> </resource> <sysinfo type='smbios'> <system> <entry name='manufacturer'>RDO</entry> <entry name='product'>OpenStack Compute</entry> <entry name='version'>15.0.0-1.el7</entry> <entry name='serial'>4dd6358f-1ebd-4634-9f0f-0d26d3dd4993</entry> <entry name='uuid'>ae16fac3-d418-497a-9959-4f2de116ad87</entry> <entry name='family'>Virtual Machine</entry> </system> </sysinfo> <os> <type arch='x86_64' machine='pc-i440fx-rhel7.3.0'>hvm</type> <boot dev='hd'/> <smbios mode='sysinfo'/> </os> <features> <acpi/> <apic/> </features> <cpu mode='host-model'> <model fallback='allow'/> <topology sockets='1' cores='1' threads='1'/> </cpu> <clock offset='utc'> <timer name='pit' tickpolicy='delay'/> <timer name='rtc' tickpolicy='catchup'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='none'/> <source file='/var/lib/nova/instances/ae16fac3-d418-497a-9959-4f2de116ad87/disk'/> <backingStore type='file' index='1'> <format type='raw'/> <source file='/var/lib/nova/instances/_base/3e67c6c692a9b432d2f74fc5bc7c22e35b7e1cfc'/> <backingStore/> </backingStore> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </disk> <controller type='usb' index='0'> <alias name='usb'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci.0'/> </controller> <interface type='bridge'> <mac address='fa:16:3e:9a:3e:07'/> <source bridge='brqf28be70d-9a'/> <target dev='tap3a7df40b-a1'/> <model type='virtio'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='file'> <source path='/var/lib/nova/instances/ae16fac3-d418-497a-9959-4f2de116ad87/console.log'/> <target port='0'/> <alias name='serial0'/> </serial> <serial type='pty'> <source path='/dev/pts/1'/> <target port='1'/> <alias name='serial1'/> </serial> <console type='file'> <source path='/var/lib/nova/instances/ae16fac3-d418-497a-9959-4f2de116ad87/console.log'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <input type='tablet' bus='usb'> <alias name='input0'/> <address type='usb' bus='0' port='1'/> </input> <input type='mouse' bus='ps2'> <alias name='input1'/> </input> <input type='keyboard' bus='ps2'> <alias name='input2'/> </input> <graphics type='vnc' port='5900' autoport='yes' listen='0.0.0.0' keymap='en-us'> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <stats period='10'/> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> </devices> <seclabel type='none' model='none'/> <seclabel type='dynamic' model='dac' relabel='yes'> <label>+107:+107</label> <imagelabel>+107:+107</imagelabel> </seclabel> </domain> ``` 实例运行日志 ``` 2017-04-04 17:53:38.328+0000: starting up libvirt version: 2.0.0, package: 10.el7_3.5 (CentOS BuildSystem <http://bugs.centos.org>, 2017-03-03-02:09:45, c1bm.rdu2.centos.org), qemu version: 2.6.0 (qemu-kvm-ev-2.6.0-28.el7_3.6.1), hostname: openstack2 LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -name guest=instance-00000006,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-3-instance-00000006/master-key.aes -machine pc-i440fx-rhel7.3.0,accel=kvm,usb=off -cpu Haswell-noTSX,+vme,+ds,+ss,+ht,+vmx,+osxsave,+f16c,+rdrand,+hypervisor,+arat,+tsc_adjust,+xsaveopt,+pdpe1gb,+abm -m 64 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid ae16fac3-d418-497a-9959-4f2de116ad87 -smbios 'type=1,manufacturer=RDO,product=OpenStack Compute,version=15.0.0-1.el7,serial=4dd6358f-1ebd-4634-9f0f-0d26d3dd4993,uuid=ae16fac3-d418-497a-9959-4f2de116ad87,family=Virtual Machine' -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-3-instance-00000006/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/nova/instances/ae16fac3-d418-497a-9959-4f2de116ad87/disk,format=qcow2,if=none,id=drive-virtio-disk0,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=28 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:9a:3e:07,bus=pci.0,addr=0x3 -add-fd set=2,fd=30 -chardev file,id=charserial0,path=/dev/fdset/2,append=on -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -device usb-tablet,id=input0,bus=usb.0,port=1 -vnc 0.0.0.0:0 -k en-us -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on char device redirected to /dev/pts/1 (label charserial1) warning: host doesn't support requested feature: CPUID.01H:EDX.ds [bit 21] warning: host doesn't support requested feature: CPUID.01H:EDX.ht [bit 28] warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5] warning: host doesn't support requested feature: CPUID.01H:ECX.osxsave [bit 27] warning: host doesn't support requested feature: CPUID.07H:EBX.erms [bit 9] warning: host doesn't support requested feature: CPUID.80000001H:EDX.pdpe1gb [bit 26] ```

openstack 创建镜像 用glance命令时认证出错

我用的centos6.5 装openstack-icehouse. 创建镜像时在加载完成后弹出 Request returned failure status. Invalid OpenStack Identity credentials. 用glance image-list 查看也出现 Request returned failure status. Invalid OpenStack Identity credentials. 检查了一下之前写admin-openrc.sh glance-openrc.sh 都感觉没什么问题呀?? 求大神解释一下 请务必详细些

执行指令OpenStack compute service list 出现HTTP(500)

2017-11-08 19:18:52.833 ERROR nova.compute.manager [req-e4abe3b9-f679-41cb-bed6-064ca37a3f7f - - - - -]更新节点controller时发生错误 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager Traceback (most recent call last): 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 6571, in update_available_resource_for_node 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager rt.update_available_resource(context, nodename) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 551, in update_available_resource 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager self._update_available_resource(context, resources) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return f(*args, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 575, in _update_available_resource 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager self._init_compute_node(context, resources) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 438, in _init_compute_node 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager self.scheduler_client.update_resource_stats(cn) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 60, in update_resource_stats 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager self.reportclient.update_resource_stats(compute_node) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return getattr(self.instance, __name)(*args, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 631, in update_resource_stats 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager compute_node.hypervisor_hostname) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 407, in _ensure_resource_provider 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager rp = self._get_resource_provider(uuid) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 55, in wrapper 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return f(self, *a, **k) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 309, in _get_resource_provider 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager resp = self.get("/resource_providers/%s" % uuid) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 209, in get 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager endpoint_filter=self.ks_filter, raise_exc=False, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 758, in get 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return self.request(url, 'GET', **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return wrapped(*args, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 491, in request 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager auth_headers = self.get_auth_headers(auth) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 818, in get_auth_headers 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return auth.get_headers(self, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/plugin.py", line 90, in get_headers 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager token = self.get_token(session) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 90, in get_token 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return self.get_access(session).auth_token 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 136, in get_access 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager self.auth_ref = self.get_auth_ref(session) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 198, in get_auth_ref 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return self._plugin.get_auth_ref(session, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v3/base.py", line 167, in get_auth_ref 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager authenticated=False, log=False, **rkwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 766, in post 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return self.request(url, 'POST', **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return wrapped(*args, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 655, in request 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager raise exceptions.from_response(resp, method, url) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager InternalServerError: Internal Server Error (HTTP 500) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager

生成nova.conf配置问件

[root@openstack-node1 nova]#yum install postgresql-devel mysql-devel [root@openstack-node1 nova]#pip install psycopg2 tox [root@openstack-node1 nova]#tox -egenconfig 执行这步命令报错

openstack创建实例成功但是启动实例报错

以下是nova报错详情: ``` /var/log/nova/nova-compute.log:2020-02-11 08:43:18.893 1327 ERROR nova.virt.libvirt.guest [req-ecfa9ec9-82fd-42dd-838f-ff5938af32e7 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] Error launching a defined domain with XML: <domain type='kvm'> /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [req-ecfa9ec9-82fd-42dd-838f-ff5938af32e7 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] Instance failed to spawn /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] Traceback (most recent call last): /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2218, in _build_resources /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] except Exception: /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2064, in _build_and_run_instance /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] # saved in that function to prevent races. /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2779, in spawn /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] block_device_info=block_device_info) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4923, in _create_domain_and_network /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] xml, pause=pause, power_on=power_on) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4854, in _create_domain /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] guest.launch(pause=pause) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 142, in launch /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] self._encoded_xml, errors='ignore') /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] self.force_reraise() /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] six.reraise(self.type_, self.value, self.tb) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 137, in launch /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] return self._domain.createWithFlags(flags) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] result = proxy_call(self._autowrap, f, *args, **kwargs) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] rv = execute(f, *args, **kwargs) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] six.reraise(c, e, tb) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] rv = meth(*args, **kwargs) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1110, in createWithFlags /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] libvirtError: 内部错误:qemu unexpectedly closed the monitor: 2020-02-11T00:43:18.668387Z qemu-kvm: -drive file=/var/lib/nova/instances/a26fb462-a721-45eb-8eaa-776ec5da3b23/disk,format=qcow2,if=none,id=drive-virtio-disk0,cache=none: Could not open '/var/lib/nova/instances/a26fb462-a721-45eb-8eaa-776ec5da3b23/disk': Permission denied /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [req-ecfa9ec9-82fd-42dd-838f-ff5938af32e7 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] Unexpected build failure, not rescheduling build. /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] Traceback (most recent call last): /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1926, in _do_build_and_run_instance /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2116, in _build_and_run_instance /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] exception.ImageNotActive, /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128) /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] ``` dashboard报错: ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581385833_715215.png) ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581385890_574951.png) 网上说了很多办法都没有用,个人初学小白,有没有路过的大神指点一二。万分感谢!

openstack创建域项目出现报错?已经卡很久了,请问有知道什么原因的吗?

[root@linux-node1 ~]# openstack project create --domain default --description "Admin Project" admin __init__() got an unexpected keyword argument 'token' [root@linux-node1 ~]# echo $OS_TOKEN 0f65487f010cdee6765e [root@linux-node1 ~]# grep '^[a-Z]' /etc/keystone/keystone.conf admin_token = 0f65487f010cdee6765e connection = mysql://keystone:keystone@192.168.56.11/keystone provider = fernet 请问有哪些大哥知道什么原因的吗?

部署openstack,执行stack.sh报错

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

虚拟机上搭建openstack时,分配私有网络IP池时报错

虚拟机上搭建openstack时,分配私有网络IP池时报错,执行的命令: sudo nova-manage network create private 192.168.4.0/24 1 256 报错信息: CRITICAL nova [-] --bridge_interface is required to create a network. 求问有知道的不,谢谢

centos7.2 安装openstack-dashboard 报错

http://mirror.centos.org/centos/7/cloud/x86_64/openstack-liberty/common/python-django-1.8.14-1.el7.noarch.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=centos-openstack-liberty clean metadata Trying other mirror.

在ubuntu server 16.10下载时mariadb报错

想用openstack搭建一个实验用的云平台,在下载mariadb时出现下面这样的问题 ![图片说明](https://img-ask.csdn.net/upload/201705/03/1493776637_237667.jpg) 请问这个要怎么办啊,不懂是出了什么问题,我用的是阿里云的下载源

openstack创建虚拟机时出问题

opentack创建虚拟机做子网,按照官网提示操作后(输出显示是创建成功的),但控制节点大概在几秒后断开连接 检查控制节点网络发现多出两个网卡 ![图片说明](https://img-ask.csdn.net/upload/202004/18/1587202889_452615.png) ping网关,直接不通。检查路由,发现没有br0出的路由 ![图片说明](https://img-ask.csdn.net/upload/202004/18/1587203012_327419.png)

Openstack 使用API创建用户时如何指定密码,如何修改密码

Openstack 使用API创建用户时如何指定密码,如何修改密码

openstack glance组件 验证镜像出错

![图片说明](https://img-ask.csdn.net/upload/201601/08/1452221087_5965.png) 这下面的是日志 ![图片说明](https://img-ask.csdn.net/upload/201601/08/1452221105_137994.png) 求帮助,求解答。

openstack keystone 部署完成验证出错

![图片说明](https://img-ask.csdn.net/upload/201605/04/1462351128_653357.png)

kolla安装单节点openstack ocata版本过程中报错

kolla-ansible deploy /home/all-in-one一安装一大半成功了,到nova-compute就卡住了。对ansible不太熟悉,这种错误怎么解决呢,求教 相关配置文件./ansible/roles/nova/tasks/simple_cell_setup.yml TASK [nova : Waiting for nova-compute service up] ****************************** FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (20 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (19 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (18 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (17 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (16 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (15 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (14 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (13 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (12 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (11 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (10 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (9 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (8 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (7 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (6 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (5 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (4 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (3 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (2 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (1 retries left). fatal: [localhost -> localhost]: FAILED! => {“attempts”: 20, “changed”: false, “cmd”: [“docker”, “exec”, “kolla_toolbox”, “openstack”, “–os-interface”, “internal”, “–os-auth-url”, “http://10.0.0.100:35357/v3”, “–os-identity-api-version”, “3”, “–os-project-domain-name”, “default”, “–os-tenant-name”, “admin”, “–os-username”, “admin”, “–os-password”, “zyops”, “–os-user-domain-name”, “default”, “compute”, “service”, “list”, “-f”, “json”, “–service”, “nova-compute”], “delta”: “0:00:01.242621”, “end”: “2017-03-24 20:31:43.880186”, “failed”: true, “rc”: 0, “start”: “2017-03-24 20:31:42.637565”, “stderr”: “”, “stdout”: “[]”, “stdout_lines”: [“[]”], “warnings”: []} NO MORE HOSTS LEFT ************************************************************* to retry, use: –limit @/usr/share/kolla-ansible/ansible/site.retry PLAY RECAP ********************************************************************* localhost : ok=145 changed=0 unreachable=0 failed=1 Command failed ansible-playbook -i /usr/share/kolla-ansible/ansible/inventory/all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla -e action=deploy /usr/share/kolla-ansible/ansible/site.yml

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

点沙成金:英特尔芯片制造全过程揭密

“亚马逊丛林里的蝴蝶扇动几下翅膀就可能引起两周后美国德州的一次飓风……” 这句人人皆知的话最初用来描述非线性系统中微小参数的变化所引起的系统极大变化。 而在更长的时间尺度内,我们所生活的这个世界就是这样一个异常复杂的非线性系统…… 水泥、穹顶、透视——关于时间与技艺的蝴蝶效应 公元前3000年,古埃及人将尼罗河中挖出的泥浆与纳特龙盐湖中的矿物盐混合,再掺入煅烧石灰石制成的石灰,由此得来了人...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

我说我不会算法,阿里把我挂了。

不说了,字节跳动也反手把我挂了。

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

你打算用Java 8一辈子都不打算升级到Java 14,真香

我们程序员应该抱着尝鲜、猎奇的心态,否则就容易固步自封,技术停滞不前。

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

一文带你入门Java Stream流,太强了

两个星期以前,就有读者强烈要求我写一篇 Java Stream 流的文章,我说市面上不是已经有很多了吗,结果你猜他怎么说:“就想看你写的啊!”你看你看,多么苍白的喜欢啊。那就“勉为其难”写一篇吧,嘻嘻。 单从“Stream”这个单词上来看,它似乎和 java.io 包下的 InputStream 和 OutputStream 有些关系。实际上呢,没毛关系。Java 8 新增的 Stream 是为...

立即提问
相关内容推荐