Undercloud params for compute driver and manager
authorDan Prince <dprince@redhat.com>
Fri, 5 Sep 2014 19:39:35 +0000 (14:39 -0500)
committerDan Prince <dprince@redhat.com>
Fri, 5 Sep 2014 20:18:01 +0000 (16:18 -0400)
Add undercloud template parameters for NovaComputeDriver,
NovaComputeManager, and NovaSchedulerHostManager.

The motivation here is to be able to test configure Nova to use
the new (in-tree) Ironic compute driver (which used to live
in Ironic).

NOTE: The initial Nova in-tree Ironic driver won't have its
own ClusteredComputeManager (compute_manager). Even so I've
gone ahead and added a parameter for NovaComputeManager
so we can modify this accordingly in the future without
making hard coded template changes.

Change-Id: Ib48a6b6d8a6cff157bdf3948bd0330e9b29dd46a

undercloud-bm-nova-config.yaml
undercloud-bm-nova-deploy.yaml
undercloud-vm-ironic-config.yaml
undercloud-vm-ironic-deploy.yaml
undercloud-vm-nova-config.yaml
undercloud-vm-nova-deploy.yaml

index ba39710..e70c909 100644 (file)
@@ -5,7 +5,9 @@ resources:
       config:
         nova:
           compute_hostname: undercloud
-          compute_driver: baremetal.driver.BareMetalDriver
+          compute_driver: {get_param: NovaComputeDriver}
+          compute_manager: {get_param: NovaComputeManager}
+          scheduler_host_manager: {get_param: NovaSchedulerHostManager}
           db: mysql://nova:unset@localhost/nova
           default_ephemeral_format: ext4
           host: 127.0.0.1
index d328449..d46fc07 100644 (file)
@@ -3,6 +3,18 @@ parameters:
     default: eth2
     description: What interface to bridge onto br-ex for network nodes.
     type: string
+  NovaComputeDriver:
+    default: baremetal.driver.BareMetalDriver
+    description: Full class name for the Nova compute driver
+    type: string
+  NovaComputeManager:
+    default: nova.compute.manager.ComputeManager
+    description: Full class name for the Nova compute manager
+    type: string
+  NovaSchedulerHostManager:
+    default: nova.scheduler.host_manager.HostManager
+    description: Full class name for the Nova scheduler host manager
+    type: string
   PowerManager:
     default: nova.virt.baremetal.ipmi.IPMI
     description: Bare metal power manager driver.
index af049d8..f5aa498 100644 (file)
@@ -5,8 +5,9 @@ resources:
       config:
         nova:
           compute_hostname: undercloud
-          compute_driver: ironic.nova.virt.ironic.driver.IronicDriver
-          compute_manager: ironic.nova.compute.manager.ClusteredComputeManager
+          compute_driver: {get_param: NovaComputeDriver}
+          compute_manager: {get_param: NovaComputeManager}
+          scheduler_host_manager: {get_param: NovaSchedulerHostManager}
           db: mysql://nova:unset@localhost/nova
           debug: {get_param: Debug}
           default_ephemeral_format: ext4
index 6e778e5..f1d3af7 100644 (file)
@@ -7,6 +7,18 @@ parameters:
     default: eth0
     description: What interface to bridge onto br-ex for network nodes.
     type: string
+  NovaComputeDriver:
+    default: ironic.nova.virt.ironic.driver.IronicDriver
+    description: Full class name for the Nova compute driver
+    type: string
+  NovaComputeManager:
+    default: ironic.nova.compute.manager.ClusteredComputeManager
+    description: Full class name for the Nova compute manager
+    type: string
+  NovaSchedulerHostManager:
+    default: ironic.nova.scheduler.ironic_host_manager.IronicHostManager
+    description: Full class name for the Nova scheduler host manager
+    type: string
   PowerSSHPrivateKey:
     description: Private key for using to ssh to a virtual power host.
     type: string
index 77d23c1..9dbb8c2 100644 (file)
@@ -5,7 +5,9 @@ resources:
       config:
         nova:
           compute_hostname: undercloud
-          compute_driver: baremetal.driver.BareMetalDriver
+          compute_driver: {get_param: NovaComputeDriver}
+          compute_manager: {get_param: NovaComputeManager}
+          scheduler_host_manager: {get_param: NovaSchedulerHostManager}
           db: mysql://nova:unset@localhost/nova
           default_ephemeral_format: ext4
           host: 127.0.0.1
index ebd14ef..7b13643 100644 (file)
@@ -3,6 +3,18 @@ parameters:
     default: eth0
     description: What interface to bridge onto br-ex for network nodes.
     type: string
+  NovaComputeDriver:
+    default: baremetal.driver.BareMetalDriver
+    description: Full class name for the Nova compute driver
+    type: string
+  NovaComputeManager:
+    default: nova.compute.manager.ComputeManager
+    description: Full class name for the Nova compute manager
+    type: string
+  NovaSchedulerHostManager:
+    default: nova.scheduler.host_manager.HostManager
+    description: Full class name for the Nova scheduler host manager
+    type: string
   PowerManager:
     default: nova.virt.baremetal.virtual_power_driver.VirtualPowerManager
     description: Bare metal power manager driver.