/opt/stack/devstack/tools/outfilter.py failing in neutron functional jobs since 8/2

Bug #1838811 reported by Matt Riedemann
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Critical
Dr. Jens Harbott

Bug Description

Seen here:

https://logs.opendev.org/86/673486/4/gate/neutron-functional-python27/c3fe4df/ara-report/result/28d8d223-313a-49ba-b8aa-8af15fdda973/

++ ./stack.sh:main:500 : /opt/stack/devstack/tools/outfilter.py -v --no-timestamp -o /opt/stack/logs/devstacklog.txt.2019-08-02-160322
Traceback (most recent call last):
  File "/opt/stack/devstack/tools/outfilter.py", line 104, in <module>
    sys.exit(main())
  File "/opt/stack/devstack/tools/outfilter.py", line 61, in main
    outfile = open(opts.outfile, 'ab', 0)
IOError: [Errno 13] Permission denied: '/opt/stack/logs/devstacklog.txt.2019-08-02-160322'

Looks like it's a result of:

https://review.opendev.org/#/c/203698/

Based on logstash data of that failure:

http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22IOError%3A%20%5BErrno%2013%5D%20Permission%20denied%3A%20'%2Fopt%2Fstack%2Flogs%2Fdevstacklog.txt%5C%22%20AND%20tags%3A%5C%22console%5C%22&from=7d

Tags: gate-failure
Matt Riedemann (mriedem)
Changed in neutron:
status: New → Confirmed
Changed in devstack:
status: New → Confirmed
Revision history for this message
Slawek Kaplonski (slaweq) wrote :
tags: added: gate-failure
Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.opendev.org/674426

Changed in neutron:
assignee: nobody → Dr. Jens Harbott (j-harbott)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/674426
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=86feb7916b6a69a7d4076cb3fc59e392ab1b73c1
Submitter: Zuul
Branch: master

commit 86feb7916b6a69a7d4076cb3fc59e392ab1b73c1
Author: Jens Harbott <email address hidden>
Date: Fri Aug 2 21:21:52 2019 +0000

    Fix log directory permissions for functional job

    After [0] devstack no longer changes the ownership of the whole
    /opt/stack tree to the stack user unconditionally. So we need to create
    /opt/stack/logs with the correct owner directly.

    [0] https://review.opendev.org/203698

    Change-Id: I4597c83bfce6267ef93bb8f7b0de62fa3ac94db4
    Closes-Bug: 1838811

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :

It was owner issue on neutron job. Thanks Jens. - https://review.opendev.org/203698

Anything we need to fix on devstack side ? I think we are good here.

Matt Riedemann (mriedem)
no longer affects: devstack
Changed in neutron:
importance: Undecided → Critical
tags: added: neutron-proactive-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 15.0.0.0b1

This issue was fixed in the openstack/neutron 15.0.0.0b1 development milestone.

tags: removed: neutron-proactive-backport-potential
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.