Merge lp:~clark-laughlin/charms/trusty/nova-compute/arm64-patch-1 into lp:~openstack-charmers-archive/charms/trusty/nova-compute/next
Status: | Merged |
---|---|
Merged at revision: | 110 |
Proposed branch: | lp:~clark-laughlin/charms/trusty/nova-compute/arm64-patch-1 |
Merge into: | lp:~openstack-charmers-archive/charms/trusty/nova-compute/next |
Diff against target: |
113 lines (+30/-3) 5 files modified
hooks/nova_compute_context.py (+4/-1) templates/havana/nova.conf (+7/-0) templates/juno/nova.conf (+7/-0) templates/kilo/nova.conf (+5/-0) unit_tests/test_nova_compute_contexts.py (+7/-2) |
To merge this branch: | bzr merge lp:~clark-laughlin/charms/trusty/nova-compute/arm64-patch-1 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Liam Young (community) | Approve | ||
Ryan Beisner | Pending | ||
Review via email: mp+252682@code.launchpad.net |
This proposal supersedes a proposal from 2015-03-12.
Description of the change
This change allows the nova-compute charm to deploy on arm64 machines without requiring a different configuration to be used. To deploy nova-compute on arm64 requires 2 settings in nova.conf, which are not required for amd64:
libvirt_
libvirt_disk_prefix = vd
Since juju configuration is specified at the service level, there is not a way to provide a separate configuration when deploying an amd64 unit and an arm64 unit -- preventing deployment of openstack with a mixture of arm64 and amd64 nova-compute nodes.
This change simply detects the machine architecture, and adds the two configuration settings to nova.conf when running on an arm64 (aarch64) machine. Behavior when running on other architectures is unchanged.
charm_lint_check #2609 nova-compute-next for clark-laughlin mp252662
LINT OK: passed
Build: http:// 10.245. 162.77: 8080/job/ charm_lint_ check/2609/