luciferchn

nova spec

May 27th, 2015
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.26 KB | None | 0 0
  1. ..
  2. This work is licensed under a Creative Commons Attribution 3.0 Unported
  3. License.
  4.  
  5. http://creativecommons.org/licenses/by/3.0/legalcode
  6.  
  7. ====================================================
  8. Check if destination_type in block_device_mapping_v2
  9. ====================================================
  10.  
  11. https://blueprints.launchpad.net/nova/+spec/check-if-destination_type-in-block_device_mapping_v2
  12.  
  13. Check if destination_type in block_device_mapping_v2 when creating vm
  14. with block_device_mapping_v2.
  15.  
  16.  
  17. Problem description
  18. ===================
  19. When creating vm with block_device_mapping_v2 which miss the
  20. destination_type param, then we would found there was only one disk
  21. device attached to the vm. Because of the above, we need to ensure
  22. destination_type was in the param named block_device_mapping_v2.
  23.  
  24.  
  25. Use Cases
  26. ---------
  27.  
  28. Add restrictions for the param named block_device_mapping_v2.
  29.  
  30. Project Priority
  31. ----------------
  32.  
  33. None
  34.  
  35. Proposed change
  36. ---------------
  37. Add a new API microversion, and check if destination_type in the param
  38. named block_device_mapping_v2.
  39.  
  40. Alternatives
  41. ------------
  42.  
  43. None
  44.  
  45. Data model impact
  46. -----------------
  47.  
  48. None
  49.  
  50. REST API impact
  51. ---------------
  52. The proposed change just add restrictions for request data in the
  53. servers API to check if the 'destination_type' enum field in
  54. block_device_mapping_v2.
  55.  
  56. Security impact
  57. ---------------
  58.  
  59. None
  60.  
  61. Notifications impact
  62. --------------------
  63.  
  64. None
  65.  
  66. Other end user impact
  67. ---------------------
  68.  
  69. None
  70.  
  71. Performance Impact
  72. ------------------
  73.  
  74. None
  75.  
  76. Other deployer impact
  77. ---------------------
  78.  
  79. None
  80.  
  81. Developer impact
  82. ----------------
  83.  
  84. None
  85.  
  86. Implementation
  87. ==============
  88.  
  89. Assignee(s)
  90. -----------
  91.  
  92. Primary assignee:
  93. ZhangJialong<[email protected]>
  94.  
  95. Work Items
  96. ----------
  97.  
  98. * Add a new microversion
  99. and change nova/api/openstack/compute/schemas/v3/block_device_mapping.py
  100. and change nova/block_device.py
  101.  
  102. to use it to check if the 'destination_type' in block_device_mapping_v2.
  103.  
  104. Dependencies
  105. ============
  106.  
  107. None
  108.  
  109.  
  110. Testing
  111. =======
  112.  
  113. * Unit tests in the nova tree.
  114.  
  115. Documentation Impact
  116. ====================
  117.  
  118. The nova/api/openstack/rest_api_version_history.rst document will be updated.
  119. to use it to check if the 'destination_type' in block_device_mapping_v2.
  120.  
  121. Dependencies
  122. ============
  123.  
  124. None
  125.  
  126.  
  127. Testing
  128. =======
  129.  
  130. * Unit tests in the nova tree.
  131.  
  132. Documentation Impact
  133. ====================
  134.  
  135. The nova/api/openstack/rest_api_version_history.rst document will be updated.
Advertisement
Add Comment
Please, Sign In to add comment