[Openstack-security] [openstack/nova] SecurityImpact review request change Ib85d2a93bc4fcfdcec5a85310afa7b4f947b58c8

gerrit2 at review.openstack.org gerrit2 at review.openstack.org
Wed Jan 7 13:53:11 UTC 2015


Hi, I'd like you to take a look at this patch for potential
SecurityImpact.
https://review.openstack-ci.berlin.x-ion.de/22

Log:
commit 4f41d37499d5e34f3a220ab1276280caa3fdb9bf
Author: Alessandro Pilotti <apilotti at cloudbasesolutions.com>
Date:   Mon Mar 24 03:11:04 2014 +0200

    Fixes a Hyper-V list_instances localization issue
    
    The Hyper-V WMI MSVM_ComputerSystem class Caption property can
    have different values on various locales. This patch uses a
    different query to avoid any localization issue.
    
    Co-Authored-By: Robert Tingirica <rtingirica at cloudbasesolutions.com>
    Closes-Bug: #1296478
    (cherry picked from commit a5405fa3532d9dd3d33e848f36cc6530e74e6bb7)
    
    Change-Id: I15103b8edb3ff8934c835826ed00e08593cdeacc

commit 9015410ec95fe7dc23fb3cb2be432915a9733cbd
Author: Alessandro Pilotti <apilotti at cloudbasesolutions.com>
Date:   Wed Mar 12 16:53:32 2014 +0200

    Adds list_instance_uuids to the Hyper-V driver
    
    In case of large number of servers, the _destroy_evacuated_instances
    fails randomly. Implementing list_instance_uuids solves the issue.
    
    Co-Authored-By: Robert Tingirica <rtingirica at cloudbasesolutions.com>
    Co-Authored-By: Ionut Balutoiu <ibalutoiu at cloudbasesolutions.com>
    Closes-bug: #1291364
    (cherry picked from commit 73da55e4ef626283ae58a97c7ad89854ec77daa3)
    
    Conflicts:
    	nova/tests/virt/hyperv/test_vmops.py
    	nova/tests/virt/hyperv/test_vmutils.py
    	nova/tests/virt/hyperv/test_vmutilsv2.py
    	nova/virt/hyperv/vmutils.py
    
    Change-Id: I9c58168c012b342bb5dfa0c62a7c39a327f442b3

commit 3371ad81ba7f2e8b1a9391dae3f0844d3dba916f
Author: Mike Bayer <mike_mp at zzzcomputing.com>
Date:   Mon Sep 22 16:53:55 2014 -0400

    Add _wrap_db_error() support to Session.commit()
    
    This patch adds _wrap_db_error() to session.commit(),
    which has been observed to be a common point of failure for
    deadlock exceptions.   In order to achieve this, the
    _wrap_db_error() decorator itself also needed to propagate an
    existing DBError, as it is the case that SQLAlchemy's
    session.commit() calls into the session.flush() method.
    Tests are added to exercise both the nesting of _wrap_db_error()
    when a flush() inside commit() raises an exception, as well
    as when commit() alone raises an exception that the error
    is wrapped as expected.
    
    Tests are omitted here as we are relying upon the tests
    that were added to the corresponding oslo-incubator code.
    
    Closes-bug: #1370191
    Change-Id: I91510a2b864f0c1b73cfae18f271e94334714dce

commit f58d95c964cb9a42f573596d1cc80d2034ddb23e
Author: Tristan Cacqueray <tristan.cacqueray at enovance.com>
Date:   Sat Sep 13 18:54:33 2014 +0000

    Sync process and str utils from oslo
    
    This patch backports the necessary changes to fix both issues:
    * Make execute method clean password in exception
    * Make sure mask_password works properly
    
    ------------------------------------------------
    The sync pulls in the following changes (newest to oldest):
    
    63c99a0f - Mask passwords in exceptions and error messages
    66142c34 - Make strutils.mask_password more secure
    d6b55fb2 - Remove `processutils` dependency on `log`
    cb5a804b - Move `mask_password` to strutils
    
    -----------------------------------------------
    
    Backport in oslo-incubator: https://review.openstack.org/121365
    
    Closes-Bug: 1343604
    Closes-Bug: 1345233
    SecurityImpact
    
    Change-Id: I3b49b1d667f6ade9ae3f6765d735440a3e838917

