Bug 1368588

Summary: [abrt] openstack-nova-common: __init__.py:925:_open:IOError: [Errno 13] Permission denied: '/var/log/nova/nova-manage.log'
Product: Red Hat OpenStack Reporter: Ken Dreyer (Red Hat) <kdreyer>
Component: openstack-novaAssignee: Diana Clarke <dclarke>
Status: CLOSED WONTFIX QA Contact: Prasanth Anbalagan <panbalag>
Severity: medium Docs Contact:
Priority: low    
Version: 9.0 (Mitaka)CC: berrange, bschmaus, dasmith, dclarke, eglynn, jschluet, kchamart, lyarwood, sbauza, sferdjao, sgordon, srevivo, vromanso
Target Milestone: asyncKeywords: Reopened, Triaged, ZStream
Target Release: 9.0 (Mitaka)   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:ca12725b99d5613e6637c487ba6a97cb23670423
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-27 10:59:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: dso_list
none
File: environ
none
File: machineid none

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.