Permission issue with heat.

While deploying a vnf with autoscaling, heat translator failed with
premission denied error. This issue occured because [1] opening file
in root dir (i.e. '/'), due to which it giving permission denied.
Fixing it by setting current working dir as '/temp'

[1]: https://github.com/openstack/heat-translator/blob/master/translator/hot/tosca_translator.py#L69

Change-Id: Ib2b0fd6c4c32a523b9fb25f47eae19225b84439f
Closes-bug: #1749394
This commit is contained in:
dharmendra 2018-02-16 18:34:35 +00:00
parent 1df345f8dc
commit c6b758477c
4 changed files with 32 additions and 3 deletions

View File

@ -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}"

View File

@ -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
=====================

View File

@ -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

View File

@ -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')