os_mapping.rst 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. OpenStack - Labeled Resources
  2. -----------------------
  3. +------------------------+------------------------+-----------+----------------+----------+
  4. | Labeled Resource | OS Resource Type | CB ID | CB Name | CB Label |
  5. +------------------------+------------------------+-----------+----------------+----------+
  6. | OpenStackInstance | Instance | ID | ID | Name |
  7. +------------------------+------------------------+-----------+----------------+----------+
  8. | OpenStackMachineImage | Image | ID | ID | Name |
  9. +------------------------+------------------------+-----------+----------------+----------+
  10. | OpenStackNetwork | Network | ID | ID | Name |
  11. +------------------------+------------------------+-----------+----------------+----------+
  12. | OpenStackSubnet | Subnet | ID | ID | Name |
  13. +------------------------+------------------------+-----------+----------------+----------+
  14. | OpenStackRouter | Router | ID | ID | Name |
  15. +------------------------+------------------------+-----------+----------------+----------+
  16. | OpenStackVolume | Volume | ID | ID | Name |
  17. +------------------------+------------------------+-----------+----------------+----------+
  18. | OpenStackSnapshot | Snapshot | ID | ID | Name |
  19. +------------------------+------------------------+-----------+----------------+----------+
  20. | OpenStackVMFirewall | Security Group | ID | ID | Name |
  21. +------------------------+------------------------+-----------+----------------+----------+
  22. The resources listed above are labeled, they thus have both the `name` and
  23. `label` properties in CloudBridge. These resources require a mandatory `label`
  24. parameter at creation. For all labeled resources, the `label` property in OpenStack
  25. maps to the Name attribute. However, unlike in Azure or AWS, no resource has
  26. an unchangeable name by which to identify it in our OpenStack implementation.
  27. The `name` property will therefore map to the ID, preserving its role as an unchangeable
  28. identifier even though not easily readable in this context. Finally, labeled resources
  29. support a `label` parameter for the `find` method in their corresponding services.
  30. The below screenshots will help map these properties to OpenStack objects in the
  31. web portal.
  32. Additionally, although OpenStack Security Groups are not associated with a
  33. specific network, such an association is done in CloudBridge, due to its
  34. necessity in AWS. As such, the VMFirewall creation method requires a
  35. `network` parameter and the association is accomplished in OpenStack through
  36. the description, by appending the following string to the user-provided description
  37. (if any) at creation: "[CB-AUTO-associated-network-id: associated_net_id]"
  38. .. figure:: captures/os-instance-dash.png
  39. :scale: 50 %
  40. :alt: name, ID, and label properties for OS Instances
  41. The CloudBridge `name` and `ID` properties map to the unchangeable
  42. resource ID in OpenStack as resources do not allow for an unchangeable
  43. name. The `label` property maps to the 'Name' for all resources in
  44. OpenStack. By default, this label will appear in the first column.
  45. OpenStack - Unlabeled Resources
  46. ---------------------------
  47. +-----------------------+------------------------+-------+---------+----------+
  48. | Unlabeled Resource | OS Resource Type | CB ID | CB Name | CB Label |
  49. +-----------------------+------------------------+-------+---------+----------+
  50. | OpenStackKeyPair | Key Pair | Name | Name | - |
  51. +-----------------------+------------------------+-------+---------+----------+
  52. | OpenStackBucket | Object Store Container | Name | Name | - |
  53. +-----------------------+------------------------+-------+---------+----------+
  54. | OpenStackBucketObject | Object | Name | Name | - |
  55. +-----------------------+------------------------+-------+---------+----------+
  56. The resources listed above are unlabeled. They thus only have the `name`
  57. property in CloudBridge. These resources require a mandatory `name`
  58. parameter at creation, which will directly map to the unchangeable `name`
  59. property. Additionally, for these resources, the `ID` property also maps to
  60. the `name` in OpenStack, as these resources don't have an `ID` in the
  61. traditional sense and can be identified by name. Finally, unlabeled resources
  62. support a `name` parameter for the `find` method in their corresponding
  63. services.
  64. .. figure:: captures/os-kp-dash.png
  65. :scale: 50 %
  66. :alt: KeyPair details on OS dashboard
  67. KeyPairs and other unlabeled resources in OpenStack have `name` that is
  68. unique and unmodifiable. The `ID` will thus map to the `name` property when
  69. no other `ID` exists for that OpenStack resource.
  70. OpenStack - Special Unlabeled Resources
  71. -----------------------------------
  72. +--------------------------+------------------------+-------+------------------------------------------------------------------------+----------+
  73. | Unlabeled Resource | OS Resource Type | CB ID | CB Name | CB Label |
  74. +--------------------------+------------------------+-------+------------------------------------------------------------------------+----------+
  75. | OpenStackFloatingIP | Floating IP | ID | [public_ip] | - |
  76. +--------------------------+------------------------+-------+------------------------------------------------------------------------+----------+
  77. | OpenStackInternetGateway | Network `public` | ID | 'public' | - |
  78. +--------------------------+------------------------+-------+------------------------------------------------------------------------+----------+
  79. | OpenStackVMFirewallRule | Security Group Rule | ID | Generated: [direction]-[protocol]-[from_port]-[to_port]-[cidr]-[fw_id] | - |
  80. +--------------------------+------------------------+-------+------------------------------------------------------------------------+----------+
  81. While these resources are similarly unlabeled, they do not follow the same
  82. general rules as the ones listed before. Firstly, they differ by the fact
  83. that they take neither a `name` nor a `label` parameter at creation.
  84. Moreover, each of them has other special properties.
  85. The FloatingIP resource has a traditional resource ID, but instead of a
  86. traditional name, its `name` property maps to its Public IP.
  87. Moreover, the corresponding `find` method for Floating IPs can thus help
  88. find a resource by `Public IP Address`.
  89. In terms of the gateway in OpenStack, it maps to the network named 'public.'
  90. Thus, the internet gateway create method does not take a name parameter, and
  91. the `name` property will be 'public'.
  92. Finally, Firewall Rules in OpenStack differ from traditional unlabeled resources
  93. by the fact that they do not take a `name` parameter at creation, and the
  94. `name` property is automatically generated from the rule's properties, as
  95. shown above. These rules can be found within each Firewall (i.e. Security
  96. Group) in the web portal, and will not have any name in the OpenStack dashboard.