We are introducing a new column to vm_host model to select hosts that will be used to place VMs running inside slices. We want to keep the slice or no-slice logic separate per-host, to avoid confusion and difficulty in allocating and tracking cpus and memory. Therefore each host will either continue allocating VMs running unconstrained, as it was so far, or will allocate VMs running inside slices. The value of the accepts_slices column will decide that.
10 lines
182 B
Ruby
10 lines
182 B
Ruby
# frozen_string_literal: true
|
|
|
|
Sequel.migration do
|
|
change do
|
|
alter_table(:vm_host) do
|
|
add_column :accepts_slices, :boolean, null: false, default: false
|
|
end
|
|
end
|
|
end
|