Uploaded image for project: 'Hybrid Application Console'
  1. Hybrid Application Console
  2. HAC-2118

[OCM Wizards] CIDR validation - incorrect validation error messages

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • Infrastructure
    • False
    • False
    • None
    • HAC Infra - Sprint 224

      The UI validation error messages are incorrect, or at least misleading

      The subnet mask can't be lower than '/${AWS_MACHINE_CIDR_MIN}'.

      Should be

      The subnet mask can't be larger than '/${AWS_MACHINE_CIDR_MIN}'.

      (CIDR notation can be confusing, smaller numbers indicate larger blocks of IPs)

      https://gitlab.cee.redhat.com/service/uhc-portal/-/blob/master/src/common/validators.js#L466

      Same logic follows with

      Finally, I believe the "which provides up to X nodes." logic in https://gitlab.cee.redhat.com/service/uhc-portal/-/blob/master/src/common/validators.js#L488-498 is wrong. I'm not sure what the proper validation is, but we should consider removing this part of the message until it's been properly vetted.

              jpuzzo@redhat.com Jeff Puzzo
              wgordon.openshift Will Gordon
              Archiver:
              rhn-support-sthamilt Stacey Hamilton
              Xue Li Xue Li

                Created:
                Updated:
                Resolved:
                Archived: