Skip to content
Snippets Groups Projects
  1. Apr 19, 2019
  2. Apr 11, 2019
  3. Apr 05, 2019
  4. Apr 01, 2019
    • Eric Desrochers's avatar
      Not implicitly set vol_device_name to vda · 79a4c3bd
      Eric Desrochers authored
      Using a scsi decorated image with:
      hw_disk_bus='scsi'
      hw_scsi_model='virtio-scsi'
      
      This solve the case where an instance is
      launched with 'image' selected as boot
      source with a new volume. This will result
      in /dev/vda instead of /dev/sda as it
      should.
      
      Not specifying device name in
      setFinalSpecBootImageToVolume() leaves the
      decision to nova to determine it.
      
      Example:
      -------
      VM boot volume without scsi meta data decoration:
      Attached To
      0a0cd660-7ce3-4033-9983-2e1099edc5f0 on /dev/vda
      
      VM boot volume with scsi meta data decoration:
      Attached To
      91f50dbc-8bdf-4293-84ea-fc5df27b5ee4 on /dev/sda
      --------
      
      Note: This commit doesn't address cases for
      where instances are launched using existing
      volume and snapshot, this will involve more
      work to migrate the code from BDMv1 to BDMv2.
      
      Closes-Bug #1560965
      
      Change-Id: I9d114c2c2e6736a8f1a8092afa568f930b656f09
      (cherry picked from commit 4788c4d2)
      79a4c3bd
  5. Mar 29, 2019
  6. Mar 22, 2019
    • Akihiro Motoki's avatar
      network topology: handle port AZ correctly · 6b30d42c
      Akihiro Motoki authored
      Previously d3 version of the network topology view handles ports with
      device_owner 'compute:nova' and 'compute:None' specially. This leads
      to the situtaion that neutron ports with non-default AZ are not shown
      properly. There is no reason to handle neutron ports with the default
      AZ differently. What we would like to do is just to classify neutron
      ports attached to nova servers.
      
      This commit changes the logic to check device_owner of ports have
      a prefix 'compute:'. Note that we also need to check if device_owner
      is a string before checking the prefix.
      
      Change-Id: I472bae9af3d14d8a31efcae8a7610b84c4f09c3d
      Closes-Bug: #1820260
      (cherry picked from commit ffbe0e2f)
      6b30d42c
  7. Mar 14, 2019
  8. Mar 07, 2019
  9. Mar 06, 2019
  10. Mar 01, 2019
  11. Jan 31, 2019
    • jmoffitt's avatar
      Consistency Group Snapshots detail url is wrong · 013d56a8
      jmoffitt authored
      The link in the consistency group table for "detail" is a mismatch
      for the corresponding value in the urls.py file, causing cg snapshots
      clicks to not load details for the user.
      
      This bug was introduced in https://review.openstack.org/#/c/429506
      where the link in tables.py was changed from:
      "horizon:project:volumes:cg_snapshots:cg_snapshot_detail"
      to
      "horizon:project:cg_snapshots:detail"
      
      the removal of the volumes section of the link was correct for that
      change, but changing "cg_snapshot_detail" to "detail" broke the
      details link
      
      Change-Id: I7ad8673bad353a234596df16c8e64eec93733934
      Closes-Bug: #1813990
      (cherry picked from commit 468184bd)
      013d56a8
  12. Jan 29, 2019
    • Akihiro Motoki's avatar
      Ensure django.contrib.auth.middleware monkey patching for APIMockTestCase · 52755375
      Akihiro Motoki authored
      This patch is directly proposed to stable/rocky.
      
      A cherry-pick of I6b2be31568e4aa4273990f9cfa76ca139620c84b
      to stable/rocky is insufficient. The cherry-pick forgot to
      handle APIMockTestCase as the corresponding code is different
      between the master branch and stable/rocky branches and
      as a result APIMockTestCase in stable/rocky branch does not
      monkey-patch django.contrib.auth.middleware.
      
      Related-Bug: #1806053
      Change-Id: I4993ff5006b6366df64b6d96acddf15be0cc331c
      52755375
  13. Jan 18, 2019
  14. Jan 14, 2019
  15. Dec 21, 2018
    • Yves-Gwenael Bourhis's avatar
      Fix images minimum ram and disk default values · d2720d97
      Yves-Gwenael Bourhis authored
      When uploading an image, if we do not set a minimum ram and disk size we
      try to send "None" to glance.
      We should instead send "0" and glance will calculate the size from the
      provided image.
      
      Change-Id: Ia1aeabcdcf021943ebb7a4e35939c383ac820b19
      Closes-Bug: #1809121
      (cherry picked from commit 65b21e7f)
      d2720d97
  16. Dec 14, 2018
  17. Dec 12, 2018
  18. Nov 30, 2018
  19. Nov 28, 2018
    • Rafal Ramocki's avatar
      Fixed path after moving wsgi/django.wsgi to wsgi.py · bf78afb6
      Rafal Ramocki authored
      Change-Id: Ia6b1c99c277c4cd5b19deae5212c7806b4b06a23
      Closes-Bug: 1791043
      (cherry picked from commit 71be92dd)
      bf78afb6
    • Mohammed Naser's avatar
      Remove "Change Password" from users table for non-admin users · d1042fda
      Mohammed Naser authored
      If you're a user without administrative permissions, you will
      not be able to edit a password using the table inside the identity
      section due to the fact that it uses a different edit API which
      is not meant to be used for the user-side of things.
      
      This patch adds a policy change in order to hide the change password
      link for normal users, while keeping the functionality inside
      the Settings panel still intact.
      
      This change was first broken by I76eb9f95c7112bcbad75ee151f363f892298d081
      
      Partial-Bug: 1788384
      Change-Id: I7a64257ac274c9dac5705ba72a85833f8e7a1591
      (cherry picked from commit 0630be63)
      d1042fda
  20. Nov 23, 2018
  21. Nov 21, 2018
  22. Nov 20, 2018
    • zhubx007's avatar
      Fix bug of updating metadata for images · a231b24b
      zhubx007 authored
      Glance project has a blueprint hidden-images. The commit can be
      seen from https://review.openstack.org/#/c/578755/
      The os_hidden is added into image metadata as bool type. From
      horizon, the string value of os_hidden is passed to glanceclient.
      https://github.com/openstack/python-glanceclient/blob/master/glanceclient/v2/images.py#L341
      But type is not correspond so raise exception to horizon from
      glanceclient.
      
      Here to change the type of os_hidden before passing it to glanceclient.
      
      Closes-Bug: #1789172
      Change-Id: I0d4edaa4b661d2da79cdb45e4afa97d826aeb65d
      (cherry picked from commit 47ba614f)
      a231b24b
    • Mathieu Gagné's avatar
      Fix django.contrib.auth.middleware monkey patching · 8851866a
      Mathieu Gagné authored
      The "request" attribute is not available in
      openstack_auth.backend.KeystoneBackend.get_user when session data is restored
      and it's the first request to happen after a server restart.
      
      As stated by the function document, the "request" attribute needs to be
      monkey-patched by openstack_auth.utils.patch_middleware_get_user
      for this function to work properly.
      
      This should happen in openstack_auth.urls at import time. But there is nowhere
      in Horizon where this module is imported at startup. It's only introspected
      by openstack_dashboard.urls due to AUTHENTICATION_URLS setting.
      
      Without this monkey-patching, the whole authentication mechanism falls back
      to "AnonymousUser" and you will get redirected to the login page due
      to horizon.exceptions.NotAuthenticated being raised by
      horizon.decorators.require_auth as request.user.is_authenticated will be False.
      
      But if a user requests a page under auth/, it will have the side-effect of
      monkey-patching django.contrib.auth.middleware as expected. This means that
      once this request is completed, all following requests to pages other than
      the ones under auth/ will have there sessions properly restored and
      you will be properly authenticated.
      
      Therefore this change introduces a dummy middleware which sole purpose is
      to perform this monkey-patching as early as possible.
      
      There is also some cleanup to get rid of the previous attempts at
      monkeypatching.
      
      Closes-bug: #1764622
      
      Conflicts:
      	openstack_dashboard/settings.py
      	openstack_dashboard/test/helpers.py
      
      Change-Id: Ib9912090a87b716e7f5710f6f360b0df168ec2e3
      (cherry picked from commit 0d163613)
      8851866a
  23. Nov 10, 2018
  24. Nov 08, 2018
  25. Oct 31, 2018
  26. Oct 30, 2018
  27. Oct 29, 2018
    • Guang Yee's avatar
      support WEBSSO_KEYSTONE_URL · ac7f6e4d
      Guang Yee authored
      Add a new optional WEBSSO_KEYSTONE_URL property to facilitate WEBSSO
      deployments where network segmentation is used per security requirement.
      In this case, the controllers are not reachable from public network.
      Therefore, user's browser will not be able to reach OPENSTACK_KEYSTONE_URL
      if it is set to the internal endpoint.
      
      If WEBSSO_KEYSTONE_URL is set, it will be used instead of
      OPENSTACK_KEYSTONE_URL.
      
      Change-Id: I05ea4227aa4c2cb0a73015ed7fd29cf1a96e696a
      Closes-bug: #1544703
      (cherry picked from commit a53f012f)
      ac7f6e4d
  28. Oct 18, 2018
  29. Sep 27, 2018
  30. Sep 14, 2018
  31. Sep 13, 2018
Loading