Project

General

Profile

Actions

Bug #28172

closed

Compute resource create with region does not has validation for invalid type regions

Added by Vijay Singh about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Compute resource create with region does not has validation for invalid type regions

i.e. a region could pass as "East_US", "EastUS", "East-US" however valid one is 'eastus'(lower case)

Steps:


 # 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.


Related issues 2 (0 open2 closed)

Related to AzureRM - Feature #27405: CLI support for AzureRM Compute ResourceClosedAditi PuntambekarActions
Related to AzureRM - Tracker #28389: Bug fixes after refactoring to sdkClosedAditi Puntambekar

Actions
Actions #1

Updated by Vijay Singh about 5 years ago

  • Related to Feature #27405: CLI support for AzureRM Compute Resource added
Actions #2

Updated by Aditi Puntambekar almost 5 years ago

  • Status changed from New to Ready For Testing
  • Triaged changed from No to Yes
  • Pull request https://github.com/theforeman/foreman_azure_rm/pull/48 added
Actions #3

Updated by Aditi Puntambekar almost 5 years ago

Actions #4

Updated by Aditi Puntambekar almost 5 years ago

  • Status changed from Ready For Testing to Resolved
Actions #5

Updated by Aditi Puntambekar almost 5 years ago

  • Status changed from Resolved to Closed
Actions #6

Updated by Aditi Puntambekar almost 5 years ago

  • Bugzilla link set to 1780246
Actions

Also available in: Atom PDF