instance only show the IP on dashboard but not inside the VM
VM is not getting the IP but only IP is showing on dashboard, I am using NEWtow relaese.
Please advise, below are the out put
[root@controller /]# openstack compute service list
+----+------------------+------------+----------+---------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+------------------+------------+----------+---------+-------+----------------------------+
| 1 | nova-conductor | controller | internal | enabled | up | 2017-04-26T07:59:10.000000 |
| 2 | nova-scheduler | controller | internal | enabled | up | 2017-04-26T07:59:10.000000 |
| 3 | nova-consoleauth | controller | internal | enabled | up | 2017-04-26T07:59:13.000000 |
| 7 | nova-compute | compute | nova | enabled | up | 2017-04-26T07:59:12.000000 |
+----+------------------+------------+----------+---------+-------+----------------------------+
[root@controller /]# openstack network agent list
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
| 2f8aaefe-6976-46d8-9a0b-977f0e119646 | Linux bridge agent | controller | None | True | UP | neutron-linuxbridge-agent |
| 710f87e0-3183-4377-b85a-6ddf52cb5f44 | Linux bridge agent | compute | None | True | UP | neutron-linuxbridge-agent |
| 87c13aef-8ded-4417-9650-1a65fe6ee507 | L3 agent | controller | nova | True | UP | neutron-l3-agent |
| a4d899b7-c4ba-4f2c-847b-deeee31431ea | DHCP agent | controller | nova | True | UP | neutron-dhcp-agent |
| fb980855-9790-476c-9dff-d1ea197b3896 | Metadata agent | controller | None | True | UP | neutron-metadata-agent |
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
[root@controller /]#
[root@controller /]# openstack network show provider
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | UP |
| availability_zone_hints | |
| availability_zones | nova |
| created_at | 2017-04-26T18:42:57Z |
| description | |
| id | eabf1c8b-2744-499a-b6ad-1921e1fe8351 |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | False |
| mtu | 1500 |
| name | provider |
| port_security_enabled | True |
| project_id | 7df83207c82846d1a0b18d0baa36b616 |
| project_id | 7df83207c82846d1a0b18d0baa36b616 |
| provider:network_type | flat |
| provider:physical_network | provider |
| provider:segmentation_id | None |
| revision_number | 6 |
| router:external | External |
| shared | True |
| status | ACTIVE |
| subnets | f31bfba2-62f0-4844-bc8f-6af9daec614c |
| tags | [] |
| updated_at | 2017-04-26T18:43:25Z |
+---------------------------+--------------------------------------+
[linux_bridge]
physical_interface_mappings = provider:enp6s0
[vxlan]
enable_vxlan = True
local_ip = 192.168.1.4
l2_population = True
[securitygroup]
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
My guess is that the instance doesn't receive the DHCP reply. There are other possibilities, e.g. the instance doesn't use DHCP or you didn't configure DHCP on the network to which the instance is connected.
Do you see anything about DCHP or IP addresses in the console log? Are other instances OK?
thanks for your response, its my first VM and DHCP is working but cannot get the IP, I have run the ifup eth0 but its showing
dashboard is showing the IP but VM is not get the IP from DHCP
no lease, failing
I have check one more thing, on the compute node my provider interface is showing off. I have changed the interface setting dhcp to none but its automatically revert back to dhcp. I have seen on GUI
Starting network... udhcpc (v1.20.1) started Sending discover... Sending discover... no lease, failing
So, your VM requests an IP aadress through DHCP, but doesn't get one. Perhaps you have NetworkManager running, and it interferes with your NW config. Your servers' interfaces should have static IPs or no IP.