Comment 2 for bug 1071069

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/14795
Committed: http://github.com/openstack/nova/commit/814e7f8c827aa21a87a62594d5b6413bb49e31e1
Submitter: Jenkins
Branch: master

commit 814e7f8c827aa21a87a62594d5b6413bb49e31e1
Author: Vishvananda Ishaya <email address hidden>
Date: Wed Oct 24 16:14:36 2012 -0700

    libvirt: persist volume attachments into config

    When you attach a volume to a running instance, only the running
    xml is updated in libvirt. This is due to the usage of the
    VIRT_DOMAIN_AFFECT_CURRENT flag passed to attach device. What we
    really want is to affect both the config and the running xml. There
    is no combination of flags that works in all states, so we explicitly
    set the right combination of flags depending on the running state
    of the vm.

    Includes a test to test_virt_drivers to ensure the flags are passed
    correctly.

    Fixes bug 1071069

    Change-Id: I1992748b08daf99cf03dfeb0937ad42457fff1a3