-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.10
-
Quality / Stability / Reliability
-
None
-
None
-
None
-
Moderate
-
None
-
Unspecified
-
None
-
None
-
Rejected
-
None
-
None
-
If docs needed, set a value
-
None
-
None
-
None
-
None
-
None
Version:
$ openshift-install version
openshift-install 4.10.0-0.nightly-2022-01-28-213019
built from commit 4fc9fa88c22221b6cede2456b1c33847943b75c9
release image registry.ci.openshift.org/ocp/release@sha256:08421fc455ec6686257afe0b09dacaa811425fb0ef7e8cd7c123312f40352b9a
release architecture amd64
Platform: alibabacloud
Please specify:
- IPI
What happened?
With 'privateZoneID' specified in 'install-config.yaml', after destroying the cluster the related zone records are not deleted.
What did you expect to happen?
The zone records created by installer should be deleted after destroying the cluster.
How to reproduce it (as minimally and precisely as possible)?
Always.
Anything else we need to know?
FYI the issue was introduced by bug fixing of https://bugzilla.redhat.com/show_bug.cgi?id=2046025.
>(1) before installation, create the VPC and PVTZ via alicloud UI
$ aliyun vpc DescribeVpcs --RegionId us-east-1 --VpcName jiwei-603-vpc --endpoint vpc.aliyuncs.com --output cols=CreationTime,VpcId,CidrBlock rows=Vpcs.Vpc[]
CreationTime | VpcId | CidrBlock
------------ | ----- | ---------
2022-01-29T03:39:07Z | vpc-0xifjl4lq21834b2z7p52 | 10.0.0.0/16
$ aliyun vpc DescribeVSwitches --RegionId us-east-1 --VpcId vpc-0xifjl4lq21834b2z7p52 --endpoint vpc.aliyuncs.com --output cols=Status,VSwitchName,VSwitchId,CidrBlock,ZoneId rows=VSwitches.VSwitch[]
Status | VSwitchName | VSwitchId | CidrBlock | ZoneId
------ | ----------- | --------- | --------- | ------
Available | jiwei-603-vswitch-us-east-1b | vsw-0xiaf8vw0talxcx2muhga | 10.0.224.0/20 | us-east-1b
Available | jiwei-603-vswitch-us-east-1a | vsw-0xi6k07lku8uq96iid66n | 10.0.240.0/20 | us-east-1a
Available | jiwei-603-vswitch-natgw | vsw-0xixv7g336a9mssnzul1c | 10.0.176.0/20 | us-east-1a
$ aliyun vpc DescribeNatGateways --RegionId us-east-1 --VpcId vpc-0xifjl4lq21834b2z7p52 --endpoint vpc.aliyuncs.com --output cols=NatGatewayId,NetworkType,IpLists.IpList[].IpAddress,SnatTableIds.SnatTableId rows=NatGateways.NatGateway[]
NatGatewayId | NetworkType | IpLists.IpList[].IpAddress | SnatTableIds.SnatTableId
------------ | ----------- | -------------------------- | ------------------------
ngw-0xi0fs66zfnkl4vnm8n1f | internet | [47.253.97.183] | [stb-0xikajj0t26dfu5haq8rz]
$ aliyun vpc DescribeSnatTableEntries --RegionId us-east-1 --SnatTableId stb-0xikajj0t26dfu5haq8rz --endpoint vpc.aliyuncs.com --output cols=SnatEntryId,Status,SnatIp,SourceCIDR,SourceVSwitchId rows=SnatTableEntries.SnatTableEntry[]
SnatEntryId | Status | SnatIp | SourceCIDR | SourceVSwitchId
----------- | ------ | ------ | ---------- | ---------------
snat-0xi3vstuvlavvfsdbroml | Available | 47.253.97.183 | 10.0.224.0/20 | vsw-0xiaf8vw0talxcx2muhga
snat-0xi9020z483auqgid9hiw | Available | 47.253.97.183 | 10.0.240.0/20 | vsw-0xi6k07lku8uq96iid66n
$
>(2) do the installation and then destroying
$ openshift-install version
openshift-install 4.10.0-0.nightly-2022-01-28-213019
built from commit 4fc9fa88c22221b6cede2456b1c33847943b75c9
release image registry.ci.openshift.org/ocp/release@sha256:08421fc455ec6686257afe0b09dacaa811425fb0ef7e8cd7c123312f40352b9a
release architecture amd64
$ openshift-install create install-config --dir work
? SSH Public Key /home/fedora/.ssh/openshift-qe.pub
? Platform alibabacloud
? Region us-east-1
? Base Domain alicloud-qe.devcluster.openshift.com
? Cluster Name jiwei-603
? Pull Secret [? for help] ****
INFO Install-Config created in: work
$ echo 'credentialsMode: Manual' >> work/install-config.yaml
$ vim work/install-config.yaml
$ yq e .platform work/install-config.yaml
alibabacloud:
region: us-east-1
vpcID: vpc-0xifjl4lq21834b2z7p52
vswitchIDs:
- vsw-0xi6k07lku8uq96iid66n
- vsw-0xiaf8vw0talxcx2muhga
privateZoneID: 1d59c05ad3fde7feca6e432669d7115f
$ yq e .metadata work/install-config.yaml
creationTimestamp: null
name: jiwei-603
$ yq e .credentialsMode work/install-config.yaml
Manual
$ openshift-install create manifests --dir work
INFO Consuming Install Config from target directory
INFO Manifests created in: work/manifests and work/openshift
$ openshift-install create cluster --dir work --log-level info
INFO Consuming Master Machines from target directory
INFO Consuming Openshift Manifests from target directory
INFO Consuming Worker Machines from target directory
INFO Consuming OpenShift Install (Manifests) from target directory
INFO Consuming Common Manifests from target directory
INFO Creating infrastructure resources...
INFO Waiting up to 20m0s (until 4:14AM) for the Kubernetes API at https://api.jiwei-603.alicloud-qe.devcluster.openshift.com:6443...
INFO API v1.23.3+b63be7f up
INFO Waiting up to 30m0s (until 4:26AM) for bootstrapping to complete...
INFO Destroying the bootstrap resources...
INFO Waiting up to 40m0s (until 4:46AM) for the cluster at https://api.jiwei-603.alicloud-qe.devcluster.openshift.com:6443 to initialize...
W0129 04:06:30.527842 432691 reflector.go:324] k8s.io/client-go/tools/watch/informerwatcher.go:146: failed to list *v1.ClusterVersion: Get "https://api.jiwei-603.alicloud-qe.devcluster.openshift.com:6443/apis/config.openshift.io/v1/clusterversions?fieldSelector=metadata.name%3Dversion&limit=500&resourceVersion=0": http2: client connection lost
I0129 04:06:30.528548 432691 trace.go:205] Trace[893700782]: "Reflector ListAndWatch" name:k8s.io/client-go/tools/watch/informerwatcher.go:146 (29-Jan-2022 04:06:17.699) (total time: 12828ms):
Trace[893700782]: ---"Objects listed" error:Get "https://api.jiwei-603.alicloud-qe.devcluster.openshift.com:6443/apis/config.openshift.io/v1/clusterversions?fieldSelector=metadata.name%3Dversion&limit=500&resourceVersion=0": http2: client connection lost 12828ms (04:06:30.527)
Trace[893700782]: [12.828465688s] [12.828465688s] END
E0129 04:06:30.528967 432691 reflector.go:138] k8s.io/client-go/tools/watch/informerwatcher.go:146: Failed to watch *v1.ClusterVersion: failed to list *v1.ClusterVersion: Get "https://api.jiwei-603.alicloud-qe.devcluster.openshift.com:6443/apis/config.openshift.io/v1/clusterversions?fieldSelector=metadata.name%3Dversion&limit=500&resourceVersion=0": http2: client connection lost
INFO Waiting up to 10m0s (until 4:32AM) for the openshift-console route to be created...
INFO Install complete!
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/home/fedora/work/auth/kubeconfig'
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.jiwei-603.alicloud-qe.devcluster.openshift.com
INFO Login to the console with user: "kubeadmin", and password: "SLCLa-4rye8-tcAxv-hLsr6"
INFO Time elapsed: 31m50s
$ export KUBECONFIG=/home/fedora/work/auth/kubeconfig
$ oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.10.0-0.nightly-2022-01-28-213019 True False 10m Cluster version is 4.10.0-0.nightly-2022-01-28-213019
$ oc get nodes
NAME STATUS ROLES AGE VERSION
jiwei-603-nbtdt-master-0 Ready master 34m v1.23.3+b63be7f
jiwei-603-nbtdt-master-1 Ready master 33m v1.23.3+b63be7f
jiwei-603-nbtdt-master-2 Ready master 34m v1.23.3+b63be7f
jiwei-603-nbtdt-worker-us-east-1a-tknwg Ready worker 24m v1.23.3+b63be7f
jiwei-603-nbtdt-worker-us-east-1b-6vkf5 Ready worker 21m v1.23.3+b63be7f
jiwei-603-nbtdt-worker-us-east-1b-v4wzm Ready worker 22m v1.23.3+b63be7f
$ aliyun pvtz DescribeZones --QueryVpcId vpc-0xifjl4lq21834b2z7p52 --endpoint pvtz.us-east-1.aliyuncs.com
{
"PageNumber": 1,
"PageSize": 20,
"RequestId": "4AACB315-444B-5541-AC89-706E305EBDF7",
"TotalItems": 1,
"TotalPages": 1,
"Zones":Unknown macro: { "Zone"}}
$
$ openshift-install destroy cluster --dir work --log-level info
INFO OSS bucket deleted bucketName=jiwei-603-nbtdt-image-registry-us-east-1-abrwlmcckaiupnbkbomxx stage=OSS buckets
INFO OSS buckets deleted stage=OSS buckets
INFO ECS instances deleted stage=ECS instances
INFO RAM roles deleted stage=RAM roles
INFO SLB instances deleted stage=SLBs
INFO Security groups deleted stage=ECS security groups
INFO Resource group deleted name=jiwei-603-nbtdt-rg stage=resource groups
INFO Time elapsed: 47s
$
>(3) make sure the PVTZ stays and the cluster's zone records are deleted, after destroying the cluster
$ aliyun pvtz DescribeZones --QueryVpcId vpc-0xifjl4lq21834b2z7p52 --endpoint pvtz.us-east-1.aliyuncs.com
{
"PageNumber": 1,
"PageSize": 20,
"RequestId": "68D83C85-B6B3-504C-B643-05251764C04F",
"TotalItems": 1,
"TotalPages": 1,
"Zones": {
"Zone": [
]
}
}
>$ aliyun pvtz DescribeZoneRecords --ZoneId 1d59c05ad3fde7feca6e432669d7115f --endpoint pvtz.us-east-1.aliyuncs.com --output cols=Rr,Value,Status,Ttl rows=Records.Record[]
Rr | Value | Status | Ttl
– | ----- | ------ | —
*.apps | 47.252.20.1 | ENABLE | 30
api | 10.0.240.83 | ENABLE | 60
api-int | 10.0.240.83 | ENABLE | 60
$