Sou um novo membro do Openstack e claro que tenho alguns problemas.
Eu tentei instalar o newton openstack no meu laptop usando o Ubuntu 16.04.
- Intel i7
- 16 GB de RAM
- disco rígido de 1 TB
Eu segui os passos de este tutorial , propriamente penso (todos os serviços estão em funcionamento).
Quando tentei verificar a operação usando http://controller/horizon
ou http: // localhost / horizon ou http://my_IP/horizon
, recebo o mesmo erro
500 Internal Server Error
Fiz algumas alterações como chmod
de secret_key
a 777
(não sei como reverter isso) e finalmente resolvi desinstalá-lo e instalar novamente mas não tive sucesso porque recebi o erro abaixo durante a instalação.
root@Controller:~# apt install openstack-dashboard
Reading package lists... Done
Building dependency tree
Reading state information... Done
openstack-dashboard is already the newest version (3:11.0.2-0ubuntu1~cloud0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up openstack-dashboard (3:11.0.2-0ubuntu1~cloud0) ... Collecting and compressing static assets...
Traceback (most recent call last):
File "manage.py", line 25, in <module> execute_from_command_line(sys.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 303, in execute settings.INSTALLED_APPS
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in __getattr__ self._setup(name)
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 44, in _setup self._wrapped = Settings(settings_module)
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name)
File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 335, in <module> from local.local_settings import * # noqa
File "/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py", line 125, in <module> SECRET_KEY = secret_key.generate_or_read_from_file('/var/lib/openstack-dashboard/secret_key')
File "/usr/share/openstack-dashboard/horizon/utils/secret_key.py", line 70, in generate_or_read_from_file key = read_from_file(key_file)
File "/usr/share/openstack-dashboard/horizon/utils/secret_key.py", line 51, in read_from_file os.path.abspath(key_file)) horizon.utils.secret_key.FilePermissionError: Insecure permissions on key file /var/lib/openstack-dashboard/secret_key, should be 0600.
dpkg: error processing package openstack-dashboard (--configure): subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing: openstack-dashboard
E: Sub-process /usr/bin/dpkg returned an error code (1)
Existe alguma solução ou solução alternativa para corrigir isso?