Bug 246298

Summary: sysutils/google-compute-engine-oslogin: pw process freezes (cannot add user accounts)
Product: Ports & Packages Reporter: Tom Foxwell <tom.foxwell>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Open ---    
Severity: Affects Many People CC: ler, pi, tom.foxwell
Priority: Normal Keywords: needs-qa
Version: LatestFlags: koobs: merge-quarterly?
Hardware: amd64   
OS: Any   
URL: https://twitter.com/Terfex/status/1252647247088504833?s=20
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238561
Attachments:
Description Flags
Pkg not installed in current GCP image but is available as an update after install
none
patch none

Description Tom Foxwell 2020-05-08 03:56:34 UTC
Created attachment 214254 [details]
Pkg not installed in current GCP image but is available as an update after install

Deploying FreeBSD 12.1 from the GCP Marketplace on Google Compute Engine works fine with Guest Attributes enabled. Enabling OS login in Metadata causes the process in version 1.5.3_2 to repeatedly crash and subsequently Google OS login is does not allow login. 

Upgrading to 20191018.00 (https://svnweb.freebsd.org/ports?view=revision&revision=516443) resolves this initial issue. However when creating new accounts, after installing 20191018.00, the pw process will freeze and not complete. Further creation of user accounts is no longer possible even after removal of google-compute-engine-oslogin. Reinstallation of FreeBSD is required to resolve.

My last test was on 22/4/2020 using the below configuration:
Image: freebsd-12-1-release-amd64 (GCP)
OS: FreeBSD 12.1-p4
Platform: Google Cloud
Zone: australia-southeast1-b
Series: N1
CPU: 1 vCPU
RAM: 1 GB
SSD: 25GB
Custom Meta
   enable-oslogin: TRUE
   enable-guest-attributes: TRUE

Other users have reported similar issues as noted on this Twitter thread https://twitter.com/Terfex/status/1252647247088504833?s=20

Also this package is now reporting it is no longer maintained and is due for removal.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2020-05-08 08:37:25 UTC
Thank you for the report Tom

@Larry Are you able to help with this?
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2020-09-19 09:59:55 UTC
Created attachment 218070 [details]
patch

This patch updates 20191018.00 to 20200918.00. Can you run-test if it works better for your use-case ?