Bug 1368588 - [abrt] openstack-nova-common: __init__.py:925:_open:IOError: [Errno 13] Permission denied: '/var/log/nova/nova-manage.log'
Summary: [abrt] openstack-nova-common: __init__.py:925:_open:IOError: [Errno 13] Permi...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 9.0 (Mitaka)
Hardware: x86_64
OS: Unspecified
low
medium
Target Milestone: async
: 9.0 (Mitaka)
Assignee: Diana Clarke
QA Contact: Prasanth Anbalagan
URL:
Whiteboard: abrt_hash:ca12725b99d5613e6637c487ba6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-19 20:52 UTC by Ken Dreyer (Red Hat)
Modified: 2019-09-09 13:14 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-27 10:59:35 UTC
Target Upstream Version:


Attachments (Terms of Use)
File: backtrace (1.11 KB, text/plain)
2016-08-19 20:52 UTC, Ken Dreyer (Red Hat)
no flags Details
File: dso_list (106 bytes, text/plain)
2016-08-19 20:52 UTC, Ken Dreyer (Red Hat)
no flags Details
File: environ (235 bytes, text/plain)
2016-08-19 20:53 UTC, Ken Dreyer (Red Hat)
no flags Details
File: machineid (135 bytes, text/plain)
2016-08-19 20:53 UTC, Ken Dreyer (Red Hat)
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1428572 0 medium CLOSED Nova Cannot write to /var/log/nova/nova-manage.log on Undercloud 2022-08-09 14:22:16 UTC

Internal Links: 1428572

Description Ken Dreyer (Red Hat) 2016-08-19 20:52:51 UTC
Version-Release number of selected component:
openstack-nova-common-13.1.0-6.el7ost

Additional info:
reporter:       libreport-2.1.11
cmdline:        /usr/bin/python2 /bin/nova-manage db archive_deleted_rows --max_rows 100
executable:     /bin/nova-manage
kernel:         3.10.0-327.28.3.el7.x86_64
runlevel:       N 3
type:           Python
uid:            162

Truncated backtrace:
__init__.py:925:_open:IOError: [Errno 13] Permission denied: '/var/log/nova/nova-manage.log'

Traceback (most recent call last):
  File "/bin/nova-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/nova/cmd/manage.py", line 1517, in main
    logging.setup(CONF, "nova")
  File "/usr/lib/python2.7/site-packages/oslo_log/log.py", line 243, in setup
    _setup_logging_from_conf(conf, product_name, version)
  File "/usr/lib/python2.7/site-packages/oslo_log/log.py", line 319, in _setup_logging_from_conf
    filelog = file_handler(logpath)
  File "/usr/lib64/python2.7/logging/handlers.py", line 392, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.7/logging/__init__.py", line 902, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 925, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/log/nova/nova-manage.log'

Local variables in innermost frame:
self: <logging.handlers.WatchedFileHandler object at 0x5b0e5d0>

Comment 1 Ken Dreyer (Red Hat) 2016-08-19 20:52:58 UTC
Created attachment 1192295 [details]
File: backtrace

Comment 2 Ken Dreyer (Red Hat) 2016-08-19 20:52:59 UTC
Created attachment 1192296 [details]
File: dso_list

Comment 3 Ken Dreyer (Red Hat) 2016-08-19 20:53:00 UTC
Created attachment 1192297 [details]
File: environ

Comment 4 Ken Dreyer (Red Hat) 2016-08-19 20:53:02 UTC
Created attachment 1192298 [details]
File: machineid

Comment 5 Ken Dreyer (Red Hat) 2016-08-19 20:53:14 UTC
Created attachment 1192299 [details]
File: sosreport.tar.xz

Comment 8 Diana Clarke 2016-08-29 19:43:42 UTC
This bug looks similar to the following bug, so I have closed it as a duplicate. Do let me know if you think I've triaged this incorrectly.

  PackStack installs Nova crontab that nova user can't run
  https://bugzilla.redhat.com/show_bug.cgi?id=1289761

*** This bug has been marked as a duplicate of bug 1289761 ***

Comment 9 Jon Schlueter 2017-03-02 21:16:53 UTC
bug 1289761 is likely the same issue but that bug is reported against RDO, this one is reported against OSP

Comment 10 Diana Clarke 2017-03-03 17:18:24 UTC
My apologies for prematurely closing this bug. As penance, I'll watch Mike Burns' "Production Chain for Everyone" video this weekend.

And also see about backporting fixes for OSP.


Note You need to log in before you can comment on or make changes to this bug.