1. 08 May, 2021 7 commits
  2. 07 May, 2021 10 commits
  3. 04 May, 2021 1 commit
  4. 02 May, 2021 1 commit
  5. 01 May, 2021 4 commits
    • Loïc Dachary's avatar
      enough: --no-version is now --no-tag · ee7d244c
      Loïc Dachary authored
      Since e950fdc9
      ee7d244c
    • Loïc Dachary's avatar
      enough: openstack CLI needs PATH · 591cc584
      Loïc Dachary authored
      before version 5, openstack client was happy with an empty PATH, but
      no longer.
      
      Fixes: #339
      591cc584
    • Loïc Dachary's avatar
      backup: retry a lot because it fails often · 83c74d7e
      Loïc Dachary authored
      In the past weeks it almost always failed twice for a given glance
      upload. And it always succeeded within the day: it is worth insisting.
      
      Fixes: #338
      83c74d7e
    • Pilou's avatar
      Use stderr for verbose msg when output is parsed · 7af3bc43
      Pilou authored
      in order to be able to use:
      
          ANSIBLE_VERBOSITY=1 python -m enough.cmd --domain pilou.d.enough.community service create postfix
      
      without encountering the following exception:
      
          Traceback (most recent call last):
            File "/home/pilou/enough-dev/lib/python3.9/site-packages/cliff/app.py", line 415, in run_subcommand
              result = cmd.run(parsed_args)
            File "/home/pilou/enough-dev/lib/python3.9/site-packages/cliff/display.py", line 117, in run
              column_names, data = self.take_action(parsed_args)
            File "/srv/share/src/ansible/enough.community/infrastructure.git/enough/cli/service.py", line 21, in take_action
              e = Enough(settings.CONFIG_DIR, settings.SHARE_DIR, **args)
            File "/srv/share/src/ansible/enough.community/infrastructure.git/enough/common/__init__.py", line 27, in __init__
              self.set_args(**kwargs)
            File "/srv/share/src/ansible/enough.community/infrastructure.git/enough/common/__init__.py", line 37, in set_args
              cloud = self.ansible.get_global_variable('openstack_cloud')
            File "/srv/share/src/ansible/enough.community/infrastructure.git/enough/common/ansible_utils.py", line 102, in get_global_variable
              value = [v for k, v in self.get_hostvars(variable, 'all[0]').items()
            File "/srv/share/src/ansible/enough.community/infrastructure.git/enough/common/ansible_utils.py", line 156, in get_hostvars
              return self.extract_values(r, variable)
            File "/srv/share/src/ansible/enough.community/infrastructure.git/enough/common/ansible_utils.py", line 161, in extract_values
              out = json.loads(str(result))['plays'][0]['tasks'][-1]['hosts']
            File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
              return _default_decoder.decode(s)
            File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
              obj, end = self.raw_decode(s, idx=_w(s, 0).end())
            File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
              raise JSONDecodeError("Expecting value", s, err.value) from None
          json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
      7af3bc43
  6. 27 Apr, 2021 4 commits
  7. 26 Apr, 2021 12 commits
    • Pilou's avatar
      tests: add slash to registry · 6e2eb5a2
      Pilou authored
      because slash is expected and not automatically added
      6e2eb5a2
    • Pilou's avatar
      docs: how to build & test the enough docker image · 330712c9
      Pilou authored
      330712c9
    • Pilou's avatar
      enough install: allow to use tag & empty registry · e950fdc9
      Pilou authored
      e950fdc9
    • Pilou's avatar
      enough build image: don't always use 'latest' tag · 0a3cda43
      Pilou authored
      Don't tag the Docker image with 'latest' when the version parameter is
      specified.
      0a3cda43
    • Pilou's avatar
      enough cli: add --tag switch to build image · 5254fcda
      Pilou authored
      This allows to build multiple local docker images, for example in order
      to test several branches based on the same version.
      5254fcda
    • Loïc Dachary's avatar
      Merge branch 'py3.8_compat_update_pyflakes' into 'master' · acdb6aa6
      Loïc Dachary authored
      Python 3.8 compatibility: update pyflakes
      
      See merge request !454
      acdb6aa6
    • Loïc Dachary's avatar
      Merge branch 'tox_flake8_docs-dont_install_extraneous_dependencies' into 'master' · 275bd814
      Loïc Dachary authored
      tox: don't install extraneous dependencies
      
      See merge request !453
      275bd814
    • Pilou's avatar
      ddb33a42
    • Pilou's avatar
      Fix pyflakes error: invalid escape sequence '\d' · 164458d4
      Pilou authored
      164458d4
    • Pilou's avatar
      bc08544c
    • Pilou's avatar
      Upgrade pyflakes in order to avoid py3.8 issue · c87538ec
      Pilou authored
      Upgrade flake8 in order to upgrade pyflakes in order to avoid this
      exception:
      
          AttributeError: 'Checker' object has no attribute 'CONSTANT'
      
      Pipfile.lock has been updated using the following commands:
      
          docker run --rm -it -v HOME/infrastructure:/root -w /root/infrastructure \
            debian:stable /bin/sh -c "apt update; apt install -y \
              --no-install-recommends python3 pipenv; pipenv lock --keep-outdated"
      
      requirements*.txt files have been updated using:
      
          pipenv_to_requirements -f
      c87538ec
    • Pilou's avatar
      tests: don't install extraneous dependencies · 39c872be
      Pilou authored
      - flake8 environment doesn't need dependencies listed in requirements.txt
      - docs and flake8 environment doesn't require the enough application to
        be installed
      
      Consequently, the tox execution time is reduced:
      
      * flake8 environment
        * without this patch
      
              $ rm -rf .tox/flake8; time tox -e flake8
              flake8 create: /srv/share/src/ansible/enough.community/infrastructure.git/.tox/flake8
              flake8 installdeps: -r/srv/share/src/ansible/enough.community/infrastructure.git/requirements.txt, -r/srv/share/src/ansible/enough.community/infrastructure.git/requirements-dev.txt
              flake8 develop-inst: /srv/share/src/ansible/enough.community/infrastructure.git
              flake8 installed: alabaster==0.7.12,ansible==2.9.16,[...]
              [...]
                flake8: commands succeeded
                congratulations :)
      
              real    0m44.423s
              user    0m40.196s
              sys     0m3.549s
      
        * with this patch, 'develop-inst' step is skipped and requirements.txt isn't used
      
              $ rm -rf .tox/flake8; time tox -e flake8
              flake8 create: /srv/share/src/ansible/enough.community/infrastructure.git/.tox/flake8
              flake8 installdeps: -r/srv/share/src/ansible/enough.community/infrastructure.git/requirements-dev.txt
              flake8 installed: alabaster==0.7.12,appdirs==1.4.4,[...]
              [...]
                flake8: commands succeeded
                congratulations :)
      
              real    0m14.842s
              user    0m15.291s
              sys     0m0.834s
      
      * docs environment
        * without this patch
      
              $ rm -rf .tox/docs; time tox -e docs
              docs create: /srv/share/src/ansible/enough.community/infrastructure.git/.tox/docs
              docs installdeps: -r/srv/share/src/ansible/enough.community/infrastructure.git/docs/requirements.txt
              docs develop-inst: /srv/share/src/ansible/enough.community/infrastructure.git
              docs installed: alabaster==0.7.12,ansible==2.9.16,[...]
              [...]
              Running Sphinx v1.8.2
              [...]
                docs: commands succeeded
                congratulations :)
      
              real    0m34.253s
              user    0m28.573s
              sys     0m2.942s
      
        * with this patch, 'develop-inst' step is skipped
      
              $ rm -rf .tox/docs; time tox -e docs
              docs create: /srv/share/src/ansible/enough.community/infrastructure.git/.tox/docs
              docs installdeps: -r/srv/share/src/ansible/enough.community/infrastructure.git/docs/requirements.txt
              docs installed: alabaster==0.7.12,Babel==2.9.0,[...]
              [...]
              Running Sphinx v1.8.2
              [...]
                docs: commands succeeded
                congratulations :)
      
              real    0m6.630s
              user    0m5.535s
              sys     0m0.496s
      39c872be
  8. 24 Apr, 2021 1 commit