Bug 1327068

Summary: trove guest agent should create a sudoers entry
Product: [Community] RDO Reporter: Attila Fazekas <afazekas>
Component: openstack-troveAssignee: Victoria Martinez de la Cruz <vimartin>
Status: CLOSED WONTFIX QA Contact: Luigi Toscano <ltoscano>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: trunkCC: afazekas, chris.brown, ltoscano
Target Milestone: ---Keywords: Reopened
Target Release: trunk   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-28 13:38:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Attila Fazekas 2016-04-14 08:27:11 UTC
Description of problem:

trove guest agent needs to be able to run commands as root,
it uses sudo for root access.

All other openstack component creates a sudoers entry for himself, but the trove-guest-agent does not.


Example solution:
/etc/sudoers.d/trove_guest:
Defaults:trove !requiretty

trove ALL=(ALL) NOPASSWD:ALL


The file could be named as just 'trove' as well.

This file should be installed with the openstack-trove-guestagent package, but it must not be part of a more generic package like openstack-trove-common or openstack-trove .

Version-Release number of selected component (if applicable):
openstack-trove-guestagent-5.0.0-1.el7.noarch

Comment 1 Chandan Kumar 2016-05-19 15:53:08 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.

Comment 2 Luigi Toscano 2016-05-24 09:05:35 UTC
The target was definitely incorrect.

Comment 3 Christopher Brown 2017-06-18 07:23:15 UTC
Hi,

Can you let me know if this is still an issue, should be a fairly simple fix if it is?

Thanks

Comment 4 Attila Fazekas 2017-08-23 08:12:40 UTC
Hi,

I do not really work with trove nowadays it did not give me what I was looking for.

If the issue not solved on package level you can solve/workaround it at image build time if your build script does not have something for this issue already.

I can't remember which github repo  had the image build script compatible with this package, maybe someone else does ..

Comment 5 Luigi Toscano 2017-08-23 09:34:24 UTC
I don't work with trove anymore too. We did not package any image building thing in RDO for Trove, so this can be fixed in the packaging, if anyone is willing to.