Skip to content
Snippets Groups Projects
  1. Oct 15, 2019
    • Ionut Balutoiu's avatar
      Fix Python3 compatibility for kolla-genpwd · e3fccdfa
      Ionut Balutoiu authored
      The method `Fernet.generate_key()` generates a binary string in Python 3:
      ```
      >>> Fernet.generate_key()
      b'qSMZlOK23pZUw_Uyy-ZRPUfPskMXKGCGmhG6AHCFiV8='
      ```
      
      Unless properly written as a string to the Kolla `passwords.yml` file,
      the Fernet key will end up in the final Barbican config like this:
      ```
      [simple_crypto_plugin]
      kek = b'qSMZlOK23pZUw_Uyy-ZRPUfPskMXKGCGmhG6AHCFiV8='
      ```
      
      Due to the fact that the key is incorrectly written to the barbican
      config file (it should be written as a string), every barbican secret
      store fails with:
      
      ```
      barbican.api.controllers   File "/var/lib/kolla/venv/lib/python3.6/site-packages/barbican/plugin/store_crypto.py", line 83, in store_secret
      barbican.api.controllers     encrypting_plugin, context.project_model)
      barbican.api.controllers   File "/var/lib/kolla/venv/lib/python3.6/site-packages/barbican/plugin/store_crypto.py", line 290, in _find_or_create_kek_objects
      barbican.api.controllers     kek_meta_dto = plugin_inst.bind_kek_metadata(kek_meta_dto)
      barbican.api.controllers   File "/var/lib/kolla/venv/lib/python3.6/site-packages/barbican/plugin/crypto/simple_crypto.py", line 104, in bind_kek_metadata
      barbican.api.controllers     encryptor = fernet.Fernet(self.master_kek)
      barbican.api.controllers   File "/var/lib/kolla/venv/lib/python3.6/site-packages/cryptography/fernet.py", line 38, in __init__
      barbican.api.controllers     "Fernet key must be 32 url-safe base64-encoded bytes."
      barbican.api.controllers ValueError: Fernet key must be 32 url-safe base64-encoded bytes.
      ```
      
      This commit fixes the issue described above by properly writing
      the Fernet key as a string to the Kolla `passwords.yml` file.
      
      Closes-Bug: #1848191
      Change-Id: I27fc0159c889bc2e1576fdd69b7d02a320b620f8
      e3fccdfa
  2. Oct 14, 2019
  3. Oct 13, 2019
  4. Oct 12, 2019
  5. Oct 11, 2019
  6. Oct 10, 2019
  7. Oct 09, 2019
  8. Oct 08, 2019
  9. Oct 07, 2019
    • Zuul's avatar
      e689d14d
    • Mark Goddard's avatar
      CI: Use any_errors_fatal in pre.yml and run.yml · fac16704
      Mark Goddard authored
      This ensures that failure of a single host fails the whole play at that
      task. This can avoid confusing errors such as when the task
      "Assert that the nodepool private IPv4 address is assigned" fails on one
      host, causing subsequent errors on other hosts.
      
      Note that this only affects the Zuul playbooks, not Kolla Ansible's
      playbooks.
      
      Change-Id: I77a6534dd2ddd188f795e17d17a44be249d01f31
      fac16704
    • Mark Goddard's avatar
      Fix swift-proxy-server memcached configuration · 3488479d
      Mark Goddard authored
      Currently, swift-proxy config uses hosts in the swift-proxy-server group
      to generate the list of memcached servers. However, memcached is
      deployed to hosts in the memcached group.
      
      This change fixes the memcached_servers option for swift-proxy to be the
      same as other services.
      
      Change-Id: Ib850a1bb2a504ac3e1396846ca3f1d9a30e8fca0
      Closes-Bug: #1774313
      3488479d
  10. Oct 05, 2019
  11. Oct 04, 2019
  12. Oct 03, 2019
  13. Oct 02, 2019
  14. Oct 01, 2019
  15. Sep 30, 2019
  16. Sep 29, 2019
Loading