Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2019 09:28:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 237872] sysutils/py-google-compute-engine: fix daemons in python 2.7 case
Message-ID:  <bug-237872-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237872

            Bug ID: 237872
           Summary: sysutils/py-google-compute-engine: fix daemons in
                    python 2.7 case
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: swills@FreeBSD.org
                CC: lucas.kanashiro@collabora.com
                CC: lucas.kanashiro@collabora.com
             Flags: maintainer-feedback?(lucas.kanashiro@collabora.com)

Created attachment 204351
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D204351&action=
=3Dedit
add PYTHON_VER to py-google-compute-engine rc scripts rev0

The python 2.7 version of these packages fail like this on startup:

Starting google_network_daemon.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
daemon: /usr/local/bin/google_network_daemon: No such file or directory=20=
=20=20=20=20=20=20=20=20
Starting google_accounts_daemon.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
daemon: /usr/local/bin/google_accounts_daemon: No such file or directory=20=
=20=20=20=20=20=20=20
Starting google_clock_skew_daemon.=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20
daemon: /usr/local/bin/google_clock_skew_daemon: No such file or directory=
=20=20=20=20=20=20
eval: /usr/local/bin/google_metadata_script_runner: not found=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20

The attached patch should fix it. Patch also includes some formatting chang=
es.


This still leaves the question of why the python 2.7 version is being used =
in
the currently generated GCE images, given the release script doesn't specify
2.7:

https://svnweb.freebsd.org/base/head/release/tools/gce.conf?annotate=3D3470=
56#l11

But that may be related to the fact that google-cloud-sdk is still marked
Python 2.7. Anyway, this patch should avoid the worst issue at the moment.


And also, I'm not sure whether py-google-compute-engine can really work with
python 3, since it uses py-boto which, doesn't seem to support Python 3:

https://github.com/boto/boto#introduction

although it was explicitly marked as USE_PYTHON=3Dconcurrent in ports r4334=
25.
Maybe it doesn't matter or py-google-compute-engine should switch to boto3,=
 but
that's an upstream issue.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237872-7788>