How to solve a policy.json error

asked 2017-06-08 10:16:32 -0500

Hello, i have an error that i cant solve in the installation of devstack. I have search for the way of solve it here but i didnt find anything. Someone with the same problem?

+lib/nova:init_nova:696 recreate_database nova_cell0

+lib/database:recreate_database:112 local db=nova_cell0

+lib/database:recreate_database:113 recreate_database_mysql nova_cell0

+lib/databases/mysql:recreate_database_mysql:56 local db=nova_cell0

+lib/databases/mysql:recreate_database_mysql:57 mysql -uroot -pstackdb -h127.0.0.1 -e 'DROP DATABASE IF EXISTS nova_cell0;' mysql: [Warning] Using a password on the command line interface can be insecure.

+lib/databases/mysql:recreate_database_mysql:58 mysql -uroot -pstackdb -h127.0.0.1 -e 'CREATE DATABASE nova_cell0 CHARACTER SET utf8;' mysql: [Warning] Using a password on the command line interface can be insecure.

++lib/nova:init_nova:702 database_connection_url nova_cell0

++lib/database:database_connection_url:134 local db=nova_cell0

++lib/database:database_connection_url:135 database_connection_url_mysql nova_cell0

++lib/databases/mysql:database_connection_url_mysql:175 local db=nova_cell0

++lib/databases/mysql:database_connection_url_mysql:176 echo 'mysql+pymysql://root:stackdb@127.0.0.1/nova_cell0?charset=utf8'

+lib/nova:init_nova:702 nova-manage cell_v2 map_cell0 --database_connection 'mysql+pymysql://root:stackdb@127.0.0.1/nova_cell0?charset=utf8' DEBUG oslo_policy.policy [None req-d0ab32b4-4bd6-4e29-aeb4-f8ccbf1ca9f8 None None] The policy file policy.json could not be found.: ConfigFilesNotFoundError: Failed to find some config files: policy.json {{(pid=23579) load_rules /usr/local/lib/python2.7/dist-packages/oslo_policy/policy.py:532}} CellMapping(created_at=2017-06-08T15:05:03Z,database_connection='mysql+pymysql://root:stackdb@127.0.0.1/nova_cell0?charset=utf8',id=1,name='cell0',transport_url='none:///',updated_at=None,uuid=00000000-0000-0000-0000-000000000000)

+lib/nova:init_nova:1 exit_trap

+./stack.sh:exit_trap:492 local r=1

++./stack.sh:exit_trap:493 jobs -p

+./stack.sh:exit_trap:493 jobs=

+./stack.sh:exit_trap:496 [[ -n '' ]]

+./stack.sh:exit_trap:502 kill_spinner

+./stack.sh:kill_spinner:388 '[' '!' -z '' ']'

+./stack.sh:exit_trap:504 [[ 1 -ne 0 ]]

+./stack.sh:exit_trap:505 echo 'Error on exit' Error on exit

+./stack.sh:exit_trap:506 generate-subunit 1496933042 1261 fail

+./stack.sh:exit_trap:507 [[ -z /opt/stack/logs ]]

+./stack.sh:exit_trap:510 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs World dumping... see /opt/stack/logs/worlddump-2017-06-08-150504.txt for details

+./stack.sh:exit_trap:516 exit 1

edit retag flag offensive close merge delete