[Openstack-operators] [nova] about use spice console

李杰 lijie at unitedstack.com
Fri Mar 30 02:17:46 UTC 2018


The error info is :
CRITICAL nova [None req-a84d278b-43db-4c94-864b-7a9733aa772c None None] Unhandled error: IOError: [Errno 13] Permission denied: '/etc/nova/policy.json'
ERROR nova Traceback (most recent call last):
ERROR nova   File "/usr/bin/nova-compute", line 10, in <module>
ERROR nova     sys.exit(main())
ERROR nova   File "/opt/stack/nova/nova/cmd/compute.py", line 57, in main
ERROR nova     topic=compute_rpcapi.RPC_TOPIC)
ERROR nova   File "/opt/stack/nova/nova/service.py", line 240, in create
ERROR nova     periodic_interval_max=periodic_interval_max)
ERROR nova   File "/opt/stack/nova/nova/service.py", line 116, in __init__
ERROR nova     self.manager = manager_class(host=self.host, *args, **kwargs)
ERROR nova   File "/opt/stack/nova/nova/compute/manager.py", line 509, in __init__
ERROR nova     self.compute_api = compute.API()
ERROR nova   File "/opt/stack/nova/nova/compute/__init__.py", line 39, in API
ERROR nova     return importutils.import_object(class_name, *args, **kwargs)
ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 44, in import_object
ERROR nova     return import_class(import_str)(*args, **kwargs)
ERROR nova   File "/opt/stack/nova/nova/compute/api.py", line 254, in __init__
ERROR nova     self.compute_rpcapi = compute_rpcapi.ComputeAPI()
ERROR nova   File "/opt/stack/nova/nova/compute/rpcapi.py", line 354, in __init__
ERROR nova     self.router = rpc.ClientRouter(default_client)
ERROR nova   File "/opt/stack/nova/nova/rpc.py", line 414, in __init__
ERROR nova     self.run_periodic_tasks(nova.context.RequestContext(overwrite=False))
ERROR nova   File "/opt/stack/nova/nova/context.py", line 146, in __init__
ERROR nova     self.is_admin = policy.check_is_admin(self)
ERROR nova   File "/opt/stack/nova/nova/policy.py", line 177, in check_is_admin
ERROR nova     init()
ERROR nova   File "/opt/stack/nova/nova/policy.py", line 75, in init
ERROR nova     _ENFORCER.load_rules()
ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_policy/policy.py", line 537, in load_rules
ERROR nova     overwrite=self.overwrite)
ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_policy/policy.py", line 675, in _load_policy_file
ERROR nova     self._file_cache, path, force_reload=force_reload)
ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_policy/_cache_handler.py", line 41, in read_cached_file
ERROR nova     with open(filename) as fap:
ERROR nova IOError: [Errno 13] Permission denied: '/etc/nova/policy.json'

 
 
------------------ Original ------------------
From:  "李杰"<lijie at unitedstack.com>;
Date:  Thu, Mar 29, 2018 05:24 PM
To:  "openstack-operators"<openstack-operators at lists.openstack.org>; 

Subject:  [Openstack-operators] [nova] about use spice console

 
Hi,all
           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.
           ENV is Pike or Queens release devstack.
           This is the step:
           1.on controller:
              yum install -y spice-server spice-protocol openstack-nova-spicehtml5proxy spice-html5
              change the nova.conf
              [default]
              vnc_enabled=false
              [spice]
              html5proxy_host=controller_ip
              html5proxy_port=6082
              keymap=en-us
              stop the novnc service 
              start the spicehtml5proxy.service
         systemctl start openstack-nova-spicehtml5proxy.service
        2.on conmpute:
          yum install -y spice-server spice-protocol spice-html5
          change the nova-cpu.conf
          [default]
          vnc_enabled=false
          [spice]
          agent_enabled = True
          enabled = True
          html5proxy_base_url = http://controller_ip:6082/spice_auto.html
          html5proxy_host = 0.0.0.0
          html5proxy_port = 6082
          keymap = en-us
          server_listen = 127.0.0.1
          server_proxyclient_address = 127.0.0.1
                restart the compute service


                


Best Regards
Rambo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20180330/26309149/attachment.html>


More information about the OpenStack-operators mailing list