Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
ae6805b
azure: Check HyperVGenerations for instance type
rna-afk Jan 4, 2022
2785e7d
Ensure removal of placement-groups during cluster destroy on AWS
JoelSpeed Jan 10, 2022
df59cb1
Adjust the startup order of httpd container
zhouhao3 Jan 17, 2022
0561351
Add IP outputs for IBM terraform instances
cjschaef Jan 5, 2022
ea216c3
Revert "Bug 2035757: cluster-bootstrap/alibaba: set tear-down-delay t…
staebler Jan 20, 2022
8b3d14d
baremetal: networkConfig field now accepts yaml instead of string value
andfasano Jan 18, 2022
969378d
Merge pull request #5545 from andfasano/nmstate-pure-yaml
openshift-merge-robot Jan 21, 2022
d111ca9
remove unused kube terraform provider
staebler Dec 17, 2021
af4738a
vendor: update openshift/api to include some alibaba infra changes
staebler Dec 17, 2021
ce31697
hack: use go 1.17 for verifying codegen
staebler Dec 17, 2021
716cf76
Merge pull request #5538 from cjschaef/ibmcloud-output-ips
openshift-merge-robot Jan 22, 2022
0dc9025
Bump Fedora CoreOS to 35.20220116.2.0
Jan 22, 2022
30234a1
Alibaba: fix system disk category of bootstrap
bd233 Jan 22, 2022
9415c65
Alibaba: fix creating public record being skipped
bd233 Jan 22, 2022
914f463
Alibaba: fix VSwitch subnets overlap
bd233 Jan 22, 2022
2684f8d
remove unsupported options
jeffnowicki Jan 24, 2022
254dfcb
Add proxy for ironic-agent.service
zhouhao3 Jan 24, 2022
fd20502
Revert "remove unsupported options"
jeffnowicki Jan 24, 2022
199bfbc
Azure Stack: Add UPI Instructions for internal CA
patrickdillon Jan 24, 2022
969a775
remove unsupported options for existing resources
jeffnowicki Jan 24, 2022
14246b3
Alibaba: fix resource creation for existing network
bd233 Jan 24, 2022
35fadfc
gen'd install configs yaml
jeffnowicki Jan 24, 2022
6bd4f3e
Merge pull request #5563 from staebler/bump_openshift_api_k8s_0.23.0
openshift-merge-robot Jan 24, 2022
9e26478
update alibaba for provider spec api changes
elmiko Jan 21, 2022
2c8806f
update vendor for latest Aliababa API changes
elmiko Jan 24, 2022
20f8626
remove validation related to unsupported options
jeffnowicki Jan 24, 2022
e5d628d
update validation for unsupported options
jeffnowicki Jan 24, 2022
42212b5
Merge pull request #5562 from elmiko/update-alibaba-api
openshift-merge-robot Jan 25, 2022
f292bcc
openstack: Fix invalid-https-certificate detection
pierreprinetti Jan 25, 2022
6c2c8ae
Merge pull request #5576 from shiftstack/openstack-fix-invalid-cert-s…
openshift-merge-robot Jan 25, 2022
a6c8bd5
Alibaba: fix support region list
bd233 Jan 24, 2022
f07482a
Merge pull request #5567 from vrutkovs/bump-fcos-35.20220116.2.0
openshift-merge-robot Jan 25, 2022
604a5a1
Bug 2043297: bump RHCOS 4.10 bootimage metadata
HuijingHei Jan 25, 2022
eaa2c12
Bug 2045916: IBMCloud: Stop defaulting to dedicated storage profile
cjschaef Jan 25, 2022
1bc6271
Merge pull request #5565 from dongchen126/fix-public-record
openshift-merge-robot Jan 26, 2022
2813802
Merge pull request #5566 from dongchen126/fix-subnet-cidr
openshift-merge-robot Jan 26, 2022
e39de16
Merge pull request #5550 from staebler/revert_teardown_delay
openshift-merge-robot Jan 26, 2022
bd0d3e6
Merge pull request #5564 from dongchen126/fix-bootstrap-disk
openshift-merge-robot Jan 26, 2022
1a2c6c0
Alibaba: fix destroy not exist security group
bd233 Jan 26, 2022
557709d
Alibaba: fix endpoint error in some regions
bd233 Jan 25, 2022
820507e
Alibaba: update vendor
bd233 Jan 25, 2022
25e57e9
Revert "update validation for unsupported options"
jeffnowicki Jan 27, 2022
e82b27e
Revert "remove validation related to unsupported options"
jeffnowicki Jan 27, 2022
d91ecac
Alibaba: support internal publish strategy
bd233 Jan 13, 2022
9e2276f
Alibaba: fix installer index panic
bd233 Jan 25, 2022
55a9f62
remove validation for unsupported options
jeffnowicki Jan 27, 2022
80cdd26
Alibaba: fix destory exist private zone
bd233 Jan 27, 2022
f2cbbed
Merge pull request #5569 from zhouhao3/add-proxy
openshift-merge-robot Jan 27, 2022
8c561e6
Alibaba: fix validation of resource group ID
bd233 Jan 27, 2022
5c65588
update custom image ostype
jeffnowicki Jan 27, 2022
d1c6a17
Bug 2047258: Read GovCloud from RHCOS stream
patrickdillon Jan 27, 2022
916e706
Merge pull request #5585 from patrickdillon/bz-2047258-rhcos-aws-gov
openshift-merge-robot Jan 28, 2022
5f7addb
Merge pull request #5571 from dongchen126/fix-sdk-version
openshift-merge-robot Jan 28, 2022
81ac782
Merge pull request #5541 from zhouhao3/fix-kernel-params
openshift-merge-robot Jan 28, 2022
7062f2b
Merge pull request #5568 from jeffnowicki/remove-unsupported-options
openshift-merge-robot Jan 28, 2022
81b8ace
Merge pull request #5509 from rna-afk/azure_check_hypergeneration
openshift-merge-robot Jan 28, 2022
d5b69dd
Merge pull request #5534 from dongchen126/fix-publish-internal
openshift-merge-robot Jan 28, 2022
ece80db
Merge pull request #5572 from dongchen126/fix-remove-region
openshift-merge-robot Jan 28, 2022
398de8c
Merge pull request #5574 from dongchen126/fix-create-natgateway
openshift-merge-robot Jan 28, 2022
70e8aed
Merge pull request #5575 from dongchen126/fix-panic-index
openshift-merge-robot Jan 28, 2022
060e99b
Merge pull request #5577 from HuijingHei/4.10-bump-2043297
openshift-merge-robot Jan 28, 2022
f9d8a2d
Merge pull request #5578 from cjschaef/bz_2045916
openshift-merge-robot Jan 28, 2022
cea53c1
Merge pull request #5580 from dongchen126/fix-destroy-sg
openshift-merge-robot Jan 28, 2022
6e5260a
Merge pull request #5583 from dongchen126/fix-private-zone
openshift-merge-robot Jan 28, 2022
c35bb63
Merge pull request #5584 from dongchen126/fix-rg-validation
openshift-merge-robot Jan 28, 2022
4fc9fa8
Merge pull request #5587 from jeffnowicki/update-custom-image-ostype
openshift-merge-robot Jan 28, 2022
0887db1
Remove Caleb Boylan from core installer reviewers
kirankt Jan 31, 2022
83eec34
Merge pull request #5528 from JoelSpeed/remove-placement-groups
openshift-merge-robot Jan 31, 2022
f6ea846
Merge pull request #5593 from kirankt/remove-cboylan
openshift-merge-robot Jan 31, 2022
febfc9d
Merge pull request #5573 from patrickdillon/azurestack-upi-ca
openshift-merge-robot Feb 2, 2022
8de542c
aws: Remove non-public AWS regions from list of regions
rna-afk Feb 1, 2022
7224c3a
Merge pull request #5595 from rna-afk/remove_aws_non_public_regions
openshift-merge-robot Feb 2, 2022
402783a
openstack: Don't shortcut cloud scraping if quota is unavailable
mdbooth Feb 3, 2022
3d0c003
Merge pull request #5601 from shiftstack/bz2050146
openshift-merge-robot Feb 3, 2022
e94dd81
Merge branch 'master' into add-ipi
clnperez Feb 3, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions docs/user/azure/install_upi_azurestack.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ We'll be providing the compute machines ourselves, so we set compute replicas to

Azure Stack is not supported by the interactive wizard, but you can use public Azure credentials to create an install config with [the usual approach](install.md#create-configuration) and then edit according to the example above.

### Additional Trust Bundle for Internal Certificate Authorities (Optional)

If your Azure Stack environment uses an internal CA, add the necessary certificate bundle in .pem format to the [`additionalTrustBundle`](../customization.md#additional-trust-bundle). You will also need to [update the cluster proxy
manifest][proxy-ca] and [add the CA to the ignition shim][ign-ca] in later steps.

## Credentials

Both Azure and Azure Stack credentials are stored by the installer at `~/.azure/osServicePrincipal.json`. The installer will request the required information if no credentials are found.
Expand Down Expand Up @@ -224,6 +229,24 @@ stringData:
azure_region: <$REGION>
```

### Set Cluster to use the Internal Certificate Authority (Optional)

If your Azure Stack environment uses an internal CA, update `.spec.trustedCA.name` to use `user-ca-bundle` in `./manifests/cluster-proxy-01-config.yaml`:

```shell
$ cat manifests/cluster-proxy-01-config.yaml
apiVersion: config.openshift.io/v1
kind: Proxy
metadata:
creationTimestamp: null
name: cluster
spec:
trustedCA:
name: user-ca-bundle
status: {}
```

You will also need to update the ignition shim to include the CA.
## Create ignition configs

Now we can create the bootstrap ignition configs:
Expand Down Expand Up @@ -389,9 +412,28 @@ Copy the [`04_bootstrap.json`](../../../upi/azurestack/04_bootstrap.json) ARM te

Create the deployment using the `az` client:

### Create the Bootstrap Ignition Shim

If your Azure Stack environment uses a public certificate authority, you can create the ignition shim like this:

```sh
export BOOTSTRAP_URL=$(az storage blob url --account-name "${INFRA_ID}sa" --account-key "$ACCOUNT_KEY" -c "files" -n "bootstrap.ign" -o tsv)
export BOOTSTRAP_IGNITION=$(jq -rcnM --arg v "3.2.0" --arg url "$BOOTSTRAP_URL" '{ignition:{version:$v,config:{replace:{source:$url}}}}' | base64 | tr -d '\n')
```

### Create the Bootstrap Ignition Shim with an Internal Certificate Authority (Optional)

If your Azure Stack environments uses an internal CA, you will need to add the PEM encoded bundle to the bootstrap ignition
shim so that your bootstrap VM will be able to pull the bootstrap ignition from the storage account. Assuming your CA
is in a file called `CA.pem` you can add the bundle to the shim like this:

```sh
export CA="data:text/plain;charset=utf-8;base64,$(cat CA.pem |base64 |tr -d '\n')"
export BOOTSTRAP_URL=$(az storage blob url --account-name "${INFRA_ID}sa" --account-key "$ACCOUNT_KEY" -c "files" -n "bootstrap.ign" -o tsv)
export BOOTSTRAP_IGNITION=$(jq -rcnM --arg v "3.2.0" --arg url "$BOOTSTRAP_URL" --arg cert "$CA" '{ignition:{version:$v,security:{tls:{certificateAuthorities:[{source:$cert}]}},config:{replace:{source:$url}}}}' | base64 | tr -d '\n')
```

### Deploy the Bootstrap VM

az deployment group create --verbose -g "$RESOURCE_GROUP" \
--template-file "04_bootstrap.json" \
Expand Down Expand Up @@ -607,3 +649,5 @@ INFO Login to the console with user: kubeadmin, password: REDACTED
[kubernetes-service-load-balancers-exclude-masters]: https://github.com/kubernetes/kubernetes/issues/65618
[manual-credentials]: https://docs.openshift.com/container-platform/4.8/installing/installing_azure/manually-creating-iam-azure.html
[azure-vhd-utils]: https://github.com/microsoft/azure-vhd-utils
[proxy-ca]: #set-cluster-to-use-the-internal-certificate-authority-optional
[ign-ca]: #create-the-bootstrap-ignition-shim-with-an-internal-certificate-authority-optional
2 changes: 1 addition & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1963,11 +1963,11 @@ github.com/yuin/goldmark v1.1.30/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
github.com/yussufsh/power-go-client v1.99.4 h1:+7Zz60BOBZCOlTkbU8LeNiwh2wRfZ+anNwcTG+X30eg=
github.com/yussufsh/power-go-client v1.99.4/go.mod h1:I4r5tCrA8mV5GFqGAJG4/Tn+/JpR+XLnDCLLNVKJxuI=
github.com/yussufsh/terraform-provider-ibm v1.89.0 h1:gjdIIr5DFPQg2ncFVQcM7sgouBCC4ZEtrTqmnezpVoU=
github.com/yussufsh/terraform-provider-ibm v1.89.0/go.mod h1:iPP4zVJhZ0YsaPNVaWNTZHYmWLXFAoou4uE+kRkYF+M=
github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
github.com/zclconf/go-cty v1.1.1/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
Expand Down
9 changes: 3 additions & 6 deletions pkg/asset/installconfig/aws/regions.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ func knownRegions(architecture types.Architecture) map[string]string {
required := rhcos.AMIRegions(architecture)

regions := make(map[string]string)
for _, partition := range endpoints.DefaultPartitions() {
for _, partitionRegion := range partition.Regions() {
partitionRegion := partitionRegion
if required.Has(partitionRegion.ID()) {
regions[partitionRegion.ID()] = partitionRegion.Description()
}
for _, region := range endpoints.AwsPartition().Regions() {
if required.Has(region.ID()) {
regions[region.ID()] = region.Description()
}
}
return regions
Expand Down
8 changes: 3 additions & 5 deletions pkg/asset/installconfig/openstack/validation/cloudinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,11 @@ func (ci *CloudInfo) collectInfo(ic *types.InstallConfig, opts *clientconfig.Cli
if err != nil {
if isUnauthorized(err) {
logrus.Warnf("Missing permissions to fetch Quotas and therefore will skip checking them: %v", err)
return nil
}
if isNotFoundError(err) {
} else if isNotFoundError(err) {
logrus.Warnf("Quota API is not available and therefore will skip checking them: %v", err)
return nil
} else {
return errors.Wrap(err, "failed to load Quota")
}
return errors.Wrap(err, "failed to load Quota")
}

ci.NetworkExtensions, err = networkextensions.Get(ci.clients.networkClient)
Expand Down