-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove "su -c" from upstart scripts #11523
Conversation
Test FAILed. |
Remove "su -c" from upstart scripts
@joehealy @dlanderson @basepi so... this both fixes and breaks http proxy support. By that, I mean this:
As discussed in IRC with @basepi and @gravyboat, I think we need to add the following . /etc/environment
export http_proxy=$http_proxy
export https_proxy=$https_proxy
export no_proxy=$no_proxy Make sense to everyone? |
Do I do this for 2014.1.4 or wait for helium? On Fri, May 9, 2014 at 8:17 AM, Matthew Williams
|
In IRC we discussed cherry-picking this PR as well as adding the /etc/default file. I think this is best, since Trusty LTS was released and it's broken by default now. |
I have a couple of concerns with this approach:
This will lead to the package upgrade merge config file situation if people
Include . /etc/environment in the upstart file Check for and if it exists, include /etc/default/salt-minion in the upstart Not provide a /etc/default/salt-minion file in the package What are your thoughts? Joe On Fri, May 9, 2014 at 9:20 AM, Joe Healy joehealy@gmail.com wrote:
|
Part of the reasoning behind not providing a /etc/default/minion file is Joe On Fri, May 9, 2014 at 9:26 AM, Joe Healy joehealy@gmail.com wrote:
|
I agree with the concern about the /etc/default file. If we embed it in the upstart script, I believe the exports are also necessary, unfortunately. I could not get simply |
I don't have access to my testing VMs today - I'll compare the various Joe On Fri, May 9, 2014 at 9:31 AM, Matthew Williams
|
For the record, this commit is not in any salt release. After talking to @mgwilliams in IRC, I marked it to cherry-pick in the future, but I'll wait pending the decisions from this thread. |
I was sure I had fixed this, though it looks like I have only half done so. I will update the packages today. Joe On Thu, May 29, 2014 at 8:10 AM, Forrest notifications@github.com wrote:
|
@joehealy One of my coworkers actually installed 2014.1.4-2 for precise today and received this on a file diff for /etc/default/salt-minion:
So it seems to me as though part of it was updated at least. |
Had done it for master and syndic, but not the important one... On Thu, May 29, 2014 at 9:07 AM, Joe Healy joehealy@gmail.com wrote:
|
Yeah - that was the bit I got - I missed the removing su -c from the Looking now, I think it may have been an issue with me getting the hang of On Thu, May 29, 2014 at 9:11 AM, Forrest notifications@github.com wrote:
|
Fixed in the following package versions:
lucid and precise still building right now. Thanks for your patience. Joe |
@joehealy thanks! |
I got bit pretty bad by this pull request today. In our lab we must use proxies to access the internet. However, our freshly salted workers (using Because of this the
It would be nice to document this issue, not unlike #9491, to prevent other people from being bitten by this bug. To be quite honest, I don't understand why we just don't ship the References: |
@petarmaric I'll preface this with the statement "I know very little about upstart" Can you clarify what you think the solution is? Is there a workaround that worked for you? Do we need to add the su -c back in? Is it just a documentation issue? |
@basepi basically we need to add |
Can one of you create a new issue for this fix? Don't want to lose it in the shuffle. |
I think @gravyboat's proposed solution is spot on, creating a new issue now. |
Created the issue #13786 |
Not sure a new issue is needed for that one - happy to use it if needed. I Joe On Fri, Jun 27, 2014 at 1:50 PM, petarmaric notifications@github.com
|
@joehealy I think this was turning into a discussion regarding the /etc/default/salt-minion file. Is that what you're referencing? Or the su -c option? |
@petarmaric, saw that. Thanks. Re @forrest - yeah - meant to commit the file, but obviously didn't add it. Joe On Fri, Jun 27, 2014 at 2:13 PM, petarmaric notifications@github.com
|
Starting salt via su should be avoided. The original reason to exec via su was to read in /etc/environment - if this is needed then it should be done by adding ". /etc/environment" to the appropriate defaults file (/etc/default/salt-{minion,master,syndic}.