Created
October 23, 2014 18:26
-
-
Save danehans/396f7688a749a639b943 to your computer and use it in GitHub Desktop.
neutron J subnet required
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use case: Boot instances to a provider flat network. Upstream physcial router is gateway. | |
# Host net info is manually assigned (through cloud-init). | |
# Current neutron model associated an address from this network even if dhcp is set to false. | |
# This causes confusion to the cloud user/admin becase the cloud-init manual address differs | |
# from address in nova list output. | |
# neutron net-list | |
+--------------------------------------+-----------+-------------------------------------------------------+ | |
| id | name | subnets | | |
+--------------------------------------+-----------+-------------------------------------------------------+ | |
| 3e4af9dc-dde7-4554-bb42-048678067d99 | ext223 | 74326593-00b9-444e-a350-aabaadb93b08 192.168.223.0/24 | | |
| 87bb7232-2624-4401-9a8c-91eb97e17a7e | admin-net | 1a98f5df-6ff8-42ee-86a5-af4da14640b6 10.0.0.0/24 | | |
| be0eac49-f53e-43bc-b40c-d515f9ee2953 | ext225 | | | |
+--------------------------------------+-----------+-------------------------------------------------------+ | |
[root@compute-server01 heat-kubernetes(keystone_admin)]# nova boot --image cirros --flavor m1.tiny --nic net-id=be0eac49-f53e-43bc-b40c-d515f9ee2953 c1 | |
ERROR (BadRequest): Network be0eac49-f53e-43bc-b40c-d515f9ee2953 requires a subnet in order to boot instances on. (HTTP 400) (Request-ID: req-94cc4560-1aaa-41dc-89aa-c7aa6c2a206e) | |
[root@compute-server01 heat-kubernetes(keystone_admin)]# neutron net-show ext225 | |
+---------------------------+--------------------------------------+ | |
| Field | Value | | |
+---------------------------+--------------------------------------+ | |
| admin_state_up | True | | |
| id | be0eac49-f53e-43bc-b40c-d515f9ee2953 | | |
| name | ext225 | | |
| provider:network_type | flat | | |
| provider:physical_network | physnet225 | | |
| provider:segmentation_id | | | |
| router:external | True | | |
| shared | False | | |
| status | ACTIVE | | |
| subnets | | | |
| tenant_id | 6d76cd35a2f346eca764b96a51cd3698 | | |
+---------------------------+--------------------------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment