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

Add arm64 run-on support #193

Merged
merged 21 commits into from
Aug 14, 2024
Merged

Add arm64 run-on support #193

merged 21 commits into from
Aug 14, 2024

Conversation

samuelallan72
Copy link
Contributor

@samuelallan72 samuelallan72 commented Aug 6, 2024

This is a classic charm, so no building happens at pack-time. Assuming dependencies build and run correctly on arm64, this is all we need to do from a build perspective to support arm64.

build-on arm64 is not strictly required here,
but it provides flexibility by supporting building on arm64 hosts too.

The tests are simplified because the arm64 runners don't have kvm support (so we can't deploy the original bundle with virtual-machine type machines).

This is a classic charm, so no building happens at pack-time.
Assuming dependencies build and run correctly on arm64,
this is all we need to do from a build perspective to support arm64.

build-on arm64 is not strictly required here,
but it provides flexibility by supporting building on arm64 hosts too.
Also pin charmcraft to 2.x; latest/stable recently updated to 3.x,
but the charmcraft.yaml only supports 2.x.
@samuelallan72 samuelallan72 force-pushed the arm64 branch 2 times, most recently from a42e5ce to b3ca5e6 Compare August 7, 2024 00:58
@samuelallan72
Copy link
Contributor Author

samuelallan72 commented Aug 8, 2024

controller-0: 07:12:11 WARNING juju.worker.provisioner failed to start machine 1 (Failed creating instance record: Instance type "virtual-machine" is not supported on this server: KVM support is missing (no /dev/kvm)), retrying in 10s (10 more attempts)

This is why the arm64 functional tests are failing.

```
INFO: /dev/kvm does not exist
HINT:   sudo modprobe kvm
modprobe: FATAL: Module msr not found in directory /lib/modules/6.5.0-1025-azure
```
@samuelallan72 samuelallan72 marked this pull request as ready for review August 12, 2024 07:35
@samuelallan72 samuelallan72 requested a review from a team as a code owner August 12, 2024 07:35
Copy link
Contributor

@rgildein rgildein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small comment, other than that LGTM.

Copy link
Contributor

@aieri aieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, w/one question

Copy link
Contributor

@rgildein rgildein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@samuelallan72 samuelallan72 merged commit 9e1b5e3 into main Aug 14, 2024
4 checks passed
@samuelallan72 samuelallan72 deleted the arm64 branch August 14, 2024 22:00
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

Successfully merging this pull request may close these issues.

4 participants