Bug 248651 - sysutils/azure-agent latest version 2.2.45_2 has python errors
Summary: sysutils/azure-agent latest version 2.2.45_2 has python errors
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Li-Wen Hsu
URL: https://lists.freebsd.org/pipermail/f...
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2020-08-14 02:19 UTC by tech-lists
Modified: 2020-08-14 06:32 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (weh)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tech-lists 2020-08-14 02:19:26 UTC
Hi,

I'm using sysutils/azure-agent on FreeBSD 12.1-p8 on Azure. When it runs, it throws tons of errors to the console. I initially reported it to freebsd-virtualization@ see https://lists.freebsd.org/pipermail/freebsd-virtualization/2020-August/008771.html

I was advised:

"Interesting, looking at the Makefile for sysutils/azure-agent - it seems 
like it should be updating references to /usr/bin/python to the 
appropriate python binary for your system:

  38                          -e "s,#!/usr/bin/env 
python,#!${PYTHON_CMD},g" \
  39                          -e "/command_interpreter/ 
s,/usr/local/bin/python,${PYTHON_CMD}    ," \


I would suggest filing a bug report in bugzilla.  I did install it on my 
local system and the daemon started and found the correct python binary, 
but when stopping it the following error was printed:

$ sudo service waagent onestop
/usr/local/etc/rc.d/waagent: WARNING: $command_interpreter python3.7 != 
/usr/local/bin/python3.7
Stopping waagent.
Waiting for PIDS: 57412.
$

so it looks like there may be an inconsistency somewhere."

so am reporting it here.

Meanwhile I have stopped most of the errors by symlinking the installed binary python3.7 to python3 in /usr/local/bin.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2020-08-14 02:33:54 UTC
^Triage: Is this a regression on a previous port/package version? If so, which previous version?
Comment 2 tech-lists 2020-08-14 03:48:58 UTC
(In reply to Kubilay Kocak from comment #1)

Not a regression per se.

This VM was provisioned via azure marketplace. It was 12.0-RELEASE. As provisioned, it had /usr/bin/python (python27) and waagent installed. The version of that waagent was WALinuxAgent-2.2.34.

These (python27 and waagent) were not installed as ports. They were present at the outset, so I presume they were in the azure marketplace build for 12.0.
Comment 3 tech-lists 2020-08-14 04:00:06 UTC
In order to install and use sysutils/azure-agent, I had to first service stop waagent, then rename all the old waagent files and config, then pkg install sysutils/azure-agent

The pkg was installed from a poudriere that builds every day.