1. 04 Jun, 2021 1 commit
    • David Vallee Delisle's avatar
      config-generator yaml format doesn't work with i18n fields · 0950f82e
      David Vallee Delisle authored
      This is because there's no yaml representer for i18n Messages object.
      This patch aims to add this representer and allow the generation of
      configurations using oslo.i18n strings.
      
      One example of this is cinder.
      
      Closes-bug: #1928582
      Change-Id: I70ab87c9bed093cad883b6301b8a09753fc470d9
      (cherry picked from commit e5fc313e)
      (cherry picked from commit de1dbeed)
      0950f82e
  2. 19 May, 2021 2 commits
    • Hervé Beraud's avatar
      Adding the missing HostDomain config option · dca54e4c
      Hervé Beraud authored
      The ``HostDomain`` config type have been added few months ago [1]
      however the config option have been forgotten and this new type
      isn't importable.
      
      When we try to import this type without defining a new related cfg
      option we get the following issue:
      
      ```
      AttributeError: module 'oslo_config.cfg' has no attribute 'HostDomain'
      ```
      
      These changes allow us to import this new type and allow us to use
      it in our configs:
      
      ```
      >>> from oslo_config import cfg
      >>> foo = cfg.HostDomain('foo')
      >>> foo.type.__call__("1")
      ...
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "~/oslo.config/oslo_config/types.py", line 893, in __call__
           raise ValueError(
      ValueError: 1 is not a valid host address
      >>> foo.type.__call__("host_name")
      'host_name'
      ```
      
      Also properly initialize HostDomain because The HostDomain class wasn't
      calling super in it's __init__() method, which resulted in the type_name not
      being set properly for instances of that class.
      
      [1] https://opendev.org/openstack/oslo.config/commit/6480356928c9ae6169ea1e5a5b5f1df3d6e0dc75
      
      Change-Id: Ie947803f61ba0ef080018e0447de894a400d7975
      Closes-Bug: 1924283
      (cherry picked from commit 1074937e)
      dca54e4c
    • likui's avatar
      remove lower-constraints.txt · f4e54d93
      likui authored
      [1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html
      
      
      
      Co-Authored-By: default avatarMoisés Guimarães de Medeiros <moguimar@redhat.com>
      Change-Id: I407b2c9bc6e9c1cd5b070a1cdca7c0eabe19b0ca
      (cherry picked from commit 50723fa8)
      f4e54d93
  3. 03 Nov, 2020 1 commit
  4. 23 Oct, 2020 1 commit
    • Hervé Beraud's avatar
      Add a new type HostDomain. · f37bcc77
      Hervé Beraud authored
      HostDomain is like HostAddress with the support of
      _ character - RFC1033
      
      openstack services are failing to start when a hostname with underscore
      _ is provided.
      
      Example:
      
      ```
      overcloud-novacompute_edge1-0.internalapi.localdomain
      overcloud-novacompute_edge1-0.internalapi
      ```
      
      Nova use `HostAddressOpt` to define `live_migration_inbound_addr`,
      and if a hostname with underscore is present in the config file
      then the service fail to start.
      
      Example:
      
      ```
      /etc/nova/nova.conf
      live_migration_inbound_addr =
      overcloud-novacompute_edge1-0.internalapi.localdomain
      ```
      
      FQDN is a domain name that specifies its exact
      location in the tree hierarchy of the Domain Name System (DNS).
      
      Underscore are allowed by RFC1033 [1][2][3]. Indeed, while a hostname may not
      contain other characters, such as the underscore character (_), other
      DNS names may contain the underscore.[1][2].
      Systems such as DomainKeys and service records use the underscore.
      
      These changes allow us to use underscore with the `HostDomain`.
      
      [1] https://www.ietf.org/rfc/rfc1912.txt
      [2] https://www.ietf.org/rfc/rfc1033.txt
      [3] http://domainkeys.sourceforge.net/underscore.html
      
      
      
      Co-authored-by: default avatarDaniel Bengtsson <dbengt@redhat.com>
      Change-Id: I0a0670207f96a987996d329e5efa9a5eb2ce000c
      Closes-Bug: #1892044
      (cherry picked from commit 64803569)
      f37bcc77
  5. 22 Sep, 2020 1 commit
  6. 11 Sep, 2020 2 commits
    • OpenStack Release Bot's avatar
      Update TOX_CONSTRAINTS_FILE for stable/victoria · f1e863b3
      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: I38cd3eb1cb289f6214f1b17c071a6611615a03eb
      f1e863b3
    • OpenStack Release Bot's avatar
      Update .gitreview for stable/victoria · 33fe8a83
      OpenStack Release Bot authored
      Change-Id: Ibfb0e4deb7206c11e78854528de802293a16a9fb
      33fe8a83
  7. 24 Jul, 2020 1 commit
  8. 23 Jul, 2020 1 commit
  9. 05 Jul, 2020 1 commit
    • Doug Hellmann's avatar
      drop use of pkg_resources · 392922aa
      Doug Hellmann authored
      
      
      Importing pkg_resources scans all of the installed modules for data
      that won't be used. Switch to using importlib.metdata, which more
      efficiently loads the metadata for a package.
      
      Change-Id: Idd2a0d0026fef9296172c9995b428ea43a746483
      Signed-off-by: default avatarDoug Hellmann <doug@doughellmann.com>
      392922aa
  10. 01 Jul, 2020 1 commit
  11. 09 Jun, 2020 1 commit
    • Sean McGinnis's avatar
      Update lower-constraints versions · 04d5280c
      Sean McGinnis authored
      
      
      This updates lower constraints to versions that will work with py38 so
      that when we move to running on focal nodes, which has py38 as its
      default py3 runtime, the lower-constraints job will continue to pass.
      
      It also cleans out some secondary requirements that are no longer needed
      due to our direct dependencies being updated.
      
      Linters are removed that are kept in the global requirements blacklist
      as those are not version tracked and are not relevant for our
      lower-constraints unit test runs.
      
      Change-Id: Ied58e8aeb700c15354f1c040b2623f498d636061
      Signed-off-by: default avatarSean McGinnis <sean.mcginnis@gmail.com>
      04d5280c
  12. 08 Jun, 2020 1 commit
  13. 04 Jun, 2020 1 commit
  14. 27 May, 2020 1 commit
  15. 26 May, 2020 1 commit
  16. 25 May, 2020 2 commits
  17. 22 May, 2020 2 commits
  18. 19 May, 2020 2 commits
  19. 16 May, 2020 1 commit
  20. 14 May, 2020 1 commit
  21. 12 May, 2020 1 commit
    • Sean McGinnis's avatar
      Cap flake8 to be < 3.8.0 · b1836ad4
      Sean McGinnis authored
      
      
      The 3.8.0 version introduces some checks that cause failures with the
      current code. To avoid that, this caps flake8 to a version that had been
      tested withouth errors so hacking does not pull in a newer version.
      
      We will likely want to raise hacking to 3.x and drop this cap, but to
      make it easy to backport to stable branches, taking this approach first.
      
      Change-Id: I2a539263e8cfc7d15243d78e20b70b8ed763b8fd
      Signed-off-by: default avatarSean McGinnis <sean.mcginnis@gmail.com>
      b1836ad4
  22. 04 May, 2020 4 commits
  23. 01 May, 2020 2 commits
    • Stephen Finucane's avatar
      docs: Mention other ways of escaping '$' · df5e5db1
      Stephen Finucane authored
      
      
      oslo config code treat treats the '$' as a special character and it
      needs to be delimited when using within a string. There are two ways of
      doing this, '$$' or '\$'. We document the former but not the latter. Fix
      this.
      
      Change-Id: I37cdf31ba1c2924779a46b1a2eeabb66c46a2212
      Signed-off-by: default avatarStephen Finucane <sfinucan@redhat.com>
      Closes-Bug: #1872839
      df5e5db1
    • Stephen Finucane's avatar
      Resolve UnboundLocalError · 2c11e9dd
      Stephen Finucane authored
      
      
      As discussed in bug 1841038, configuring a StrOpt with a regex parameter
      and providing an invalid environment variable will result in an ugly
      stacktrace due to an undefined 'alt_loc' variable. Resolve this by
      creating said variable.
      
      Change-Id: Id0fb6efdc435a2bd88d5dfea2b4720df453fbfec
      Signed-off-by: default avatarStephen Finucane <sfinucan@redhat.com>
      Closes-Bug: #1841038
      2c11e9dd
  24. 21 Apr, 2020 1 commit
  25. 17 Apr, 2020 1 commit
  26. 16 Apr, 2020 1 commit
  27. 14 Apr, 2020 3 commits
  28. 13 Apr, 2020 1 commit
  29. 31 Mar, 2020 1 commit