if __name__ == '__main__':
try:
- cfg.CONF(project='heat', prog='heat-api')
+ cfg.CONF(project='heat', prog='heat-api-cfn')
config.setup_logging()
config.register_api_opts()
::
- sudo -E bash -c 'heat-api & heat-engine & heat-metadata &'
+ sudo -E bash -c 'heat-api-cfn & heat-engine & heat-metadata &'
..
sleep 5
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
-heat-api \- The external api to the heat engine
+heat-api-cfn \- The external api to the heat engine
.SH "SYNOPSIS"
.sp
heat-engine
# Default pipeline
-[pipeline:heat-api]
-pipeline = versionnegotiation ec2authtoken authtoken context apiv1app
+[pipeline:heat-api-cfn]
+pipeline = versionnegotiation ec2authtoken authtoken context apicfnv1app
# Use the following pipeline for keystone auth
-# i.e. in heat-api.conf:
+# i.e. in heat-api-cfn.conf:
# [paste_deploy]
# flavor = keystone
#
-[pipeline:heat-api-keystone]
-pipeline = versionnegotiation ec2authtoken authtoken context apiv1app
+[pipeline:heat-api-cfn-keystone]
+pipeline = versionnegotiation ec2authtoken authtoken context apicfnv1app
# Use the following pipeline to enable transparent caching of image files
-# i.e. in heat-api.conf:
+# i.e. in heat-api-cfn.conf:
# [paste_deploy]
# flavor = caching
#
-[pipeline:heat-api-caching]
-pipeline = versionnegotiation ec2authtoken authtoken context cache apiv1app
+[pipeline:heat-api-cfn-caching]
+pipeline = versionnegotiation ec2authtoken authtoken context cache apicfnv1app
# Use the following pipeline for keystone auth with caching
-# i.e. in heat-api.conf:
+# i.e. in heat-api-cfn.conf:
# [paste_deploy]
# flavor = keystone+caching
#
-[pipeline:heat-api-keystone+caching]
-pipeline = versionnegotiation ec2authtoken authtoken context cache apiv1app
+[pipeline:heat-api-cfn-keystone+caching]
+pipeline = versionnegotiation ec2authtoken authtoken context cache apicfnv1app
# Use the following pipeline to enable the Image Cache Management API
-# i.e. in heat-api.conf:
+# i.e. in heat-api-cfn.conf:
# [paste_deploy]
# flavor = cachemanagement
#
-[pipeline:heat-api-cachemanagement]
-pipeline = versionnegotiation ec2authtoken authtoken context cache cachemanage apiv1app
+[pipeline:heat-api-cfn-cachemanagement]
+pipeline = versionnegotiation ec2authtoken authtoken context cache cachemanage apicfnv1app
# Use the following pipeline for keystone auth with cache management
-# i.e. in heat-api.conf:
+# i.e. in heat-api-cfn.conf:
# [paste_deploy]
# flavor = keystone+cachemanagement
#
-[pipeline:heat-api-keystone+cachemanagement]
-pipeline = versionnegotiation ec2authtoken authtoken auth-context cache cachemanage apiv1app
+[pipeline:heat-api-cfn-keystone+cachemanagement]
+pipeline = versionnegotiation ec2authtoken authtoken auth-context cache cachemanage apicfnv1app
-[app:apiv1app]
+[app:apicfnv1app]
paste.app_factory = heat.common.wsgi:app_factory
heat.app_factory = heat.api.v1:API
# Port the bind the server to
bind_port = 8000
-# Log to this file. Make sure the user running heat-api has
+# Log to this file. Make sure the user running heat-api-cfn has
# permissions to write to this file!
-log_file = /var/log/heat/api.log
+log_file = /var/log/heat/api-cfn.log
# ================= Syslog Options ============================
# Port the bind the server to
bind_port = 8001
-# Log to this file. Make sure the user running heat-api has
+# Log to this file. Make sure the user running heat-engine has
# permissions to write to this file!
log_file = /var/log/heat/engine.log
import heat.api.v1.stacks as stacks
-@attr(tag=['unit', 'api-v1-stacks', 'StackController'])
+@attr(tag=['unit', 'api-cfn-v1-stacks', 'StackController'])
@attr(speed='fast')
class StackControllerTest(unittest.TestCase):
'''
mkdir -p $CONF_DIR
pushd etc > /dev/null
+
+# Archive existing heat-api* config files in preparation
+# for change to heat-api-cfn*, and future use of heat-api*
+# the OpenStack API
+for ext in '.conf' '-paste.ini'; do
+ heat_api_file="${CONF_DIR}/heat-api${ext}"
+ if [ -e ${heat_api_file} ]; then
+ echo "archiving configuration file ${heat_api_file}"
+ mv $heat_api_file ${heat_api_file}.bak
+ fi
+done
+
for f in *
do
if [ -d $f ]; then
function run_pep8 {
echo "Running pep8..."
PEP8_OPTIONS="--exclude=$PEP8_EXCLUDE --repeat"
- PEP8_INCLUDE="bin/heat bin/heat-boto bin/heat-api bin/heat-engine heat tools setup.py heat/testing/runner.py"
+ PEP8_INCLUDE="bin/heat bin/heat-boto bin/heat-api-cfn bin/heat-engine heat tools setup.py heat/testing/runner.py"
${wrapper} pep8 $PEP8_OPTIONS $PEP8_INCLUDE
}
'Environment :: No Input/Output (Daemon)',
],
scripts=['bin/heat',
- 'bin/heat-api',
+ 'bin/heat-api-cfn',
'bin/heat-api-cloudwatch',
'bin/heat-boto',
'bin/heat-metadata',
done
}
-HEAT_PIDS=`pgrep '^heat-(api|engine|metadata)$'`
+HEAT_PIDS=`pgrep '^heat-(api|api-cfn|engine|metadata)$'`
if [ -n "$HEAT_PIDS" ]; then
echo 'The following Heat processes are running:' 1>&2
ps $HEAT_PIDS 1>&2
sudo rm -f $BIN_PATH/heat-db-setup
sudo rm -f $BIN_PATH/heat-metadata
sudo rm -f $BIN_PATH/heat-api
+ sudo rm -f $BIN_PATH/heat-api-cfn
sudo rm -f $BIN_PATH/heat-engine
sudo rm -f $BIN_PATH/heat