Skip to content
Snippets Groups Projects
  1. Oct 28, 2024
    • Roman Krček's avatar
      Rewrite kolla-ansible CLI to python · 9ea63dc3
      Roman Krček authored
      
      Moving the CLI to python allows for easier
      maintenance and larger feature-set.
      
      This patch introduces a few breaking changes!
      The changes stem the nature of the cliff package.
      - the order of parameters must be
        kolla-ansible <action> <arguments>
      - mariadb_backup and mariadb_recovery now are
        mariadb-backup and mariadb-recovery
      
      Closes-bug: #1589020
      Signed-off-by: default avatarRoman Krček <roman.krcek@tietoevry.com>
      Change-Id: I9749b320d4f5eeec601a055b597dfa7d8fb97ce2
      9ea63dc3
  2. Nov 07, 2023
  3. May 31, 2023
    • Maksim Malchuk's avatar
      Fix passwords.yml permissions · 5fd81170
      Maksim Malchuk authored
      
      The kolla-genpwd, kolla-mergepwd, kolla-readpwd and kolla-writepwd
      commands now creates or updates passwords.yml with correct
      permissions. Also they display warning message about incorrect
      permissions.
      
      Closes-Bug: #2018338
      Change-Id: I4b50053ced9150499d1d09fd4a0ec2e243cf938b
      Signed-off-by: default avatarMaksim Malchuk <maksim.malchuk@gmail.com>
      5fd81170
  4. May 24, 2022
    • Marcin Juszkiewicz's avatar
      genpwd: handle lack of password file nicer · 333c74fe
      Marcin Juszkiewicz authored
      From:
      
      (kolla) 13:11 (s) marcin@puchatek:kolla-ansible$ kolla-genpwd
      Traceback (most recent call last):
        File "/home/marcin/.virtualenvs/kolla/bin/kolla-genpwd", line 8, in <module>
          sys.exit(main())
        File "/home/marcin/.virtualenvs/kolla/lib/python3.10/site-packages/kolla_ansible/cmd/genpwd.py", line 135, in main
          genpwd(passwords_file, length, uuid_keys, ssh_keys, blank_keys,
        File "/home/marcin/.virtualenvs/kolla/lib/python3.10/site-packages/kolla_ansible/cmd/genpwd.py", line 59, in genpwd
          with open(passwords_file, 'r') as f:
      FileNotFoundError: [Errno 2] No such file or directory: '/etc/kolla/passwords.yml'
      
      To:
      
      (kolla) 13:17 (s) marcin@puchatek:kolla-ansible$ kolla-genpwd
      ERROR: Passwords file "/etc/kolla/passwords.yml" is missing
      
      Change-Id: I18a9559daeb3d124a03dcb735ebb01a2cf24f617
      333c74fe
  5. Mar 30, 2022
    • Michal Nasiadka's avatar
      neutron: add ssh key · 7fcf3ca3
      Michal Nasiadka authored
      This key can be used by users in networking-generic-switch
      scenario instead of adding cleartext password in ml2_conf.ini.
      
      Change-Id: I10003e6526a55a97f22678ab81c411e4645c5157
      7fcf3ca3
  6. Jun 30, 2021
  7. Dec 22, 2020
  8. Oct 02, 2020
    • wu.chunyang's avatar
      Implement automatic deploy of octavia · 4a58f423
      wu.chunyang authored
      
      this patchset has implemented:
        - network (lb-mgmt-net)
        - security groups and rules (used by amphora and health manager)
        - amphora flavor (used by amphora)
        - nova keypair (used by amphora at the time of debugging)
      
      Add a octavia_amp_listen_port variable which used by amphora
      Add amp_image_owner_id in octavia.conf
      
      Implements: blueprint implement-automatic-deploy-of-octavia
      Co-Authored-By: default avatarzhangchun <zhangchun@yovole.com>
      
      Depends-On: https://review.opendev.org/652030
      
      Change-Id: I67009d046925cfc02c1e0073c80085c1471975f6
      4a58f423
  9. May 22, 2020
    • Mark Goddard's avatar
      Improve error reporting in password utilities · 620b808c
      Mark Goddard authored
      The kolla-genpwd and kolla-mergepwd commands can be used to manipulate
      the kolla passwords.yml file. The format is a YAML encoded dict of
      password variable names to their values. If the format is not a dict,
      the error messages are unhelpful.  In particular, this can happen if the
      file is encrypted e.g. via Ansible Vault.
      
      For kolla-genpwd:
      
          AttributeError: 'NoneType' object has no attribute 'items'
      
      For kolla-mergepwd:
      
          AttributeError: 'NoneType' object has no attribute 'update'
      
      This change adds a more friendly message.
      
      Change-Id: I27f0835b904e05006ae401adf383090322e1b891
      Closes-Bug: #1880220
      620b808c
  10. May 17, 2020
    • gugug's avatar
      Enable W503 for flake8 check · 22f7aecb
      gugug authored
      W503 and W504 are incompatible and we need to choose one of them.
      Existing codes follows W503, so we disable W504.
      
      Change-Id: Ic745e956dd332eb0fa49b93c1e6acb12f8a7f26c
      22f7aecb
  11. Feb 11, 2020
  12. Feb 08, 2020
  13. 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
  14. Mar 10, 2019
  15. Jul 26, 2018
    • Eduardo Gonzalez's avatar
      Use fernet for barbican crypto key · b80a63f3
      Eduardo Gonzalez authored
      Sha password is not always valid for barbican cripto key.
      Use a fernet key so it always gets valid.
      
      Not need release note for upgrade, users with a working
      barbican not regenerate passwords, only new passwords will
      get new type.
      
      Change-Id: Ic8c4ca63219295d697062cff9cbf30fadbe49bf3
      b80a63f3
  16. May 22, 2018
    • Borne Mace's avatar
      Updated genpwd to work with python35 · f1768ef7
      Borne Mace authored
      Due to the changes in hmac.new and how binary strings
      are dumped in yaml.safe_dump some changes were needed to
      make sure that we dumped only strings, not binary strings.
      
      Change-Id: Ic2fbcf2347023c1e9e666203dfe40dbeaf24ce5f
      f1768ef7
  17. Sep 13, 2017
  18. Jun 02, 2017
  19. Apr 24, 2017
  20. Mar 30, 2017
  21. Mar 22, 2017
  22. Mar 08, 2017
    • Jeffrey Zhang's avatar
      Fix booting from volume failure · d06efcec
      Jeffrey Zhang authored
      Booting from volume require cinder's ceph client secret now. Move cinder
      before nova in site.yml, because nova depends on cinder ceph client key
      now.
      
      Change-Id: I01c9ed80843d98305b8963894c4917c21a35d3ac
      Closes-Bug: #1670676
      d06efcec
  23. Feb 15, 2017
    • Jeffrey Zhang's avatar
      Rename kolla namespace to kolla_ansible · 177fbea7
      Jeffrey Zhang authored
      * Rename kolla namespace to kolla_ansible
      * remove oslo.config.opts entry points which is uesless
      * delete useless tools/version-check.py script
      
      Change-Id: I005dd7223ff23afbb2ce8cbfd0ebec0969102798
      177fbea7
Loading