If i create an instance using config-drive (ignoring metadata server), it starts up fine, and has a routing table with 169.254.169.254 via one of the qdhcp namespaces.
Inside of this instance i can ping both the IP of the namespace and the 169.254.169.254 address, but I cannot curl it.
# curl http://169.254.169.254
<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>404 Not Found</h1>
The resource could not be found.<br /><br />
</body>
---
Doing some googling, I found a suggestion of verify that the following rule existed in the iptables of the namespace:
In the scenario where their is no Nuetron Gateway, we're only using provider networking. Specifically VLAN provider networking.
The one network and subnet created look as follows:
openstack network show mgmt-1 ------- ------- ------- +------ ------- ------- ------- ------- ----+ ------- ------- ------- +------ ------- ------- ------- ------- ----+ zone_hints | zone1, zone2, zone3 | 06T17:31: 19Z | 54a2-4daf- 9aa3-98f008215b 55 | enabled | True | 4b451214026857b c9 | network_ type | vlan | physical_ network | physnet1 | segmentation_ id | 1030 | 4bca-410d- 8514-90b8052763 24 | 06T17:31: 20Z | ------- ------- ------- +------ ------- ------- ------- ------- ----+
+------
| Field | Value |
+------
| admin_state_up | UP |
| availability_
| availability_zones | zone1, zone2 |
| created_at | 2019-06-
| description | |
| dns_domain | |
| id | 724aef7a-
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | None |
| is_vlan_transparent | None |
| mtu | 9000 |
| name | mgmt-1 |
| port_security_
| project_id | 143294d60ce5445
| provider:
| provider:
| provider:
| qos_policy_id | None |
| revision_number | 3 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | 5d0cf549-
| tags | |
| updated_at | 2019-06-
+------
$ openstack subnet show mgmt-1 ------- ------+ ------- ------- ------- ------- ------- ---+ ------- ------+ ------- ------- ------- ------- ------- ---+ 160.10- 10.243. 160.100 | 06T17:31: 20Z | 4bca-410d- 8514-90b8052763 24 | 54a2-4daf- 9aa3-98f008215b 55 | 4b451214026857b c9 | 06T17:31: 20Z | ------- ------+ ------- ------- ------- ------- ------- ---+
+------
| Field | Value |
+------
| allocation_pools | 10.243.
| cidr | 10.243.160.0/24 |
| created_at | 2019-06-
| description | |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 10.243.160.254 |
| host_routes | |
| id | 5d0cf549-
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| name | mgmt-1 |
| network_id | 724aef7a-
| project_id | 143294d60ce5445
| revision_number | 0 |
| segment_id | None |
| service_types | |
| subnetpool_id | None |
| tags | |
| updated_at | 2019-06-
+------
neutron-openvswitch has enable- local-dhcp- and-metadata set to True. This is verified with:
$ openstack network agent list | egrep -i 'dhcp|meta' fe88-48e7- afd8-f95a3500de e1 | Metadata agent | compute15 | None | :-) | UP | neutron- metadata- agent | 0f02-4e20- 9725-3e98120ae7 04 | DHCP agent | compute1 | zone1 | :-) | UP | neutron-dhcp-agent | ff79-43a8- b279-ef22290d36 d7 | Metadata agent | compute3 | None | :-) | UP | neutron- metadata- agent | aa56-4095- 9fff-4f22ab99d0 0c | Metadata agent | compute5 | None | :-) | UP | neutron- metadata- agent | f782-4aa7- 8ac6-750d00ec01 25 | Metadata agent | compute14 | None | :-) | UP | neutron- metadata- agent | 11a4-4e43- bdca-722bde6b6c 11 | DHCP agent | compute3 | zone1 | :-) | UP | neutron-dhcp-agent | f928-4388- 87ca-e8ebc9f155 54 | DHCP agent | compute2 | zone1 | :-) | UP | neutron-dhcp-agent | 3f24-4075- 9cb7-e12280d364 38 | DHCP agent | compute5 | zone1 | :-) | UP | neutron-dhcp-agent | cd4d-4d07- a54a-7ab99167c1 b0 | Metadata agent | compute6 | None | :-) | UP | neutron- metadata- agent | cf44-4187- 920a-db5beeab05 cf | DHCP agent | compute14 | zone3 | :-) | UP | neutron-dhcp-agent | bdea-444a- afc6-75b49f0132 a8 | DHCP agent | compute12 | zone3 | :-) | UP | neutron-dhcp-agent | eded-46eb- 9d39-0368707314 33 | Metadata agent | compute8 | None | :-) | UP | neutron- metadata- agent | f0e3-45f0- 9887-9739aaaef3 de | DHCP agent | compute8 | zone2 | :-) | UP | neutron-dhcp-agent | 8af1-433c- a77b-e474bc16f9 f9 | Metadata agent | compute13 | None | :-) | UP | neutron- metadata- agent | 72b5-49cb- a33e-17afe72a4a 0b | DHCP agent | compute6 | zone2 | :-) | UP | neutron-dhcp-agent | 3a6f-48d2- 931d-6128d08774 86 | DHCP agent | compute10 | zone2 | :-) | UP | neutron-dhcp-agent | 7ad7-4955- 8d59-88fe45b24f f7 | DHCP agent | compute15 | zone3 | :-) | UP | neutron-dhcp-agent | 8e56-4958- b300-9642fd895a d0 | Metadata agent | compute10 | None | :-) | UP | neutron- metadata- agent | 379a-44ab- a804-0805da2363 0e | Metadata agent | compute7 | None | :-) | UP | neutron- metadata- agent | ed55-4930- af7e-3c3dade6db 79 | Metadata agent | compute12 | None | :-) | UP | neutron- metadata- agent | 05b7-483a- a812-3ffb129717 ee | DHCP agent | compute4 | zone1 | :-) | UP | neutron-dhcp-agent | 9748-4803- 8e54-1b7df807cb 69 | Metadata agent | compute11 | None | :-) | UP | neutron- metadata- agent | 910b-4f5c- 8414-01d4dcac42 cf | Metadata agent | compute9 | None | :-) | UP | neutron- metadata- agent | c86a-4347- 8f5b-079fd019fc af | DHCP agent | compute7 | zone2 | :-) | UP | neutron-dhcp-agent | 496f-4b37- 84bc-9e916a1cd3 13 | Metadata agent | compute4 | None | :-) | UP | neutron- metadata- agent | f8c9-43b0- b128-0f07da1b26 25 | Metadata agent | compute1 | None | :-) | UP | neutron- metadata- agent | 6222-4cba- b9d3-1916591826 1b | DHCP agent | compute11 | zone3 | :-) | UP | neutron-dhcp-agent | fc7c-415c- 8f3d-aa0c68f611 0c | Metadata agent | compute2 | None | :-) | UP | neutron- metadata- agent | 2352-4876- 8598-ef877eda72 4d | DHCP agent | compute13 | zone3 | :-) | UP | neutron-dhcp-agent | 8eff-4cb3- 8685-36a9b04591 41 | DHCP agent | compute9 | zone2 | :-) | UP | neutron-dhcp-agent |
| 08586252-
| 09f469c9-
| 0a9bc81d-
| 0c0ecf6a-
| 170fb80a-
| 1e0f1511-
| 22a110e4-
| 236387f3-
| 2d643308-
| 2f35c4bd-
| 3db2dcbf-
| 44a09595-
| 44e02602-
| 468e7408-
| 51ba61b8-
| 56f99f61-
| 61df9ce0-
| 6897a6d1-
| 6ab71669-
| 6ba578ee-
| 7feaf689-
| 80e7c6d1-
| a8a70e20-
| b6a751e7-
| bd95e896-
| d5ec415a-
| dba5e158-
| f4640a2e-
| fdde9c2b-
| ff340680-
The instance, when booting is giving the message:
[WARNING]: No active metadata service found
If i create an instance using config-drive (ignoring metadata server), it starts up fine, and has a routing table with 169.254.169.254 via one of the qdhcp namespaces.
Inside of this instance i can ping both the IP of the namespace and the 169.254.169.254 address, but I cannot curl it.
Inside of the namespace if I curl http:// 169.254. 169.254/ I get the following:
---
# curl http:// 169.254. 169.254
<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>404 Not Found</h1>
The resource could not be found.<br /><br />
</body>
---
Doing some googling, I found a suggestion of verify that the following rule existed in the iptables of the namespace:
-A neutron- l3-agent- PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8775
I have no such rule, but this is likely because there is no NGW in their environment.
It is also worth noting, that in the console output of the instance, it never attempts to call http:// 169.254. 169.254
Bundle can be found at:
https:/ /git.launchpad. net/cpe- deployments/ tree/config/ bundle. yaml?h= 2019-05- 27-Telefonica- OCS-OP- 152907
Console log of last boot found at:
https:/ /pastebin. canonical. com/p/Jyk22sfGT 8/