Project

General

Profile

Bug #22408

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

Added by Ondřej Pražák over 2 years ago. Updated 8 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Compute resources
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
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

History

#1 Updated by Oleh Fedorenko over 1 year ago

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

Is it still reproducible? I've tried those commands but with Libvirt provider and I've got the info about the image.

hammer compute-resource image info --compute-resource 'libvirt' --name 'test_image'

Id:               2
Name:             test_image
Operating System: CentOS 7
Username:         root
UUID:             Default
Architecture:     x86_64
Created at:       2019/04/02 16:41:23
Updated at:       2019/04/02 16:41:23

#2 Updated by Shira Maximov 10 months ago

  • In Kanboard set to yes

#3 Updated by Shira Maximov 8 months ago

  • Status changed from New to Resolved

This issue was resolved already, therefor I'm closing it.

Also available in: Atom PDF