Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
waldiTM opened this issue Sep 17, 2024 · 4 comments
Assignees

Comments

@waldiTM
Copy link

waldiTM commented Sep 17, 2024

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
Copy link

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

@waldiTM
Copy link
Author

waldiTM commented Sep 20, 2024

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.

@mgunnala
Copy link

Removed the architecture check, you shouldn't see test failures anymore.

@narrieta
Copy link
Member

narrieta commented Oct 7, 2024

fixed by #3222

@narrieta narrieta closed this as completed Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants