Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Juno
openstack-nova
0001-Add-docker-hv_type.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Add-docker-hv_type.patch of Package openstack-nova
From 2a21fcd073b44eb32f821fe3eb938dba7c34f6bc Mon Sep 17 00:00:00 2001 From: Vincent Untz <vuntz@suse.com> Date: Fri, 3 Apr 2015 16:32:10 +0200 Subject: [PATCH] Add 'docker' to the list of known hypervisor types nova-docker is out of tree, but it's starting to be used by people, and being able to use a docker-specific hypervisor type can be quite useful (in mixed-hypervisor environments, for instance). Change-Id: I5a50de6bf73372f1ab999fd977aa58b33ffacfb9 --- nova/compute/hv_type.py | 2 ++ nova/tests/unit/compute/test_hvtype.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/nova/compute/hvtype.py b/nova/compute/hvtype.py index 92cb980..1435289 100644 --- a/nova/compute/hvtype.py +++ b/nova/compute/hvtype.py @@ -29,6 +29,7 @@ from nova import exception # specific 'baremetal' & 'fake' then added in. BAREMETAL = "baremetal" BHYVE = "bhyve" +DOCKER = "docker" FAKE = "fake" HYPERV = "hyperv" KQEMU = "kqemu" @@ -47,6 +48,7 @@ XEN = "xen" ALL = ( BAREMETAL, BHYVE, + DOCKER, FAKE, HYPERV, KQEMU, diff --git a/nova/tests/compute/test_hvtype.py b/nova/tests/compute/test_hvtype.py index 41786eb..88aaab5 100644 --- a/nova/tests/compute/test_hvtype.py +++ b/nova/tests/compute/test_hvtype.py @@ -28,6 +28,9 @@ class HvTypeTest(test.NoDBTestCase): def test_valid_bogus(self): self.assertFalse(hvtype.is_valid("acmehypervisor")) + def test_valid_docker(self): + self.assertTrue(hv_type.is_valid("docker")) + def test_canonicalize_none(self): self.assertIsNone(hvtype.canonicalize(None))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor