When I create network/subnetwork, qdchp name space does not create?

提问于 2015-02-04 19:35:25 -0500

colinshao 图像

With no keystone configured, openstack(nova, neutron, glance etc.) are installed on Ubuntu12.04 successfully. when I use curl command to create network/subnetwork, use ip netns to show the qdhcp name space, but it is empty, who knows why?

curl -s -X POST -d '{"network":{"tenant_id":"f406297155a24bffb9a52aa9da5b3e89", "name":"demo-net","admin_state_up":false}}' http://127.0.0.1:9696/v2.0/networks -H "X-Auth-Token:f406297155a24bffb9a52aa9da5b3e89" -H "Content-type:application/json" | python -mjson.tool

curl -s -X POST -d '{"subnet":{"tenant_id":"f406297155a24bffb9a52aa9da5b3e89", "enable_dhcp": true, "network_id":"b78123d6-d92a-429b-be94-fb54645779c0", "name":"demo-subnet", "cidr":"192.8.8.0/24","allocation_pools": [{"start": "192.8.8.2", "end": "192.8.8.9"}], "ip_version": 4}}' http://127.0.0.1:9696/v2.0/subnets -H "X-Auth- Token:f406297155a24bffb9a52aa9da5b3e89" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient"

edit retag flag offensive close merge delete
0

回答 2015-02-06 02:10:29 -0500

Yaguang 图像

When a router or network is created, the namespaces don’t get created immediately. For network, the DHCP namespaces get created only when a vm is attached and for router the namespace is created when a gateway is set. It means that an activity must take place before the namespaces get created.

edit flag offensive delete link 更多

Comments

Sorry for more information, as I created VM successfully(can see it by command "virsh list --all") , but dhcp name space still did not get created, is there any thing wrong? And what is the detail procedure of create dhcp name space related to vm instance create?

colinshao 图像colinshao ( 2015-02-11 20:48:53 -0500 )edit

提问工具

统计

已提问: 2015-02-04 19:35:25 -0500

已查看: 449 次

最后更新: Feb 06 '15