Ask Your Question

James Zhu's profile - activity

2016-07-18 09:28:57 -0500 received badge  Famous Question (source)
2016-02-18 15:58:49 -0500 received badge  Notable Question (source)
2016-02-05 05:13:10 -0500 received badge  Popular Question (source)
2016-02-03 22:33:00 -0500 received badge  Organizer (source)
2016-02-03 18:20:38 -0500 answered a question vm can not get private ip from dhcp

Anyone can help on this! Thanks!

2016-02-03 12:13:46 -0500 asked a question vm can not get private ip from dhcp

My environment: 2 host running CentOS 7 as virtual machines on virtual box. I created public network/subnet and private network/subnet

Problems: 1. when launch a instance in the public network, the instance will get IP in the OS 2. but when launch a instance in private network, the instance cannot get the private IP, even though the IP is shown on the dashboard for the instance. as you can see below, the instance has a IP assigned, but login the OS, the IP is not there.

    [root@controller ~]# ip netns
    qdhcp-fbefe059-58dd-4cd6-a12e-29d545984037 (id: 0)
    qdhcp-e25b02e3-3109-4c14-9b49-7530f315983a (id: 1)
    [root@controller ~]# neutron net-list
    +--------------------------------------+---------+------------------------------------------------------+
    | id                                   | name    | subnets                                              |
    +--------------------------------------+---------+------------------------------------------------------+
    | e25b02e3-3109-4c14-9b49-7530f315983a | private | 92eacb1e-8c6d-4fa5-a145-057530e38569 192.168.2.0/24  |
    |                                      |         | b35ee090-5a18-452c-97e0-38cadcc32f46 192.168.1.0/24  |
    | fbefe059-58dd-4cd6-a12e-29d545984037 | public  | 5559cd16-6795-4cc4-ac99-8c06101496d2 10.129.248.0/24 |
    +--------------------------------------+---------+------------------------------------------------------+
    [root@controller ~]# neutron subnet-list
    +--------------------------------------+---------+-----------------+------------------------------------------------------+
    | id                                   | name    | cidr            | allocation_pools                                     |
    +--------------------------------------+---------+-----------------+------------------------------------------------------+
    | 92eacb1e-8c6d-4fa5-a145-057530e38569 | priv02  | 192.168.2.0/24  | {"start": "192.168.2.2", "end": "192.168.2.254"}     |
    | 5559cd16-6795-4cc4-ac99-8c06101496d2 | public  | 10.129.248.0/24 | {"start": "10.129.248.227", "end": "10.129.248.237"} |
    | b35ee090-5a18-452c-97e0-38cadcc32f46 | private | 192.168.1.0/24  | {"start": "192.168.1.2", "end": "192.168.1.254"}     |
    +--------------------------------------+---------+-----------------+------------------------------------------------------+
    [root@controller ~]# nova list --all-tenants
    +--------------------------------------+------------+----------------------------------+--------+------------+-------------+---------------------+
    | ID                                   | Name       | Tenant ID                        | Status | Task State | Power State | Networks            |
    +--------------------------------------+------------+----------------------------------+--------+------------+-------------+---------------------+
    | e14ca230-c7d0-46e1-9fd7-3f209ab98e7e | instance01 | 204a23b9e3854f00b5e67ca6371ead9a | ACTIVE | -          | Running     | private=192.168.2.3 |
    +--------------------------------------+------------+----------------------------------+--------+------------+-------------+---------------------+
[root@controller ~]# neutron agent-list
+--------------------------------------+--------------------+------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host       | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+------------+-------+----------------+---------------------------+
| 311c7ad6-bb3c-4334-b2b5-b34e878794c3 | Metadata agent     | controller | :-)   | True           | neutron-metadata-agent    |
| 8f01f335-53d9-47a3-a2ef-08d3df748d60 | L3 agent           | controller | :-)   | True           | neutron-l3-agent          |
| a0342424-00d8-4c29-a2bf-3c48c6cecc74 | Linux bridge agent | controller | :-)   | True           | neutron-linuxbridge-agent |
| acfc0298-3461-40a0-8d15-14742b35c641 | Linux bridge agent | compute01  | :-)   | True           | neutron-linuxbridge-agent |
| b9fb8103-98ed-4659-a1f4-782daf4b48b2 | DHCP agent         | controller | :-)   | True           | neutron-dhcp-agent        |
+--------------------------------------+--------------------+------------+-------+----------------+---------------------------+

Please let me know if you need anymore information!

Thanks!