Skip to content

Commit 1a534a4

Browse files
authored
Merge pull request #639 from Ivaylogi98/ubuntu-noble-add-support-for-nvme-on-ali
Add NVMe support to Alicloud infrastructure configuration
1 parent 4552283 commit 1a534a4

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
@@ -141,7 +141,10 @@ def initialize
141141
end
142142

143143
def additional_cloud_properties
144-
{"root_device_name" => "/dev/vda1"}
144+
{
145+
"root_device_name" => "/dev/vda1",
146+
"nvme_support" => "supported"
147+
}
145148
end
146149
end
147150

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,24 @@ module Bosh::Stemcell
9292
end
9393
end
9494

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

0 commit comments

Comments
 (0)