Project

General

Profile

Actions

Bug #27420

closed

"Filter host parents" and "Exclude host parents" options do not support in API and hammer CLI

Added by Marek Hulán almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1732699

Description of problem:
[ESX] "Filter host parents", "Exclude host parents" options do not support in API and hammer CLI

Version-Release number of selected component (if applicable):
virt-who-0.24.7-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_virt_who_configure-0.0.3-4.el7sat.noarch
tfm-rubygem-foreman_virt_who_configure-0.4.1-1.el7sat.noarch

How reproducible:
100%

Steps to Reproduce:
1.Create virt-who-config by UI, config Filter Host Parents with domain-c69
Hypervisor Type: VMware vSphere / vCenter (esx)
Hypervisor Server: ...
Hypervisor Username: ...
Interval: Every 2 hours
Satellite server FQDN: ent-02-vm-06.lab.eng.nay.redhat.com
Hypervisor ID: hostname
Filtering: Whitelist
Filter Host Parents:domain-c69

2.Deploy the virt-who-config

3.Config can be created and deployed successfully,Show virt-who-config file, can see filter_host_parents function
[root@ent-02-vm-06 virt-who.d]# cat virt-who-config-4.conf
  1. This configuration file is managed via the virt-who configure plugin
  2. manual edits will be deleted.
    [virt-who-config-4]
    type=esx
    hypervisor_id=hostname
    owner=Default_Organization
    env=Library
    server=...
    username=...
    encrypted_password=...
    filter_host_parents=domain-c69
    rhsm_hostname=...
    rhsm_username=virt_who_reporter_4
    rhsm_encrypted_password=...
    rhsm_prefix=/rhsm

4. Show this virt-who-config via API:
<snip>

5. Show this virt-who-config via hammer CLI:
[root@ent-02-vm-06 virt-who.d]# hammer virt-who-config info --id 4
General information:
Id: 4
Name: esx
Hypervisor type: esx
Hypervisor server: ...
Hypervisor username: ...
Status: OK
Schedule:
Interval: every 2 hours
Last Report At: 2019/07/24 07:11:12
Connection:
Satellite server: ...
Hypervisor ID: hostname
Filtering: Whitelist
Filtered hosts:
Debug mode: yes
HTTP proxy:
Ignore proxy:

Actual results:
Cannot see anything info about the filter_host_parents function in API and hammer cli, and also cannot see filter_host_parents/exclude_host_parents Param in API documentation.
The same with exclude_host_parents.


Related issues 1 (0 open1 closed)

Copied to virt-who configure - Bug #27443: Hammer - "Filter host parents" and "Exclude host parents" options do not support in API and hammer CLIClosedMarek HulánActions
Actions #1

Updated by Marek Hulán almost 5 years ago

  • Copied to Bug #27443: Hammer - "Filter host parents" and "Exclude host parents" options do not support in API and hammer CLI added
Actions #2

Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_virt_who_configure/pull/110 added
Actions #3

Updated by Marek Hulán almost 5 years ago

  • Subject changed from "Filter host parents" and "Exclude host parents" options do not support in API and hammer CLI to "Filter host parents" and "Exclude host parents" options do not support in API and hammer CLI
  • Fixed in Releases foreman_virt_who_configure-0.4.2 added
Actions #4

Updated by Marek Hulán almost 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF