<div>The error info is :</div><div><div>CRITICAL nova [None req-a84d278b-43db-4c94-864b-7a9733aa772c None None] Unhandled error: IOError: [Errno 13] Permission denied: '/etc/nova/policy.json'</div><div>ERROR nova Traceback (most recent call last):</div><div>ERROR nova   File "/usr/bin/nova-compute", line 10, in <module></div><div>ERROR nova     sys.exit(main())</div><div>ERROR nova   File "/opt/stack/nova/nova/cmd/compute.py", line 57, in main</div><div>ERROR nova     topic=compute_rpcapi.RPC_TOPIC)</div><div>ERROR nova   File "/opt/stack/nova/nova/service.py", line 240, in create</div><div>ERROR nova     periodic_interval_max=periodic_interval_max)</div><div>ERROR nova   File "/opt/stack/nova/nova/service.py", line 116, in __init__</div><div>ERROR nova     self.manager = manager_class(host=self.host, *args, **kwargs)</div><div>ERROR nova   File "/opt/stack/nova/nova/compute/manager.py", line 509, in __init__</div><div>ERROR nova     self.compute_api = compute.API()</div><div>ERROR nova   File "/opt/stack/nova/nova/compute/__init__.py", line 39, in API</div><div>ERROR nova     return importutils.import_object(class_name, *args, **kwargs)</div><div>ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 44, in import_object</div><div>ERROR nova     return import_class(import_str)(*args, **kwargs)</div><div>ERROR nova   File "/opt/stack/nova/nova/compute/api.py", line 254, in __init__</div><div>ERROR nova     self.compute_rpcapi = compute_rpcapi.ComputeAPI()</div><div>ERROR nova   File "/opt/stack/nova/nova/compute/rpcapi.py", line 354, in __init__</div><div>ERROR nova     self.router = rpc.ClientRouter(default_client)</div><div>ERROR nova   File "/opt/stack/nova/nova/rpc.py", line 414, in __init__</div><div>ERROR nova     self.run_periodic_tasks(nova.context.RequestContext(overwrite=False))</div><div>ERROR nova   File "/opt/stack/nova/nova/context.py", line 146, in __init__</div><div>ERROR nova     self.is_admin = policy.check_is_admin(self)</div><div>ERROR nova   File "/opt/stack/nova/nova/policy.py", line 177, in check_is_admin</div><div>ERROR nova     init()</div><div>ERROR nova   File "/opt/stack/nova/nova/policy.py", line 75, in init</div><div>ERROR nova     _ENFORCER.load_rules()</div><div>ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_policy/policy.py", line 537, in load_rules</div><div>ERROR nova     overwrite=self.overwrite)</div><div>ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_policy/policy.py", line 675, in _load_policy_file</div><div>ERROR nova     self._file_cache, path, force_reload=force_reload)</div><div>ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_policy/_cache_handler.py", line 41, in read_cached_file</div><div>ERROR nova     with open(filename) as fap:</div><div>ERROR nova IOError: [Errno 13] Permission denied: '/etc/nova/policy.json'</div></div><div><includetail><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "李杰"<lijie@unitedstack.com>;</div><div><b>Date: </b> Thu, Mar 29, 2018 05:24 PM</div><div><b>To: </b> "openstack-operators"<openstack-operators@lists.openstack.org>; <wbr></div><div></div><div><b>Subject: </b> [Openstack-operators] [nova] about use spice console</div></div><div> </div><div style="position:relative;"><div><div>Hi,all</div><div>           Now I want to use spice console replace novnc in instance.But the openstack documentation is a bit sparse on what configuration parameters to enable for SPICE console access. But my result is the nova-compute service and nova-consoleauth service failed,and the log tell me the "IOError: [Errno 13] Permission denied: /etc/nova/policy.json".So can you help me achieve this?Thank you very much.</div><div>           ENV is Pike or Queens release devstack.</div><div>           This is the step:</div><div>           1.<b>on controller:</b></div><div>              yum install -y spice-server spice-protocol openstack-nova-spicehtml5proxy spice-html5</div><div>              <b><i>change the nova.conf</i></b></div><div>              [default]</div><div>              vnc_enabled=false</div><div>              [spice]</div><div>              html5proxy_host=controller_ip</div><div>              html5proxy_port=6082</div><div>              keymap=en-us</div><div>              <i>stop the novnc service</i> </div><div>              <i>start the s<font face="Consolas, Bitstream Vera Sans Mono, Courier New, Courier, monospace"><span style="white-space: nowrap;">picehtml5proxy.service</span></font></i></div><div><font face="Consolas, Bitstream Vera Sans Mono, Courier New, Courier, monospace"><span style="white-space: nowrap;">         </span></font><span style="  ; ; ; ; ; ">systemctl start openstack-nova-spicehtml5proxy.service</span></div><div><span style="  ; ; ; ; ; ">        2.<b>on conmpute:</b></span></div><div><span style="  ; ; ; ; ; ">          </span><span style="  ; ; ; ; ; ">yum install -y spice-server spice-protocol spice-html5</span></div><div><span style="  ; ; ; ; ; ">          <i>change the nova-cpu.conf</i></span></div><div><span style="  ; ; ; ; ; ">          </span><code class="java plain" style=" white-space: nowrap; background: none !important; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">[</code><code class="java keyword" style=" white-space: nowrap; background: none !important; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">default</code><code class="java plain" style=" white-space: nowrap; background: none !important; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">]</code></div><div class="line number2 index1 alt1" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; "><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">          vnc_enabled=</code><code class="java keyword" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">false</code></div><div class="line number3 index2 alt2" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; "><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">          [spice]</code></div><div class="line number4 index3 alt1" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; "><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">          agent_enabled = True</code></div><div class="line number5 index4 alt2" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; "><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">          enabled = True</code></div><div class="line number6 index5 alt1" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; "><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">          html5proxy_base_url = http:</code><code class="java comments" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">//controller_ip:6082/spice_auto.html</code></div><div class="line number7 index6 alt2" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; "><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">          html5proxy_host = </code><code class="java value" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">0.0</code><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">.</code><code class="java value" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">0.0</code></div><div class="line number8 index7 alt1" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; "><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">          html5proxy_port = </code><code class="java value" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">6082</code></div><div class="line number9 index8 alt2" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; "><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">          keymap = en-us</code></div><div class="line number10 index9 alt1" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; "><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">          server_listen = </code><code class="java value" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">127.0</code><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">.</code><code class="java value" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">0.1</code></div><div class="line number11 index10 alt2" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; "><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">          server_proxyclient_address = </code><code class="java value" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">127.0</code><code class="java plain" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">.</code><code class="java value" style="  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">0.1</code></div><div>               <i> restart the compute service</i></div><div><i><br></i></div><div>                </div><div><br></div><div>Best Regards</div><div>Rambo</div></div><div><tincludetail></tincludetail></div></div></div><!--<![endif]--></includetail></div>