Advertisement
AshrafHassan

Neutron and Nova

Feb 16th, 2016
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 11.99 KB | None | 0 0
  1. [(keystone_admin)]# neutron port-list
  2. +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+
  3. | id                                   | name | mac_address       | fixed_ips                                                                             |
  4. +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+
  5. | 04654f7e-7fc6-4181-a262-45243f38d1d7 |      | fa:16:3e:64:a7:a3 | {"subnet_id": "199e066d-1727-485e-a8da-76d5f3511055", "ip_address": "10.254.102.130"} |
  6. | 35e90c72-abcf-4e62-9c07-099acf8f075e |      | fa:16:3e:07:aa:6d | {"subnet_id": "199e066d-1727-485e-a8da-76d5f3511055", "ip_address": "10.254.102.131"} |
  7. | 668f5906-6533-4e98-9fd1-4ed06a8b4628 |      | fa:16:3e:f2:c0:41 | {"subnet_id": "199e066d-1727-485e-a8da-76d5f3511055", "ip_address": "10.254.102.129"} |
  8. | 9b468f73-9659-445c-b459-d51de8d5ef43 |      | fa:16:3e:44:19:c3 | {"subnet_id": "9956ee96-9baf-4408-ba16-27106e5f97ac", "ip_address": "192.168.0.1"}    |
  9. | ebb03814-43df-47c3-b3ca-29c16ad1d9a0 |      | fa:16:3e:53:7c:3e | {"subnet_id": "9956ee96-9baf-4408-ba16-27106e5f97ac", "ip_address": "192.168.0.2"}    |
  10. +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+
  11. [(keystone_admin)]# neutron floatingip-list
  12. +--------------------------------------+------------------+---------------------+--------------------------------------+
  13. | id                                   | fixed_ip_address | floating_ip_address | port_id                              |
  14. +--------------------------------------+------------------+---------------------+--------------------------------------+
  15. | e3a8a62a-39d4-4eef-a043-c0d1097a8c72 | 192.168.0.2      | 10.254.102.131      | ebb03814-43df-47c3-b3ca-29c16ad1d9a0 |
  16. +--------------------------------------+------------------+---------------------+--------------------------------------+
  17. [(keystone_admin)]# neutron floatingip-show e3a8a62a-39d4-4eef-a043-c0d1097a8c72
  18. +---------------------+--------------------------------------+
  19. | Field               | Value                                |
  20. +---------------------+--------------------------------------+
  21. | fixed_ip_address    | 192.168.0.2                          |
  22. | floating_ip_address | 10.254.102.131                       |
  23. | floating_network_id | 6802d6c3-ecb0-464a-b5ca-476b7f76c935 |
  24. | id                  | e3a8a62a-39d4-4eef-a043-c0d1097a8c72 |
  25. | port_id             | ebb03814-43df-47c3-b3ca-29c16ad1d9a0 |
  26. | router_id           | 2d9b71f1-6e54-4a05-a0fb-0680233d6dea |
  27. | status              | ACTIVE                               |
  28. | tenant_id           | ee2645070da544a8880f0cb1649fe2e9     |
  29. +---------------------+--------------------------------------+
  30. [(keystone_admin)]# nova list --all-tenant
  31. +--------------------------------------+------+----------------------------------+--------+------------+-------------+----------------------------------+
  32. | ID                                   | Name | Tenant ID                        | Status | Task State | Power State | Networks                         |
  33. +--------------------------------------+------+----------------------------------+--------+------------+-------------+----------------------------------+
  34. | 1e0c4188-fc78-4bd3-b3f5-436167b0ccae | web  | ee2645070da544a8880f0cb1649fe2e9 | ACTIVE | -          | Running     | net1=192.168.0.2, 10.254.102.131 |
  35. +--------------------------------------+------+----------------------------------+--------+------------+-------------+----------------------------------+
  36. [(keystone_admin)]# neutron floatingip-show e3a8a62a-39d4-4eef-a043-c0d1097a8c72
  37. +---------------------+--------------------------------------+
  38. | Field               | Value                                |
  39. +---------------------+--------------------------------------+
  40. | fixed_ip_address    | 192.168.0.2                          |
  41. | floating_ip_address | 10.254.102.131                       |
  42. | floating_network_id | 6802d6c3-ecb0-464a-b5ca-476b7f76c935 |
  43. | id                  | e3a8a62a-39d4-4eef-a043-c0d1097a8c72 |
  44. | port_id             | ebb03814-43df-47c3-b3ca-29c16ad1d9a0 |
  45. | router_id           | 2d9b71f1-6e54-4a05-a0fb-0680233d6dea |
  46. | status              | ACTIVE                               |
  47. | tenant_id           | ee2645070da544a8880f0cb1649fe2e9     |
  48. +---------------------+--------------------------------------+
  49.  
  50. [(keystone_admin)]# neutron security-group-show sec2
  51. +----------------------+--------------------------------------------------------------------+
  52. | Field                | Value                                                              |
  53. +----------------------+--------------------------------------------------------------------+
  54. | description          |                                                                    |
  55. | id                   | 36385509-cd0a-454c-9850-788d78f03d9c                               |
  56. | name                 | sec2                                                               |
  57. | security_group_rules | {                                                                  |
  58. |                      |      "remote_group_id": null,                                      |
  59. |                      |      "direction": "egress",                                        |
  60. |                      |      "remote_ip_prefix": null,                                     |
  61. |                      |      "protocol": null,                                             |
  62. |                      |      "tenant_id": "ee2645070da544a8880f0cb1649fe2e9",              |
  63. |                      |      "port_range_max": null,                                       |
  64. |                      |      "security_group_id": "36385509-cd0a-454c-9850-788d78f03d9c",  |
  65. |                      |      "port_range_min": null,                                       |
  66. |                      |      "ethertype": "IPv4",                                          |
  67. |                      |      "id": "1db2f51a-80a5-4bb8-83a6-19b6be2281d1"                  |
  68. |                      | }                                                                  |
  69. |                      | {                                                                  |
  70. |                      |      "remote_group_id": null,                                      |
  71. |                      |      "direction": "ingress",                                       |
  72. |                      |      "remote_ip_prefix": "0.0.0.0/0",                              |
  73. |                      |      "protocol": "tcp",                                            |
  74. |                      |      "tenant_id": "ee2645070da544a8880f0cb1649fe2e9",              |
  75. |                      |      "port_range_max": 443,                                        |
  76. |                      |      "security_group_id": "36385509-cd0a-454c-9850-788d78f03d9c",  |
  77. |                      |      "port_range_min": 443,                                        |
  78. |                      |      "ethertype": "IPv4",                                          |
  79. |                      |      "id": "43b2f25f-8f33-4a14-a98c-dfca07212dbe"                  |
  80. |                      | }                                                                  |
  81. |                      | {                                                                  |
  82. |                      |      "remote_group_id": null,                                      |
  83. |                      |      "direction": "ingress",                                       |
  84. |                      |      "remote_ip_prefix": "0.0.0.0/0",                              |
  85. |                      |      "protocol": "tcp",                                            |
  86. |                      |      "tenant_id": "ee2645070da544a8880f0cb1649fe2e9",              |
  87. |                      |      "port_range_max": 80,                                         |
  88. |                      |      "security_group_id": "36385509-cd0a-454c-9850-788d78f03d9c",  |
  89. |                      |      "port_range_min": 80,                                         |
  90. |                      |      "ethertype": "IPv4",                                          |
  91. |                      |      "id": "5b4efae2-79cb-4677-808d-97202d7823ce"                  |
  92. |                      | }                                                                  |
  93. |                      | {                                                                  |
  94. |                      |      "remote_group_id": null,                                      |
  95. |                      |      "direction": "ingress",                                       |
  96. |                      |      "remote_ip_prefix": "0.0.0.0/0",                              |
  97. |                      |      "protocol": "icmp",                                           |
  98. |                      |      "tenant_id": "ee2645070da544a8880f0cb1649fe2e9",              |
  99. |                      |      "port_range_max": null,                                       |
  100. |                      |      "security_group_id": "36385509-cd0a-454c-9850-788d78f03d9c",  |
  101. |                      |      "port_range_min": null,                                       |
  102. |                      |      "ethertype": "IPv4",                                          |
  103. |                      |      "id": "5f73276e-e6a2-4a1b-867a-6f71c7aa3ebb"                  |
  104. |                      | }                                                                  |
  105. |                      | {                                                                  |
  106. |                      |      "remote_group_id": null,                                      |
  107. |                      |      "direction": "egress",                                        |
  108. |                      |      "remote_ip_prefix": null,                                     |
  109. |                      |      "protocol": null,                                             |
  110. |                      |      "tenant_id": "ee2645070da544a8880f0cb1649fe2e9",              |
  111. |                      |      "port_range_max": null,                                       |
  112. |                      |      "security_group_id": "36385509-cd0a-454c-9850-788d78f03d9c",  |
  113. |                      |      "port_range_min": null,                                       |
  114. |                      |      "ethertype": "IPv6",                                          |
  115. |                      |      "id": "ae646147-600f-4148-9c8c-63a8f34f8ef1"                  |
  116. |                      | }                                                                  |
  117. |                      | {                                                                  |
  118. |                      |      "remote_group_id": null,                                      |
  119. |                      |      "direction": "ingress",                                       |
  120. |                      |      "remote_ip_prefix": "0.0.0.0/0",                              |
  121. |                      |      "protocol": "tcp",                                            |
  122. |                      |      "tenant_id": "ee2645070da544a8880f0cb1649fe2e9",              |
  123. |                      |      "port_range_max": 22,                                         |
  124. |                      |      "security_group_id": "36385509-cd0a-454c-9850-788d78f03d9c",  |
  125. |                      |      "port_range_min": 22,                                         |
  126. |                      |      "ethertype": "IPv4",                                          |
  127. |                      |      "id": "e4f9c0c5-fd76-4db3-8eab-49f697264379"                  |
  128. |                      | }                                                                  |
  129. | tenant_id            | ee2645070da544a8880f0cb1649fe2e9                                   |
  130. +----------------------+--------------------------------------------------------------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement