1. 12 Oct, 2021 2 commits
    • Michal Arbet's avatar
      Release new debian package · 0cb1ca73
      Michal Arbet authored
      0cb1ca73
    • Michal Arbet's avatar
      Merge tag '8.5.1' into debian/wallaby · cba4646a
      Michal Arbet authored
      oslo.config 8.5.1 release
      
      meta:version: 8.5.1
      meta:diff-start: -
      meta:series: wallaby
      meta:release-type: release
      meta:pypi: yes
      meta:first: no
      meta:release:Author: Hervé Beraud <hberaud@redhat.com>
      meta:release:Commit: Hervé Beraud <hberaud@redhat.com>
      meta:release:Change-Id: I7d25e62e4773d5124c800c42bb83d04d19cfb402
      meta:release:Code-Review+2: Sean McGinnis <sean.mcginnis@gmail.com>
      meta:release:Code-Review+2: Thierry Carrez <thierry@openstack.org>
      meta:release:Workflow+1: Thierry Carrez <thierry@openstack.org>
      cba4646a
  2. 16 Aug, 2021 1 commit
  3. 02 Jun, 2021 1 commit
    • David Vallee Delisle's avatar
      config-generator yaml format doesn't work with i18n fields · de1dbeed
      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)
      de1dbeed
  4. 06 May, 2021 1 commit
  5. 27 Apr, 2021 1 commit
    • Hervé Beraud's avatar
      Adding the missing HostDomain config option · 1074937e
      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 bb5e4cbe)
      1074937e
  6. 15 Apr, 2021 3 commits
  7. 08 Mar, 2021 4 commits
  8. 18 Feb, 2021 1 commit
    • Ben Nemec's avatar
      Bump minimum version for PyYAML to 5.1 · cfa25646
      Ben Nemec authored
      This addresses CVE-2017-18342. I doubt anyone is actually using an
      old version of PyYAML with oslo.config at this point, but that means
      it shouldn't hurt to bump the minimum either.
      
      Change-Id: I4f440eb9511333ce70db4184857dcbcdd0ed1b97
      Closes-Bug: 1839398
      cfa25646
  9. 16 Jan, 2021 2 commits
  10. 14 Jan, 2021 1 commit
  11. 12 Jan, 2021 3 commits
  12. 20 Dec, 2020 3 commits
    • Michal Arbet's avatar
      Release to unstable · 1ce8228a
      Michal Arbet authored
      1ce8228a
    • Michal Arbet's avatar
      Add me to uploaders, add to copyright · c4c74670
      Michal Arbet authored
      c4c74670
    • Michal Arbet's avatar
      Merge tag '8.3.3' into debian/victoria · b2d5309e
      Michal Arbet authored
      oslo.config 8.3.3 release
      
      meta:version: 8.3.3
      meta:diff-start: -
      meta:series: victoria
      meta:release-type: release
      meta:pypi: yes
      meta:first: no
      meta:release:Author: Daniel Bengtsson <dbengt@redhat.com>
      meta:release:Commit: Daniel Bengtsson <dbengt@redhat.com>
      meta:release:Change-Id: I6c54381078985a6af2788b9a876cc7f2351cdf21
      meta:release:Code-Review+2: Hervé Beraud <hberaud@redhat.com>
      meta:release:Code-Review+2: Sean McGinnis <sean.mcginnis@gmail.com>
      meta:release:Workflow+1: Sean McGinnis <sean.mcginnis@gmail.com>
      b2d5309e
  13. 26 Nov, 2020 1 commit
  14. 24 Nov, 2020 1 commit
    • David Vallee Delisle's avatar
      Adding --check-defaults to validator · f2ca66fd
      David Vallee Delisle authored
      
      
      When troubleshooting, it's often interesting to see the deltas between
      the default or sample configs and the running configuration. The
      oslo_config.validator is a great tool to integrate this feature across
      all projects. It can also be easily captured by data collection tools
      like sosreports with the current deployment packages.
      
      Change-Id: I172d82f19a81282093b0d5f7ae4c1817801cd887
      Signed-off-by: default avatarDavid Vallee Delisle <dvd@redhat.com>
      f2ca66fd
  15. 05 Nov, 2020 1 commit
  16. 03 Nov, 2020 2 commits
  17. 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
  18. 22 Oct, 2020 2 commits
    • Zuul's avatar
      Merge "Add a new type HostDomain." · 8f667f8e
      Zuul authored
      8f667f8e
    • Hervé Beraud's avatar
      Add a new type HostDomain. · 64803569
      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
      64803569
  19. 15 Oct, 2020 3 commits
  20. 12 Oct, 2020 1 commit
  21. 22 Sep, 2020 3 commits
    • Stephen Finucane's avatar
      sphinxext: Add 'merge_domaindata' · 95941063
      Stephen Finucane authored
      This is necessary to enable parallel builds. As noted in the Sphinx docs
      [1], this method has the following function:
      
        Merge in data regarding docnames from a different domaindata inventory
        (coming from a subprocess in parallel builds).
      
      Given how simple the datatypes we're storing are, this is pretty easy to
      implement.
      
      [1] https://www.sphinx-doc.org/en/master/extdev/domainapi.html#sphinx.domains.Domain.merge_domaindata
      
      
      
      Change-Id: I46c7903b159f99c68896a4c3c4d20daef848f9c2
      Signed-off-by: default avatarStephen Finucane <sfinucan@redhat.com>
      Closes-Bug: #1895162
      (cherry picked from commit 01f63b87)
      95941063
    • Zuul's avatar
      Merge "sphinxext: Add 'merge_domaindata'" · dce2afd7
      Zuul authored
      dce2afd7
    • Hervé Beraud's avatar
      Adding pre-commit · 5e1011a6
      Hervé Beraud authored
      Introduced changes:
      - pre-commit config and rules
      - Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
      - Applying fixes for pre-commit compliance in all code.
      
      Also commit hash will be used instead of version tags in pre-commit to
      prevend arbitrary code from running in developer's machines.
      
      pre-commit will be used to:
      - trailing whitespace;
      - Replaces or checks mixed line ending (mixed-line-ending);
      - Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
      - Checks that non-binary executables have a proper
        shebang (check-executables-have-shebangs);
      - Check for files that contain merge conflict strings (check-merge-conflict);
      - Check for debugger imports and py37+ breakpoint()
        calls in python source (debug-statements);
      - Attempts to load all yaml files to verify syntax (check-yaml);
      - Run flake8 checks (flake8) (local)
      
      For further details about tests please refer to:
      https://github.com/pre-commit/pre-commit-hooks
      
      
      
      Change-Id: I65a40bbff17d92b959764846801d5e0ddd3b97ce
      Signed-off-by: default avatarMoisés Guimarães de Medeiros <moguimar@redhat.com>
      5e1011a6
  22. 13 Sep, 2020 2 commits
    • Thomas Goirand's avatar
      Now packaging 8.3.2 · 65488574
      Thomas Goirand authored
      65488574
    • Thomas Goirand's avatar
      Merge tag '8.3.2' into debian/victoria · 889c9f70
      Thomas Goirand authored
      oslo.config 8.3.2 release
      
      meta:version: 8.3.2
      meta:diff-start: -
      meta:series: victoria
      meta:release-type: release
      meta:pypi: yes
      meta:first: no
      meta:release:Author: Ben Nemec <bnemec@redhat.com>
      meta:release:Commit: Ben Nemec <bnemec@redhat.com>
      meta:release:Change-Id: I3ae7c0913864b949dfb01fd31e1c7567fc4b7fd7
      meta:release:Code-Review+2: Hervé Beraud <hberaud@redhat.com>
      meta:release:Code-Review+2: Sean McGinnis <sean.mcginnis@gmail.com>
      meta:release:Workflow+1: Sean McGinnis <sean.mcginnis@gmail.com>
      889c9f70