~corey.bryant/charms/trusty/nova-compute/git-old

Viewing all changes in revision 110.

  • Committer: Liam Young
  • Date: 2015-03-30 15:01:25 UTC
  • mfrom: (107.1.3 nova-compute)
  • Revision ID: liam.young@canonical.com-20150330150125-dvd22zwgtwi8hb8w
[clark-laughlin, r=gnuoy]
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_use_virtio_for_bridges = False
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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: