]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Add requirements 24/724/6
authorIgor Yozhikov <iyozhikov@mirantis.com>
Tue, 11 Nov 2014 11:03:24 +0000 (14:03 +0300)
committerIgor Yozhikov <iyozhikov@mirantis.com>
Tue, 11 Nov 2014 16:58:40 +0000 (19:58 +0300)
* python-osprofiler
* python-oslo-middleware
* python-oslo-serialization
* python-oslo-utils
* add extra startup logging from runtests.sh
Change-Id: Ia9cb1261bc141d21b1f5ff236faad9ecd1dbbd6b

rpm/SPECS/openstack-heat.spec
tests/runtests.sh

index 2ef434d470c20b730d53f3218e1348a0a2782c95..bca6b9c561b4a2ec1770ae5070da2992e32a6409 100644 (file)
@@ -57,7 +57,8 @@ BuildRequires: python-paste-deploy >= 1.5.0
 BuildRequires: python-routes >= 1.12.3, python-routes < 2.0
 BuildRequires: python-sqlalchemy >= 0.8.4, python-sqlalchemy <= 0.9.99
 BuildRequires: python-webob >= 1.2.3
-
+BuildRequires: python-osprofiler
+BuildRequires: python-oslo-middleware
 BuildRequires: python-pbr
 BuildRequires: python-d2to1
 %if 0%{?with_doc}
@@ -210,6 +211,10 @@ Requires: m2crypto
 Requires: python-anyjson
 Requires: python-paramiko >= 1.13.0
 Requires: MySQL-python
+Requires: python-osprofiler >= 0.3.0
+Requires: python-oslo-middleware >= 0.1.0
+Requires: python-oslo-serialization >= 1.0.0
+Requires: python-oslo-utils >= 1.0.0
 Requires(pre): shadow-utils
 
 %description common
index e34280374db1a49cc01b239c5b4f28754b558f42..a44db8ba391fa6a04c14c237bb3b7720b9001d48 100755 (executable)
@@ -9,12 +9,11 @@ prepare_vm() {
    then
       echo "mysql-server mysql-server/root_password select $MYSQL_PASSWORD" | sudo debconf-set-selections
       echo "mysql-server mysql-server/root_password_again select $MYSQL_PASSWORD" | sudo debconf-set-selections
-      apt-get install -y mysql-server python-mysqldb rabbitmq-server
+      apt-get install -y mysql-server mysql-client python-mysqldb rabbitmq-server
    else
-      yum install screen mysql-server MySQL-python rabbitmq-server -y
-      service mysqld start
+      yum install screen mysql-server MySQL-python MySQL-client rabbitmq-server -y
+      service $(chkconfig | grep -oE '^mysql.?\s') start
       /usr/bin/mysqladmin -u root password $MYSQL_PASSWORD
-      /usr/bin/mysqladmin -u root --password=$MYSQL_PASSWORD  -h localhost $MYSQL_PASSWORD
    fi
    service rabbitmq-server start
    mysql -uroot -p$MYSQL_PASSWORD -Bse "create database heat"
@@ -71,7 +70,7 @@ case $package in
         screen -dmS heat-api
         sleep 2
         echo "Starting Heat API..."
-        screen -S heat-api -p 0 -X stuff "heat-api --config-file $conf_file -d --log-file /tmp/heat-api.log
+        screen -S heat-api -p 0 -X stuff "heat-api --config-file $conf_file -d --log-file /tmp/heat-api.log 2>>/tmp/heat-api.log
 "
         sleep 5
         curl_req=`curl http://localhost:8004/v1/tenant/stacks`
@@ -89,7 +88,7 @@ case $package in
         screen -dmS heat-engine
         sleep 2
         echo "Starting Heat Engine..."
-        screen -S heat-engine -p 0 -X stuff "heat-engine --config-file $conf_file -d --log-file /tmp/heat-engine.log
+        screen -S heat-engine -p 0 -X stuff "heat-engine --config-file $conf_file -d --log-file /tmp/heat-engine.log 2>>/tmp/heat-engine.log
 "
         sleep 5
         cat /tmp/heat-engine.log
@@ -114,7 +113,7 @@ case $package in
         screen -dmS heat-api-cfn
         sleep 2
         echo "Starting Heat API CFN..."
-        screen -S heat-api-cfn -p 0 -X stuff "heat-api-cfn --config-file $conf_file -d --log-file /tmp/heat-api-cfn.log
+        screen -S heat-api-cfn -p 0 -X stuff "heat-api-cfn --config-file $conf_file -d --log-file /tmp/heat-api-cfn.log 2>>/tmp/heat-api-cfn.log
 "
         sleep 5
         cat /tmp/heat-api-cfn.log
@@ -132,7 +131,7 @@ case $package in
         screen -dmS heat-api-clw
         sleep 2
         echo "Starting Heat API Cloudwatch..."
-        screen -S heat-api-clw -p 0 -X stuff "heat-api-cloudwatch --config-file $conf_file -d --log-file /tmp/heat-api-clw.log
+        screen -S heat-api-clw -p 0 -X stuff "heat-api-cloudwatch --config-file $conf_file -d --log-file /tmp/heat-api-clw.log 2>>/tmp/heat-api-clw.log
 "
         sleep 5
         cat /tmp/heat-api-clw.log