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

Warnings observed for template while configuring configuring control plane machine set

XMLWordPrintable

    • None
    • 1
    • OSDOCS Sprint 257
    • 1
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

      Description of problem:

      While testing control plane machineset on vsphere. I have observed the following warning messages:
      
      # oc apply -f control-plane-machine-set.yaml 
      Warning: resource controlplanemachinesets/cluster is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by oc apply. oc apply should only be used on resources created declaratively by either oc create --save-config or oc apply. The missing annotation will be patched automatically.
      
      Warning: spec.template.machines_v1beta1_machine_openshift_io.spec.providerSpec.value.template: template field is configured and may be ignored if configured in the failure domain.
      
      Warning: spec.template.machines_v1beta1_machine_openshift_io.spec.providerSpec.value.workspace.resourcePool: resourcePool field is configured and may be ignored if configured in the failure domain.
      
      to:
      Resource: "machine.openshift.io/v1, Resource=controlplanemachinesets", GroupVersionKind: "machine.openshift.io/v1, Kind=ControlPlaneMachineSet"
      Name: "cluster", Namespace: "openshift-machine-api"
      for: "control-plane-machine-set.yaml": error when patching "control-plane-machine-set.yaml": admission webhook "controlplanemachineset.machine.openshift.io" denied the request: [spec.template.machines_v1beta1_machine_openshift_io.spec.providerSpec.value.network: Internal error: network devices should not be set when control plane nodes are in a failure domain: []v1beta1.NetworkDeviceSpec{v1beta1.NetworkDeviceSpec{NetworkName:"PNQ2-25G-PUBLIC-PG", Gateway:"", IPAddrs:[]string(nil), Nameservers:[]string(nil), AddressesFromPools:[]v1beta1.AddressesFromPool(nil)}}, spec.template.machines_v1beta1_machine_openshift_io.spec.providerSpec.value.workspace: Internal error: workspace fields should not be set when control plane nodes are in a failure domain: &v1beta1.Workspace{Server:"example.com", Datacenter:"OpenShift-DC", Folder:"", Datastore:"/OpenShift-DC/datastore/OCP-PNQ-Datastore", ResourcePool:"/OpenShift-DC/host/OCP/Resources"}]    
      
      Here is the CPMS config file that I have used.
      As per the warning
      
      - spec.template.machines_v1beta1_machine_openshift_io.spec.providerSpec.value.template: template field is ignored
      - spec.template.machines_v1beta1_machine_openshift_io.spec.providerSpec.value.workspace.resourcePool: resourcePool field is ignored
      - spec.template.machines_v1beta1_machine_openshift_io.spec.providerSpec.value.network: Internal error: network devices should not be set when control plane nodes are in a failure domain
      - spec.template.machines_v1beta1_machine_openshift_io.spec.providerSpec.value.workspace: Internal error: workspace fields should not be set when control plane nodes are in a failure domain
      
      For network and workspae it is already mentioned in the docuemenation [2]
      [2] https://docs.openshift.com/container-platform/4.15/machine_management/control_plane_machine_management/cpmso_provider_configurations/cpmso-config-options-vsphere.html
      
      However, for template nothing of such is mentioned in documentation [1] seems like a mandatory field.
      
      [1] https://docs.openshift.com/container-platform/4.15/machine_management/control_plane_machine_management/cpmso-getting-started.html#cpmso-activating_cpmso-getting-started

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

      4.16.z    

      How reproducible:

          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          

      Expected results:

          

      Additional info:

          

            jrouth@redhat.com Jeana Routh
            rhn-support-chdeshpa Chinmay Deshpande
            Huali Liu Huali Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: