Skip to content
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

Set CF_HOME to a temp dir to a avoid bug in autopilot #24

Merged
merged 2 commits into from
Nov 10, 2017
Merged

Set CF_HOME to a temp dir to a avoid bug in autopilot #24

merged 2 commits into from
Nov 10, 2017

Conversation

davewalter
Copy link
Member

Hi,

We recently colocated both the deploy-notifications and deploy-notifications-ui errands on the same instance, which surfaced a bug in autopilot where cf install-plugin autopilot -f attempts to uninstall and reinstall autopilot. However, autopilot has not yet been updated to support this without panicking (see contraband/autopilot#47).

As a short-term workaround, this PR changes the value of CF_HOME to a random directory so that the plugin is not already installed when the script runs. It also removes the directory at the end of the script so that running the errand repeatedly does not leave multiple copies of the directory lying around on the filesystem.

Let us know if you have any questions.
@davewalter and @michelleheh

- when the plugin is reinstalled, it panics because it does not
correctly handle the uninstall call from the CLI

Signed-off-by: Michelle He <mhe@pivotal.io>
- to avoid leaving multiple copies lying around when the errand is run
repeatedly on the same VM
@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

@cfdreddbot
Copy link

Hey davewalter!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

@wfernandes
Copy link
Contributor

Thanks for this PR @davewalter and @michelleheh!

@wfernandes wfernandes merged commit b56f412 into cloudfoundry:master Nov 10, 2017
Benjamintf1 pushed a commit that referenced this pull request Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants