1. 30 Oct, 2018 1 commit
  2. 27 Oct, 2018 1 commit
    • Added downloading bitstream when programming fpga · 0bd8a7d9
      How to test the flow of program process manually:
      1. generate the fake env by the follow command
      cat > ./fake_env.sh << EOL
      SYSINFO=cyborg/accelerator/drivers/fpga/intel/sysinfo.py
      UTILS=cyborg/accelerator/drivers/fpga/utils.py
      sed -i -e 's/^\(SYS_FPGA\) = "\(\/sys\/class\/fpga\)"$/\1 = "\/tmp\2"/g' $SYSINFO
      sed -i -e 's/^\(SYS_FPGA_PATH\) = "\(\/sys\/class\/fpga\)"$/\1 = "\/tmp\2"/g' $UTILS
      python cyborg/tests/unit/accelerator/drivers/fpga/intel/prepare_test_data.py
      LOG=/tmp/intel_fpga_program.log
      sudo echo 'echo fpgaconf \$@ '"|tee $LOG" > /usr/bin/fpgaconf
      sudo echo "date |tee -a $LOG" >> /usr/bin/fpgaconf
      sudo echo "echo 'Program intel FPGA successfully' |tee -a $LOG" >> /usr/bin/fpgaconf
      sudo chmod a+x /usr/bin/fpgaconf
      EOL
      
      chmod a+x ./fake_env.sh
      sudo ./fake_env.sh
      
      2. Please use curl command as follows:
      curl -s -X PATCH -H "X-Auth-Token: $OS_TOKEN" -H "Content-Type: application/json"\
        -d '[{
          	"path": "/program",
          	"op": "replace",
          	"value": [{
          		"image_uuid": "{image_uuid}"
          	}]
        }]'\
        http://{host_ip}:6666/v1/accelerators/deployables/{deployable_uuid}/program
      
      3. Checke the /tmp/intel_fpga_program.log it should see the infomation as
      the follow exmaple:
      $ cat /tmp/intel_fpga_program.log
      fpgaconf -b 04 -d 00 -f 1 4047d422-5d2f-432c-b87f-5e1749e95ee6.bin
      Sat Oct 27 15:08:34 UTC 2018
      Program intel FPGA successfully
      
      Change-Id: I70ff5edac65fe9e9ec1783d62c2ecd21ac5fab18
      Li Liu committed
  3. 26 Oct, 2018 1 commit
    • bug fix: fix 2 bugs for image client · 69c6b8a3
      1. missing glance config section
      
      2. missing import keystoneauth1.exceptions
      When call glance fail during download image, it will report:
       NameError: global name 'ks_exc' is not defined
      
      Change-Id: I17f25368f3361b4fc20a0eda9d6b2788beaa6362
      Shaohe Feng committed
  4. 24 Oct, 2018 5 commits
  5. 22 Oct, 2018 2 commits
  6. 21 Oct, 2018 1 commit
    • Don't quote {posargs} in tox.ini · c9398c25
      Quotes around {posargs} cause the entire string to be combined into one
      arg that gets passed to stestr. This prevents passing multiple args
      (e.g. '--concurrency=16 some-regex')
      
      Change-Id: I1e860339c2fad9e86c0a2cacf344a6ff94325873
      melissaml committed
  7. 20 Oct, 2018 1 commit
  8. 19 Oct, 2018 2 commits
  9. 17 Oct, 2018 1 commit
    • Added Glance Client for Image downloading · 156c9f18
      According to sean mooney's comments in
      https://review.openstack.org/#/c/596507/
      
      I am splitting into 2 patches
      
      For now, please add following session in cyborg.conf
      [glance]
      project_domain_name = Default
      project_name = service
      user_domain_name = Default
      password = {your_password}
      username = placement
      auth_url = http://{host_ip}/identity
      auth_type = password
      auth_section = keystone_authtoken
      api_servers = http://{host_ip}/image
      
      Change-Id: I3a0249c7ac8ba5fd3c20ae6402dcc2f9e9bcfe95
      Li Liu committed
  10. 11 Sep, 2018 1 commit
  11. 20 Aug, 2018 1 commit
  12. 19 Aug, 2018 1 commit
  13. 17 Aug, 2018 2 commits
  14. 16 Aug, 2018 1 commit
  15. 15 Aug, 2018 1 commit
    • Quota usage support in Cyborg · e7db748c
      1. Introduce quote usage related tables.
      2. Add reserve() and commit() function to update quota usage in DB.
      3. Invoke reserve() and commit() when users create or delete acclerators.
      
      Change-Id: I828bc6d35d08116a2b3c74baeda8876121541f8c
      Xinran WANG committed
  16. 14 Aug, 2018 1 commit
  17. 13 Aug, 2018 2 commits
  18. 11 Aug, 2018 2 commits
  19. 10 Aug, 2018 2 commits
    • Merge "support sub provider" · b727c167
      Zuul committed
    • support sub provider · 604e5b54
      With this patch, cyborg can report accelerators information into
      placement. Then scheduer can find an appropriate host according to
      user requirements.
      
      This patch leverages Nova's code in order to avoid reinventing the wheel.
      
      It is batter that nova can split the placement client to a separated lib.
      So other projects can use it easily.
      
      This new client can support provider trees, that is needed by cyborg's
      different dirvers.
      We can create a sub provider tree easily by the follow method.
      class SchedulerReportClient(object):
          def get_provider_tree_and_ensure_root(
                 self, context, rp_uuid, name=None,
                 parent_provider_uuid=None)
      
      The patch include:
      1. add get_ksa_adapter for placement client
      
      2. add placement client
      
      3. update placement config
      
      Missing testcase for this patch.
      
      Change-Id: I1ad9d525fa070dfa0f7cbf374003a74c50de17b4
      Shaohe Feng committed
  20. 09 Aug, 2018 1 commit
  21. 08 Aug, 2018 3 commits
  22. 07 Aug, 2018 2 commits
  23. 06 Aug, 2018 1 commit
    • Added rest API for FPGA programming · 185169e3
      Here is an example on how to call this api
      curl -s -X PATCH -H "X-Auth-Token: $OS_TOKEN" -H "Content-Type: application/json"\
        -d '[{
          	"path": "/program",
          	"op": "replace",
          	"value": [{
          		"image_uuid": "9a17439a-85d0-4c53-a3d3-0f68a2eac896"
          	}]
        }]'\
        http://{api_ip}:6666/v1/accelerators/deployables/{pf_uuid}/program
      
      Change-Id: Iab6150f39be9ccb34f1fc86d6942b1b7c48a4348
      Li Liu committed
  24. 24 Jul, 2018 2 commits
    • Switch to stestr · e76f2a5f
      According to Openstack summit session [1],
      stestr is maintained project to which all Openstack projects should migrate.
      Let's switch to stestr as other projects have already moved to it.
      
      [1] https://etherpad.openstack.org/p/YVR-python-pti
      
      Change-Id: I8b0f96f05799b892acfae03522726c17010f0df3
      Vu Cong Tuan committed
    • Add "interface_type" field in deployable DB · 06970bcd
      The added "interface_type" field represents deployables' interface
      type when attaching to the hypervisor, e.g pci,mdev etc.
      When "interface_type" equals "pci", the "address" field represents
      the pci_address, and  when "interface_type" equals "mdev", the
      "address" field represents mdev_path.
      
      Change-Id: I9acbecab2aa8741e9aa7f19f7543a5c05defd90b
      Coco committed
  25. 13 Jul, 2018 1 commit
  26. 06 Jul, 2018 1 commit