啟動nova時出錯
linux-ffun:~ # nova service-list
traceback (most recent call last):
file "/usr/bin/nova", line 6, in
from novaclient.shell import main
file "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 38, in
import keyring
file "/usr/lib/python2.7/site-packages/keyring/__init__.py", line 12, in
from .core import (set_keyring, get_keyring, set_password, get_password,
file "/usr/lib/python2.7/site-packages/keyring/core.py", line 158, in
init_backend()
file "/usr/lib/python2.7/site-packages/keyring/core.py", line 58, in init_backend
set_keyring(load_config() or _get_best_keyring())
file "/usr/lib/python2.7/site-packages/keyring/core.py", line 66, in _get_best_keyring
keyrings = backend.get_all_keyring()
func.always_returns = func(*args, **kwargs)
file "/usr/lib/python2.7/site-packages/keyring/backend.py", line 179, in get_all_keyring
_load_backends()
file "/usr/lib/python2.7/site-packages/keyring/backend.py", line 139, in _load_backends
list(map(_load_backend, backends))
file "/usr/lib/python2.7/site-packages/keyring/backend.py", line 124, in _load_backend
mod = importlib.import_module('.'+name, package)
file "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
file "/usr/lib/python2.7/site-packages/keyring/backends/gnome.py", line 6, in
gi.require_version('gnomekeyring', '1.0')
nameerror: name 'gi' is not defined
這裡需要修改python源**,將標紅處注釋掉。
linux-ffun:~ # vi /usr/lib/python2.7/site-packages/keyring/backends/gnome.py
import os
try:
from gi import repository
if repository.get_default().enumerate_versions('gnomekeyring'):
#gi.require_version('gnomekeyring', '1.0')
from gi.repository import gnomekeyring
except importerror:
補充1:
openstack安裝到這一步後,注釋掉那行**,再啟動還是可能會報錯,這個時候注意看nova.conf。這裡面有個my_ip不能寫死為hosts裡配置的controller。必須寫當前主機的ip位址,原因不明,注紅處是修改後的。
linux-ffun:/etc/nova # vi nova.conf
[default]
verbose = true
log_dir = /var/log/nova
connection_type = libvirt
compute_driver = libvirt.libvirtdriver
image_service = nova.image.glance.glanceimageservice
volume_api_class = nova.volume.cinder.api
auth_strategy = keystone
network_api_class = nova.network.neutronv2.api.api
bindir = /usr/bin
state_path = /var/lib/nova
lock_path = /run/nova
service_neutron_metadata_proxy = true
security_group_api = neutron
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 172.16.15.13
network_api_class = nova.network.neutronv2.api.api
security_group_api = neutron
linuxnet_inte***ce_driver = nova.network.linux_net.neutronlinuxbridgeinte***cedriver
firewall_driver = nova.virt.firewall.noopfirewalldriver
enabled_apis=osapi_compute,metadata
verbose = true
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://nova:nova_dbpass@controller/nova
[matchmaker_redis]
[matchmaker_ring]
[oslo_concurrency]
lock_path = /var/run/nova
[oslo_messaging_amqp]
補充2:ml2_conf.ini檔案的flat_networks的值為oa
linux-ffun:/etc/neutron/plugins/ml2 # vi ml2_conf.ini
[ml2_type_flat]
flat_networks = oa
這個oa和介面設定有關。注意飄紅處
openstack報錯彙總
這段時間不是很忙 在做open stack的時候遇到的一些錯誤 我這裡用的是16g記憶體的pc機器建立虛擬機器做的實驗 所以報錯極多 1.在安裝open stack的時候突然飄紅 這裡報錯資訊是 error usr bin ntpdata 192.168.1.254 returned 1 inste...
openstack 熱遷移報錯
由於增加計算節點的記憶體容量,需要把某計算節點上例項全部遷移到其他節點,但是在遷移時,提示無法遷移 報錯如下 error nova.virt.libvirt.driver req ca51d7c1 e2b5 47dc a9fd 1a57363170c4 58f26a895b2b46759ee052c...
openstack安裝過程中報錯及解決辦法彙總
openstack問題彙總 1 yum install 不行 could not resolve host mirrorlist.centos.org?vi etc resolv.conf nameserver 8.8.8.8 nameserver 10.0.6.61 etc init.d netw...