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.
Bug 835433 - Option 'passwordvalidto' under graphics configuration in virt-install could not be used
Summary: Option 'passwordvalidto' under graphics configuration in virt-install could n...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-virtinst
Version: 6.3
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: virt-mgr-maint
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-26 07:39 UTC by Cui Lei
Modified: 2013-04-18 02:19 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-24 19:32:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
virt-install debug log (7.17 KB, application/octet-stream)
2012-06-26 07:39 UTC, Cui Lei
no flags Details

Description Cui Lei 2012-06-26 07:39:50 UTC
Created attachment 594377 [details]
virt-install debug log

Description of problem:
Option 'passwordvalidto' in graphics configuration could not be used in virt-install command.
Here is related command and output:

virt-install -n demo2 -r 1024 --disk path=/tmp/demo2.img,size=5,perms='rw' --graphics type=vnc,password='123456',passwordvalidto='2011-04-01T14:30:15' -l http://tree.englab.nay.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/x86_64/os/

Starting install...
Retrieving file .treeinfo...                                                                                                                                                            | 3.3 kB     00:00 ...
Retrieving file vmlinuz...                                                                                                                                                              | 7.5 MB     00:00 ...
Retrieving file initrd.img...                                                                                                                                                           |  56 MB     00:00 ...
ERROR    (domain_definition):33: attributes construct error
    <graphics type='vnc' port='-1' passwd='123456'passwdValidTo='2011-04-01T14:30:15'/>
--------------------------------------------------^
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start demo2
otherwise, please restart your installation.

Debug log please refer to attached log.


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

python-virtinst-0.600.0-8.el6.noarch
qemu-kvm-0.12.1.2-2.295.el6.x86_64
libvirt-0.9.10-21.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Run virt-install command with passwordvalidto option, such as:
virt-install -n demo2 -r 1024 --disk path=/tmp/demo2.img,size=5,perms='rw' --graphics type=vnc,password='123456',passwordvalidto='2011-04-01T14:30:15' -l http://tree.englab.nay.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/x86_64/os/
2. check the output

Actual results:
Error output, which hint
"ERROR    (domain_definition):33: attributes construct error
    <graphics type='vnc' port='-1' passwd='123456'passwdValidTo='2011-04-01T14:30:15'/>
--------------------------------------------------^"

Expected results:
The command should be executed successfully

Additional Info:
Downgrade python-virtinst and libvirt, issue could be reproduced.
python-virtinst-0.600.0-5.el6.noarch
libvirt-0.9.4-23.el6.x86_64

Comment 1 Cole Robinson 2012-07-08 22:27:21 UTC
Thanks for the report, fixed upstream:

http://git.fedorahosted.org/git?p=python-virtinst.git;a=commit;h=8abe73ca3a7d35eb034007f2a0250a6a76c41ca3


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