Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-60041

Some required anonymized data points were not anonymized.

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • CCXDEV Sprint 148
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          The ProviderSpec.Placement of MachineSet CRD wasn't anonymized in the Insights archive

      Version-Release number of selected component (if applicable):

      4.16.z    

      How reproducible:

      Deploy a machineSet CRD, restart IO, and check Insights archive.

      Steps to Reproduce:

          1. Deploy the machineSet CRD by using the YAML file below: apiVersion: machine.openshift.io/v1beta1
      kind: MachineSet
      metadata:
        name: test
        namespace: openshift-machine-api
        labels:
          machine.openshift.io/cluster-api-cluster: mycluster-abcde
      spec:
        replicas: 1
        selector:
          matchLabels:
            machine.openshift.io/cluster-api-cluster: mycluster-abcde
            machine.openshift.io/cluster-api-machineset: example-worker-east
        template:
          metadata:
            labels:
              machine.openshift.io/cluster-api-cluster: mycluster-abcde
              machine.openshift.io/cluster-api-machine-role: worker
              machine.openshift.io/cluster-api-machine-type: worker
              machine.openshift.io/cluster-api-machineset: example-worker-east
          spec:
            metadata:
              labels:
                node-role.kubernetes.io/worker: ""
            providerSpec:
              value:
                apiVersion: awsproviderconfig.openshift.io/v1beta1  # or openstackproviderconfig.openshift.io/v1alpha1, etc.
                kind: AWSMachineProviderConfig
                instanceType: m5.large
                placement:
                  region: us-east-1
                  availabilityZone: us-east-1a
                ami:
                  id: ami-0dd810c1f47c5c233
                subnet:
                  id: subnet-abcdef1234567890
                tags:
                  - name: openshiftClusterID
                    value: mycluster-abcde
                userDataSecret:
                  name: worker-user-data
                credentialsSecret:
                  name: aws-cloud-credentials
      2. Restarting IO.
      3. Check the /machinesets/openshift-machine-api/test.json archive file, check if all the required anonymized data is anonymized successfully.

      Actual results:

          3. The archive file wasn't anonymized the first ProviderSpec.Placement field:
      
      

       

      Expected results:

          {"apiVersion":"machine.openshift.io/v1beta1","kind":"MachineSet","metadata":{"annotations":{"capacity.cluster-autoscaler.kubernetes.io/labels":"kubernetes.io/arch=amd64","kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"machine.openshift.io/v1beta1\",\"kind\":\"MachineSet\",\"metadata\":{\"annotations\":{},\"labels\":{\"machine.openshift.io/cluster-api-cluster\":\"mycluster-abcde\"},\"name\":\"test\",\"namespace\":\"openshift-machine-api\"},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"machine.openshift.io/cluster-api-cluster\":\"mycluster-abcde\",\"machine.openshift.io/cluster-api-machineset\":\"example-worker-east\"}},\"template\":{\"metadata\":{\"labels\":{\"machine.openshift.io/cluster-api-cluster\":\"mycluster-abcde\",\"machine.openshift.io/cluster-api-machine-role\":\"worker\",\"machine.openshift.io/cluster-api-machine-type\":\"worker\",\"machine.openshift.io/cluster-api-machineset\":\"example-worker-east\"}},\"spec\":{\"metadata\":{\"labels\":{\"node-role.kubernetes.io/worker\":\"\"}},\"providerSpec\":{\"value\":{\"ami\":{\"id\":\"ami-0dd810c1f47c5c233\"},\"apiVersion\":\"awsproviderconfig.openshift.io/v1beta1\",\"credentialsSecret\":{\"name\":\"aws-cloud-credentials\"},\"instanceType\":\"m5.large\",\"kind\":\"AWSMachineProviderConfig\",\"placement\":{\"availabilityZone\":\"us-east-1a\",\"region\":\"us-east-1\"},\"subnet\":{\"id\":\"subnet-abcdef1234567890\"},\"tags\":[{\"name\":\"openshiftClusterID\",\"value\":\"mycluster-abcde\"}],\"userDataSecret\":{\"name\":\"worker-user-data\"}}}}}}}\n","machine.openshift.io/GPU":"0","machine.openshift.io/memoryMb":"8192","machine.openshift.io/vCPU":"2"},"creationTimestamp":"2025-08-01T07:46:50Z","generation":2,"labels":{"machine.openshift.io/cluster-api-cluster":"mycluster-abcde"},"name":"test","namespace":"openshift-machine-api","resourceVersion":"57449","uid":"c5ddd803-dc49-4206-a2af-257e4dd0a19f"},"spec":{"replicas":1,"selector":{"matchLabels":{"machine.openshift.io/cluster-api-cluster":"mycluster-abcde","machine.openshift.io/cluster-api-machineset":"example-worker-east"}},"template":{"metadata":{"labels":{"machine.openshift.io/cluster-api-cluster":"mycluster-abcde","machine.openshift.io/cluster-api-machine-role":"worker","machine.openshift.io/cluster-api-machine-type":"worker","machine.openshift.io/cluster-api-machineset":"example-worker-east"}},"spec":{"lifecycleHooks":{},"metadata":{"labels":{"node-role.kubernetes.io/worker":""}},"providerSpec":{"value":{"ami":{"id":"ami-000abd48695e852a9"},"apiVersion":"awsproviderconfig.openshift.io/v1beta1","capacityReservationId":"","credentialsSecret":{"name":"aws-cloud-credentials"},"deviceIndex":0,"instanceType":"m5.large","kind":"AWSMachineProviderConfig","metadata":{"creationTimestamp":null},"metadataServiceOptions":{},"placement":{"availabilityZone":"xxxxxxxxxx","region":"xxxxxxxxx"},"subnet":{"id":"subnet-abcdef1234567890"},"tags":[{"name":"openshiftClusterID","value":"mycluster-abcde"}],"userDataSecret":{"name":"worker-user-data"}}}}}},"status":{"fullyLabeledReplicas":1,"observedGeneration":2,"replicas":1}}

      Additional info:

          

              opokorny@redhat.com Ondrej Pokorny
              rh-ee-bazhou Baiyang Zhou
              None
              None
              Baiyang Zhou Baiyang Zhou
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: