Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

Investigate running waagent only in azure

Description

Right now waagent runs whenever it detects hyper-v however it should only be running when it's azure and disabled otherwise. Upstream recommends only installing it when it's azure. This ticket is to investigate and see if we can safely recognize if it's azure or not via dmidecode or something similar and in that case enable waagent.

Problem/Justification

None

Impact

None

Activity

Show:

Bjarke istrup Pedersen January 10, 2022 at 9:31 AM

the problem is not fixed.

Did a clean install on local Hyper-V, and it tries to start the agent, and it even hangs for 4 minutes on startup - please see the attached image.
My guess would be, that the detection if it is "Microsoft Corporation" also triggers locally, since Hyper-V locally is also on Microsoft.

So my suggestion would still be to follow what upsteam says, and remove it, and then let people install it if they want to run TrueNAS in Azure.

As it is now, the local install is broken, so I would suggest going that route, since it does not seem like there is any way to differentiate between Hyper-V in Azure and Hyper-V elsewhere.

Greg Patterson January 6, 2022 at 6:28 PM

  - I suspect you can use the nightly build to try and validate ( https://download.truenas.com/truenas-scale-nightly/ ). I'll be giving that a shot here in the next couple of days unless I see someone confirms it first.

Bjarke istrup Pedersen January 4, 2022 at 9:09 AM

since it has been marked as fixed, is there a way for me to test? slightly smiling face

Bug Clerk January 2, 2022 at 10:30 PM

Bjarke istrup Pedersen December 22, 2021 at 8:00 PM

No, I only have it running locally.

If you haven't used Azure before, you can setup a free account, with some free credit that you can use to test it in there. (Getting a VM in there with a custom image is a bit more tricky).

Do you need me to test something locally?

Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created December 6, 2021 at 5:28 AM
Updated August 9, 2022 at 12:28 PM
Resolved January 4, 2022 at 5:37 AM

Flag notifications