commit 7e091733040e9e7dc29dd1ecfce52ee27d6efd99
Author: Dorin Paslaru <dpaslaru at cloudbasesolutions.com>
Date:   Fri Jul 18 15:43:16 2014 +0300

    Fixes Hyper-V agent force_hyperv_utils_v1 flag issue
    
    WMI root\virtualization namespace v1 (in Hyper-V) has been removed
    from Windows Server / Hyper-V Server 2012 R2.
    
    Hyper-V compute agent now creates instances which uses
    root\virtualization\v2 namespace if the agent's OS is
    Windows Server / Hyper-V Server 2012 R2 or newer.
    
    Closes-Bug: #1344036
    (cherry picked from 52de9395e5fe4f328f6dab0b35d660a700787c76)
    
    Change-Id: I874ade4456b92a63959a765c7851bcd001befa32

commit 74e0ba7e658fcd2c6d1b7a92dcee564098d0a1ff
Author: Jeegn Chen <Jeegn.Chen at emc.com>
Date:   Sun Jun 8 16:23:36 2014 +0800

    Fix live-migration failure in FC multipath case
    
    Currently, /dev/dm-<NUM> instead of /dev/mapper/<multipath_id> is
    used to access multipath FC volumes by Compute Node and
    multipath_id in connection_info is not maintained properly and
    may be lost during connection refreshing.
    
    This implementation will make source Compute Node and destination
    Compute Node fail to disconnect/connect to volumes properly and
    result in live-migration failure.
    
    To fix it, /dev/mapper<multipath_id> will be used instead of
    /dev/dm-<NUM> to access multipath devices, just like iSCSI multipath
    implementation, and logic to preserve the unique (across Compute
    Nodes) multipath_id is also added.
    
    Closes-Bug: #1327497
    (cherry picked from commit 3ea14e8a70a946dbb162ecafa848e4f2fa29772a)
    
    Conflicts:
    	nova/storage/linuxscsi.py
    	nova/tests/virt/libvirt/test_libvirt_volume.py
    	nova/virt/block_device.py
    	nova/virt/libvirt/volume.py
    
    This backport commit adjust oslo.i18n usage to oslo-incubator common code,
    due to we didn't have oslo.i18n in icehouse.
    And remove unused  variable value dev_str in test_libvirt_volume.py,
    it should be deleted but not worth a specific commit in stable/icehouse.
    
    Change-Id: I17f15852c098af88afd270084c62eb87693c60d4

commit b61aa4d09889c0e10dcbdc8838b0bb1128b0af06
Author: Thang Pham <thang.g.pham at gmail.com>
Date:   Thu Jun 5 11:43:18 2014 -0400

    libvirt: Save device_path in connection_info when booting from volume
    
    If you boot an instance from a volume and later terminate it, the
    libvirt volume driver disconnect_volume method does not have the
    'device_path' key in connection_info['data'].  However, if you
    attach a volume to an existing instance and then detach it,
    the disconnect_volume method would have the 'device_path' key in
    connection_info['data'].  Having the 'device_path' key would be
    useful for some volume drivers to determine the device path of the
    volume.  This patch saves the 'device_path' in connection_info['data']
    when _create_domain_and_network is called, so it could be later used.
    
    This commit also adjusts unit test to pass the check test.
    
    Change-Id: I8ebb5f3c2e7a81b11d776f8c0a15f3491ed273be
    Closes-Bug: #1291007
    (cherry picked from commit d19c75c19d2de8b20e82e6de9413ba53671ad7fb)

