Error: ConfigFilesNotFoundError: Failed to find some config files: policy.json

Bug #1477028 reported by Digambar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Critical
Digambar

Bug Description

When I pulled latest code & tried installing magnum I got "ConfigFilesNotFoundError".

Here is the logs -

digambar_patil@PTD22999:~/devstack$ magnum baymodel-create --name k8sbaymodel --image-id fedora-21-atomic-3 --keypair-id testkey --external-network-id ${NIC_ID} --dns-nameserver 8.8.8.8 --flavor-id m1.small --docker-volume-size 5 --coe kubernetes
ERROR: Internal Server Error (HTTP 500)

logs I found at magnum-api -

  File "/home/digambar_patil/magnum/magnum/common/policy.py", line 116, in handle
    enforce(pecan.request.context, action, None)
  File "/home/digambar_patil/magnum/magnum/common/policy.py", line 92, in enforce
    do_raise=do_raise, exc=exc, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oslo_policy/policy.py", line 483, in enforce
    self.load_rules()
  File "/usr/local/lib/python2.7/dist-packages/oslo_policy/policy.py", line 388, in load_rules
    self.policy_path = self._get_policy_path(self.policy_file)
  File "/usr/local/lib/python2.7/dist-packages/oslo_policy/policy.py", line 456, in _get_policy_path
    raise cfg.ConfigFilesNotFoundError((path,))
ConfigFilesNotFoundError: Failed to find some config files: policy.json
10.77.162.75 - - [22/Jul/2015 14:31:04] "POST /v1/baymodels HTTP/1.1" 500 59

Changed in magnum:
importance: Undecided → Critical
status: New → Confirmed
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/204511

Revision history for this message
Eli Qiao (taget-9) wrote :

if you fresh installed by devstack , that won't be happened.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/204511
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=1b29b52b6b7677e0490f018f61fb6986c00eed78
Submitter: Jenkins
Branch: master

commit 1b29b52b6b7677e0490f018f61fb6986c00eed78
Author: digambar <email address hidden>
Date: Wed Jul 22 14:51:35 2015 +0530

    Fix error related policy.json file

    Update manual-devstack guide by adding policy.json file.

    Change-Id: I2996237cdb586629f3536ff6c54c9de0e220a623
    Closes-Bug: #1477028

Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
status: Fix Committed → Fix Released
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.