Guest User

neutron bug

a guest
Apr 20th, 2018
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.69 KB | None | 0 0
  1. Creating FloatingIP:
  2.  
  3. stack@sd:~$ neutron floatingip-create 3ea9e282-5f07-4442-b00a-0c6700332245
  4. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  5. Created a new floatingip:
  6. +---------------------+--------------------------------------+
  7. | Field | Value |
  8. +---------------------+--------------------------------------+
  9. | created_at | 2018-04-20T08:33:23Z |
  10. | description | |
  11. | fixed_ip_address | |
  12. | floating_ip_address | 192.124.0.12 |
  13. | floating_network_id | 3ea9e282-5f07-4442-b00a-0c6700332245 |
  14. | id | 96b76ab5-2f7f-4246-8d98-a78335a5a860 |
  15. | port_id | |
  16. | project_id | c56e8c7bc8d340b582831cb7510b62ae |
  17. | revision_number | 0 |
  18. | router_id | |
  19. | status | DOWN |
  20. | tags | |
  21. | tenant_id | c56e8c7bc8d340b582831cb7510b62ae |
  22. | updated_at | 2018-04-20T08:33:23Z |
  23. +---------------------+--------------------------------------+
  24.  
  25. Creating Port:
  26. stack@sd:~$ neutron port-create private12 --fixed-ip subnet_id=38940011-0306-45a8-a5d7-c1ad2fedbb2c,ip_address=10.0.0.11
  27. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  28. Created a new port:
  29. +-----------------------+----------------------------------------------------------------------------------+
  30. | Field | Value |
  31. +-----------------------+----------------------------------------------------------------------------------+
  32. | admin_state_up | True |
  33. | allowed_address_pairs | |
  34. | binding:host_id | |
  35. | binding:profile | {} |
  36. | binding:vif_details | {} |
  37. | binding:vif_type | unbound |
  38. | binding:vnic_type | normal |
  39. | created_at | 2018-04-20T08:35:03Z |
  40. | description | |
  41. | device_id | |
  42. | device_owner | |
  43. | extra_dhcp_opts | |
  44. | fixed_ips | {"subnet_id": "38940011-0306-45a8-a5d7-c1ad2fedbb2c", "ip_address": "10.0.0.11"} |
  45. | id | 388e6f22-8da7-41ef-a7e4-f56fbcacea4f |
  46. | mac_address | fa:16:3e:a6:04:59 |
  47. | name | |
  48. | network_id | a8cc10ab-12a1-48ba-b95d-8b45a6e43767 |
  49. | port_security_enabled | True |
  50. | project_id | c56e8c7bc8d340b582831cb7510b62ae |
  51. | qos_policy_id | |
  52. | revision_number | 3 |
  53. | security_groups | 6f128112-255a-4e98-b044-6b3db00361d5 |
  54. | status | DOWN |
  55. | tags | |
  56. | tenant_id | c56e8c7bc8d340b582831cb7510b62ae |
  57. | updated_at | 2018-04-20T08:35:03Z |
  58. +-----------------------+----------------------------------------------------------------------------------+
  59.  
  60. After attaching fip to port:
  61. stack@sd:~$ neutron floatingip-show 96b76ab5-2f7f-4246-8d98-a78335a5a860
  62. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  63. +---------------------+--------------------------------------+
  64. | Field | Value |
  65. +---------------------+--------------------------------------+
  66. | created_at | 2018-04-20T08:33:23Z |
  67. | description | |
  68. | fixed_ip_address | 10.0.0.11 |
  69. | floating_ip_address | 192.124.0.12 |
  70. | floating_network_id | 3ea9e282-5f07-4442-b00a-0c6700332245 |
  71. | id | 96b76ab5-2f7f-4246-8d98-a78335a5a860 |
  72. | port_id | 388e6f22-8da7-41ef-a7e4-f56fbcacea4f |
  73. | project_id | c56e8c7bc8d340b582831cb7510b62ae |
  74. | revision_number | 1 |
  75. | router_id | 4cb49a22-8981-437b-ba6c-6c9a3ac00fa8 |
  76. | status | ACTIVE |
  77. | tags | |
  78. | tenant_id | c56e8c7bc8d340b582831cb7510b62ae |
  79. | updated_at | 2018-04-20T08:36:02Z |
  80. +---------------------+--------------------------------------+
  81.  
  82. Update Port with other fixed-ips
  83. stack@sd:~$ neutron port-update 388e6f22-8da7-41ef-a7e4-f56fbcacea4f --fixed-ip subnet_id=38940011-0306-45a8-a5d7-c1ad2fedbb2c,ip_address=10.0.0.12 --fixed-ip p_address=10.0.0.13 --fixed-ip subnet_id=38940011-0306-45a8-a5d7-c1ad2fedbb2c,ip_address=10.0.0.14 --fixed-ip subnet_id=38940011-0306-45a8-a5d7-c1ad2fedbb2c,ip_
  84. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  85. Updated port: 388e6f22-8da7-41ef-a7e4-f56fbcacea4f
  86.  
  87. Port is updated
  88. stack@sd:~$ neutron port-show 388e6f22-8da7-41ef-a7e4-f56fbcacea4f
  89. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  90. +-----------------------+----------------------------------------------------------------------------------+
  91. | Field | Value |
  92. +-----------------------+----------------------------------------------------------------------------------+
  93. | admin_state_up | True |
  94. | allowed_address_pairs | |
  95. | binding:host_id | |
  96. | binding:profile | {} |
  97. | binding:vif_details | {} |
  98. | binding:vif_type | unbound |
  99. | binding:vnic_type | normal |
  100. | created_at | 2018-04-20T08:35:03Z |
  101. | description | |
  102. | device_id | |
  103. | device_owner | |
  104. | extra_dhcp_opts | |
  105. | fixed_ips | {"subnet_id": "38940011-0306-45a8-a5d7-c1ad2fedbb2c", "ip_address": "10.0.0.12"} |
  106. | | {"subnet_id": "38940011-0306-45a8-a5d7-c1ad2fedbb2c", "ip_address": "10.0.0.13"} |
  107. | | {"subnet_id": "38940011-0306-45a8-a5d7-c1ad2fedbb2c", "ip_address": "10.0.0.14"} |
  108. | | {"subnet_id": "38940011-0306-45a8-a5d7-c1ad2fedbb2c", "ip_address": "10.0.0.15"} |
  109. | id | 388e6f22-8da7-41ef-a7e4-f56fbcacea4f |
  110. | mac_address | fa:16:3e:a6:04:59 |
  111. | name | |
  112. | network_id | a8cc10ab-12a1-48ba-b95d-8b45a6e43767 |
  113. | port_security_enabled | True |
  114. | project_id | c56e8c7bc8d340b582831cb7510b62ae |
  115. | qos_policy_id | |
  116. | revision_number | 8 |
  117. | security_groups | 6f128112-255a-4e98-b044-6b3db00361d5 |
  118. | status | DOWN |
  119. | tags | |
  120. | tenant_id | c56e8c7bc8d340b582831cb7510b62ae |
  121. | updated_at | 2018-04-20T08:38:40Z |
  122. +-----------------------+----------------------------------------------------------------------------------+
  123.  
  124. Fip is still attached to the Fixed-ip 10.0.0.11 which doesn't exists anymore:
  125.  
  126. stack@sd:~$ neutron floatingip-show 96b76ab5-2f7f-4246-8d98-a78335a5a860
  127. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  128. +---------------------+--------------------------------------+
  129. | Field | Value |
  130. +---------------------+--------------------------------------+
  131. | created_at | 2018-04-20T08:33:23Z |
  132. | description | |
  133. | fixed_ip_address | 10.0.0.11 |
  134. | floating_ip_address | 192.124.0.12 |
  135. | floating_network_id | 3ea9e282-5f07-4442-b00a-0c6700332245 |
  136. | id | 96b76ab5-2f7f-4246-8d98-a78335a5a860 |
  137. | port_id | 388e6f22-8da7-41ef-a7e4-f56fbcacea4f |
  138. | project_id | c56e8c7bc8d340b582831cb7510b62ae |
  139. | revision_number | 1 |
  140. | router_id | 4cb49a22-8981-437b-ba6c-6c9a3ac00fa8 |
  141. | status | ACTIVE |
  142. | tags | |
  143. | tenant_id | c56e8c7bc8d340b582831cb7510b62ae |
  144. | updated_at | 2018-04-20T08:36:02Z |
  145. +---------------------+--------------------------------------+
Advertisement
Add Comment
Please, Sign In to add comment