Azure / WALinuxAgent

Microsoft Azure Linux Guest Agent
http://azure.microsoft.com/
Apache License 2.0
535 stars 371 forks source link

[BUG] Test failures: azurelinuxagent.ga.policy.regorus.PolicyError: [PolicyError] Attempted to enable policy enforcement, but feature is not supported on architecture aarch64 #3219

Open waldiTM opened 5 days ago

waldiTM commented 5 days ago

Describe the bug: A clear and concise description of what the bug is.

>       raise PolicyError(msg)
E       azurelinuxagent.ga.policy.regorus.PolicyError: [PolicyError] Attempted to enable policy enforcement, but feature is not supported on  architecture aarch64

azurelinuxagent/ga/policy/policy_engine.py:123: PolicyError

Distro and WALinuxAgent details (please complete the following information): Debian 13

mgunnala commented 3 days ago

@waldiTM which specific tests are failing, and what architecture are you running the tests on?

waldiTM commented 2 days ago

Don't you want to test the behaviour of your code, regardless of the execution environment? So as long as the code does architecture checks, the test needs to run once for each architecture value it could encounter.

As mentioned in the exception, this runs on a Linux reporting aarch64 as architecture.