openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #18594
[nova-network] question about nova-network
Hello,
I have two physical servers, one server configured as as the controller node (running all nova services, except nova-compute), and second server as a compute node (running nova-compute). My question is how does the controller node know there is a compute node "out there", and that all Vms should be instantiated on it?
Also, my understanding is when the first VM is instantiated, the bridge interface "br100" will be created automatically by nova-network on the controller node. I am assuming user has to manually create the "br100" on the compute node(s). Is that right?
The reason I ask is I am trying to instantiate a VM, but running into an error.
root@bodega:~/.ssh# nova flavor-list
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| 1 | m1.tiny | 512 | 0 | 0 | | 1 | 1.0 | True | {} |
| 2 | m1.small | 2048 | 10 | 20 | | 1 | 1.0 | True | {} |
| 3 | m1.medium | 4096 | 10 | 40 | | 2 | 1.0 | True | {} |
| 4 | m1.large | 8192 | 10 | 80 | | 4 | 1.0 | True | {} |
| 5 | m1.xlarge | 16384 | 10 | 160 | | 8 | 1.0 | True | {} |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
root@bodega:~/.ssh# nova image-list
+--------------------------------------+---------------------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+---------------------+--------+--------+
| 19beac6b-5a46-4712-a5b5-99c6e99daa67 | cirros-0.3.0-x86_64 | ACTIVE | |
| 48cc3352-dff3-4625-87b1-143ba1953c57 | tty-linux | ACTIVE | |
| 14652b05-0c27-45d1-b614-a059c9f4f7dc | tty-linux-kernel | ACTIVE | |
| c0f6a4df-5051-49d3-855e-8627c6c15ba6 | tty-linux-ramdisk | ACTIVE | |
+--------------------------------------+---------------------+--------+--------+
root@bodega:~/.ssh#
root@bodega:~/.ssh#
root@bodega:~/.ssh# nova boot --flavor 2 --image 19beac6b-5a46-4712-a5b5-99c6e99daa67 --key_name mykey --security_group default cirros
+-------------------------------------+--------------------------------------+
| Property | Value |
+-------------------------------------+--------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-SRV-ATTR:host | None |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |
| OS-EXT-SRV-ATTR:instance_name | instance-00000001 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | 9RTkufdA6oaF |
| config_drive | |
| created | 2012-11-14T22:55:42Z |
| flavor | m1.small |
| hostId | |
| id | 3c8acf5b-dd4a-4830-b5bb-faf87f8c7b18 |
| image | cirros-0.3.0-x86_64 |
| key_name | mykey |
| metadata | {} |
| name | cirros |
| progress | 0 |
| security_groups | [{u'name': u'default'}] |
| status | BUILD |
| tenant_id | ce1e819636744dc680fa5515f6475e87 |
| updated | 2012-11-14T22:55:42Z |
| user_id | ce016bb05df949ebbafcc7c165359d7c |
+-------------------------------------+--------------------------------------+
/var/log/nova/nova-api.log has the following log messages:
2012-11-14 14:58:35 INFO nova.api.openstack.wsgi [req-ad86174c-09eb-4ef3-8ffa-ec8a42a5c9e6 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] GET http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/flavors/2
2012-11-14 14:58:35 DEBUG nova.api.openstack.wsgi [req-ad86174c-09eb-4ef3-8ffa-ec8a42a5c9e6 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] No Content-Type provided in request from (pid=15959) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:783
2012-11-14 14:58:35 INFO nova.api.openstack.wsgi [req-ad86174c-09eb-4ef3-8ffa-ec8a42a5c9e6 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/flavors/2 returned with HTTP 200
2012-11-14 14:58:35 INFO nova.osapi_compute.wsgi.server [req-ad86174c-09eb-4ef3-8ffa-ec8a42a5c9e6 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] 10.176.20.158 - - [14/Nov/2012 14:58:35] "GET /v2/ce1e819636744dc680fa5515f6475e87/flavors/2 HTTP/1.1" 200 601 0.076119
2012-11-14 14:58:35 INFO nova.api.openstack.wsgi [req-b9343b15-230c-478e-b349-878370231888 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] GET http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/images/19beac6b-5a46-4712-a5b5-99c6e99daa67
2012-11-14 14:58:35 DEBUG nova.api.openstack.wsgi [req-b9343b15-230c-478e-b349-878370231888 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] No Content-Type provided in request from (pid=15959) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:783
2012-11-14 14:58:35 INFO nova.api.openstack.wsgi [req-b9343b15-230c-478e-b349-878370231888 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/images/19beac6b-5a46-4712-a5b5-99c6e99daa67 returned with HTTP 200
2012-11-14 14:58:35 INFO nova.osapi_compute.wsgi.server [req-b9343b15-230c-478e-b349-878370231888 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] 10.176.20.158 - - [14/Nov/2012 14:58:35] "GET /v2/ce1e819636744dc680fa5515f6475e87/images/19beac6b-5a46-4712-a5b5-99c6e99daa67 HTTP/1.1" 200 870 0.342695
2012-11-14 14:58:35 INFO nova.api.openstack.wsgi [req-97048e46-33ce-4c8a-8fb3-54e5cbb2c5c6 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] POST http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/servers
2012-11-14 14:58:35 DEBUG nova.quota [req-97048e46-33ce-4c8a-8fb3-54e5cbb2c5c6 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] Created reservations ['84d568a2-f275-456f-a134-e16bdae91bdd', '7dd5340a-4d20-415e-8759-082f509c4d07', '5e03be2d-917d-4ddb-b0c7-3a07baa5a4dc'] from (pid=15959) reserve /usr/lib/python2.7/dist-packages/nova/quota.py:697
2012-11-14 14:58:35 DEBUG nova.openstack.common.rpc.amqp [-] Making asynchronous call on network ... from (pid=15959) multicall /usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py:351
2012-11-14 14:58:35 DEBUG nova.openstack.common.rpc.amqp [-] MSG_ID is 669ed59a048f4e2799d8474acebaed8a from (pid=15959) multicall /usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py:354
2012-11-14 14:58:35 DEBUG nova.compute.api [req-97048e46-33ce-4c8a-8fb3-54e5cbb2c5c6 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] Going to run 1 instances... from (pid=15959) _create_instance /usr/lib/python2.7/dist-packages/nova/compute/api.py:490
2012-11-14 14:58:36 DEBUG nova.openstack.common.rpc.amqp [-] Making asynchronous cast on scheduler... from (pid=15959) cast /usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py:376
2012-11-14 14:58:36 INFO nova.api.openstack.wsgi [req-97048e46-33ce-4c8a-8fb3-54e5cbb2c5c6 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/servers returned with HTTP 202
2012-11-14 14:58:36 INFO nova.osapi_compute.wsgi.server [req-97048e46-33ce-4c8a-8fb3-54e5cbb2c5c6 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] 10.176.20.158 - - [14/Nov/2012 14:58:36] "POST /v2/ce1e819636744dc680fa5515f6475e87/servers HTTP/1.1" 202 739 0.623450
2012-11-14 14:58:36 INFO nova.api.openstack.wsgi [req-627b3eec-5eed-43a7-b796-183626e8af1e ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] GET http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/servers/c67816f0-5acd-4be5-88b5-eb940aba6d79
2012-11-14 14:58:36 DEBUG nova.api.openstack.wsgi [req-627b3eec-5eed-43a7-b796-183626e8af1e ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] No Content-Type provided in request from (pid=15959) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:783
2012-11-14 14:58:36 INFO nova.api.openstack.wsgi [req-627b3eec-5eed-43a7-b796-183626e8af1e ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/servers/c67816f0-5acd-4be5-88b5-eb940aba6d79 returned with HTTP 200
2012-11-14 14:58:36 INFO nova.osapi_compute.wsgi.server [req-627b3eec-5eed-43a7-b796-183626e8af1e ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] 10.176.20.158 - - [14/Nov/2012 14:58:36] "GET /v2/ce1e819636744dc680fa5515f6475e87/servers/c67816f0-5acd-4be5-88b5-eb940aba6d79 HTTP/1.1" 200 1499 0.109392
2012-11-14 14:58:36 INFO nova.api.openstack.wsgi [req-005f351f-6ed4-4d25-847a-91ca3227e148 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] GET http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/flavors/2
2012-11-14 14:58:36 DEBUG nova.api.openstack.wsgi [req-005f351f-6ed4-4d25-847a-91ca3227e148 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] No Content-Type provided in request from (pid=15959) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:783
2012-11-14 14:58:36 INFO nova.api.openstack.wsgi [req-005f351f-6ed4-4d25-847a-91ca3227e148 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/flavors/2 returned with HTTP 200
2012-11-14 14:58:36 INFO nova.osapi_compute.wsgi.server [req-005f351f-6ed4-4d25-847a-91ca3227e148 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] 10.176.20.158 - - [14/Nov/2012 14:58:36] "GET /v2/ce1e819636744dc680fa5515f6475e87/flavors/2 HTTP/1.1" 200 601 0.073584
2012-11-14 14:58:36 INFO nova.api.openstack.wsgi [req-d9f78e68-9df9-48fe-97a1-388bf186be06 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] GET http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/images/19beac6b-5a46-4712-a5b5-99c6e99daa67
2012-11-14 14:58:36 DEBUG nova.api.openstack.wsgi [req-d9f78e68-9df9-48fe-97a1-388bf186be06 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] No Content-Type provided in request from (pid=15959) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:783
2012-11-14 14:58:36 INFO nova.api.openstack.wsgi [req-d9f78e68-9df9-48fe-97a1-388bf186be06 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/images/19beac6b-5a46-4712-a5b5-99c6e99daa67 returned with HTTP 200
2012-11-14 14:58:36 INFO nova.osapi_compute.wsgi.server [req-d9f78e68-9df9-48fe-97a1-388bf186be06 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] 10.176.20.158 - - [14/Nov/2012 14:58:36] "GET /v2/ce1e819636744dc680fa5515f6475e87/images/19beac6b-5a46-4712-a5b5-99c6e99daa67 HTTP/1.1" 200 870 0.336814
2012-11-14 15:15:50 INFO nova.api.openstack.wsgi [req-969f53ed-dd7b-44d1-8f7b-f3bebda0a190 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] GET http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/servers/detail
2012-11-14 15:15:50 DEBUG nova.api.openstack.wsgi [req-969f53ed-dd7b-44d1-8f7b-f3bebda0a190 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] No Content-Type provided in request from (pid=15959) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:783
2012-11-14 15:15:50 DEBUG nova.compute.api [req-969f53ed-dd7b-44d1-8f7b-f3bebda0a190 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] Searching by: {'deleted': False, 'project_id': u'ce1e819636744dc680fa5515f6475e87'} from (pid=15959) get_all /usr/lib/python2.7/dist-packages/nova/compute/api.py:1055
2012-11-14 15:15:50 INFO nova.api.openstack.wsgi [req-969f53ed-dd7b-44d1-8f7b-f3bebda0a190 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/servers/detail returned with HTTP 200
2012-11-14 15:15:50 INFO nova.osapi_compute.wsgi.server [req-969f53ed-dd7b-44d1-8f7b-f3bebda0a190 ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] 10.176.20.158 - - [14/Nov/2012 15:15:50] "GET /v2/ce1e819636744dc680fa5515f6475e87/servers/detail HTTP/1.1" 200 2935 0.115576
Any help or pointers to debug the issue will be highly appreciated. I feel I am getting so close to the setup.
Regards,
Ahmed.