Rename heat-api to heat-api-cfn

The previous heat-api is, in fact, a CloudFormation-compatible API. Rename
it to heat-api-cfn, analogous to how the EC2 API in Nova is named
nova-api-ec2.

Change-Id: I9759f10cee6a60cdc9cb917966eb9fb95a618f85
Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
Zane Bitter 2012-08-30 13:32:47 +02:00
parent 0706efc602
commit 2f9a1310e3
11 changed files with 41 additions and 28 deletions

View File

@ -43,7 +43,7 @@ LOG = logging.getLogger('heat.api')
if __name__ == '__main__': if __name__ == '__main__':
try: try:
cfg.CONF(project='heat', prog='heat-api') cfg.CONF(project='heat', prog='heat-api-cfn')
config.setup_logging() config.setup_logging()
config.register_api_opts() config.register_api_opts()

View File

@ -196,7 +196,7 @@ Launch the Heat services
:: ::
sudo -E bash -c 'heat-api & heat-engine & heat-metadata &' sudo -E bash -c 'heat-api-cfn & heat-engine & heat-metadata &'
.. ..
sleep 5 sleep 5

View File

@ -19,7 +19,7 @@
.\" * MAIN CONTENT STARTS HERE * .\" * MAIN CONTENT STARTS HERE *
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.SH "NAME" .SH "NAME"
heat-api \- The external api to the heat engine heat-api-cfn \- The external api to the heat engine
.SH "SYNOPSIS" .SH "SYNOPSIS"
.sp .sp
heat-engine heat-engine

View File

@ -1,49 +1,49 @@
# Default pipeline # Default pipeline
[pipeline:heat-api] [pipeline:heat-api-cfn]
pipeline = versionnegotiation ec2authtoken authtoken context apiv1app pipeline = versionnegotiation ec2authtoken authtoken context apicfnv1app
# Use the following pipeline for keystone auth # Use the following pipeline for keystone auth
# i.e. in heat-api.conf: # i.e. in heat-api-cfn.conf:
# [paste_deploy] # [paste_deploy]
# flavor = keystone # flavor = keystone
# #
[pipeline:heat-api-keystone] [pipeline:heat-api-cfn-keystone]
pipeline = versionnegotiation ec2authtoken authtoken context apiv1app pipeline = versionnegotiation ec2authtoken authtoken context apicfnv1app
# Use the following pipeline to enable transparent caching of image files # 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] # [paste_deploy]
# flavor = caching # flavor = caching
# #
[pipeline:heat-api-caching] [pipeline:heat-api-cfn-caching]
pipeline = versionnegotiation ec2authtoken authtoken context cache apiv1app pipeline = versionnegotiation ec2authtoken authtoken context cache apicfnv1app
# Use the following pipeline for keystone auth with caching # Use the following pipeline for keystone auth with caching
# i.e. in heat-api.conf: # i.e. in heat-api-cfn.conf:
# [paste_deploy] # [paste_deploy]
# flavor = keystone+caching # flavor = keystone+caching
# #
[pipeline:heat-api-keystone+caching] [pipeline:heat-api-cfn-keystone+caching]
pipeline = versionnegotiation ec2authtoken authtoken context cache apiv1app pipeline = versionnegotiation ec2authtoken authtoken context cache apicfnv1app
# Use the following pipeline to enable the Image Cache Management API # 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] # [paste_deploy]
# flavor = cachemanagement # flavor = cachemanagement
# #
[pipeline:heat-api-cachemanagement] [pipeline:heat-api-cfn-cachemanagement]
pipeline = versionnegotiation ec2authtoken authtoken context cache cachemanage apiv1app pipeline = versionnegotiation ec2authtoken authtoken context cache cachemanage apicfnv1app
# Use the following pipeline for keystone auth with cache management # 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] # [paste_deploy]
# flavor = keystone+cachemanagement # flavor = keystone+cachemanagement
# #
[pipeline:heat-api-keystone+cachemanagement] [pipeline:heat-api-cfn-keystone+cachemanagement]
pipeline = versionnegotiation ec2authtoken authtoken auth-context cache cachemanage apiv1app pipeline = versionnegotiation ec2authtoken authtoken auth-context cache cachemanage apicfnv1app
[app:apiv1app] [app:apicfnv1app]
paste.app_factory = heat.common.wsgi:app_factory paste.app_factory = heat.common.wsgi:app_factory
heat.app_factory = heat.api.v1:API heat.app_factory = heat.api.v1:API

View File

@ -11,9 +11,9 @@ bind_host = 0.0.0.0
# Port the bind the server to # Port the bind the server to
bind_port = 8000 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! # permissions to write to this file!
log_file = /var/log/heat/api.log log_file = /var/log/heat/api-cfn.log
# ================= Syslog Options ============================ # ================= Syslog Options ============================

View File

@ -11,7 +11,7 @@ bind_host = 0.0.0.0
# Port the bind the server to # Port the bind the server to
bind_port = 8001 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! # permissions to write to this file!
log_file = /var/log/heat/engine.log log_file = /var/log/heat/engine.log

View File

@ -37,7 +37,7 @@ from heat.api.aws import exception
import heat.api.v1.stacks as stacks 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') @attr(speed='fast')
class StackControllerTest(unittest.TestCase): class StackControllerTest(unittest.TestCase):
''' '''

View File

@ -12,6 +12,18 @@ mkdir -p $LOG_DIR
mkdir -p $CONF_DIR mkdir -p $CONF_DIR
pushd etc > /dev/null 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 * for f in *
do do
if [ -d $f ]; then if [ -d $f ]; then

View File

@ -46,7 +46,7 @@ function run_tests {
function run_pep8 { function run_pep8 {
echo "Running pep8..." echo "Running pep8..."
PEP8_OPTIONS="--exclude=$PEP8_EXCLUDE --repeat" 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 ${wrapper} pep8 $PEP8_OPTIONS $PEP8_INCLUDE
} }

View File

@ -44,7 +44,7 @@ setuptools.setup(
'Environment :: No Input/Output (Daemon)', 'Environment :: No Input/Output (Daemon)',
], ],
scripts=['bin/heat', scripts=['bin/heat',
'bin/heat-api', 'bin/heat-api-cfn',
'bin/heat-api-cloudwatch', 'bin/heat-api-cloudwatch',
'bin/heat-boto', 'bin/heat-boto',
'bin/heat-metadata', 'bin/heat-metadata',

View File

@ -25,7 +25,7 @@ user_wants() {
done done
} }
HEAT_PIDS=`pgrep '^heat-(api|engine|metadata)$'` HEAT_PIDS=`pgrep '^heat-(api|api-cfn|engine|metadata)$'`
if [ -n "$HEAT_PIDS" ]; then if [ -n "$HEAT_PIDS" ]; then
echo 'The following Heat processes are running:' 1>&2 echo 'The following Heat processes are running:' 1>&2
ps $HEAT_PIDS 1>&2 ps $HEAT_PIDS 1>&2
@ -60,6 +60,7 @@ if user_wants 'Delete Heat binaries?'; then
sudo rm -f $BIN_PATH/heat-db-setup sudo rm -f $BIN_PATH/heat-db-setup
sudo rm -f $BIN_PATH/heat-metadata sudo rm -f $BIN_PATH/heat-metadata
sudo rm -f $BIN_PATH/heat-api 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-engine
sudo rm -f $BIN_PATH/heat sudo rm -f $BIN_PATH/heat