Description of problem: Compute resource creation with region does not have validation for invalid type of regions in CLI. i.e. a region could pass as "East_US", "EastUS", "East-US" however, valid one is 'eastus'(lower case) Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: # hammer compute-resource create --name CLI_Test1 --organization-id 1 --location-id 2 --provider AzureRM --app-ident "your-app-id" --secret-key "your_key_details" --sub-id "your_sub_id" --tenant "your_tenat_id" --region "East-US" Compute resource created. # hammer compute-resource create --name CLI_Test2 --organization-id 1 --location-id 2 --provider AzureRM --app-ident "your-app-id" --secret-key "your_key_details" --sub-id "your_sub_id" --tenant "your_tenat_id" --region "EastUS" Compute resource created. # hammer compute-resource create --name CLI_Test3 --organization-id 1 --location-id 2 --provider AzureRM --app-ident "your-app-id" --secret-key "your_key_details" --sub-id "your_sub_id" --tenant "your_tenat_id" --region "East_US" Compute resource created. # hammer compute-resource create --name CLI_Test4 --organization-id 1 --location-id 2 --provider AzureRM --app-ident "your-app-id" --secret-key "your_key_details" --sub-id "your_sub_id" --tenant "your_tenat_id" --region "eastus" Compute resource created. Actual results: Compute Resource is created. Expected results: Compute Resource should not be created. An error should be displayed stating Invalid region type. Please enter region in lowercase. Additional info:
ON_QA failed: @Satellite 6.7.0 snap 6.0 Steps/Observation: - Validation is exists now however return message requires to update for 'special characters' as well along with an example. i.e. using below: --region "east-us" => shows return message "Could not create the compute resource: Region east-us must be lowercase." --region "east_us" => shows return message "Could not create the compute resource: Region east_us must be lowercase."
ON_QA Verified @Satellite 6.7.0 snap 8.0 Observation: - Validation exists: """ Could not create the compute resource: Region EAST-east must be lowercase eg. 'eastus'. No special characters allowed. """
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:1454