"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cyborg/objects/extarq/fpga_ext_arq.py" between
openstack-cyborg-6.0.0.tar.gz and openstack-cyborg-7.0.0.tar.gz

About: OpenStack Cyborg provides a general purpose management framework for acceleration resources.
The "Xena" series (latest release).

fpga_ext_arq.py  (openstack-cyborg-6.0.0):fpga_ext_arq.py  (openstack-cyborg-7.0.0)
skipping to change at line 178 skipping to change at line 178
"""update resources provider after program.""" """update resources provider after program."""
# TODO(Sundar) Don't apply function trait if bitstream is private # TODO(Sundar) Don't apply function trait if bitstream is private
if not function_id: if not function_id:
LOG.info("Not get function id for resources provider %s.", LOG.info("Not get function id for resources provider %s.",
self.arq.device_rp_uuid) self.arq.device_rp_uuid)
return return
placement = placement_client.PlacementClient() placement = placement_client.PlacementClient()
try: try:
placement.delete_traits_with_prefixes( placement.delete_traits_with_prefixes(
self.arq.device_rp_uuid, [constants.FPGA_FUNCTION_ID]) context, self.arq.device_rp_uuid,
[constants.FPGA_FUNCTION_ID])
except Exception as e: except Exception as e:
LOG.error("Failed to delete traits(%s) from resources provider %s." LOG.error("Failed to delete traits(%s) from resources provider %s."
"Reason: %s", constants.FPGA_FUNCTION_ID, "Reason: %s", constants.FPGA_FUNCTION_ID,
self.arq.device_rp_uuid, e.message) self.arq.device_rp_uuid, e.message)
self.update_check_state( self.update_check_state(
context, constants.ARQ_BIND_FAILED) context, constants.ARQ_BIND_FAILED)
raise raise
function_id = function_id.upper().replace('-', '_-') function_id = function_id.upper().replace('-', '_-')
# TODO(Sundar) Validate this is a valid trait name # TODO(Sundar) Validate this is a valid trait name
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)