nova db create notice:xxxxxxx su -s /bin/sh -c "nova-manage db_sync" nova xxxxxxcorrect one:su -s /bin/sh -c "nova-manage db sync" nova
[[Email protected]/] # Su-S/bin/sh-c "NOVA-manage dB sync" Nova
Traceback (most recent call last ):
File "/usr/bin/NOVA-manage", line 10, in <module>
SYS. Exit (main ())
File "/usr/lib/python2.6/Site-packages/NOVA/CMD/manage. py", line 1322, in Main
Logging. Setup ("NOVA ")
File "/usr/lib/python2.6/Site-packages/NOVA/openstack/common/log. py", line 438, in setup
_ Setup_logging_from_conf ()
File "/usr/lib/python2.6/Site-packages/NOVA/openstack/common/log. py", line 502, in _ setup_logging_from_conf
Filelog = logging. Handlers. watchedfilehandler (logpath)
File "/usr/lib64/python2.6/logging/handlers. py", line 377, in _ init __
Logging. filehandler. _ init _ (self, filename, mode, encoding, delay)
File "/usr/lib64/python2.6/logging/_ init _. py", line 827, in _ init __
Streamhandler. _ init _ (self, self. _ open ())
File "/usr/lib64/python2.6/logging/_ init _. py", line 846, in _ open
Stream = open (self. basefilename, self. Mode)
Ioerror: [errno 13] Permission denied: '/var/log/NOVA/nova-manage.log'
[[Email protected]/] # Cat/var/log/NOVA/nova-manage.log
20:07:08. 540 23121 critical Nova [-] novaexception: Version shocould be an integer
[[Email protected]/] #Chmod 777/var/log/NOVA/nova-manage.log
[[Email protected]/] # Su-S/bin/sh-c "NOVA-manage dB sync" Nova
[[Email protected]/] #
This article is from the "gray13" blog, please be sure to keep this source http://gray13.blog.51cto.com/1001206/1534270