Comment 28 for bug 1811941

Revision history for this message
Amer Hwitat (amer.hwitat) wrote :

Ok ... finally done the router is pingable from my windows installation with both interfaces is up and running ... nova computation CPU on the router, and it took some time for the external gateway interface to be up and active (GREEN) ... I did install though the ironic baremetal on a fresh VM of Openstack ... I have now three VMs ... one for Linux only ... the second with Openstack installed allinone (one Node) ... and the third is the VM I'm working on now (copied it to External Drive for future reference) and it'sm running well on 5GB .. slow but the Horizon is fare to configure Networks and Routers ... though I need a physical router as gateway for my windows to ping the internal network subnet for now I'm preparing static routes to do that ..

I did the following on CLI and the rest is on Horizon ...

systemctl restart network #### and check brifge br-ex status with ip a if Down or UNKOWN

grep rewrite /etc/httpd/conf.modules.d/* ## recreate modules in httpd

systemctl restart httpd
systemctl restart openstack*
systemctl status openstack*
#########################################################################################
gedit /etc/neutron/plugin.ini #### define openvswitch ovs and flat networks

File : openvswitch_agent.ini

integration_bridge=br-int
tenant_network_type = local,flat,vlan
network_vlan_ranges = physnet1
enable_tunneling = True
bridge_mappings = physnet1:br-ex
physical_interface_mappings = physnet1:br-ex

#/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
[ovs]
#change br-eth0 to your "data network" bridge
bridge_mappings = physnet1:br-eth0
network_vlan_ranges = physnet1

systemctl restart neutron-openvswitch-agent

In addition, turning on verbose and debugging mode in the neutron conf can help alot in tracking down this issue.

#/etc/neutron/neutron.conf
[DEFAULT]
verbose = True
debug = True
#########################################################################################
systemctl enable neutron-server.service neutron-openvswitch-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service neutron-ovs-cleanup.service
systemctl start neutron-server.service neutron-openvswitch-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service neutron-ovs-cleanup.service
systemctl enable neutron-l3-agent.service
systemctl start neutron-l3-agent.service
#########################################################################################
export OS_USERNAME=admin
export OS_PASSWORD=server
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://192.168.43.110:5000/v3

curl -v http://192.168.43.110:35357
  curl -v http://192.168.43.110:35357

neutron net-create External1 --provider:network_type flat --provider:physical_network br-ex --router:external=true --shared
neutron net-create External2 --provider:network_type flat --provider:physical_network eno16777736 --router:external=true --shared
neutron net-create External3 --provider-physical-network provider --provider:physical_network br-ex --router:external=true --shared

openstack subnet create --network provider \
  --allocation-pool start=192.168.43.2,end=192.168.43.240 \
  --dns-nameserver 192.168.43.1 --gateway 192.168.43.1 \
  --subnet-range 192.168.43.0/24 provider

openstack network create --provider-network-type flat \
                         --provider-physical-network extnet \
                         --external \
                         --share \
                         external_network
[root@localhost ~(keystone_admin)]# openstack network create --provider-network-type flat \
> --provider-physical-network extnet \
> --external \
> --share \
> external_network
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | UP |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2019-01-20T15:41:16Z |
| description | |
| dns_domain | None |
| id | a69b0d71-5d8b-4d7b-afdc-724235c971ec |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | False |
| is_vlan_transparent | None |
| mtu | 1500 |
| name | external_network |
| port_security_enabled | True |
| project_id | d1d7e8bafc6d4e79a98cb177bcd31325 |
| provider:network_type | flat |
| provider:physical_network | extnet |
| provider:segmentation_id | None |
| qos_policy_id | None |
| revision_number | 1 |
| router:external | External |
| segments | None |
| shared | True |
| status | ACTIVE |
| subnets | |
| tags | |
| updated_at | 2019-01-20T15:41:17Z |
+---------------------------+--------------------------------------+
[root@localhost ~(keystone_admin)]#

openstack subnet create --subnet-range 192.168.43.0/24 \
                        --network external_network \
                        --no-dhcp \
                        --gateway=192.168.43.1 \
                        --allocation-pool start=192.168.43.100,end=192.168.43.240 \
                        external_subnet
[root@localhost ~(keystone_admin)]# openstack subnet create --subnet-range 192.168.43.0/24 \
> --network external_network \
> --no-dhcp \
> --gateway=192.168.43.1 \
> --allocation-pool start=192.168.43.100,end=192.168.43.240 \
> external_subnet
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| allocation_pools | 192.168.43.100-192.168.43.240 |
| cidr | 192.168.43.0/24 |
| created_at | 2019-01-20T15:42:16Z |
| description | |
| dns_nameservers | |
| enable_dhcp | False |
| gateway_ip | 192.168.43.1 |
| host_routes | |
| id | 7660b3d7-10c3-48ed-a5a2-84ea253dfa0f |
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| name | external_subnet |
| network_id | a69b0d71-5d8b-4d7b-afdc-724235c971ec |
| project_id | d1d7e8bafc6d4e79a98cb177bcd31325 |
| revision_number | 0 |
| segment_id | None |
| service_types | |
| subnetpool_id | None |
| tags | |
| updated_at | 2019-01-20T15:42:16Z |
+-------------------+--------------------------------------+
[root@localhost ~(keystone_admin)]#

###########################################################################################

openstack baremetal node list

openstack baremetal node clean <node> \
    --clean-steps '[{"interface": "deploy", "step": "erase_devices_metadata"}]'

openstack baremetal node clean <node> \
    --clean-steps '[{"interface": "deploy", "step": "erase_devices"}]'