Comment 4 for bug 1071069

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

Reviewed: https://review.openstack.org/16718
Committed: http://github.com/openstack/nova/commit/ebabd029aca0d1f4694762c7ac2671cb7d9c062d
Submitter: Jenkins
Branch: stable/folsom

commit ebabd029aca0d1f4694762c7ac2671cb7d9c062d
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
    (cherry picked from commit 814e7f8c827aa21a87a62594d5b6413bb49e31e1)