Bug 1796344
| Summary: | OCP 4.4: CSRs not automatically approved when scaling machineset with providerSpec publicIP set to true | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Walid A. <wabouham> |
| Component: | Cloud Compute | Assignee: | Alberto <agarcial> |
| Cloud Compute sub component: | Other Providers | QA Contact: | Jianwei Hou <jhou> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | high | ||
| Priority: | high | CC: | mifiedle, nelluri, vlaad |
| Version: | 4.4 | Keywords: | NeedsTestCase |
| Target Milestone: | --- | ||
| Target Release: | 4.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-05-15 15:55:51 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
Walid A.
2020-01-30 08:47:52 UTC
This was a regression introduced by: https://github.com/openshift/cluster-api-provider-aws/pull/285 It has been fixed with: https://github.com/openshift/cluster-api-provider-aws/pull/288 Verified in 4.4.0-0.nightly-2020-02-05-181112
A machine with publicIp set to true is provisioned and approved.
apiVersion: machine.openshift.io/v1beta1
kind: Machine
metadata:
annotations:
machine.openshift.io/instance-state: running
creationTimestamp: "2020-02-06T05:38:39Z"
finalizers:
- machine.machine.openshift.io
generateName: qe-jhou06-f8dr2-worker-us-east-2a-publicip-
generation: 2
labels:
machine.openshift.io/cluster-api-cluster: qe-jhou06-f8dr2
machine.openshift.io/cluster-api-machine-role: worker
machine.openshift.io/cluster-api-machine-type: worker
machine.openshift.io/cluster-api-machineset: qe-jhou06-f8dr2-worker-us-east-2a
machine.openshift.io/instance-type: m4.large
machine.openshift.io/region: us-east-2
machine.openshift.io/zone: us-east-2a
name: qe-jhou06-f8dr2-worker-us-east-2a-publicip-ltrpk
namespace: openshift-machine-api
ownerReferences:
- apiVersion: machine.openshift.io/v1beta1
blockOwnerDeletion: true
controller: true
kind: MachineSet
name: qe-jhou06-f8dr2-worker-us-east-2a-publicip
uid: cbf4296b-948a-43ca-bc74-2e1c69b6ea3a
resourceVersion: "58548"
selfLink: /apis/machine.openshift.io/v1beta1/namespaces/openshift-machine-api/machines/qe-jhou06-f8dr2-worker-us-east-2a-publicip-ltrpk
uid: b2c395ac-b0e5-45c7-819b-1056b34c8c39
spec:
metadata:
creationTimestamp: null
providerID: aws:///us-east-2a/i-002b70030a8d0af6c
providerSpec:
value:
ami:
id: ami-0a8ba019bc9d4bd64
apiVersion: awsproviderconfig.openshift.io/v1beta1
blockDevices:
- ebs:
iops: 0
volumeSize: 120
volumeType: gp2
credentialsSecret:
name: aws-cloud-credentials
deviceIndex: 0
iamInstanceProfile:
id: qe-jhou06-f8dr2-worker-profile
instanceType: m4.large
kind: AWSMachineProviderConfig
metadata:
creationTimestamp: null
placement:
availabilityZone: us-east-2a
region: us-east-2
publicIp: true
securityGroups:
- filters:
- name: tag:Name
values:
- qe-jhou06-f8dr2-worker-sg
subnet:
filters:
- name: tag:Name
values:
- qe-jhou06-f8dr2-private-us-east-2a
tags:
- name: kubernetes.io/cluster/qe-jhou06-f8dr2
value: owned
userDataSecret:
name: worker-user-data
status:
addresses:
- address: 10.0.131.133
type: InternalIP
- address: 3.135.218.125
type: ExternalIP
- address: ip-10-0-131-133.us-east-2.compute.internal
type: InternalDNS
- address: ip-10-0-131-133.us-east-2.compute.internal
type: Hostname
- address: ec2-3-135-218-125.us-east-2.compute.amazonaws.com
type: ExternalDNS
lastUpdated: "2020-02-06T05:43:21Z"
nodeRef:
kind: Node
name: ip-10-0-131-133.us-east-2.compute.internal
uid: cecd777b-8291-46fd-8a43-a41a77b3a24a
phase: Running
providerStatus:
apiVersion: awsproviderconfig.openshift.io/v1beta1
conditions:
- lastProbeTime: "2020-02-06T05:38:41Z"
lastTransitionTime: "2020-02-06T05:38:41Z"
message: machine successfully created
reason: MachineCreationSucceeded
status: "True"
type: MachineCreation
instanceId: i-002b70030a8d0af6c
instanceState: running
kind: AWSMachineProviderStatus
oc get csr
NAME AGE REQUESTOR CONDITION
csr-hxw7z 9m35s system:node:ip-10-0-131-133.us-east-2.compute.internal Approved,Issued
csr-vmk49 9m48s system:serviceaccount:openshift-machine-config-operator:node-bootstrapper Approved,Issued
|