Bug 1356607 - GET calls are broken on CLI
Summary: GET calls are broken on CLI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli
Version: 3.6.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-3.6.8
: 3.6.8
Assignee: Juan Hernández
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-14 12:47 UTC by sefi litmanovich
Modified: 2021-08-30 10:46 UTC (History)
12 users (show)

Fixed In Version: rhevm-cli-3.6.8.1-1.el6ev
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 14:11:36 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-43168 0 None None None 2021-08-30 10:46:16 UTC
Red Hat Knowledge Base (Solution) 2463181 0 None None None 2016-07-26 15:51:24 UTC
Red Hat Product Errata RHEA-2016:1511 0 normal SHIPPED_LIVE 3.6.8 - rhevm-cli bug fix and enhancement update 2016-07-27 18:09:59 UTC
oVirt gerrit 60762 0 master MERGED cli: Try to locate objects using id, name and alias 2016-07-15 08:35:31 UTC
oVirt gerrit 60776 0 cli_3.6 MERGED cli: Try to locate objects using id, name and alias 2016-07-15 08:37:59 UTC

Description sefi litmanovich 2016-07-14 12:47:48 UTC
Description of problem:
Hi, there seems to be a regression on rhevm-cli, it looks like all the actions that require GET calls are not working.
I was able e.g. to create a new vmpool which is POST.
But then when I try to update it, I get :
vmpool {vmpool_id} does not exist.

got the same when tried to update a vm.
Then tried to call show vm {vm_name} or show datacenter default.. got the same.

Version-Release number of selected component (if applicable):
rhevm-cli-3.6.2.1-1.el6ev.noarch
rhevm-3.6.8-0.1.el6.noarch
rhevm-sdk-python-3.6.8.0-1.el6ev.noarch

How reproducible:
always

Steps to Reproduce:
1. install latest rhevm-cli and rhevm-sdk-python.
2. connect to rhevm-shell:
a. download certificate from server.
b. rhevm-shell -c -l https://{engine_url}/api -u admin@internal -A rhevm.cer
3. try to get information on datacenter or vm or whatver, e.g.
show datacenter default

Actual results:
datacenter default does not exist.


Expected results:
get information for datacenter default.

Additional info:
no info in engine.log

Comment 5 Martin Perina 2016-07-20 08:07:48 UTC
Included in latest 3.6.8 build, moving to ON_QA

Comment 6 Lukas Svaty 2016-07-20 09:59:11 UTC
verified in rhevm-cli-3.6.8.1-1.el6ev.noarch

Comment 7 Lukas Svaty 2016-07-20 10:06:53 UTC
see steps:
1.
[RHEVM shell (connected)]# list datacenters 

id         : 00000001-0001-0001-0001-0000000000ab
name       : Default
description: The default Data Center

2. list based on autocomplete help on name - should work -> BZ#1358227
[RHEVM shell (connected)]# show datacenter --name Default
====== ERROR =====
  datacenter identifier or name required.
==================

3.  list based on autocomplete help on id - should work -> BZ#1358227
[RHEVM shell (connected)]# show datacenter --id 00000001-0001-0001-0001-0000000000ab
====== ERROR =====                     
option "--id" is not supported, see help for more details.
=================

4. supported command on name
[RHEVM shell (connected)]# show datacenter Default

id                              : 00000001-0001-0001-0001-0000000000ab
name                            : Default
description                     : The default Data Center
local                           : False
mac_pool-id                     : 0000000d-000d-000d-000d-0000000003cd
quota_mode                      : disabled
status-state                    : uninitialized
supported_versions-version-major: 3
supported_versions-version-minor: 6
version-major                   : 3
version-minor                   : 6

5. supported command on id
[RHEVM shell (connected)]# show datacenter 00000001-0001-0001-0001-0000000000ab

id                              : 00000001-0001-0001-0001-0000000000ab
name                            : Default
description                     : The default Data Center
local                           : False
mac_pool-id                     : 0000000d-000d-000d-000d-0000000003cd
quota_mode                      : disabled
status-state                    : uninitialized
supported_versions-version-major: 3
supported_versions-version-minor: 6
version-major                   : 3
version-minor

Comment 9 errata-xmlrpc 2016-07-27 14:11:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-1511.html


Note You need to log in before you can comment on or make changes to this bug.