diff --git a/devstack/lib/tacker b/devstack/lib/tacker index d1f40cb1f..f450d1aeb 100644 --- a/devstack/lib/tacker +++ b/devstack/lib/tacker @@ -154,7 +154,9 @@ function start_tacker { # Start tacker conductor run_process tacker-conductor "$TACKER_BIN_DIR/tacker-conductor $cfg_file_options" # Start the Tacker service - run_process tacker "$TACKER_BIN_DIR/tacker-server $cfg_file_options" + sudo cp $TACKER_DIR/etc/systemd/system/tacker.service /etc/systemd/system/devstack@tacker.service + sudo systemctl daemon-reload + sudo systemctl restart devstack@tacker.service echo "Waiting for Tacker to start..." if is_ssl_enabled_service "tacker"; then ssl_ca="--ca-certificate=${SSL_BUNDLE_FILE}" diff --git a/doc/source/install/manual_installation.rst b/doc/source/install/manual_installation.rst index fa6e90e3c..e1778c766 100644 --- a/doc/source/install/manual_installation.rst +++ b/doc/source/install/manual_installation.rst @@ -247,6 +247,23 @@ If you are using keystone v2 then, .. +10). To support systemd, copy tacker.service file to "/etc/systemd/system/" +directory, and restart systemctl daemon. + +.. code-block:: console + + sudo su + cp etc/systemd/system/tacker.service /etc/systemd/system/ + systemctl daemon-reload + +.. + +.. note:: + + Needs systemd support. + By default Ubuntu16.04 onward is supported. +.. + Install Tacker client ===================== diff --git a/etc/systemd/system/tacker.service b/etc/systemd/system/tacker.service new file mode 100644 index 000000000..9cdbbac66 --- /dev/null +++ b/etc/systemd/system/tacker.service @@ -0,0 +1,12 @@ +[Unit] +Description = OpenStack tacker service + +[Service] +ExecReload = /bin/kill -HUP $MAINPID +TimeoutStopSec = 300 +KillMode = process +WorkingDirectory = /tmp +ExecStart=/usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf + +[Install] +WantedBy = multi-user.target diff --git a/tacker/tests/functional/vnfm/test_tosca_vnf_scale.py b/tacker/tests/functional/vnfm/test_tosca_vnf_scale.py index c10b3f4b7..f2372e963 100644 --- a/tacker/tests/functional/vnfm/test_tosca_vnf_scale.py +++ b/tacker/tests/functional/vnfm/test_tosca_vnf_scale.py @@ -13,7 +13,6 @@ import json import time -import unittest from oslo_config import cfg @@ -27,7 +26,6 @@ CONF = cfg.CONF class VnfTestToscaScale(base.BaseTackerTest): - @unittest.skip("Skip and wait for releasing Heat Translator") def test_vnf_tosca_scale(self): data = dict() data['tosca'] = read_file('sample-tosca-scale-all.yaml')