加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

安装配置OpenStack时不常见错误及解决办法

(2013-07-15 13:02:18)
标签:

openvswitch

openstack

iscsitarget

fatalmodule

分类: OpenStack
                   安装配置OpenStack时不常见错误及解决办法

1:运行service openvswitch-switch start出错
出错的原因是:由于Open vSwitch版本和Linux系统内核版本不匹配,因为在安装openvswitch之前已经将系统内核升级了
root@controller:~# uname -a
Linux  controller  3.2.0-36-generic #57-Ubuntu SMP Tue Jan 8 21:44:52 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
root@ controller :~# service openvswitch-switch start
 FATAL: Module openvswitch_mod not found.
 * Inserting openvswitch module
 Module has probably not been built for this kernel.
 For instructions, read
 /usr/share/doc/openvswitch-datapath-source/README.Debian
 FATAL: Module openvswitch_mod not found.
 * Inserting openvswitch module

解决办法:进一步更新系统相应的内核模块。
root@ controller :~# module-assistant auto-install openvswitch-datapath
或者
root@ controller :~# m-a a-i openvswitch-datapath



2:在虚拟机安装OpenStack的cinder组件,出错service iscsitarget start出错
出错:FATAL: Module iscsi_trgt not found.原因是系统内核版本过高,与iscsitarge版本不匹配
解决办法:降级Linux系统内核版本
root@controller:~#  dpkg-reconfigure iscsitarget-dkms

-------- Uninstall Beginning --------
Module:  iscsitarget
Version: 1.4.20.2
Kernel:  3.2.0-36-virtual (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

iscsi_trgt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.2.0-36-virtual/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.

------------------------------
Deleting module version: 1.4.20.2
completely from the DKMS tree.
------------------------------
Done.

Creating symlink /var/lib/dkms/iscsitarget/1.4.20.2/source ->
                 /usr/src/iscsitarget-1.4.20.2

DKMS: add completed.
Error! Your kernel headers for kernel 3.2.0-32-virtual cannot be found.
Please install the linux-headers-3.2.0-32-virtual package,
or use the --kernelsourcedir option to tell DKMS where it's located

安装匹配版本的内核
root@controller:~ apt-get install linux-headers-3.2.0-32-virtual
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  linux-headers-3.2.0-32
The following NEW packages will be installed:
  linux-headers-3.2.0-32 linux-headers-3.2.0-32-virtual
0 upgraded, 2 newly installed, 0 to remove and 55 not upgraded.
Need to get 12.7 MB of archives.
After this operation, 67.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://10.1.199.5/ubuntu/ precise-updates/main linux-headers-3.2.0-32 all 3.2.0-32.51 [11.7 MB]
Get:2 http://10.1.199.5/ubuntu/ precise-updates/main linux-headers-3.2.0-32-virtual amd64 3.2.0-32.51 [990 kB]
Fetched 12.7 MB in 0s (26.9 MB/s)                   
Selecting previously unselected package linux-headers-3.2.0-32.
(Reading database ... 67539 files and directories currently installed.)
Unpacking linux-headers-3.2.0-32 (from .../linux-headers-3.2.0-32_3.2.0-32.51_all.deb) ...
Selecting previously unselected package linux-headers-3.2.0-32-virtual.
Unpacking linux-headers-3.2.0-32-virtual (from .../linux-headers-3.2.0-32-virtual_3.2.0-32.51_amd64.deb) ...
Setting up linux-headers-3.2.0-32 (3.2.0-32.51) ...
Setting up linux-headers-3.2.0-32-virtual (3.2.0-32.51) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-32-virtual /boot/vmlinuz-3.2.0-32-virtual

重新启动iscsitarget服务
root@controller:~ /etc/init.d/iscsitarget restart
 * Removing iSCSI enterprise target devices:                                         [ OK ] 
 * Starting iSCSI enterprise target service                                   



0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有