commit d72c0a4f03f56f6b24b86d3740fd721ef0a63080
Author: Alessandro Pilotti <apilotti at cloudbasesolutions.com>
Date:   Sun Aug 17 21:00:54 2014 +0300

    Fixes Hyper-V boot from volume root device issue
    
    Checks that instances are booting from volume by checking
    the correct root device obtained from the block device info.
    
    Change-Id: I94941dfe96c1596c8e9b91df3d3d19d33ae7fe92
    Co-Authored-By: Zsolt Dudas <zdudas at cloudbasesolutions.com>
    Closes-Bug: #1357972
    (cherry picked from commit ea19fb10c5e09ff5df383607654ab9dc2791ec21)

commit 82a13b30b8153ee4a282604fcfffd1a015365487
Author: Leandro I. Costantino <leandro.i.costantino at intel.com>
Date:   Mon May 19 19:58:47 2014 -0300

    VM in rescue state must have a restricted set of actions
    
    Right now it is possible to pause, suspend and stop a VM in state RESCUED,
    so after the state is changed, it's not possible to trigger unrescue anymore
    since the original state is lost.
    
    This patch remove vm_states.RESCUED as valid state from stop,
    pause and suspend actions.
    
    The vm_states devref is also updated to reflect this change including the
    current reboot flow.( vm_states.RESCUED cannot be rebooted as per
    today code)
    
    This is a backport of 8ff170dc95bf3101fe38a2624e941bfa3b7c1138 .
    
    DocImpact
    Closes-Bug: #1319182
    Co-Authored-By: Cyril Roelandt <cyril.roelandt at enovance.com>
    Change-Id: I531dea5a5499bf93c24bea37850d562134dee281

commit aeb71a88ae8d05ff6f5f3f092965f12369fec07a
Author: Wangpan <hzwangpan at corp.netease.com>
Date:   Mon Mar 10 18:19:40 2014 +0800

    libvirt: return the correct instance path while cleanup_resize
    
    If we resized a pre-grizzly instance with grizzly or later nova
    to another host, while the resize confirmation process,
    _cleanup_resize will find the instance resize backup dir and
    delete it, but a wrong xxx_resize dir like ${uuid}_resize,
    instead of the correct ${name}_resize will be found.
    This is because the instance is a resized one which original
    instance dir exists on another host(the dest host),
    get_instance_path method could not find the original instance
    dir on the source host, so the path with uuid will be returned,
    and the `target` existing check in _cleanup_resize is failed,
    then the ${name}_resize dir will never be deleted.
    
    Closes-bug: #1290294
    Change-Id: I904b6751dec740e001f5ec29f637ef456528746f
    (cherry picked from b4964eb6a570e290545f95d45411dc8441985cd5)

commit cce6d22c6430048d6789dec04b43c1483f4a0b8d
Author: liu-sheng <liusheng at huawei.com>
Date:   Tue May 20 18:33:25 2014 +0800

    Fix nova image-show with queued image
    
    Currently, the nova image-show command cannot be used with queued images,
    because they don't have certain attributes set yet. Nova will raise
    AttributeError, which causes a 500 to be returned from the API.
    
    Change-Id: I7d73b891545492e3e247eebdf02507cb630eb250
    Closes-bug: #1321186
    (cherry picked from commit 4c5dea6a5103a141b0ca13dcd57b32b3261180d1)

commit aff80d58bb85f52d33d1562b76dfd6f2c8b025d3
Author: Chris Buccella <buccella at linux.vnet.ibm.com>
Date:   Sat Feb 1 07:05:11 2014 +0000

    _translate_from_glance() can cause an unnecessary HTTP request
    
    After returning from a get() call to python-glanceclient, nova runs a
    translation function on the returned Image to get the data it wants. Part of
    this process is checking for an expected set of attributes, one of which is
    the deletion time ('deleted_at'). However, if the image has not been deleted,
    deleted_at key will not exist. This forces another call to glance to occur for
    the same image. A similar problem exists for the checksum attribute, which does
    not exist before an image is active. The fix here is to only consider
    deleted_at and checksum if they are expected to be present.
    
    Change-Id: I67b7dd16a94fe60d873c012f6bd246ab24500d5a
    Closes-Bug: #1275173
    (cherry picked from commit 8fcefef5c6db3bb7f182df62de9c5bf986f97303)





More information about the Openstack-security mailing list