OS_ID="Ubuntu"
echo "mysql-server mysql-server/root_password select $ROOT_MYSQL_PASSWORD" | sudo debconf-set-selections
echo "mysql-server mysql-server/root_password_again select $ROOT_MYSQL_PASSWORD" | sudo debconf-set-selections
- apt-get install -y mysql-server mysql-client python-mysqldb rabbitmq-server screen curl
+ apt-get install --yes --force-yes mysql-server mysql-client python-mysqldb rabbitmq-server screen curl
else
OS_ID="Centos"
setenforce 0 |:
GRANT ALL PRIVILEGES ON $_mysql_db_name.* TO '$_mysql_db_user'@'%' IDENTIFIED BY '$_mysql_db_pass';"
mysql -uroot -p$_mysql_root_pass -e "$_mysql_cmd" |:
DAEMON_DB_CONSTR="mysql://$_mysql_db_user:$_mysql_db_pass@127.0.0.1:3306/$_mysql_db_name"
- iniset $conf_file database connection ${DAEMON_DB_CONSTR}
iniset $conf_file DEFAULT debug 'True'
iniset $conf_file DEFAULT verbose 'True'
iniset $conf_file DEFAULT use_syslog 'False'
iniset $conf_file DEFAULT log_dir /var/log/heat
-
+ iniset $conf_file database connection ${DAEMON_DB_CONSTR}
+ sleep 1
heat-manage -d --config-file $conf_file db_sync
if [ "$?" != "0" ]
then
echo "Couldn't execute 'heat-manage db_sync'"
RES=1
fi
+ sleep 1
}
case $package in
;;
heat-engine|openstack-heat-engine)
prepare_vm
- log_file='/var/log/heat/heat-engine.log'
+ # Do not use default log file due to bug/1562753
+ # Revert changes after clean DB synchronization.
+ # log_file='/var/log/heat/heat-engine.log'
+ log_file='/var/log/heat/heat-engine_bogus.log'
case ${OS_ID} in
'Ubuntu')
screen -dmS heat-engine
if [ "$trace_count" -ne "0" ]
then
echo "Something went wrong! Log file have trace errors! Check logs"
+ cat $log_file
RES=1
else
- rabbit_connections=`cat $log_file | grep -E '(Reco|Co)nnected to AMQP server on' | wc -l`
- if [ "$rabbit_connections" -eq "0" ]
- then
- echo "Heat Engine: Can't connected to RabbitMQ"
- RES=1
+ amqp_errors=$(grep -P '\[Errno 111\] ECONNREFUSED' $log_file | wc -l)
+ if [ $amqp_errors -gt 0 ]; then
+ if [ $(grep -P '(\[Errno 111\] ECONNREFUSED|(Reconnected|Connected) to AMQP server)' $log_file \
+ | tail -1 | grep -P '(Reconnected|Connected) to AMQP server' | wc -l) -eq 1 ]; then
+ echo 'Heat-engine is connected to AMQP server'
+ else
+ cat $log_file
+ echo 'Heat-engine is not connected to AMQP server'
+ RES=1
+ fi
else
- echo "Heat Engine successfully started"
+ echo 'Heat-engine is connected to AMQP server'
fi
fi
systemctl stop openstack-heat-engine
;;
heat-docker|openstack-heat-docker)
prepare_vm
- log_file='/var/log/heat/heat-engine.log'
+ # Do not use default log file due to bug/1562753
+ # Revert changes after clean DB synchronization.
+ # log_file='/var/log/heat/heat-engine.log'
+ log_file='/var/log/heat/heat-engine_bogus.log'
case ${OS_ID} in
'Ubuntu')
screen -dmS heat-engine
if [ "$trace_count" -ne "0" ]
then
echo "Something went wrong! Log file have trace errors! Check logs"
+ cat $log_file
RES=1
else
docker_regitered=$(grep -c 'DockerInc::Docker::Container' $log_file)
po-debconf,
python-all,
python-pbr (>= 1.8),
- python-setuptools,
+ python-setuptools (>= 16.0),
python-sphinx (>= 1.1.2),
Build-Depends-Indep: bandit (>= 0.13.2),
git,
- python-babel,
+ python-babel (>= 1.3),
python-barbicanclient (>= 3.3.0),
python-ceilometerclient (>= 2.2.1),
python-cinderclient (>= 1:1.3.1),
- python-croniter,
+ python-croniter (>= 0.3.4),
python-coverage (>= 3.6),
- python-crypto,
+ python-crypto (>= 2.6),
python-cryptography (>= 1.0),
python-debtcollector (>= 1.2.0),
python-designateclient (>= 1.5.0),
- python-eventlet (>= 0.17.4),
- python-glanceclient (>= 1:1.2.0),
- python-greenlet,
- python-hacking (>= 0.10.0),
+ python-eventlet (>= 0.18.2),
+ python-glanceclient (>= 1:2.0.0),
+ python-greenlet (>= 0.3.2),
+ python-hacking (>= 0.10.2),
python-heatclient (>= 0.6.0),
python-keystoneclient (>= 1:1.6.0),
python-keystonemiddleware (>= 4.0.0),
- python-kombu (>= 3.0.7),
- python-lxml,
- python-magnumclient,
+ python-kombu (>= 3.0.25),
+ python-lxml (>= 2.3),
+ python-magnumclient (>= 0.2.1),
python-manilaclient (>= 1.3.0),
python-migrate (>= 0.9.6),
python-mistralclient (>= 1.0.0),
python-netaddr (>= 0.7.12),
python-neutronclient (>= 1:2.6.0),
python-novaclient (>= 2:2.29.0),
- python-openstackclient (>= 2.0.0),
+ python-openstackclient (>= 2.1.0),
python-oslo.cache (>= 1.0.0),
- python-oslo.concurrency (>= 2.3.0),
- python-oslo.config (>= 1:3.2.0),
+ python-oslo.concurrency (>= 3.5.0),
+ python-oslo.config (>= 1:3.7.0),
python-oslo.context (>= 0.2.0),
python-oslo.db (>= 4.1.0),
- python-oslo.i18n (>= 1.5.0),
+ python-oslo.i18n (>= 2.1.0),
python-oslo.log (>= 2.0.0),
- python-oslo.messaging (>= 3.0.0),
+ python-oslo.messaging (>= 4.0.0),
python-oslo.middleware (>= 3.0.0),
python-oslo.policy (>= 0.5.0),
python-oslo.reports (>= 1.0.0),
python-oslo.serialization (>= 2.0.0),
python-oslo.service (>= 1.0.0),
- python-oslo.utils (>= 3.4.0),
- python-oslo.versionedobjects (>= 1.0.0),
+ python-oslo.utils (>= 3.5.0),
+ python-oslo.versionedobjects (>= 1.5.0),
python-oslosphinx (>= 2.5.0),
python-oslotest (>= 1.10.0),
- python-osprofiler (>= 0.4.0),
- python-paramiko (>= 1.13.0),
- python-pastedeploy,
+ python-osprofiler (>= 1.1.0),
+ python-paramiko (>= 1.16.0),
+ python-pastedeploy (>= 1.5.0),
python-psycopg2 (>= 2.5),
python-pymysql (>= 0.6.2),
python-qpid,
python-reno (>= 0.1.1),
python-requests (>= 2.8.1),
- python-routes,
- python-saharaclient (>= 0.10.0),
+ python-routes (>= 1.12.3),
+ python-saharaclient (>= 0.13.0),
python-senlinclient,
python-six (>= 1.9.0),
python-sqlalchemy (>= 1.0.10),
python-stevedore (>= 1.5.0),
- python-swiftclient,
+ python-swiftclient (>= 2.2.0),
python-testscenarios (>= 0.4),
python-testresources (>= 0.2.4),
python-testtools (>= 1.4.0),
python-troveclient (>= 1:1.2.0),
- python-tz,
- python-webob,
+ python-tz (>= 2013.6),
+ python-webob (>= 1.2.3),
python-yaml,
python-zaqarclient (>= 0.3.0),
subunit,
testrepository,
Standards-Version: 3.9.6
-Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/heat.git;a=summary
-Vcs-Git: git://anonscm.debian.org/openstack/heat.git
+Vcs-Browser: https://anonscm.debian.org/cgit/openstack/heat.git/
+Vcs-Git: https://anonscm.debian.org/git/openstack/heat.git
Homepage: http://wiki.openstack.org/Heat
Package: python-heat
python-ceilometerclient (>= 2.2.1),
python-cinderclient (>= 1:1.3.1),
python-croniter (>= 0.3.4),
- python-crypto,
+ python-crypto (>= 2.6),
python-cryptography (>= 1.0),
python-debtcollector (>= 1.2.0),
python-designateclient (>= 1.5.0),
- python-eventlet (>= 0.17.4),
- python-glanceclient (>= 1:1.2.0),
+ python-eventlet (>= 0.18.2),
+ python-glanceclient (>= 1:2.0.0),
python-greenlet (>= 0.3.2),
python-heatclient (>= 0.6.0),
python-keystoneclient (>= 1:1.6.0),
python-netaddr (>= 0.7.12),
python-neutronclient (>= 1:2.6.0),
python-novaclient (>= 2:2.29.0),
- python-openstackclient (>= 2.0.0),
+ python-openstackclient (>= 2.1.0),
python-oslo.cache (>= 1.0.0),
- python-oslo.concurrency (>= 2.3.0),
- python-oslo.config (>= 1:3.2.0),
+ python-oslo.concurrency (>= 3.5.0),
+ python-oslo.config (>= 1:3.7.0),
python-oslo.context (>= 0.2.0),
python-oslo.db (>= 4.1.0),
python-oslo.i18n (>= 2.1.0),
python-oslo.reports (>= 1.0.0),
python-oslo.serialization (>= 2.0.0),
python-oslo.service (>= 1.0.0),
- python-oslo.utils (>= 3.4.0),
- python-oslo.versionedobjects (>= 1.4.0),
- python-osprofiler (>= 0.4.0),
+ python-oslo.utils (>= 3.5.0),
+ python-oslo.versionedobjects (>= 1.5.0),
+ python-osprofiler (>= 1.1.0),
python-pastedeploy (>= 1.5.0),
python-pbr (>= 1.8),
python-psycopg2 (>= 2.5),
python-pymysql (>= 0.6.2),
python-requests (>= 2.8.1),
+ python-retrying (>= 1.2.3),
python-routes (>= 1.12.3),
- python-saharaclient (>= 0.10.0),
+ python-saharaclient (>= 0.13.0),
python-senlinclient,
python-six (>= 1.9.0),
python-sqlalchemy (>= 1.0.10),
Package: heat-docker
Architecture: all
Depends:
- python-docker (>= 1.4.0),
- heat-engine (=${binary:Version}),
+ python-docker (>= 1.6.0),
+ heat-engine (= ${binary:Version}),
${misc:Depends},
${ostack-lsb-base},
${python:Depends}