Bug 228415 - sysutils/py-google-compute-engine: Fix gsutil not found when it is installed, unable to execute startup script
Summary: sysutils/py-google-compute-engine: Fix gsutil not found when it is installed,...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Steve Wills
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2018-05-22 03:35 UTC by Helen Koike
Modified: 2018-05-22 14:00 UTC (History)
3 users (show)

See Also:
helen.koike: merge-quarterly?


Attachments
Patch that fix py-google-compute-engine startup script generated using diff -u -r -N olddir newdir (478 bytes, patch)
2018-05-22 03:35 UTC, Helen Koike
helen.koike: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helen Koike 2018-05-22 03:35:14 UTC
Created attachment 193600 [details]
Patch that fix py-google-compute-engine startup script generated using diff -u -r -N olddir newdir

Please apply the attached patch that fixes the bug described below.

Bug description:
----------------
When setting the startup script to google cloud bucket, startup script is not being executed.

In the logs we can see the message:

    freebsd startup-script: WARNING gsutil is not installed, cannot download items from Google Storage.

But gsutil is installed.

This happens because rc.d scripts have the PATH set to "/sbin:/bin:/usr/sbin:/usr/bin" while gsutil is located at /usr/local/bin/gsutil.

Solution:
---------
Execute export PATH=/usr/local/bin:$PATH inside file /usr/local/etc/rc.d/google_startup
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-05-22 13:28:10 UTC
A commit references this bug:

Author: swills
Date: Tue May 22 13:27:41 UTC 2018
New revision: 470611
URL: https://svnweb.freebsd.org/changeset/ports/470611

Log:
  sysutils/py-google-compute-engine: Fix gsutil not being found

  PR:		228415
  Submitted by:	Helen Koike <helen.koike@collabora.com> (maintainer

Changes:
  head/sysutils/py-google-compute-engine/Makefile
  head/sysutils/py-google-compute-engine/files/google_startup.in
Comment 2 Steve Wills freebsd_committer freebsd_triage 2018-05-22 13:29:06 UTC
Committed, thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2018-05-22 14:00:44 UTC
A commit references this bug:

Author: swills
Date: Tue May 22 13:59:39 UTC 2018
New revision: 470617
URL: https://svnweb.freebsd.org/changeset/ports/470617

Log:
  MFH: r470611

  sysutils/py-google-compute-engine: Fix gsutil not being found

  PR:		228415
  Submitted by:	Helen Koike <helen.koike@collabora.com> (maintainer

  Approved by:	ports-secteam (implicit)

Changes:
_U  branches/2018Q2/
  branches/2018Q2/sysutils/py-google-compute-engine/Makefile
  branches/2018Q2/sysutils/py-google-compute-engine/files/google_startup.in