请教各位,CentOS 6.5离线安装icehouse成功后运行错误问题。

代码誊写工 2014-09-09 02:41:45
上周开始接触openstack,试着用RDO all in one方式安装openstack icehouse。
1.先进行初始化安装,安装了一台安装有CentOS 6.5 minimal的vmware player下虚拟机,设置了/etc/sysconfig/network-scripts/ifcfg-eth0,/etc/sysconfig/network,/etc/hosts,关闭了selinux,清空了iptables和ip6tables的规则。该虚拟机可以路由并访问到互联网。
2.安装icehoust yum repos配置
rpm -ivh https://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-4.noarch.rpm

3.安装epel yum repos配置
rpm -ivh http://mirrors.yun-idc.com/epel/6/x86_64/epel-release-6-8.noarch.rpm

4.把CentOS 6.5 x86_64两个DVD iso文件挂载在虚拟机/media/CentOS和/media/cdrom下,除了CentOS本地源,禁用了其它CentOS外网的源。
5.清空yum cache等,重新yun makecache,然后yum update,重启。
6.安装packstack
7.运行packestack packstack --allinone --provision-demo=n CONFIG_CINDER_VOLUMES_CREATE=n
显示成功
[root@openstackallinone ~]# packstack --allinone --provision-demo=n CONFIG_CINDER_VOLUMES_CREATE=n
Welcome to Installer setup utility

Installing:
Clean Up [ DONE ]
Setting up ssh keys [ DONE ]
Discovering hosts' details [ DONE ]
Adding pre install manifest entries [ DONE ]
Preparing servers [ DONE ]
Adding AMQP manifest entries [ DONE ]
Adding MySQL manifest entries [ DONE ]
Adding Keystone manifest entries [ DONE ]
Adding Glance Keystone manifest entries [ DONE ]
Adding Glance manifest entries [ DONE ]
Adding Cinder Keystone manifest entries [ DONE ]
Adding Cinder manifest entries [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Adding Nova API manifest entries [ DONE ]
Adding Nova Keystone manifest entries [ DONE ]
Adding Nova Cert manifest entries [ DONE ]
Adding Nova Conductor manifest entries [ DONE ]
Creating ssh keys for Nova migration [ DONE ]
Gathering ssh host keys for Nova migration [ DONE ]
Adding Nova Compute manifest entries [ DONE ]
Adding Nova Scheduler manifest entries [ DONE ]
Adding Nova VNC Proxy manifest entries [ DONE ]
Adding Openstack Network-related Nova manifest entries[ DONE ]
Adding Nova Common manifest entries [ DONE ]
Adding Neutron API manifest entries [ DONE ]
Adding Neutron Keystone manifest entries [ DONE ]
Adding Neutron L3 manifest entries [ DONE ]
Adding Neutron L2 Agent manifest entries [ DONE ]
Adding Neutron DHCP Agent manifest entries [ DONE ]
Adding Neutron LBaaS Agent manifest entries [ DONE ]
Adding Neutron Metering Agent manifest entries [ DONE ]
Adding Neutron Metadata Agent manifest entries [ DONE ]
Checking if NetworkManager is enabled and running [ DONE ]
Adding OpenStack Client manifest entries [ DONE ]
Adding Horizon manifest entries [ DONE ]
Adding Swift Keystone manifest entries [ DONE ]
Adding Swift builder manifest entries [ DONE ]
Adding Swift proxy manifest entries [ DONE ]
Adding Swift storage manifest entries [ DONE ]
Adding Swift common manifest entries [ DONE ]
Adding MongoDB manifest entries [ DONE ]
Adding Ceilometer manifest entries [ DONE ]
Adding Ceilometer Keystone manifest entries [ DONE ]
Adding Nagios server manifest entries [ DONE ]
Adding Nagios host manifest entries [ DONE ]
Adding post install manifest entries [ DONE ]
Installing Dependencies [ DONE ]
Copying Puppet modules and manifests [ DONE ]
Applying 192.168.200.101_prescript.pp
192.168.200.101_prescript.pp: [ DONE ]
Applying 192.168.200.101_amqp.pp
Applying 192.168.200.101_mysql.pp
192.168.200.101_amqp.pp: [ DONE ]
192.168.200.101_mysql.pp: [ DONE ]
Applying 192.168.200.101_keystone.pp
Applying 192.168.200.101_glance.pp
Applying 192.168.200.101_cinder.pp
192.168.200.101_keystone.pp: [ DONE ]
192.168.200.101_glance.pp: [ DONE ]
192.168.200.101_cinder.pp: [ DONE ]
Applying 192.168.200.101_api_nova.pp
192.168.200.101_api_nova.pp: [ DONE ]
Applying 192.168.200.101_nova.pp
192.168.200.101_nova.pp: [ DONE ]
Applying 192.168.200.101_neutron.pp
192.168.200.101_neutron.pp: [ DONE ]
Applying 192.168.200.101_neutron_fwaas.pp
Applying 192.168.200.101_osclient.pp
Applying 192.168.200.101_horizon.pp
192.168.200.101_neutron_fwaas.pp: [ DONE ]
192.168.200.101_horizon.pp: [ DONE ]
192.168.200.101_osclient.pp: [ DONE ]
Applying 192.168.200.101_ring_swift.pp
192.168.200.101_ring_swift.pp: [ DONE ]
Applying 192.168.200.101_swift.pp
192.168.200.101_swift.pp: [ DONE ]
Applying 192.168.200.101_mongodb.pp
192.168.200.101_mongodb.pp: [ DONE ]
Applying 192.168.200.101_ceilometer.pp
Applying 192.168.200.101_nagios.pp
Applying 192.168.200.101_nagios_nrpe.pp
192.168.200.101_ceilometer.pp: [ DONE ]
192.168.200.101_nagios.pp: [ DONE ]
192.168.200.101_nagios_nrpe.pp: [ DONE ]
Applying 192.168.200.101_postscript.pp
192.168.200.101_postscript.pp: [ DONE ]
Applying Puppet manifests [ DONE ]
Finalizing [ DONE ]

**** Installation completed successfully ******


Additional information:
* A new answerfile was created in: /root/packstack-answers-20140909-193418.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* Did not create a cinder volume group, one already existed
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.200.101. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.200.101/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* To use Nagios, browse to http://192.168.200.101/nagios username: nagiosadmin, password: 657374d2e7254c02
* The installation log file is available at: /var/tmp/packstack/20140909-193418-kNQB0f/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20140909-193418-kNQB0f/manifests

访问http://192.168.200.101/dashboard/,按要求输入用户和密码,成功进入管理页面。


为了测试,我重建一个虚拟机,没有用rpm安装EPEL,icehouse的release源配置文件,而是手工把epel.repo,puppetlabs.repo,foreman.repo和rdo-release.repo文件,以及RPM-GPG-KEY-puppetlabs,RPM-GPG-KEY-foreman,RPM-GPG-KEY-EPEL-6,RPM-GPG-KEY-RDO-Icehouse文件拷贝到新虚拟机,其它设置同上,安装成功,dashboard页面访问成功。

为了不依赖互联网,我尝试用wget下载各个源到一个内网的http服务器上,重新安装虚拟机,修改虚拟机repo文件指向本地http,安装后命令行和上面显示一致,但是访问dashboard就出现了错误。

删除下载的文件,再重新下载(由于epel太大,镜像很多,不含源码18G,通常要下载一个晚上),问题依然。而且我自己写了个命令来测试文件是否下载正确(只能保证按网站的文件名都下载了,网站没有为文件提供哈希校验码,无法检查每个文件是否正确),至少所有的文件都下载了(epel有1万多文件)。
由于对openstack不了解,而且安装过程始终没有报错,查看openstack-setup.log和manifests下的那堆log没有发现与internet安装有何不同,访问dashboard的错误原因又不显示。
按说网上很多离线安装的内容,我这儿除了源下载在本地(而且换着花样的下载),其它一切一样,安装也不报错。有没有碰到了类似问题的前辈,万望指教。
...全文
962 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
slash1103 2014-10-16
  • 打赏
  • 举报
回复
博主,是不是还要安装mysql数据库?有没有完整详细的安装过程?
slash1103 2014-10-16
  • 打赏
  • 举报
回复
请问博主,我按照你的方法安装完成后,为什么http://192.168.1.50/dashboard无法打开,我没有安装httpd服务,是不是需要安装?
代码誊写工 2014-09-09
  • 打赏
  • 举报
回复
忘了说: 下载的内容主要是:
wget -nH -np -r -L -c --cut-dir=2 --accept=rpm,gz,bz2,zip,xml -P /my_repos/openstack-icehouse https://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-6/
wget -nH -np -r -L -c --cut-dir=1 --accept=rpm,gz,bz2,zip,xml -P /my_repos/epel http://mirrors.hustunique.com/epel/6/x86_64/
#还用过http://mirrors.yun-idc.com/epel/6/x86_64/;http://dl.fedoraproject.org/pub/epel/6/x86_64/;http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/等镜像下载过epel。
wget -nH -np -r -L -c --accept=rpm,gz,bz2,zip,xml -P /my_repos/puppetlabs http://yum.puppetlabs.com/el/6/
wget -nH -np -r -L -c --accept=rpm,gz,bz2,zip,xml -P /my_repos/theforeman http://yum.theforeman.org/plugins/1.5/el6/
wget -nH -np -r -L -c --accept=rpm,gz,bz2,zip,xml -P /my_repos/theforeman http://yum.theforeman.org/releases/1.5/el6/
还下载过rabbitmq,但发现其实不需要,epel里都有。 而如果是用internet安装方式,则修改过repo文件,把所有mirrolist,failovermethod都注释了,epel的baseurl直接指向某一个镜像,为了防止可能有程序下载其它网站的内容,我甚至在域名里做手脚,关闭dns服务器配置,只用静态hosts文件解析服务器名,但是始终都可以成功登录dashboard。 所以现在基本肯定下载的文件有问题,但我不理解的是到底问题出在哪儿,因为安装的时候没有地方报错。 另外问问各位前辈,有没有其它比较靠谱的下载源的方法。

998

社区成员

发帖
与我相关
我的任务
社区描述
OpenStack
社区管理员
  • OpenStack社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