Project

General

Profile

Actions

Bug #22408

closed

Could not able to view info of compute-resource image passing name for all parameters

Added by Ondřej Pražák over 7 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Compute resources
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:
yes

Description

Description of problem: Compute-resource image info need to pass id for at least one of the parameter. Not able to view info of compute-resource image passing name of all required parameters.

How reproducible: always

Steps to Reproduce:
1.# hammer -v -u admin -p changeme --output=csv compute-resource create --datacenter="Default" --url="https://URL/api" --user="admin" --provider="Ovirt" --password="password" --name="test"
Message,Id,Name
Compute resource created,7,test

2. # hammer -v -u admin -p changeme --output=csv compute-resource image create --username="root" --password="password" --operatingsystem="RedHat 6.8" --name="test_image" --uuid="Default" --compute-resource="test" --architecture="x86_64"
Message,Id,Name
Image created,3,test_image

3. # hammer compute-resource image info --compute-resource 'test' --name 'test_image'
missing param 'operatingsystem_id' in parameters

4. # hammer compute-resource image info --name test_image --compute-resource 'test' --operatingsystem="RedHat 6.8"
missing param 'operatingsystem_id' in parameters

Actual results:

Not able to view info of compute-resource image passing --compute-resource name and --name name of image.

Expected results:

Compute-resource image should display info passing --compute-resource name and --name name of image as parameters.

Additional info: If one of the parameter passed as id, successfully showed info.

  1. hammer compute-resource image info --compute-resource 'test' --id 3
    Id: 3
    Name: test_image
    Operating System: RedHat 6.8
    Username: root
    UUID: Default
    Architecture: x86_64
    IAM role:
    Created at: 2017/11/24 11:24:51
    Updated at: 2017/11/24 11:24:51
  1. hammer compute-resource image info --compute-resource-id 7 --name 'test_image'
    Id: 3
    Name: test_image
    Operating System: RedHat 6.8
    Username: root
    UUID: Default
    Architecture: x86_64
    IAM role:
    Created at: 2017/11/24 11:24:51
    Updated at: 2017/11/24 11:24:51
Actions

Also available in: Atom PDF