Bug 1141119
Summary: | virsh domif-getlink cmd gets "default" which is a invalid link state. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | lcheng |
Component: | libvirt | Assignee: | Erik Skultety <eskultet> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | CC: | dyuan, honzhang, mzhan, pkrempa, rbalakri |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.14-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 05:46:56 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
lcheng
2014-09-12 09:13:31 UTC
Hi lcheng, please check the comment in bug 890483. https://bugzilla.redhat.com/show_bug.cgi?id=890483#c4
> Hi lcheng, please check the comment in bug 890483.
> https://bugzilla.redhat.com/show_bug.cgi?id=890483#c4
Hi dyuan, if the domif-getlink returns 'default' which means 'up', it should be documented. Otherwise users will be confused.
Fixed upstream: commit d9c7f014ee7c23d25483acf4bce344fae169f1dd Author: Erik Skultety <eskultet> Date: Tue Feb 24 17:25:55 2015 +0100 virsh: tweak domif-getlink link state reporting message According to docs, we only support 2 link states for an interface up/down, 'up' being the default state if link state is unspecified in domain's XML, so the message when no link state is provided should be changed a little. v1.2.13-55-gd9c7f01 Verify it as follows. The result is expected. Move its status to VERIFIED. # rpm -q libvirt libvirt-1.2.17-1.el7.x86_64 # virsh dumpxml rhel7.0|grep /interface -B7 <interface type='network'> <mac address='52:54:00:68:ce:60'/> <source network='default' bridge='virbr0'/> <target dev='vnet0'/> <model type='virtio'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> # virsh domif-getlink rhel7.0 52:54:00:68:ce:60 52:54:00:68:ce:60 up # virsh domif-setlink rhel7.0 52:54:00:68:ce:60 down Device updated successfully # virsh domif-getlink rhel7.0 52:54:00:68:ce:60 52:54:00:68:ce:60 down # virsh domif-setlink rhel7.0 52:54:00:68:ce:60 up Device updated successfully # virsh dumpxml rhel7.0|grep /interface -B7 <mac address='52:54:00:68:ce:60'/> <source network='default' bridge='virbr0'/> <target dev='vnet0'/> <model type='virtio'/> <link state='up'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> 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/RHBA-2015-2202.html |