Bug 1986437

Summary: Bump openshift/api to support ExternalCloudProvider featuregate
Product: OpenShift Container Platform Reporter: Mike Fedosin <mfedosin>
Component: Cloud ComputeAssignee: Mike Fedosin <mfedosin>
Cloud Compute sub component: Cloud Controller Manager QA Contact: sunzhaohua <zhsun>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aos-bugs
Version: 4.9   
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:42:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike Fedosin 2021-07-27 14:28:09 UTC
Description of problem:
In https://github.com/openshift/api/pull/961 we added ExternalCloudProvider feature gate to TechPreviewNoUpgrade feature set.

This change must be included in Machine Config Operator, Cluster Kube Controller Manager Operator and Cluster Cloud Controller Manager Operator. And to do so, we have to bump openshift/api dependency there.

Comment 2 sunzhaohua 2021-08-17 04:12:12 UTC
Verified
clusterversion: 4.9.0-0.nightly-2021-08-16-154237

set up a cluster on azure from start, all work as expected
1)./openshift-install create install-config --log-level=debug --dir=cluster1
2)./openshift-install create manifests --log-level=debug --dir=cluster1
3)vi cluster1/manifests/manifest_feature_gate.yaml
---
apiVersion: config.openshift.io/v1
kind: FeatureGate
metadata:
  name: cluster
spec:
  featureSet: TechPreviewNoUpgrade
4)./openshift-install create cluster --log-level=debug --dir=cluster1

$ oc get featuregate cluster -o yaml
apiVersion: config.openshift.io/v1
kind: FeatureGate
metadata:
  name: cluster
  resourceVersion: "959"
  uid: db1e5062-6c4a-4bc8-a955-167a2a2a797d
spec:
  featureSet: TechPreviewNoUpgrade

$ oc get po -n openshift-cloud-controller-manager
NAME                                              READY   STATUS    RESTARTS      AGE
azure-cloud-controller-manager-84b4c47fc9-cz7gj   1/1     Running   6 (49m ago)   62m
azure-cloud-node-manager-2dprd                    1/1     Running   1 (49m ago)   51m
azure-cloud-node-manager-4rp97                    1/1     Running   1 (49m ago)   51m
azure-cloud-node-manager-5c4qn                    1/1     Running   0             62m
azure-cloud-node-manager-dm989                    1/1     Running   1 (49m ago)   51m
azure-cloud-node-manager-jsclm                    1/1     Running   0             62m
azure-cloud-node-manager-lm29x                    1/1     Running   0             62m

$ oc debug node/zhsun-ccm-4cglh-master-1
Starting pod/zhsun-ccm-4cglh-master-1-debug ...
To use host binaries, run `chroot /host`
chroot /host
Pod IP: 10.0.0.6
If you don't see a command prompt, try pressing enter.
sh-4.4# chroot /host
sh-4.4# cat /etc/systemd/system/kubelet.service
      --cloud-provider=external \

$ oc edit cm config -n openshift-kube-controller-manager
apiVersion: v1
data:
  config.yaml: '{"apiVersion":"kubecontrolplane.config.openshift.io/v1","extendedArguments":{"allocate-node-cidrs":["false"],"cert-dir":["/var/run/kubernetes"],"cloud-config":["/etc/kubernetes/static-pod-resources/configmaps/cloud-config/cloud.conf"],"cloud-provider":["external"]

$ oc edit cm config -n openshift-kube-controller-manager
apiVersion: v1
data:
  config.yaml: '{"apiVersion":"kubecontrolplane.config.openshift.io/v1","extendedArguments":{"allocate-node-cidrs":["false"],"cert-dir":["/var/run/kubernetes"],"cloud-config":["/etc/kubernetes/static-pod-resources/configmaps/cloud-config/cloud.conf"],"cloud-provider":["external"]

Comment 5 errata-xmlrpc 2021-10-18 17:42: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.9.0 bug fix and 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-2021:3759