cloudfoundry / bosh

Cloud Foundry BOSH is an open source tool chain for release engineering, deployment and lifecycle management of large scale distributed services.
https://bosh.io
Apache License 2.0
2.04k stars 657 forks source link

centos: /var/vcap/bosh/bin not in root users $PATH; it is for ubuntu stemcell #522

Closed drnic closed 10 years ago

drnic commented 10 years ago

On the ubuntu stemcell, if you sudo su - to root you now have monit in the $PATH. On the centos stemcell this isn't the case.

cf-gitbot commented 10 years ago

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: http://www.pivotaltracker.com/story/show/65847874

bosh-ci-push-pull commented 10 years ago

@drnic Good catch. Thanks!

On Sat, Feb 15, 2014 at 8:30 AM, cf-gitbot notifications@github.com wrote:

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: http://www.pivotaltracker.com/story/show/65847874

Reply to this email directly or view it on GitHubhttps://github.com/cloudfoundry/bosh/issues/522#issuecomment-35160300 .

Greg Oehmen Cloud Foundry Product Manger - Bosh Pivotal, Inc.

mmb commented 10 years ago

In Ubuntu, runningsudo su - also sources the .bashrc. The same is not true on CentOS. It looks like we're only adding /var/vcap/bosh/bin to the PATH in .bashrc files, hence the discrepancy between Ubuntu and CentOS.

The recommended fix is to create a .bash_profile during stemcell create that sources .bashrc -- .bash_profile should always be sourced on login. See https://github.com/cloudfoundry/bosh/blob/master/stemcell_builder/stages/bosh_users/apply.sh

@drnic Do you plan on fixing this with a PR, or should we put this in the BOSH icebox for prioritization?

CF Community Pair (@dsabeti & @mmb)

drnic commented 10 years ago

No wasn't going to fix it; just noticed it when I quickly played with centos stemcell. I don't know much about centos; like the .bashrc loading you mentioned. 

If I regularly was using it I'd probably fix it.

Though I wish I would stop ssh'ing into VMs in the first place :)

Close the ticket if you like.

On Tue, Feb 18, 2014 at 4:10 PM, Matthew M. Boedicker notifications@github.com wrote:

In Ubuntu, runningsudo su - also sources the .bashrc. The same is not true on CentOS. It looks like we're only adding /var/vcap/bosh/bin to the PATH in .bashrc files, hence the discrepancy between Ubuntu and CentOS. @drnic Do you plan on fixing this with a PR, or should we put this in the BOSH icebox for prioritization?

CF Community Pair (@dsabeti & @mmb)

Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/bosh/issues/522#issuecomment-35451570

mmb commented 10 years ago

Ok, we'll be put this in the BOSH icebox and it will get done at some point. In the meantime, we'll close the ticket.

CF Community Pair (@dsabeti & @mmb)

drnic commented 10 years ago

Ok thx

On Tue, Feb 18, 2014 at 4:38 PM, Matthew M. Boedicker notifications@github.com wrote:

Ok, we'll be put this in the BOSH icebox and it will get done at some point. In the meantime, we'll close the ticket.

CF Community Pair (@dsabeti & @mmb)

Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/bosh/issues/522#issuecomment-35453506