1. 07 Jun, 2021 1 commit
  2. 27 May, 2021 1 commit
    • Julia Kreger's avatar
      Limit the number of malloc arenas for qemu-img convert · f4cabc04
      Julia Kreger authored
      Under heavy load, the qemu-img convert method may attempt to create
      additional malloc arenas to complete its work. By default this number
      is 8 * ncpu * which at about 250 MB of memory which can be consumed
      in this mannor should the.
      
      Since this is only something which should realistically occur under
      heavy cross-thread load where memory locking prevents a thread from
      unlocking a range of memory, (such as what can happen with hypervisors
      and VMs inside those hypervisors), then a new arena gets created, and
      the memory consumption spikes.
      
      More information is avialable at:
      https://www.gnu.org/software/libc/manual/html_node/Memory-Allocation-Tunables.html
      
      Change-Id: I8b2b490f2cc0ac5f47c3aaaaa249ce59db6602d6
      Story: 2008928
      Task: 42529
      (cherry picked from commit 76cbb962)
      f4cabc04
  3. 26 May, 2021 1 commit
  4. 29 Jan, 2021 1 commit
    • Dmitry Tantsur's avatar
      Correct base64 error handling · 7ac01e1f
      Dmitry Tantsur authored
      The base64 module can raise many exceptions, TypeError doesn't even
      seem one of them. Capture all errors and provide the exact message.
      
      Change-Id: Id3748e729f8dd31aa6d2d7084bd01088cd9a7ecd
      (cherry picked from commit 0704bcdd)
      7ac01e1f
  5. 27 Jan, 2021 1 commit
    • Arne Wiebalck's avatar
      Handle EBRs and tiny partitions when removing metadata · 0cd0660d
      Arne Wiebalck authored
      Extended boot records (EBRs) are used in the MSDOS partitioning
      scheme to manage extended partitions. EBRs are small partitions
      themselves and Ironic will therefore treat them like any other
      partition during cleaning. Since EBRs are smaller than a GPT
      (33 sectors), dd'ing 33 sectors will fail. This patch proposes
      a fix to handle EBRs (and other tiny paritions) by adjusting
      the number of blocks writtent to be the partition size at max.
      
      Story: #2008539
      Task: #41628
      Change-Id: Ie9809b3e4fe2bea6b66ee95c442111942e85d618
      (cherry picked from commit 9a60d385)
      0cd0660d
  6. 11 Jan, 2021 1 commit
  7. 16 Dec, 2020 1 commit
  8. 14 Dec, 2020 1 commit
    • Julia Kreger's avatar
      Fix other out of memory error for qemu-img convert · 97902803
      Julia Kreger authored
      qemu-img convert makes a number of allocation requests, and less
      common than the "Resource temporarily unavailable" error is
      "Cannot allocate memory". The first seems to be largely raised
      upon a thread creation for the image conversion, where the first
      appears to be on buffer setup on the original process.
      
      Regardless, we should check for both and retry conversion
      automatically.
      
      rhbz# 1892773
      
      Change-Id: If435ed0efe034d4bb99f0281ebc73840c0f38fb3
      (cherry picked from commit 9be6afc7)
      97902803
  9. 03 Sep, 2020 2 commits
    • OpenStack Release Bot's avatar
      Update TOX_CONSTRAINTS_FILE for stable/victoria · e1b5e12c
      OpenStack Release Bot authored
      Update the URL to the upper-constraints file to point to the redirect
      rule on releases.openstack.org so that anyone working on this branch
      will switch to the correct upper-constraints list automatically when
      the requirements repository branches.
      
      Until the requirements repository has as stable/victoria branch, tests will
      continue to use the upper-constraints list on master.
      
      Change-Id: Id4769f5ae2029097ec9398cb18035cfefe88df54
      e1b5e12c
    • OpenStack Release Bot's avatar
      Update .gitreview for stable/victoria · 45a9a6a5
      OpenStack Release Bot authored
      Change-Id: I6b0d5e8589f954a1c9521ca55f14d76cfe997622
      45a9a6a5
  10. 02 Sep, 2020 1 commit
  11. 31 Aug, 2020 1 commit
  12. 26 Aug, 2020 1 commit
    • wu.chunyang's avatar
      Remove the unused coding style modules · d61ca277
      wu.chunyang authored
      Python modules related to coding style checks (listed in blacklist.txt in
      openstack/requirements repo) are dropped from lower-constraints.txt
      they are not needed during installation.
      
      Change-Id: I3a686b00cb2a6cb7cde4a26001d6d9016aab08eb
      d61ca277
  13. 24 Aug, 2020 1 commit
    • Dmitry Tantsur's avatar
      Move some generic functions from IPA · 67de2e90
      Dmitry Tantsur authored
      This change exposes existing or copies from IPA functions that are
      potentially common between ironic, IPA and ironic-lib itself:
      1) utils.try_execute
      2) disk_utils.udev_settle, partprobe and trigger_device_rescan
      3) capabilities parsing and re-combining
      
      Change-Id: I0ab42e082e8003415a1cac857d1c4b2044c5484d
      67de2e90
  14. 22 Aug, 2020 1 commit
  15. 18 Aug, 2020 1 commit
    • Julia Kreger's avatar
      Additional testing for Metal3 string cases · 0e9b1eb0
      Julia Kreger authored
      The BMO does auto-pre-formatting on the submitted hints
      so we end up in scenarios where we get strings prepended with
      comparison operators in cases we never really see otherwise.
      
      Just to be on the safe side, explicitly test this so we don't
      accidently break it later.
      
      Change-Id: I046a59753ecb6ec29ddd2564923a800105f56d3f
      0e9b1eb0
  16. 17 Aug, 2020 1 commit
    • Riccardo Pittau's avatar
      Use tenacity to retry convert_image · 718817bf
      Riccardo Pittau authored
      Instead of using a loop, we use the tenacity library to provide
      correct retry feature to the convert_image function.
      
      Change-Id: I0ddef614be55b0f6365a952a906197e7a219ef65
      718817bf
  17. 05 Aug, 2020 1 commit
    • Dmitry Tantsur's avatar
      Add logging to the HTTP basic auth code · 4e0846d2
      Dmitry Tantsur authored
      It's tricky to debug authentication when we leave no traces in the
      logs and the client only receives a generic error.
      
      Change-Id: I2c248b94938ec37f4b28e0fda4eded51ee48cdc6
      4e0846d2
  18. 30 Jul, 2020 1 commit
  19. 24 Jul, 2020 1 commit
  20. 23 Jul, 2020 1 commit
    • Dmitry Tantsur's avatar
      Return correct response on HTTP basic failure · c080681d
      Dmitry Tantsur authored
      It's not allowed to return None from WSGI applications, eventlet fails
      with TypeError: 'NoneType' object is not iterable.
      
      Use WebOb to build and provide a correct response.
      
      Change-Id: Idf4c6782730549378c03416a118b3b69fa53ca65
      c080681d
  21. 22 Jul, 2020 1 commit
  22. 06 Jul, 2020 1 commit
  23. 01 Jul, 2020 1 commit
    • Steve Baker's avatar
      Support more bcrypt prefixes · f898a780
      Steve Baker authored
      The htpasswd tool generates $2y$ prefixed values, which is not common
      for bcrypt implementations[1].
      
      This change adds acceptance for $2a$ and $2b$ prefixed values which the
      vast majority of bcrypt implementations will produce (including golang
      and the bcrypt python library which this feature depends on)
      
      [1] https://en.wikipedia.org/wiki/Bcrypt
      
      Change-Id: I0450657cf3023f47f1894b650d2e400cc4bbcbf4
      f898a780
  24. 11 Jun, 2020 1 commit
    • Hervé Beraud's avatar
      Use unittest.mock instead of mock · c3d9449d
      Hervé Beraud authored
      The mock third party library was needed for mock support in py2
      runtimes. Since we now only support py36 and later, we can use the
      standard lib unittest.mock module instead.
      
      Change-Id: If307ca1f689b1ade1428b904bbf122bd6aa5da97
      c3d9449d
  25. 08 Jun, 2020 1 commit
  26. 01 Jun, 2020 1 commit
  27. 27 May, 2020 1 commit
  28. 26 May, 2020 1 commit
    • zhangbailin's avatar
      Bump hacking min version to 3.0.1 · 21572b0c
      zhangbailin authored
      flake8 new release 3.8.0 added new checks and gate pep8
      job start failing. hacking 3.0.1 fix the pinning of flake8 to
      avoid bringing in a new version with new checks.
      
      Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
      flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
      break the pep8 job if new check are added.
      
      To avoid similar gate break in future, we need to bump the hacking min
      version.
      
      - http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
      
      Change-Id: Ib39f593616e2933ca5c1dbfa231691d6ced60e6c
      21572b0c
  29. 25 May, 2020 3 commits
    • Steve Baker's avatar
      Implement Basic HTTP authentication middleware · a9abc569
      Steve Baker authored
      This middleware is added to ironic-lib so that it can eventually be
      used by ironic and ironic-inspector as an alternative to noauth in
      standalone environments.
      
      This middleware is passed a path to a file which supports the
      Apache htpasswd syntax[1]. This file is read for every request, so no
      service restart is required when changes are made.
      
      The only password digest supported is bcrypt, and the ``bcrypt``
      python library is used for password checks since it supports ``$2y$``
      prefixed bcrypt passwords as generated by the Apache htpasswd utility.
      
      [1] https://httpd.apache.org/docs/current/misc/password_encryptions.html
      Needed-By: https://review.opendev.org/727467
      Needed-By: https://review.opendev.org/729463
      
      Change-Id: I874783b8ece0eedf27a94dfed5163d0c82f8b9de
      Story: 2007656
      Task: 39740
      a9abc569
    • Andreas Jaeger's avatar
      Switch to newer openstackdocstheme version · 84d6c4ff
      Andreas Jaeger authored
      Switch to openstackdocstheme 2.2.1 version. Using
      this version will allow especially:
      * Linking from HTML to PDF document
      * Allow parallel building of documents
      * Fix some rendering problems
      
      Update Sphinx version as well.
      
      Set openstackdocs_pdf_link to link to PDF file. Note that
      the link to the published document only works on docs.openstack.org
      where the PDF file is placed in the top-level html directory. The
      site-preview places the PDF in a pdf directory.
      
      Change pygments_style to 'native' since old theme version always used
      'native' and the theme now respects the setting and using 'sphinx' can
      lead to some strange rendering.
      
      openstackdocstheme renames some variables, so follow the renames
      before the next release removes them. A couple of variables are also
      not needed anymore, remove them.
      
      See also
      http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
      
      Change-Id: I9dfa47d28d3f76115d6cf6dd86ea04d621d99c65
      84d6c4ff
    • Zuul's avatar
      Merge "Update lower-constraints.txt" · 99a7f137
      Zuul authored
      99a7f137
  30. 21 May, 2020 1 commit
  31. 13 May, 2020 1 commit
  32. 12 May, 2020 2 commits
  33. 11 May, 2020 1 commit
  34. 02 May, 2020 1 commit
  35. 28 Apr, 2020 1 commit
    • Dmitry Tantsur's avatar
      Dependencies and tox.ini clean-up · 7fd83d7d
      Dmitry Tantsur authored
      * Remove testscenarios, it's an ancient artefact
      * Replace the only usage of testtools with a simple check
      * Split out doc/requirements.txt
      * Clean tox.ini of unnecessary (and probably cargo-culted) stuff
      * Added Pygments for syntax highlighting check
      
      Change-Id: I9f6b03606973e1e8123165c46bef53c4ce8e2b92
      7fd83d7d
  36. 21 Apr, 2020 1 commit