Bug #11126
closed
ncf-api-virtualenv does not have a group created
Added by Janos Mattyasovszky over 7 years ago.
Updated almost 5 years ago.
Severity:
Minor - inconvenience | misleading | easy workaround
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Very Small
Description
In the SPEC file you define the whole directory to be owned by the virualenv-user also for the group:
%attr(- , %{user_name},%{user_name}) /var/lib/%{user_name}/
at: https://github.com/Normation/rudder-packages/blob/4.1.5/ncf-api-virtualenv/SPECS/ncf-api-virtualenv.spec#L297
However, the group never gets created, so rpm defaults for the group permissions to root:
Installing: rudder-techniques-1398866025:4.1.5.release-1.SLES.11 [.........done]
Installing: ncf-api-virtualenv-1398866025:4.1.5.release-1.SLES.11 [........done]
Additional rpm output:
warning: group ncf-api-venv does not exist - using root
INFO: Restarting Apache HTTPd... Done
- Severity set to Minor - inconvenience | misleading | easy workaround
- User visibility set to Operational - other Techniques | Technique editor | Rudder settings
- Priority changed from 0 to 32
- Effort required set to Small
- Priority changed from 32 to 36
- Effort required changed from Small to Very Small
- Priority changed from 36 to 49
- Priority changed from 49 to 58
- Assignee set to Benoît PECCATTE
- User visibility changed from Operational - other Techniques | Technique editor | Rudder settings to Getting started - demo | first install | Technique editor and level 1 Techniques
- Priority changed from 58 to 66
- Target version set to 4.1.22
- Status changed from New to In progress
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder-packages/pull/1891
- Assignee changed from Alexis Mousset to Benoît PECCATTE
- Status changed from Pending technical review to Pending release
- Status changed from Pending release to New
reverting this ticket, as it breaks SELinux configuration
INFO: Applying ncf-api-virtualenv selinux policy...restorecon: lstat(/var/lib/ncf-api-venv) failed: No such file or directory
and prevent technique editor from running
- Target version changed from 4.1.22 to 4.1.23
- Target version changed from 4.1.23 to 4.1.24
- Target version changed from 4.1.24 to 588
- Status changed from New to Pending release
This has been fixed in 5.0
- Status changed from Pending release to New
- Related to Bug #14860: Technique editor cannot save technique because of parent ticket added
- Status changed from New to Rejected
- Target version changed from 588 to 4.1.24
Also available in: Atom
PDF