Skip to content

Commit 7485569

Browse files
authored
Merge branch 'ubuntu-noble' into jammy-to-noble
2 parents 9bb9e15 + 2db9569 commit 7485569

141 files changed

Lines changed: 1399 additions & 2341 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.envrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export GOPATH=$PWD
22
export BOSH_BINARY_PATH=$(command -v bosh)
3-
export BOSH_os_name=ubuntu-jammy
3+
export BOSH_os_name=ubuntu-noble

.github/workflows/sbom.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: aquasecurity/trivy-action@master
2020
with:
2121
scan-type: image
22-
image-ref: ghcr.io/cloudfoundry/ubuntu-jammy-stemcell
22+
image-ref: ghcr.io/cloudfoundry/ubuntu-noble-stemcell
2323
format: spdx-json
2424
output: sbom.spdx.json
2525

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ disk image that is used as a template by a BOSH Director to create VMs.
66
## Quick Start: Building a Stemcell Locally
77

88
```bash
9-
export short_name="jammy"
9+
export short_name="noble"
1010

1111
git clone git@github.com:cloudfoundry/bosh-linux-stemcell-builder.git
1212
cd bosh-linux-stemcell-builder
@@ -27,9 +27,9 @@ docker run \
2727
bosh/os-image-stemcell-builder:${short_name}
2828

2929
# You're now in the Docker container
30-
pushd bosh-stemcell
31-
bundle install
32-
popd
30+
ulimit -n 16384 # only necessary if your host is Fedora
31+
gem install bundler
32+
bundle install
3333

3434
# build OS image
3535
bundle exec rake stemcell:build_os_image[ubuntu,${short_name},${PWD}/tmp/ubuntu_base_image.tgz]
@@ -56,7 +56,7 @@ installed in the operating system or when making changes to the configuration
5656
of those packages.
5757

5858
```bash
59-
export short_name="jammy"
59+
export short_name="noble"
6060

6161
bundle exec rake stemcell:build_os_image[ubuntu,${short_name},${PWD}/tmp/ubuntu_base_image.tgz]
6262
```
@@ -78,7 +78,7 @@ The arguments to the `stemcell:build_os_image` rake task follow:
7878
Rebuild the stemcell when you are making and testing BOSH-specific changes such as a new BOSH agent.
7979

8080
```bash
81-
export short_name="jammy"
81+
export short_name="noble"
8282
export build_number="0.0.8"
8383

8484
bundle exec rake stemcell:build[vsphere,esxi,ubuntu,${short_name},${PWD}/tmp/ubuntu_base_image.tgz,${build_number}]
@@ -114,7 +114,7 @@ the stemcell would be at
114114
upload the stemcell to a vSphere BOSH Director:
115115

116116
```bash
117-
export short_name="jammy"
117+
export short_name="noble"
118118

119119
bosh upload-stemcell tmp/bosh-stemcell-0.0.8-vsphere-esxi-ubuntu-${short_name}-go_agent.tgz
120120
```
@@ -135,7 +135,7 @@ the OS image** at the `tmp/ubuntu_base_image.tgz` and you're within the Docker
135135
container):
136136

137137
```shell
138-
export short_name="jammy"
138+
export short_name="noble"
139139
cd /opt/bosh/bosh-stemcell
140140
bundle install
141141
OS_IMAGE=/opt/bosh/tmp/ubuntu_base_image.tgz bundle exec rspec -fd spec/os_image/ubuntu_spec.rb
@@ -208,7 +208,7 @@ If you find yourself debugging any of the above processes, here is what you need
208208
Example usage:
209209

210210
```shell
211-
export short_name="jammy"
211+
export short_name="noble"
212212

213213
bundle exec rake stemcell:build_os_image[ubuntu,${short_name},${PWD}/tmp/ubuntu_base_image.tgz] resume_from=rsyslog_config
214214
```
@@ -249,7 +249,7 @@ You will need the ovftool installer present in
249249
Rebuild the container with:
250250

251251
```shell
252-
export short_name="jammy"
252+
export short_name="noble"
253253

254254
docker build \
255255
--platform linux/amd64 \
@@ -280,7 +280,7 @@ gsutil cp MY_OVFTOOL_FILE gs://bosh-vmware-ovftool/MY_OS/
280280
Example:
281281

282282
```shell
283-
export short_name="jammy"
283+
export short_name="noble"
284284

285285
gsutil cp VMware-ovftool-4.4.3-18663434-lin.x86_64.bundle gs://bosh-vmware-ovftool/${short_name}/
286286
```

acceptance-tests/ipv4director/auditd/smoke_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ var _ = Describe("Auditd", func() {
2525
"ssh", "os-conf-auditd/0", "-r", "-c",
2626
`sudo auditctl -w /etc/network -p wa -k system-locale-story-50315687`,
2727
)
28-
Expect(err).ToNot(HaveOccurred())
29-
Expect(exitStatus).To(Equal(0))
28+
Expect(err).To(HaveOccurred())
29+
Expect(exitStatus).To(Equal(1))
3030
Expect(stdout).To(ContainSubstring(immutabilityError))
3131
})
3232

acceptance-tests/ipv4director/ipv6basic/basic_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ import (
77

88
var _ = Describe("IPv6 Basic", func() {
99
It("enables ipv6 in the kernel", func() {
10-
stdOut, _, exitStatus, err := bosh.Run("--column=stdout", "ssh", "test/0", "-r", "-c", `sudo netstat -lnp | grep sshd`)
10+
stdOut, _, exitStatus, err := bosh.Run("--column=stdout", "ssh", "test/0", "-r", "-c", `sudo ip a | grep inet6`)
1111
Expect(err).ToNot(HaveOccurred())
1212
Expect(exitStatus).To(Equal(0))
13-
Expect(stdOut).To(ContainSubstring("0.0.0.0:22"))
14-
Expect(stdOut).To(ContainSubstring(":::22"))
13+
Expect(stdOut).To(ContainSubstring("inet6 ::1/128 scope host"))
1514
})
1615

1716
It("assigns link local ipv6 address", func() {

acceptance-tests/ipv4director/ipv6basic/manifest.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,3 @@ instance_groups:
2323
- {name: default}
2424
azs: [z1]
2525
jobs: []
26-
env:
27-
bosh:
28-
ipv6:
29-
enable: true

acceptance-tests/ipv4director/smoke/smoke_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,10 @@ var _ = Describe("Stemcell", func() {
9595
Expect(offending).To(BeEmpty(), "auth.log contained 'No such file or directory':\n%s", strings.Join(offending, "\n"))
9696
})
9797

98-
It("#141987897: disables ipv6 in the kernel", func() {
99-
stdOut, _, exitStatus, err := bosh.Run("--column=stdout", "ssh", "default/0", "-r", "-c", `sudo netstat -lnp | grep sshd | awk '{ print $4 }'`)
98+
It("#141987897: has ipv6 enabled in the kernel", func() {
99+
_, _, exitStatus, err := bosh.Run("--column=stdout", "ssh", "default/0", "-r", "-c", `sudo ip a | grep inet6`)
100100
Expect(err).ToNot(HaveOccurred())
101101
Expect(exitStatus).To(Equal(0))
102-
Expect(strings.Split(strings.TrimSpace(stdOut), "\n")).To(Equal([]string{"0.0.0.0:22"}))
103102
})
104103

105104
It("#140456537: enables sysstat", func() {

acceptance-tests/ipv6director/ipv6full/full_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import (
1111

1212
var _ = Describe("IPv6 Full", func() {
1313
It("enables ipv6 in the kernel", func() {
14-
stdOut, _, exitStatus, err := bosh.Run("--column=stdout", "ssh", "test/0", "-r", "-c", `sudo netstat -lnp | grep sshd`)
14+
stdOut, _, exitStatus, err := bosh.Run("--column=stdout", "ssh", "test/0", "-r", "-c", `sudo ip a | grep inet6`)
1515
Expect(err).ToNot(HaveOccurred())
1616
Expect(exitStatus).To(Equal(0))
17-
Expect(stdOut).To(ContainSubstring("0.0.0.0:22"))
18-
Expect(stdOut).To(ContainSubstring(":::22"))
17+
Expect(stdOut).To(ContainSubstring("inet6 ::1/128 scope host"))
18+
Expect(stdOut).To(ContainSubstring("scope link"))
1919
})
2020

2121
type Instance struct {

bosh-stemcell/lib/bosh/stemcell/build_environment.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ def exclude_exclusions
177177
" --tag ~exclude_on_alicloud"
178178
when "vsphere"
179179
" --tag ~exclude_on_vsphere"
180-
when "vcloud"
181-
" --tag ~exclude_on_vcloud"
182180
when "warden"
183181
" --tag ~exclude_on_warden"
184182
when "aws"
@@ -189,8 +187,6 @@ def exclude_exclusions
189187
" --tag ~exclude_on_cloudstack"
190188
when "azure"
191189
" --tag ~exclude_on_azure"
192-
when "softlayer"
193-
" --tag ~exclude_on_softlayer"
194190
when "google"
195191
" --tag ~exclude_on_google"
196192
end,

bosh-stemcell/lib/bosh/stemcell/builder_options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def default
5151
)
5252

5353
def ovf_options
54-
if infrastructure.name == "vsphere" || infrastructure.name == "vcloud"
54+
if infrastructure.name == "vsphere"
5555
{"image_ovftool_path" => environment["OVFTOOL"]}
5656
else
5757
{}

0 commit comments

Comments
 (0)