package reporter log and lock created with wrong ownership when using repository profiles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
High
|
Alberto Donato |
Bug Description
If you accept into landscape a computer with a tag, and that tag is associated with a repository profile, the following happens:
- two activities are queued: pending computer and apply repository profile
- on the client, the package reporter runs as root and creates the following two files with root ownership:
/var/log/
/var/lib/
/var/lib/
- subsequent runs of the package reporter fail:
==> monitor.log <==
2011-06-30 14:01:19,040 WARNING [MainThread] Package reporter output:
Traceback (most recent call last):
File "/usr/bin/
main(
File "/usr/lib/
return run_task_
File "/usr/lib/
lock_
File "/usr/lib/
fd = os.open(path, os.O_CREAT)
OSError: [Errno 13] Permission denied: '/var/lib/
As a result, no package is ever reported back to landscape.
If I accept the computer without the tag that triggers the repository profile activity, the package reporter files are created with "landscape" as their owner and everything works.
client version 11.06~bzr338-
Related branches
- Free Ekanayaka (community): Approve
- Alberto Donato (community): Abstain
- Thomas Herve (community): Approve
- Diff: 0 lines
tags: | added: squad-gamma |
description: | updated |
tags: |
added: story-apt-sources removed: theme-apt-sources |
Changed in landscape-client: | |
milestone: | backlog → 11.07.1 |
Changed in landscape-client: | |
status: | New → In Progress |
assignee: | nobody → Alberto Donato (ack) |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
tags: | added: verified |
tags: |
added: verification-done removed: verification-needed |
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |
I'm marking this as "high" because there is no way for the client to fix itself once it gets into this situation.