码迷,mamicode.com
首页 > 其他好文 > 详细

permission denied: '/var/log/nova/nova-manage.log'

时间:2014-08-03 07:57:25      阅读:300      评论:0      收藏:0      [点我收藏+]

标签:openstack nova

nova db create notice:

xxxxxxx su -s /bin/sh -c "nova-manage db_sync" nova  xxxxxx
correct one:
su -s /bin/sh -c "nova-manage db sync" nova

[root@node1 /]# 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‘
[root@node1 /]# cat /var/log/nova/nova-manage.log
2014-08-02 20:07:08.540 23121 CRITICAL nova [-] NovaException: version should be an integer

[root@node1 /]# chmod 777 /var/log/nova/nova-manage.log
[root@node1 /]# su -s /bin/sh -c "nova-manage db sync" nova
[root@node1 /]#



本文出自 “gray13” 博客,请务必保留此出处http://gray13.blog.51cto.com/1001206/1534270

permission denied: '/var/log/nova/nova-manage.log',布布扣,bubuko.com

permission denied: '/var/log/nova/nova-manage.log'

标签:openstack nova

原文地址:http://gray13.blog.51cto.com/1001206/1534270

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!