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 about 6 years ago. Updated about 4 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 #1

Updated by Oleh Fedorenko almost 5 years 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
Actions #2

Updated by Shira Maximov over 4 years ago

  • In Kanboard set to yes
Actions #3

Updated by Shira Maximov about 4 years ago

  • Status changed from New to Resolved

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

Actions

Also available in: Atom PDF