Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Virt-install uselessly nags screenful about missing arguments to format string.
Version-Release number of selected component (if applicable):
libvirt-4.5.0-23.2.module+el8.0.0+3213+f56c86d8.x86_64
How reproducible:
every time
Steps to Reproduce:
1. do:
sudo virt-install \
--name upgrade-rhel-7-8 \
--memory 4096 \
--vcpus 4 \
--disk size=30 \
--location /var/lib/libvirt/images/rhel-server-7.6-x86_64-dvd.iso \
--os-variant rhel7 \
--initrd-inject /home/itengval/src/rhel8-demoday/ks-rhel7.cfg \
--network network=default \
--extra-args="ks=file:/ks-rhel7.cfg console=tty0 console=ttyS0,115200n8"
Actual results:
It works, but one get's this:
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.6/logging/handlers.py", line 71, in emit
if self.shouldRollover(record):
File "/usr/lib64/python3.6/logging/handlers.py", line 187, in shouldRollover
msg = "%s\n" % self.format(record)
File "/usr/lib64/python3.6/logging/__init__.py", line 840, in format
return fmt.format(record)
File "/usr/lib64/python3.6/logging/__init__.py", line 577, in format
record.message = record.getMessage()
File "/usr/lib64/python3.6/logging/__init__.py", line 338, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
Call stack:
File "/usr/share/virt-manager/virt-install", line 955, in <module>
sys.exit(main())
File "/usr/share/virt-manager/virt-install", line 943, in main
guest, installer = build_guest_instance(conn, options)
File "/usr/share/virt-manager/virt-install", line 539, in build_guest_instance
set_distro_variant(options, guest, installer)
File "/usr/share/virt-manager/virt-install", line 317, in set_distro_variant
guest.set_os_name(distro)
File "/usr/share/virt-manager/virtinst/guest.py", line 261, in set_os_name
obj = OSDB.lookup_os(name)
File "/usr/share/virt-manager/virtinst/osdict.py", line 200, in lookup_os
"This alias will be removed in the future."), (key, alias))
Message: "OS name '%s' is deprecated, using '%s' instead. This alias will be removed in the future."
Arguments: (('rhel7', 'rhel7.0'),)
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.6/logging/__init__.py", line 994, in emit
msg = self.format(record)
File "/usr/lib64/python3.6/logging/__init__.py", line 840, in format
return fmt.format(record)
File "/usr/lib64/python3.6/logging/__init__.py", line 577, in format
record.message = record.getMessage()
File "/usr/lib64/python3.6/logging/__init__.py", line 338, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
Call stack:
File "/usr/share/virt-manager/virt-install", line 955, in <module>
sys.exit(main())
File "/usr/share/virt-manager/virt-install", line 943, in main
guest, installer = build_guest_instance(conn, options)
File "/usr/share/virt-manager/virt-install", line 539, in build_guest_instance
set_distro_variant(options, guest, installer)
File "/usr/share/virt-manager/virt-install", line 317, in set_distro_variant
guest.set_os_name(distro)
File "/usr/share/virt-manager/virtinst/guest.py", line 261, in set_os_name
obj = OSDB.lookup_os(name)
File "/usr/share/virt-manager/virtinst/osdict.py", line 200, in lookup_os
"This alias will be removed in the future."), (key, alias))
Message: "OS name '%s' is deprecated, using '%s' instead. This alias will be removed in the future."
Arguments: (('rhel7', 'rhel7.0'),)
WARNING Unable to connect to graphical console: virt-viewer not installed. Please install the 'virt-viewer' package.
WARNING No console to launch for the guest, defaulting to --wait -1
Expected results:
No such warning
Additional info:
This is latest rhel8 atm.
Description of problem: Virt-install uselessly nags screenful about missing arguments to format string. Version-Release number of selected component (if applicable): libvirt-4.5.0-23.2.module+el8.0.0+3213+f56c86d8.x86_64 How reproducible: every time Steps to Reproduce: 1. do: sudo virt-install \ --name upgrade-rhel-7-8 \ --memory 4096 \ --vcpus 4 \ --disk size=30 \ --location /var/lib/libvirt/images/rhel-server-7.6-x86_64-dvd.iso \ --os-variant rhel7 \ --initrd-inject /home/itengval/src/rhel8-demoday/ks-rhel7.cfg \ --network network=default \ --extra-args="ks=file:/ks-rhel7.cfg console=tty0 console=ttyS0,115200n8" Actual results: It works, but one get's this: --- Logging error --- Traceback (most recent call last): File "/usr/lib64/python3.6/logging/handlers.py", line 71, in emit if self.shouldRollover(record): File "/usr/lib64/python3.6/logging/handlers.py", line 187, in shouldRollover msg = "%s\n" % self.format(record) File "/usr/lib64/python3.6/logging/__init__.py", line 840, in format return fmt.format(record) File "/usr/lib64/python3.6/logging/__init__.py", line 577, in format record.message = record.getMessage() File "/usr/lib64/python3.6/logging/__init__.py", line 338, in getMessage msg = msg % self.args TypeError: not enough arguments for format string Call stack: File "/usr/share/virt-manager/virt-install", line 955, in <module> sys.exit(main()) File "/usr/share/virt-manager/virt-install", line 943, in main guest, installer = build_guest_instance(conn, options) File "/usr/share/virt-manager/virt-install", line 539, in build_guest_instance set_distro_variant(options, guest, installer) File "/usr/share/virt-manager/virt-install", line 317, in set_distro_variant guest.set_os_name(distro) File "/usr/share/virt-manager/virtinst/guest.py", line 261, in set_os_name obj = OSDB.lookup_os(name) File "/usr/share/virt-manager/virtinst/osdict.py", line 200, in lookup_os "This alias will be removed in the future."), (key, alias)) Message: "OS name '%s' is deprecated, using '%s' instead. This alias will be removed in the future." Arguments: (('rhel7', 'rhel7.0'),) --- Logging error --- Traceback (most recent call last): File "/usr/lib64/python3.6/logging/__init__.py", line 994, in emit msg = self.format(record) File "/usr/lib64/python3.6/logging/__init__.py", line 840, in format return fmt.format(record) File "/usr/lib64/python3.6/logging/__init__.py", line 577, in format record.message = record.getMessage() File "/usr/lib64/python3.6/logging/__init__.py", line 338, in getMessage msg = msg % self.args TypeError: not enough arguments for format string Call stack: File "/usr/share/virt-manager/virt-install", line 955, in <module> sys.exit(main()) File "/usr/share/virt-manager/virt-install", line 943, in main guest, installer = build_guest_instance(conn, options) File "/usr/share/virt-manager/virt-install", line 539, in build_guest_instance set_distro_variant(options, guest, installer) File "/usr/share/virt-manager/virt-install", line 317, in set_distro_variant guest.set_os_name(distro) File "/usr/share/virt-manager/virtinst/guest.py", line 261, in set_os_name obj = OSDB.lookup_os(name) File "/usr/share/virt-manager/virtinst/osdict.py", line 200, in lookup_os "This alias will be removed in the future."), (key, alias)) Message: "OS name '%s' is deprecated, using '%s' instead. This alias will be removed in the future." Arguments: (('rhel7', 'rhel7.0'),) WARNING Unable to connect to graphical console: virt-viewer not installed. Please install the 'virt-viewer' package. WARNING No console to launch for the guest, defaulting to --wait -1 Expected results: No such warning Additional info: This is latest rhel8 atm.