Skip to content
Snippets Groups Projects
  1. Sep 06, 2016
    • zhubingbing's avatar
      Add gnocchi ansible role · 89392f4f
      zhubingbing authored
      Partially-Implements: blueprint ansible-gnocchi
      
      Change-Id: I8dd0460bd21ac0a233fab0142ec7b6079459bdc2
      89392f4f
  2. Aug 31, 2016
    • Sean Mooney's avatar
      adds bifrost ssh key generation · 538dbac2
      Sean Mooney authored
      - This change extend the genpwd.py
        command to generate an ssh key pair
        bifrost.
      - This change bifrost config and bootstrap
        task to install the generated keys.
      - This change updates the bifrost guide to
        discribe how to provide your own key.
      
      Change-Id: I05243f58843d9195cace253dff5628fae89c78e8
      Implements: blueprint bifrost-support
      538dbac2
  3. Aug 28, 2016
    • Paul Bourke's avatar
      Fix bandit gate jobs · fc30d583
      Paul Bourke authored
      * Inspected each error and fixed / added nosec where appropriate.
      * build-swift-ring.py which was throwing sec errors is no longer used so
        removed it.
      * Removed the dev/ directory from being checked.
      
      Closes-Bug: #1617713
      Change-Id: I25664cabca4137e5c9f499c1af3f5ce78b86fb56
      fc30d583
  4. Aug 25, 2016
    • Shaun Smekel's avatar
      Add full support for fernet · 1c68ae38
      Shaun Smekel authored
      This addresses the ansible aspects of fernet key bootstrapping as
      well as distributed key rotation.
      
      - Bootstrapping is handled in the same way as keystone bootstrap.
      - A new keystone-fernet and keystone-ssh container is created to allow
        the nodes to communicate with each other (taken from nova-ssh).
      - The keystone-fernet is a keystone container with crontab installed.
        This will handle key rotations through keystone-manage and trigger
        an rsync to push new tokens to other nodes.
      - Key rotation is setup to be balanced across the keystone nodes using
        a round-robbin style. This ensures that any node failures will not
        stop the keys from rotating. This is configured by a desired token
        expiration time which then determines the cron scheduling for each
        node as well as the number of fernet tokens in rotation.
      - Ability for recovered node to resync with the cluster. When a node
        starts it will run sanity checks to ensure that its fernet tokens
        are not stale. If they are it will rsync with other nodes to ensure
        its tokens are up to date.
      
      The Docker component is implemented in:
        https://review.openstack.org/#/c/349366
      
      Change-Id: I15052c25a1d1149d364236f10ced2e2346119738
      Implements: blueprint keystone-fernet-token
      1c68ae38
  5. Aug 10, 2016
  6. Aug 02, 2016
    • Lu lei's avatar
      Using sys.exit(main()) instead of main() · 684b483f
      Lu lei authored
      As we known, Exceptions are raised by the sys.exit() function. When they
      are not handled, no stack traceback is printed in the Python interpreter.
      
      In this patch we have known main() got return values(eg:0, 1), but
      it can't specifies exit status when terminate the main thread by
      unusing sys.exit(). So when using sys.exit(main()) instead of main()
      may be more readable and reasonable.
      TrivialFix.
      
      Change-Id: I184289d28b92a7e345907247c045535a0c42c974
      684b483f
  7. Jun 13, 2016
  8. Jun 07, 2016
  9. Jun 02, 2016
    • Joshua Harlow's avatar
      Use an image object, recorder object and status constants · 7c6990cc
      Joshua Harlow authored
      Instead of using raw dicts and passing data around via
      dictionaries (which makes it really hard to figure out
      what is in those dictionaries at any point) prefer to
      use objects. That way people can actually understand what
      the object is supposed to be, vs guessing and/or having to
      decipher its usage.
      
      The same goes for raw string constants, prefer using
      named constants instead.
      
      Closes-Bug: #1586475
      
      Change-Id: Ide179dc6593c50696d47a2d3d4cd000f343855d4
      7c6990cc
    • Joshua Harlow's avatar
      Use a task model and dumb workers · e78ae9bc
      Joshua Harlow authored
      Instead of having smart workers that need to know
      about the full logic of how they operate and what
      they will do which makes it hard to reuse parts of
      those workers switch the model so that workers are
      dumb and they just run tasks which themselves can
      request additional tasks to run when succesful.
      
      This makes it more consistent when tasks are to
      be retried and also makes it easier to know which
      task is running and when.
      
      Less specialized workers == good.
      
      Closes-Bug: #1586474
      
      Change-Id: Ie7b7303b8bf2a80b3e26b6d4ffc27787f8c794d6
      e78ae9bc
  10. May 31, 2016
  11. May 27, 2016
    • Will Miller's avatar
      Fix kolla-build return codes · 18ae114e
      Will Miller authored
      
      Add a main wrapper function to return 1 if any images failed to build;
      otherwise, return 0. Rename the old main() to run_build(), which still
      returns image statuses, to avoid interfering with unit tests.
      
      Change-Id: I5817cc9cebb4f42dc13e0535223e5dc8931a3aab
      Co-Authored-By: default avatarMark Goddard <mgoddard@cray.com>
      Closes-Bug: #1578404
      18ae114e
  12. May 21, 2016
  13. May 09, 2016
    • Jeffrey Zhang's avatar
      Support a custom base image · 070bf258
      Jeffrey Zhang authored
      Add a new option(base-image) to support custom base image
      In default, the base-image is equal to base. When using custom
      image, please use command line like:
      
          ./tool/build.py --base-image my-image --base centos --base-tag 0.1
      
      DocImpact
      
      Closes-Bug: #1573544
      Change-Id: If4b9c57a2b68f6f06d3e981f30b2173064e02193
      070bf258
  14. May 06, 2016
  15. May 05, 2016
    • Jeff Peeler's avatar
      Generate image dependencies on CLI · 696f0b9a
      Jeff Peeler authored
      Using the new --list-dependencies flag, one can query dependencies for a
      given filter. For example:
      
      ./build.py --list-dependencies heat swift
      {'base': [{'openstack-base': [{'heat-base': ['heat-engine',
                                                   'heat-api-cfn',
                                                   'heat-api']},
                                    {'swift-base': ['swift-object',
                                                    'swift-proxy-server',
                                                    'swift-container',
                                                    'swift-rsyncd',
                                                    'swift-account']}]}]}
      
      Also added --list-images to list all available images.
      
      Change-Id: I1797e32e32705182a763f53329eeb5c4a361abec
      Implements: blueprint images-dependency-tree-cli
      696f0b9a
  16. May 03, 2016
    • Travis McPeak's avatar
      Adding a few #nosec tags to prepare for Bandit usage · cc33c103
      Travis McPeak authored
      This commit adds a few #nosec tags for non-issues.  I've examined
      the code and determined that these don't represent security issues
      so we should add a #nosec tag that tells Bandit not to find these
      issues in the future.
      
      Closes-Bug: #1577498
      Change-Id: Ic37216c08442c700c64118c78cfb46e6cedd237c
      cc33c103
  17. Apr 28, 2016
  18. Apr 27, 2016
    • Michal (inc0) Jastrzebski's avatar
      Override default latest tag on ubuntu · e2fa75fc
      Michal (inc0) Jastrzebski authored
      After 16.04 got released we can't build our images as we pull latest
      (16.04 now) and our sources lists are built for 14.04. We pin ubuntu to
      14.04 here.
      
      Change-Id: Ib29a1c607c3a725cdaf2098edd1c4b80f06a5e38
      Closes-Bug: #1575884
      e2fa75fc
  19. Apr 05, 2016
    • Paul Bourke's avatar
      Log the SHA of the Git ref for source builds · cfd806ae
      Paul Bourke authored
      When using named refs in source builds, e.g. "reference = master", one
      can't easily tell from the build output what SHA master actually pointed
      to at that point and time. Update the debug output to include this.
      
      Closes-Bug: #1566316
      
      Change-Id: I95c1cc316ab7332fa30fa43e207a5a5512b76708
      cfd806ae
  20. Apr 03, 2016
    • Jeffrey Zhang's avatar
      Implement nova-ssh container · 42420830
      Jeffrey Zhang authored
      Add a nova-ssh container to handle the `nova migrate` and
      `nova resize` case, in which the nova will use ssh to copy
      files between machines.
      
      Change-Id: Ie6675943f3aeabfbba8589d308d55b9c89d732db
      Closes-Bug: #1562141
      42420830
  21. Mar 21, 2016
    • SamYaple's avatar
      Add generate_passwords.py to generate passwords · f03e06e0
      SamYaple authored
      
      As with all tools, this is a first pass at the generation. Perhaps we
      even want to move this into kolla/kolla/cmd and be generated with tox
      itself in the future.
      
      This tool, when run, will only populate empty fields that have no
      values meaning that it is safe to run repeatedly on the same file.
      
      Of note, there is no way to preserve comments in the file after it has
      been processed by the yaml parser in python. Comments and sections
      will remain in the passwords.yml template for additional documentation
      if the user wishes to populate the file themselves.
      
      Use SystemRandom and clean up the docs a bit to not use pronouns.
      
      Co-Authored-By: default avatarSteven Dake <stdake@cisco.com>
      
      Closes-Bug: #1559266
      Change-Id: I2932d592df8871f1b7811059206d0b4d0553a687
      f03e06e0
  22. Mar 09, 2016
    • SamYaple's avatar
      Add local directory or file for source build · 279594ab
      SamYaple authored
      
      This change allows using a local directory or tarball to build from
      sources by specifying the 'local' type in your kolla-build.conf:
      
          [keystone-base]
          type=local
          location=/home/martin/src/keystone
      
          [neutron-server-plugin-networking-cisco]
          type=local
          location=/tmp/networking-cisco.tar.gz
      
      Closes-Bug: #1509625
      Co-Authored-By: default avatarMartin André <m.andre@redhat.com>
      Change-Id: I3f6f68b0f44efdac653d186d2625591ad7cb3b2a
      279594ab
  23. Mar 08, 2016
    • Swapnil Kulkarni (coolsvap)'s avatar
      Handle kolla-build exception · 5669f7e0
      Swapnil Kulkarni (coolsvap) authored
      kolla-build currently does not provide information
      if docker service is not running. Added exception
      handling.
      
      Change-Id: I1f167804b8b4d2ad9220281954ff7ea7162a9817
      Closes-Bug:#1553912
      5669f7e0
  24. Feb 28, 2016
    • Vikram Hosakote's avatar
      Add timeout to requests.get() in kolla/cmd/build.py · 320c1f92
      Vikram Hosakote authored
      When kolla-build is running, if there are network issues or if the
      source's location (like http://tarballs.openstack.org) fails to
      respond due to high number of concurrent requests, kolla-build just
      hangs/blocks indefinitely.
      
      This patch set resolves this issue by adding a timeout of 120
      seconds for requests.get() in kolla/cmd/build.py, adds a unit test
      for it in kolla/tests/test_build.py and also the "timeout" argument
      in kolla/common/config.py.
      
      Change-Id: I7c8745a20b9bd1c3f5d6a55c72a794f16fd7e513
      Closes-Bug: #1548614
      320c1f92
  25. Feb 15, 2016
  26. Feb 12, 2016
  27. Feb 04, 2016
  28. Feb 03, 2016
    • SamYaple's avatar
      Ubuntu custom apt repos · 9dae768e
      SamYaple authored
      Change-Id: I3afb8a29c4ae2369f29e0cc94d75ff8a3c42594b
      Implements: blueprint custom-repos
      9dae768e
  29. Jan 20, 2016
  30. Jan 18, 2016
  31. Jan 16, 2016
  32. Jan 07, 2016
    • Jeffrey Zhang's avatar
      Fix the package source don't register issue · 9b19db09
      Jeffrey Zhang authored
      Closes-Bug: #1531848
      Change-Id: I3c6ceb9f1f367b8b19ab1b1d06c67817ab93cabb
      9b19db09
    • SamYaple's avatar
      Fix broken local and global building · ea5fa4e2
      SamYaple authored
      Two things broke in the related patches. This patch aims to fix that.
      
      1) tools/build.py was no longer usable as it imported kolla from the
      global pip install source. If that didnt exist (because kolla wasn't
      installed with pip) then it breaks on import.
      
      2) When kolla was installed globally it looked up the path that
      matched the installation of docker-py instead of looking up a path
      that had the stuff we wanted (kolla images directory)
      
      Change-Id: I94f1856547ce54d506de72926b08c966a36ac608
      Related-Id: I05f10d13e7ba1e2b985c2944aec71ce55630442b
      Related-Bug: #1530256
      Closes-Bug: #1531569
      ea5fa4e2
  33. Jan 06, 2016
    • Michal Rostecki's avatar
      Log information about successful push only if it really is · 7137212a
      Michal Rostecki authored
      The try-except-finally block in push thread was catching only
      ConnectionError and logging information about successful push
      even if some other error occured during push.
      
      TrivialFix
      
      Change-Id: I94f5ed67237d291701469a65f76146881cd67a35
      7137212a
    • Jeffrey Zhang's avatar
      Gen the image dependency in the Graphviz dot format · f2bded7f
      Jeffrey Zhang authored
      By using
      
          ./tools/build.py --save-dependency a.dot
      
      to gen the Graphviz dot dependency file. Later, you can use the `dot`
      to draw the picture.
      
          dot -Tjpg -o a.jpg a.dot
      
      Implements: blueprint images-dependency-tree
      Depends-On: I8e07a1b69fab5f1c587470bfd2104aaba93f0050
      Change-Id: If00f4f3fb9d0b10a07ab2abb7ffb1cd9d64902f2
      f2bded7f
Loading