Removing call syntax for Heat's policy.json file

Bug #1740357 reported by MinWookKim
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tacker
Fix Released
High
Rico Lin

Bug Description

Removing Heat's policy.json file caused an error not finding the file '/etc/heat/policy.json' during Devstack Tacker installation.

 sed: can't read /etc/heat/policy.json: No such file or directory

This is because Heat no longer uses the policy.json file, so we need to make the following modifications:

1. we must delete the modify_heat_flavor_policy_rule call syntax in /opt/stack/tacker/devstack/plugin.sh

2. we need to remove the following syntax from /opt/stack/tacker/devstack/lib/tacker:
HEAT_CONF_DIR = / etc / heat
function modify_heat_flavor_policy_rule {
....
}

MinWookKim (delightwook)
description: updated
MinWookKim (delightwook)
description: updated
summary: - devstack installation error due to removal of the policy.json file for
- heat
+ Removing call syntax for Heat's policy.json file
MinWookKim (delightwook)
Changed in tacker:
assignee: nobody → MinWookKim (delightwook)
Changed in tacker:
assignee: MinWookKim (delightwook) → Rico Lin (rico-lin)
status: New → In Progress
Revision history for this message
yong sheng gong (gongysh) wrote :
Changed in tacker:
milestone: none → queens-3
importance: Undecided → High
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (master)

Reviewed: https://review.openstack.org/530312
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=b05c9931d234c4a2e07d8d80138a95049879b731
Submitter: Zuul
Branch: master

commit b05c9931d234c4a2e07d8d80138a95049879b731
Author: ricolin <email address hidden>
Date: Fri Dec 29 13:06:02 2017 +0800

    Touch heat policy file before use it

    Heat now move to policy in code. That means no default policy file
    exists. We should touch policy file before insert rules into it.
    Also change to use policy.yaml, since it's more preferred.
    Co-Authored-By: Rico Lin <email address hidden>
    Closes-Bug: #1740357

    Change-Id: I15aa04437965f0ad70f35fd26905c3d1c14df279

Changed in tacker:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 0.9.0

This issue was fixed in the openstack/tacker 0.9.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.