Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dcm-list-server-products ignores --regionid and display the server products for all regions. #286

Closed
ghost opened this issue Sep 29, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 29, 2015

(venv)45.18.37.41:~/Projects/Blueprints$ dcm-list-server-products --regionid us-east-1
+-------------------+--------------------+---------------------+------------------------------------------------+----------+----------+-------------+
| Server Product ID | Provider Region ID | Provider Product ID | Name                                           | Platform | Currency | Hourly Rate |
+-------------------+--------------------+---------------------+------------------------------------------------+----------+----------+-------------+
| 1474              | ap-northeast-1     | c1.medium           | c1.medium                                      | RHEL     | USD      | 0.218       |
| 1475              | ap-northeast-1     | c1.medium           | c1.medium                                      | RHEL     | USD      | 0.218       |
| 2074              | ap-northeast-1     | c1.medium           | c1.medium                                      | SUSE     | USD      | 0.258       |
| 2075              | ap-northeast-1     | c1.medium           | c1.medium                                      | SUSE     | USD      | 0.258       |
| 3330              | ap-northeast-1     | c1.medium           | c1.medium                                      | UNIX     | USD      | 0.158       |
| 3332              | ap-northeast-1     | c1.medium           | c1.medium                                      | UNIX     | USD      | 0.158       |
| 3331              | ap-northeast-1     | c1.medium           | High-CPU Medium                                | UNKNOWN  | USD      | 0.185       |
| 3333              | ap-northeast-1     | c1.medium           | High-CPU Medium                                | UNKNOWN  | USD      | 0.185       |
| 3334              | ap-northeast-1     | c1.medium           | c1.medium                                      | WINDOWS  | USD      | 0.258       |
| 3335              | ap-northeast-1     | c1.medium           | c1.medium                                      | WINDOWS  | USD      | 0.258       |
| 1477              | ap-northeast-1     | c1.xlarge           | c1.xlarge                                      | RHEL     | USD      | 0.762       |
| 2077              | ap-northeast-1     | c1.xlarge           | c1.xlarge                                      | SUSE     | USD      | 0.732       |
| 3336              | ap-northeast-1     | c1.xlarge           | c1.xlarge                                      | UNIX     | USD      | 0.632       |
| 3337              | ap-northeast-1     | c1.xlarge           | High-CPU Extra Large                           | UNKNOWN  | USD      | 0.74        |
| 3338              | ap-northeast-1     | c1.xlarge           | c1.xlarge                                      | WINDOWS  | USD      | 1.032       |
| 1247              | ap-northeast-1     | c3.2xlarge          | c3.2xlarge                                     | RHEL     | USD      | 0.641       |
| 1847              | ap-northeast-1     | c3.2xlarge          | c3.2xlarge                                     | SUSE     | USD      | 0.611       |
| 663               | ap-northeast-1     | c3.2xlarge          | c3.2xlarge                                     | UNIX     | USD      | 0.511       |
| 664               | ap-northeast-1     | c3.2xlarge          | c3.2xlarge                                     | UNKNOWN  | USD      | 0.511       |
| 2432              | ap-northeast-1     | c3.2xlarge          | c3.2xlarge                                     | WINDOWS  | USD      | 0.925       |
| 1249              | ap-northeast-1     | c3.4xlarge          | c3.4xlarge                                     | RHEL     | USD      | 1.151       |
| 1849              | ap-northeast-1     | c3.4xlarge          | c3.4xlarge                                     | SUSE     | USD      | 1.121       |
| 667               | ap-northeast-1     | c3.4xlarge          | c3.4xlarge                                     | UNIX     | USD      | 1.021       |
| 668               | ap-northeast-1     | c3.4xlarge          | c3.4xlarge                                     | UNKNOWN  | USD      | 1.021       |
| 2434              | ap-northeast-1     | c3.4xlarge          | c3.4xlarge                                     | WINDOWS  | USD      | 1.849       |
| 1251              | ap-northeast-1     | c3.8xlarge          | c3.8xlarge                                     | RHEL     | USD      | 2.173       |
| 1851              | ap-northeast-1     | c3.8xlarge          | c3.8xlarge                                     | SUSE     | USD      | 2.143       |
| 671               | ap-northeast-1     | c3.8xlarge          | c3.8xlarge                                     | UNIX     | USD      | 2.043       |
| 672               | ap-northeast-1     | c3.8xlarge          | c3.8xlarge                                     | UNKNOWN  | USD      | 2.043       |
| 2436              | ap-northeast-1     | c3.8xlarge          | c3.8xlarge                                     | WINDOWS  | USD      | 3.699       |
| 1243              | ap-northeast-1     | c3.large            | c3.large                                       | RHEL     | USD      | 0.188       |
| 1843              | ap-northeast-1     | c3.large            | c3.large                                       | SUSE     | USD      | 0.228       |
| 655               | ap-northeast-1     | c3.large            | c3.large                                       | UNIX     | USD      | 0.128       |
| 656               | ap-northeast-1     | c3.large            | c3.large                                       | UNKNOWN  | USD      | 0.128       |
@ghost
Copy link
Author

ghost commented Sep 30, 2015

Well it looks like the dcm-list-server-products command expects the regionid to be the numeric ID and not the name. The command should put out an appropriate error message - "The regionid is not numeric, etc." and then not display any server product data.

@ghost ghost closed this as completed Sep 30, 2015
@ghost ghost reopened this Sep 30, 2015
@igable
Copy link
Contributor

igable commented Oct 2, 2015

@gforghetti have a look at the long commit message on 23121e3 . Hopefully fixes this to your satisfaction.

@igable igable closed this as completed in 23121e3 Oct 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant