[OpenStack]RDO(Mitaka)
$ packstack --answer-file=answer.txt
ここでこんなエラー。
Copying Puppet modules and manifests [ DONE ]
Applying 192.168.56.100_prescript.pp
192.168.56.100_prescript.pp: [ DONE ]
Applying 192.168.56.100_amqp.pp
Applying 192.168.56.100_mariadb.pp
192.168.56.100_amqp.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]
ERROR : Error appeared during Puppet run: 192.168.56.100_amqp.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install erlang' returned 1: Error: Package: erlang-wx-18.3.4.4-1.el7.x86_64 (openstack-newton)
You will find full trace in log /var/tmp/packstack/20161029-044410-uGvd45/manifests/192.168.56.100_amqp.pp.log
Please check log file /var/tmp/packstack/20161029-044410-uGvd45/openstack-setup.log for more information
Additional information:
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.56.100. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.56.100/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* To use Nagios, browse to http://192.168.56.100/nagios username: nagiosadmin, password: xxxxxxx
忠実に出来たと思ったけど、よく見ると
プロミスキャスモードを「すべて許可」に設定
って設定してないや。これが原因か?
ホストオンリー
ゲストOS(CentOS)とホストOSの間で通信するためのネットワークアダプタ
192.168.56.1/24を設定
プロミスキャスモードを「すべて許可」に設定。(重要、ネストされたOpenStack上のVMが外部と通信するために必要な設定)
Management Netowrk
ifconfig xxxxx promisc
でプロミスキャスモードになるらしい。
それから再度
$ packstack --answer-file=answer.txt
やっても変わらなかった。
packstackはrootでやっちゃいけないらしいが、試しにrootで実行してみても、変わらず。
http://ehaselwanter.com/en/blog/2014/10/15/deploying-openstack-with-rdo-packstack/
この人は、調べたらEPEL6が必要だと言ってる。
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -ivh epel-release-6-8.noarch.rpm
今回CentOS 7なので、7用の最新Verをインストールしてみたが、エラー変わらず。
erlangを手動でインストールしたら良いのか?と思い
http://qiita.com/kaikusakari/items/e990747ee5e9c34372de
ここを見て進めた。
#cd /usr/local/src
#wget http://www.erlang.org/download/otp_src_18.3.tar.gz
#yum install ncurses ncurses-devel
#yum install openssl openssl-devel
#curl -OL --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u73-b02/jdk-8u73-linux-x64.rpm
# rpm -ivh jdk-8u73-linux-x64.rpm
# tar -zxvf otp_src_18.3.tar.gz
# cd otp_src_18.3
# ./configure
確かこんな警告出てた。
wx : wxWidgets not found, wx will NOT be usable
真似して以下をインストール。
# yum install unixODBC unixODBC-devel fop
再度configureから。
# ./configure
# make
# make install
この後packstackしても特にエラー変わらず。