Skip to content

Commit ca146c8

Browse files
committed
Merge branch 'ubuntu-jammy' into merge-jammy
2 parents 1843d83 + f6ae05e commit ca146c8

4 files changed

Lines changed: 41 additions & 18 deletions

File tree

.github/pull_request_template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
NOTE: this repository uses a "Merge Forward" strategy
2+
3+
Changes should be made in the earliest applicable branch, and
4+
merged forward through subsequent branches.
5+
1. Create a PR into the oldest branch (`ubuntu-<short_name>`)
6+
2. After this PR has been merged create a `merge-to-<next_short_name>` branch
7+
3. Merge `ubuntu-<short_name>` into `merge-to-<next_short_name>`
8+
4. Create a PR to merge `merge-to-<next_short_name>` into `ubuntu-<next_short_name>`
9+
5. Repeat as needed for subsequent branches

README.md

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -296,19 +296,21 @@ Concourse publishes its artifacts to GCS.
296296
#### Create Buckets
297297

298298
```shell
299-
gsutil mb -l europe-west4 gs://bosh-aws-light-stemcells
300-
gsutil mb -l europe-west4 gs://bosh-aws-light-stemcells-candidate
299+
export gcp_region="europe-west4"
301300

302-
gsutil mb -l europe-west4 gs://bosh-gce-light-stemcell-ci-terraform-state
301+
gsutil mb -l "${gcp_region}" gs://bosh-aws-light-stemcells
302+
gsutil mb -l "${gcp_region}" gs://bosh-aws-light-stemcells-candidate
303303

304-
gsutil mb -l europe-west4 gs://bosh-gce-light-stemcells
305-
gsutil mb -l europe-west4 gs://bosh-gce-light-stemcells-candidate
306-
gsutil mb -l europe-west4 gs://bosh-gce-raw-stemcells-new
304+
gsutil mb -l "${gcp_region}" gs://bosh-gce-light-stemcell-ci-terraform-state
307305

308-
gsutil mb -l europe-west4 gs://bosh-core-stemcells
309-
gsutil mb -l europe-west4 gs://bosh-core-stemcells-candidate
310-
gsutil mb -l europe-west4 gs://bosh-os-images
311-
gsutil mb -l europe-west4 gs://bosh-stemcell-triggers
306+
gsutil mb -l "${gcp_region}" gs://bosh-gce-light-stemcells
307+
gsutil mb -l "${gcp_region}" gs://bosh-gce-light-stemcells-candidate
308+
gsutil mb -l "${gcp_region}" gs://bosh-gce-raw-stemcells-new
309+
310+
gsutil mb -l "${gcp_region}" gs://bosh-core-stemcells
311+
gsutil mb -l "${gcp_region}" gs://bosh-core-stemcells-candidate
312+
gsutil mb -l "${gcp_region}" gs://bosh-os-images
313+
gsutil mb -l "${gcp_region}" gs://bosh-stemcell-triggers
312314
```
313315

314316
#### Make Buckets Publicly Readable
@@ -343,18 +345,28 @@ gcloud compute firewall-rules update default-allow-internal --source-ranges 10.0
343345

344346
#### Create Integration Networks
345347

346-
Create the bosh-integration networks for tests and BATs tests. Each stemcell
347-
line should get its own subnet corresponding to its `subnet_int`.
348+
Create a `stemcell-builder-integration-${subnet_int}` subnetworks need by BATs tests.
349+
Each stemcell line should get its own subnet corresponding to its `subnet_int` equal to
350+
the two digit release year. For example release year 2010 would have `subnet_int="10"`.
348351

349-
Example:
352+
Example per [ci/pipelines/vars.yml](ci/pipelines/vars.yml):
350353

351-
- subnet_id=44
352-
- subnet_range=10.100.44.0/24
353-
- subnet_name=bosh-integration-44
354+
```yaml
355+
---
356+
stemcell_details:
357+
# ... snip
358+
subnet_int: "10" #! use last two digits of release year: ex 2010 -> 10
359+
# ... snip
360+
```
361+
362+
Would mean creating the following subnet in GCP:
354363

355364
```shell
356365
# branch: ubuntu-${short_name}
357-
gcloud compute networks subnets create --network default --range 10.100.0.0/24 bosh-integration-0
366+
export subnet_int="10"
367+
368+
gcloud compute networks subnets create --network default \
369+
--range "10.100.${subnet_int}.0/24" "stemcell-builder-integration-${subnet_int}"
358370
```
359371

360372
### AWS

bosh-stemcell/spec/assets/dpkg-list-ubuntu-azure-additions.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ linux-cloud-tools-6.8
44
linux-cloud-tools-6.8-generic
55
linux-cloud-tools-common
66
linux-cloud-tools-generic
7+
netplan-generator
78
netplan.io
89
python-is-python3
910
python3-attr
1011
python3-certifi
1112
python3-chardet
1213
python3-configobj
1314
python3-debconf
15+
python3-netplan
1416
python3-idna
1517
python3-jinja2
1618
python3-json-pointer

ci/pipelines/builder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ jobs:
446446

447447
#@ def build_stemcell(IAAS, HYPERVISOR, FIPS=""):
448448
name: build-(@= IAAS @)-(@= HYPERVISOR @)(@= FIPS @)
449+
serial: true
449450
plan:
450451
- in_parallel:
451452
- get: version
@@ -468,7 +469,6 @@ jobs:
468469
passed:
469470
- build-os-image
470471
- task: create-stemcell
471-
attempts: 3
472472
file: bosh-stemcells-ci/ci/tasks/build.yml
473473
image: os-image-stemcell-builder-registry-image
474474
params:

0 commit comments

Comments
 (0)