Project

General

Profile

Actions

Bug #21773

closed

Snap 6.3.0 25 virt-who doesn't validate file contents and file name leading to duplicate config

Added by Marek Hulán over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Fixed in Releases:
Found in Releases:

Description

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

Description of problem:

Using Virt-who Configurations plugin to create new configuration leads to duplicate config if created config same as old one on satellite 6.3 server.

Version-Release number of selected component (if applicable):

satellite 6.3.0 25.0
virt-who-0.19-6.el7_4.noarch
foreman-1.15.6.9-1.el7sat.noarch

How reproducible:

Always

Steps to Reproduce:
1. Infrastructure --> Virt-who Configurations --> Create Config
2. Fill all the details and submit
3. Again follow steps 1 and 2

Actual results:

Creates two configuration files with same name

Expected results:

Should give error while creating new config file which has same contents as old one.

Additional info:

  1. ll
    total 16
    rw-r--r-. 1 root root 1213 Jul 22 02:16 template.conf
    rw-r--r-. 1 root root 485 Nov 24 12:16 virt-who-config-1.conf
    rw-r--r-. 1 root root 602 Nov 24 12:26 virt-who-config-2.conf
    rw-r--r-. 1 root root 485 Nov 24 14:18 virt-who-config-3.conf
  2. pwd
    /etc/virt-who.d
  1. diff virt-who-config-1.conf virt-who-config-3.conf
    3c3
    < [virt-who-config-1]
    ---

[virt-who-config-3]

12,13c12,13
< rhsm_username=virt_who_reporter_1
< rhsm_encrypted_password=8aa98b69ebfddac99e9239d3f93604d8b1e502cb24b051c89a141e29e31f0582
---

rhsm_username=virt_who_reporter_3
rhsm_encrypted_password=a7713acc7262a086c9fa57ba5b914189ebe1ff712c611f3fa83a29ba3d2a5c85


  1. cat virt-who-config-1.conf
    1. This configuration file is managed via the virt-who configure plugin
    2. manual edits will be deleted.
      [virt-who-config-1]
      type=esx
      hypervisor_id=hostname
      owner=RedHat
      env=Library
      server=vmware-1.xxx.redhat.com
      username=satadmin
      encrypted_password=ea5c98bfec1784e4860a102026eb71ac
      rhsm_hostname=vm250-75.xxx.com
      rhsm_username=virt_who_reporter_1
      rhsm_encrypted_password=8aa98b69ebfddac99e9239d3f93604d8b1e502cb24b051c89a141e29e31f0582
      rhsm_prefix=/rhsm
Actions #1

Updated by The Foreman Bot over 6 years ago

  • Pull request https://github.com/theforeman/foreman_virt_who_configure/pull/75 added
Actions #2

Updated by Marek Hulán over 6 years ago

  • Subject changed from Snap 6.3.0 25 virt-who doesn't validate file contents and file name leading to duplicate config to Snap 6.3.0 25 virt-who doesn't validate file contents and file name leading to duplicate config
  • translation missing: en.field_release set to 320
Actions #3

Updated by Marek Hulán over 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF