Bug 1994142 - Missing required cloud config fields for IBM Cloud
Summary: Missing required cloud config fields for IBM Cloud
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.10.0
Assignee: aos-install
QA Contact: Pedro Amoedo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-16 21:04 UTC by Christopher J Schaefer
Modified: 2022-03-10 16:05 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
New feature
Clone Of:
Environment:
Last Closed: 2022-03-10 16:05:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 5152 0 None None None 2021-08-16 21:26:01 UTC
Red Hat Product Errata RHSA-2022:0056 0 None Closed Apache HTTPD versions supported by Red Hat 2022-05-12 03:42:37 UTC

Description Christopher J Schaefer 2021-08-16 21:04:06 UTC
Version:

$ openshift-install version
4.9

Platform:

ibmcloud

Please specify:
IPI

What happened?

The IBM Cloud CCM now has additional required configuration options. Due to this change, the installer now needs to populate those required options to achieve a successful IPI deployment, using the IBM Cloud provider.


An example configuration
```
[global]
version = 1.1.0
[kubernetes]
config-file = ""
[provider]
cluster-default-provider = g2
accountID = accountId
clusterID = clusterId
region = region
g2workerServiceAccountID = accountId
g2VpcName = vpcName
g2Credentials = /etc/vpc/ibmcloud_api_key
```

What did you expect to happen?

installer needs to populate additional required configuration options for the IBM Cloud CCM


Anything else we need to know?

IBM Cloud development is working on a patch to populate the required configuration values.

Comment 3 Pedro Amoedo 2021-09-09 17:24:27 UTC
[QA Summary]

[Parameters]

~~~
$ export TAGS=ibmcloud
$ export IC_API_KEY='<apiKey>'
~~~

[Version]

~~~
$ ./openshift-install-local version
./openshift-install-local unreleased-master-4997-g422e17192462f2b5d5572d8600096949d3c14634
built from commit 422e17192462f2b5d5572d8600096949d3c14634
release image registry.ci.openshift.org/origin/release:4.8
release architecture amd64

$ git --no-pager log --oneline --first-parent origin/master -3
422e17192 (HEAD -> master, upstream/master, origin/master, origin/HEAD) Merge pull request #5158 from stevekuznetsov/skuznets/footprint-gcp
a94ceeaaf Merge pull request #5152 from hasueki/ibm-cloud-config
379f05b0e Merge pull request #5197 from shiftstack/openstack_quota
~~~

[Results]

~~~
$ ./openshift-install-local explain installconfig.platform.ibmcloud
KIND:     InstallConfig
VERSION:  v1

RESOURCE: <object>
  IBMCloud is the configuration used when installing on IBM Cloud.

FIELDS:
    defaultMachinePlatform <object>
      DefaultMachinePlatform is the default configuration used when installing on IBM Cloud for machine pools which do not define their own platform configuration.

    region <string> -required-
      Region specifies the IBM Cloud region where the cluster will be created.

    resourceGroupName <string>
      ResourceGroupName is the name of an already existing resource group where the cluster should be installed. This resource group should only be used for this specific cluster and the cluster components will assume ownership of all resources in the resource group. Destroying the cluster using installer will delete this resource group. 
 This resource group must be empty with no other resources when trying to use it for creating a cluster. If empty, a new resource group will be created for the cluster.

    subnets <[]string>
      Subnets is a list of existing subnet IDs. Leave unset and the installer will create new subnets in the VPC network on your behalf.

    vpc <string>
      VPC is the ID of an existing VPC network. Leave unset and the installer will create a new VPC network on your behalf.

    vpcResourceGroupName <string>
      VPCResourceGroupName specifies the resource group containing an existing VPC. This must be defined if `VPC` is defined.

$ ./openshift-install-local create install-config --dir test22/
? SSH Public Key /home/pamoedo/.ssh/id_rsa_ibm.pub
? Platform ibmcloud
? Resource Group pamoedom-rg (9c9c22f31a8141aab51b772ceabac0b2)
? Region eu-de
? Base Domain ibmcloud.qe.devcluster.openshift.com (openshift-qe-cis)
? Cluster Name pamoedo-test
? Pull Secret [? for help] *************************************************************************************************************************************************************************************************************************
[...]
INFO Install-Config created in: test22

$ cat test22/install-config.yaml 
apiVersion: v1
baseDomain: ibmcloud.qe.devcluster.openshift.com
compute:
- architecture: amd64
  hyperthreading: Enabled
  name: worker
  platform: {}
  replicas: 3
controlPlane:
  architecture: amd64
  hyperthreading: Enabled
  name: master
  platform: {}
  replicas: 3
metadata:
  creationTimestamp: null
  name: pamoedo-test
networking:
  clusterNetwork:
  - cidr: 10.128.0.0/14
    hostPrefix: 23
  machineNetwork:
  - cidr: 10.0.0.0/16
  networkType: OpenShiftSDN
  serviceNetwork:
  - 172.30.0.0/16
platform:
  ibmcloud:
    region: eu-de
    resourceGroupName: pamoedom-rg
publish: External
pullSecret: ***
sshKey: ***
~~~

*** PASSED ***

Comment 6 errata-xmlrpc 2022-03-10 16:05:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0056


Note You need to log in before you can comment on or make changes to this bug.