Allow snap to detect virt type
Don't provide an explicit value to virt-type to the snap, ensuring that the code in the snap that falls back to userspace emulation kicks in when KVM is not possible. Change-Id: If4a21febf4b37d8a09da9448736d8bc84c4d4dda
This commit is contained in:
parent
fe37640899
commit
3b89b09c1e
@ -384,7 +384,6 @@ class HypervisorOperatorCharm(sunbeam_charm.OSBaseOperatorCharm):
|
|||||||
"compute.cpu-mode": "host-model",
|
"compute.cpu-mode": "host-model",
|
||||||
"compute.spice-proxy-address": config("ip-address")
|
"compute.spice-proxy-address": config("ip-address")
|
||||||
or local_ip,
|
or local_ip,
|
||||||
"compute.virt-type": "kvm",
|
|
||||||
"compute.cacert": base64.b64encode(
|
"compute.cacert": base64.b64encode(
|
||||||
contexts.certificates.ca_cert.encode()
|
contexts.certificates.ca_cert.encode()
|
||||||
).decode(),
|
).decode(),
|
||||||
|
@ -130,7 +130,6 @@ class TestCharm(test_utils.CharmTestCase):
|
|||||||
expect_settings = {
|
expect_settings = {
|
||||||
"compute.cpu-mode": "host-model",
|
"compute.cpu-mode": "host-model",
|
||||||
"compute.spice-proxy-address": "10.0.0.10",
|
"compute.spice-proxy-address": "10.0.0.10",
|
||||||
"compute.virt-type": "kvm",
|
|
||||||
"compute.cacert": cacert,
|
"compute.cacert": cacert,
|
||||||
"compute.cert": certificate,
|
"compute.cert": certificate,
|
||||||
"compute.key": private_key,
|
"compute.key": private_key,
|
||||||
@ -223,7 +222,6 @@ class TestCharm(test_utils.CharmTestCase):
|
|||||||
expect_settings = {
|
expect_settings = {
|
||||||
"compute.cpu-mode": "host-model",
|
"compute.cpu-mode": "host-model",
|
||||||
"compute.spice-proxy-address": "10.0.0.10",
|
"compute.spice-proxy-address": "10.0.0.10",
|
||||||
"compute.virt-type": "kvm",
|
|
||||||
"compute.cacert": cacert,
|
"compute.cacert": cacert,
|
||||||
"compute.cert": certificate,
|
"compute.cert": certificate,
|
||||||
"compute.key": private_key,
|
"compute.key": private_key,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user