Skip to content

Commit e02b35a

Browse files
committed
hack/build: Pin to RHCOS 47.330 and quay.io/openshift-release-dev/ocp-release:4.0.0-0.5
Clayton pushed 4.0.0-0.nightly-2019-02-26-125216 to quay.io/openshift-release-dev/ocp-release:4.0.0-0.5. Extracting the associated RHCOS build: $ oc adm release info --pullspecs quay.io/openshift-release-dev/ocp-release:4.0.0-0.5 | grep machine-os-content machine-os-content registry.svc.ci.openshift.org/ocp/4.0-art-latest-2019-02-26-125216@sha256:1262533e31a427917f94babeef2774c98373409897863ae742ff04120f32f79b $ oc image info registry.svc.ci.openshift.org/ocp/4.0-art-latest-2019-02-26-125216@sha256:1262533e31a427917f94babeef2774c98373409897863ae742ff04120f32f79b | grep version version=47.330 The bump from RHCOS 47.297 to 47.330 brings in, among other things, Podman 1.0.1. Renaming OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE gets us CI testing of the pinned release despite openshift/release@60007df2 (Use RELEASE_IMAGE_LATEST for CVO payload, 2018-10-03, openshift/release#1793). Also comment out regions which this particular RHCOS build wasn't pushed to, leaving only: $ curl -s https://releases-rhcos.svc.ci.openshift.org/storage/releases/maipo/47.330/meta.json | jq -r '.amis[] | .name' ap-northeast-1 ap-northeast-2 ap-south-1 ap-southeast-1 ap-southeast-2 ca-central-1 eu-central-1 eu-west-1 eu-west-2 eu-west-3 sa-east-1 us-east-1 us-east-2 us-west-1 us-west-2 I'd initially expected to export the pinning environment variables in release.sh, but I've put them in build.sh here because our continuous integration tests use build.sh directly and don't go through release.sh. [1]: containers/podman#2106
1 parent 4caac53 commit e02b35a

File tree

4 files changed

+20
-17
lines changed

4 files changed

+20
-17
lines changed

hack/build.sh

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -ex
44

5+
RELEASE_IMAGE="${RELEASE_IMAGE:-quay.io/openshift-release-dev/ocp-release:4.0.0-0.5}"
6+
RHCOS_BUILD_NAME="${RELEASE_BUILD_NAME:-47.330}"
7+
58
# shellcheck disable=SC2068
69
version() { IFS="."; printf "%03d%03d%03d\\n" $@; unset IFS;}
710

pkg/asset/ignition/bootstrap/bootstrap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (a *Bootstrap) getTemplateData(installConfig *types.InstallConfig) (*bootst
175175
}
176176

177177
releaseImage := defaultReleaseImage
178-
if ri, ok := os.LookupEnv("OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE"); ok && ri != "" {
178+
if ri, ok := os.LookupEnv("_OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE"); ok && ri != "" {
179179
logrus.Warn("Found override for ReleaseImage. Please be warned, this is not advised")
180180
releaseImage = ri
181181
}

pkg/types/aws/validation/platform.go

+15-15
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ var (
1515
Regions = map[string]string{
1616
"ap-northeast-1": "Tokyo",
1717
"ap-northeast-2": "Seoul",
18-
"ap-northeast-3": "Osaka-Local",
18+
//"ap-northeast-3": "Osaka-Local",
1919
"ap-south-1": "Mumbai",
2020
"ap-southeast-1": "Singapore",
2121
"ap-southeast-2": "Sydney",
2222
"ca-central-1": "Central",
23-
"cn-north-1": "Beijing",
24-
"cn-northwest-1": "Ningxia",
25-
"eu-central-1": "Frankfurt",
26-
"eu-north-1": "Stockholm",
27-
"eu-west-1": "Ireland",
28-
"eu-west-2": "London",
29-
"eu-west-3": "Paris",
30-
"sa-east-1": "São Paulo",
31-
"us-east-1": "N. Virginia",
32-
"us-east-2": "Ohio",
33-
"us-gov-east-1": "AWS GovCloud (US-East)",
34-
"us-gov-west-1": "AWS GovCloud (US-West)",
35-
"us-west-1": "N. California",
36-
"us-west-2": "Oregon",
23+
//"cn-north-1": "Beijing",
24+
//"cn-northwest-1": "Ningxia",
25+
"eu-central-1": "Frankfurt",
26+
//"eu-north-1": "Stockholm",
27+
"eu-west-1": "Ireland",
28+
"eu-west-2": "London",
29+
"eu-west-3": "Paris",
30+
"sa-east-1": "São Paulo",
31+
"us-east-1": "N. Virginia",
32+
"us-east-2": "Ohio",
33+
//"us-gov-east-1": "AWS GovCloud (US-East)",
34+
//"us-gov-west-1": "AWS GovCloud (US-West)",
35+
"us-west-1": "N. California",
36+
"us-west-2": "Oregon",
3737
}
3838

3939
validRegionValues = func() []string {

pkg/types/validation/installconfig_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ func TestValidateInstallConfig(t *testing.T) {
326326
}
327327
return c
328328
}(),
329-
expectedError: `^platform\.aws\.region: Unsupported value: "": supported values: "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "us-east-1", "us-east-2", "us-gov-east-1", "us-gov-west-1", "us-west-1", "us-west-2"$`,
329+
expectedError: `^platform\.aws\.region: Unsupported value: "": supported values: "ap-northeast-1", "ap-northeast-2", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "us-east-1", "us-east-2", "us-west-1", "us-west-2"$`,
330330
},
331331
{
332332
name: "valid libvirt platform",

0 commit comments

Comments
 (0)