]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Rename heat-api to heat-api-cfn
authorZane Bitter <zbitter@redhat.com>
Thu, 30 Aug 2012 11:32:47 +0000 (13:32 +0200)
committerZane Bitter <zbitter@redhat.com>
Thu, 6 Sep 2012 14:11:24 +0000 (16:11 +0200)
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>
bin/heat-api-cfn [moved from bin/heat-api with 97% similarity]
docs/GettingStarted.rst
docs/man/man1/heat-api-cfn.1 [moved from docs/man/man1/heat-api.1 with 96% similarity]
etc/heat-api-cfn-paste.ini [moved from etc/heat-api-paste.ini with 82% similarity]
etc/heat-api-cfn.conf [moved from etc/heat-api.conf with 85% similarity]
etc/heat-engine.conf
heat/tests/test_api_cfn_v1.py [moved from heat/tests/test_api_v1.py with 99% similarity]
install.sh
run_tests.sh
setup.py
tools/uninstall-heat

similarity index 97%
rename from bin/heat-api
rename to bin/heat-api-cfn
index 5082ec00126d45a3bfafe65c40ea45167f63c4ef..2bf0caf08cc8a1b4667f414d52b1b03f94a4d8f4 100755 (executable)
@@ -43,7 +43,7 @@ LOG = logging.getLogger('heat.api')
 
 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()
 
index f2310e8b38b8c0949db037ed5b117fc6d6a486bd..73b0ade80f36c45de15349ab9479ddc744207096 100644 (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
similarity index 96%
rename from docs/man/man1/heat-api.1
rename to docs/man/man1/heat-api-cfn.1
index 7e07f85c0cc31e78c1aa024b11b55e1de3196a00..9158b45fd053a8b5d1a7bbf6d68711ff443d6c6d 100644 (file)
@@ -19,7 +19,7 @@
 .\" * 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
similarity index 82%
rename from etc/heat-api-paste.ini
rename to etc/heat-api-cfn-paste.ini
index 5ceeae06940f5d0877ce666062f18df1e5ea7688..e09404bff3209faff18cf28fde4dec652ee47efe 100644 (file)
@@ -1,49 +1,49 @@
 
 # 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
 
similarity index 85%
rename from etc/heat-api.conf
rename to etc/heat-api-cfn.conf
index c06c01b5894fb6ba9660f743b08273f72701abd1..176f4b2be8dc2fde18d1cb1624309e6303c3f7e6 100644 (file)
@@ -11,9 +11,9 @@ bind_host = 0.0.0.0
 # 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 ============================
 
index 0998d2e9cf4f51850f766628a250e11590e85ca9..b84b0533d112717d8e0931b8e2683bd3e0ae751c 100644 (file)
@@ -11,7 +11,7 @@ bind_host = 0.0.0.0
 # 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
 
similarity index 99%
rename from heat/tests/test_api_v1.py
rename to heat/tests/test_api_cfn_v1.py
index 0b28c1d3a08353c6593656997c50f3e0eb963ad7..aae253dffc7896f1c7aa56b936f2abb38794199f 100644 (file)
@@ -37,7 +37,7 @@ from heat.api.aws import exception
 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):
     '''
index 5af037946bf4cdc193fa1cb7f79874aca968c0b5..271d370d87eabd2ebc24171bb93db808973aa0ad 100755 (executable)
@@ -12,6 +12,18 @@ mkdir -p $LOG_DIR
 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
index 73f8052f24c33041faa09dfc78889f1af47d5546..3663a71d5696ab38a3db50ae7275579625974324 100755 (executable)
@@ -46,7 +46,7 @@ function run_tests {
 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
 }
 
index 163700edaa7f77b1123999e5c684bb26dd81e2ec..be3ece18545b4d82bef15277e678097d2b6d70fa 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@ setuptools.setup(
         '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',
index e05ba01799099712257b7ebc549c9ba49aab5257..915f8c06e654741480d5c12f3bd296a2e2b435a6 100755 (executable)
@@ -25,7 +25,7 @@ user_wants() {
     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
@@ -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-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