nova-network fails due to absence of policy.json

Bug #923817 reported by Alvaro Lopez
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Fix Released
Adam Gandelman

Bug Description

Hi there,

I am separating nova-network to another host, but whenever i try to spawn an instance, I get the following exception:

(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE: File "/usr/lib/python2.7/dist-packages/nova/rpc/", line 244, in _process_data
(nova.rpc): TRACE: rval = node_func(context=ctxt, **node_args)
(nova.rpc): TRACE: File "/usr/lib/python2.7/dist-packages/nova/network/", line 199, in wrapped
(nova.rpc): TRACE: check_policy(context, action)
(nova.rpc): TRACE: File "/usr/lib/python2.7/dist-packages/nova/network/", line 211, in check_policy
(nova.rpc): TRACE: nova.policy.enforce(context, _action, target)
(nova.rpc): TRACE: File "/usr/lib/python2.7/dist-packages/nova/", line 74, in enforce
(nova.rpc): TRACE: init()
(nova.rpc): TRACE: File "/usr/lib/python2.7/dist-packages/nova/", line 47, in init
(nova.rpc): TRACE: _POLICY_PATH = utils.find_config(FLAGS.policy_file)
(nova.rpc): TRACE: File "/usr/lib/python2.7/dist-packages/nova/", line 100, in find_config
(nova.rpc): TRACE: raise exception.ConfigNotFound(path=os.path.abspath(config_path))
(nova.rpc): TRACE: ConfigNotFound: Could not find config at /run/policy.json

This is due to the absence of the policy.json file in /etc/nova/ . This file is included in nova-api package but not in nova-network. Coping the file to the nova configuration directory solves the problem. I am using the Essex-3 packages of nova.

Thierry Carrez (ttx)
affects: nova → nova (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nova (Ubuntu):
status: New → Confirmed
Changed in nova (Ubuntu):
assignee: nobody → Adam Gandelman (gandelman-a)
status: Confirmed → In Progress
Changed in nova (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nova - 2012.1~e4~20120203.12454-0ubuntu1

nova (2012.1~e4~20120203.12454-0ubuntu1) precise; urgency=low

  [ Adam Gandelman ]
  [Chuck Short]
  * New upstream version.
  * debian/control: Replace m2crpto with python-crypto.
    (LP: #917851)
  * debian/*, debian/nova-common.postinst,
    debian/nova_sudoers: Change default shell to /bin/false.
    (LP: #890362)

  [Adam Gandleman]
  * debian/nova-common.{install, postinst}: Install policy.json on all
    Nova nodes (LP: #923817)
  * debian/rules: Remove installation of policy.json (moved to nova-common),
    point to the correct upstream git repository.
 -- Chuck Short <email address hidden> Fri, 03 Feb 2012 09:03:12 -0500

Changed in nova (Ubuntu):
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.