Bug 956995
| Summary: | iface-start/destroy should add checkpoint of interface's status before execute | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | EricLee <bili> |
| Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
| Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.4 | CC: | acathrow, cwei, dyuan, honzhang, jdenemar, mzhan |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 956994 | Environment: | |
| Last Closed: | 2014-03-31 14:37:27 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: | |||
| Bug Depends On: | 956994 | ||
| Bug Blocks: | |||
|
Description
EricLee
2013-04-26 07:28:55 UTC
Patches proposed upstream: https://www.redhat.com/archives/libvir-list/2013-December/msg00611.html Closing with the explanation given on the RHEL-7 clone (bug 956994): virsh iface-define is no more careless than virsh define or virsh net-define - none of them checks for an existing domain/network/interface of the same name prior to making the new definition, as re-defining something existing is equivalent to editing it. As is normal with a powerful tool, it is easy to shoot yourself in the foot. What *does* already exist, is a method of taking a snapshot of the network configuration state prior to making any modifications: virsh iface-begin will save a copy of all the ifcfg-* files in /etc/sysconfig/network-scripts. You can then do all of the virsh iface-define/undefine you like, and the results will be made directly into /etc/sysconfig/network-scripts. But if you decide you don't want those changes, you can run: virsh iface-rollback and the original ifcfg-* files will be put back in place. Once you are certain that the configuration is as you want it, you run: virsh iface-commit to make the changes permanent. If you reboot the system before running virsh iface-commit, all network config changes that you made after the virsh iface-begin will be automatically rolled back. This seems to me to be about as much of a safeguard as can be added without changing the basic API in a non-compatible way. Based on that, I'm closing this as NOTABUG. If you disagree, feel free to re-open. |