Skip to content

Commit e6f4e27

Browse files
Ivaylogi98aramprice
authored andcommitted
Add NVMe support to Alicloud infrastructure configuration
1 parent ef51888 commit e6f4e27

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

bosh-stemcell/lib/bosh/stemcell/infrastructure.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,10 @@ def initialize
158158
end
159159

160160
def additional_cloud_properties
161-
{"root_device_name" => "/dev/vda1"}
161+
{
162+
"root_device_name" => "/dev/vda1",
163+
"nvme_support" => "supported"
164+
}
162165
end
163166
end
164167

bosh-stemcell/spec/bosh/stemcell/infrastructure_spec.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,24 @@ module Bosh::Stemcell
9595
end
9696
end
9797

98+
describe Infrastructure::Alicloud do
99+
its(:name) { should eq("alicloud") }
100+
its(:hypervisor) { should eq("kvm") }
101+
its(:default_disk_size) { should eq(5120) }
102+
its(:disk_formats) { should eq(["raw"]) }
103+
its(:stemcell_formats) { should eq(["alicloud-raw"]) }
104+
105+
it { should eq Infrastructure.for("alicloud") }
106+
it { should_not eq Infrastructure.for("aws") }
107+
108+
it "has alicloud specific additional cloud properties" do
109+
expect(subject.additional_cloud_properties).to eq({
110+
"root_device_name" => "/dev/vda1",
111+
"nvme_support" => "supported"
112+
})
113+
end
114+
end
115+
98116
describe Infrastructure::Google do
99117
its(:name) { should eq("google") }
100118
its(:hypervisor) { should eq("kvm") }

0 commit comments

Comments
 (0)