Openstack Services: Network Controller node

اللام عليكم ورحمة الله وبركاته 

openstack  نكمل في مشوار 

Controller node يتم تنفيذ الخطوات التالية في 

Prerequisites:

mysql -u root -p
CREATE DATABASE neutron;
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' \
  IDENTIFIED BY 'NEUTRON_DBPASS';
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' \
  IDENTIFIED BY 'NEUTRON_DBPASS';

admin script شغل 

. admin

openstack user create --domain default --password-prompt neutron
openstack role add --project service --user neutron admin
openstack service create --name neutron \
  --description "OpenStack Networking" network

Create API endpoints:

openstack endpoint create --region RegionOne \
  network public http://controller:9696
openstack endpoint create --region RegionOne \
  network internal http://controller:9696
openstack endpoint create --region RegionOne \
  network admin http://controller:9696

Configure networking options:

self-service كما ذكرنا سابقا هنالك نوعين سنقوم بإختيار  

Install the components:

yum install openstack-neutron openstack-neutron-ml2 \
  openstack-neutron-linuxbridge ebtables

Edit the /etc/neutron/neutron.conf

In the [database] section

[database]
# ...
connection = mysql+pymysql://neutron:NEUTRON_DBPASS@controller/neutron

In the [DEFAULT] section

[DEFAULT]
core_plugin = ml2 service_plugins = router allow_overlapping_ips = true
transport_url = rabbit://openstack:RABBIT_PASS@controller
auth_strategy = keystone
notify_nova_on_port_status_changes = true
notify_nova_on_port_data_changes = true

In the[keystone_authtoken] section

[keystone_authtoken]
# ...
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = NEUTRON_PASS

Replace NEUTRON_PASS with the password you chose for the neutron user in the Identity service.

In theand [nova] sections

[nova]
# ...
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = NOVA_PASS

Replace NOVA_PASS with the password you chose for the nova user in the Identity service.

In the [oslo_concurrency] section

[oslo_concurrency]
# ...
lock_path = /var/lib/neutron/tmp

Edit the /etc/neutron/plugins/ml2/ml2_conf.ini

In the [ml2] section

[ml2]
# ...
type_drivers = flat,vlan,vxlan
tenant_network_types = vxlan
mechanism_drivers = linuxbridge,l2population
extension_drivers = port_security

In the [ml2_type_flat]

[ml2_type_flat]
# ...
flat_networks = provider

flat لديك  provider network بإفتراض ان 

In the [ml2_type_vxlan] section,

[ml2_type_vxlan]
# ...
vni_ranges = 1:1000

In the [securitygroup] section

[securitygroup]
# ...
enable_ipset = true

Configure the Linux bridge agent

Edit the /etc/neutron/plugins/ml2/linuxbridge_agent.ini

In the [linux_bridge] section

[linux_bridge]
physical_interface_mappings = provider:Second Interface Name (ens224 for example)
[vxlan]
enable_vxlan = true
local_ip = IP of management interface 
l2_population = true

In the [securitygroup] section

[securitygroup]
# ...
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

Edit /etc/sysctl.conf

net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1

Configure the layer-3 agent

Edit the /etc/neutron/l3_agent.ini

[DEFAULT]
# ...
interface_driver = linuxbridge

Configure the DHCP agent

Edit the /etc/neutron/dhcp_agent.ini

[DEFAULT]
# ...
interface_driver = linuxbridge
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = true

Configure the metadata agent

Edit the /etc/neutron/metadata_agent.ini

[DEFAULT]
# ...
nova_metadata_host = controller
metadata_proxy_shared_secret = METADATA_SECRET

METADATA_SECRET can be replaced by what you like

Configure the Compute service to use the Networking service

Edit the /etc/nova/nova.conf

In the [neutron] section,

[neutron]
# ...
url = http://controller:9696
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = NEUTRON_PASS
service_metadata_proxy = true
metadata_proxy_shared_secret = METADATA_SECRET

Replace NEUTRON_PASS with the password you chose for the neutron user in the Identity service.

Replace METADATA_SECRET with the secret you chose for the metadata proxy.

Finalize installation

ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf \
  --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron
systemctl restart openstack-nova-api.service
systemctl enable neutron-server.service \
  neutron-linuxbridge-agent.service neutron-dhcp-agent.service \
  neutron-metadata-agent.service
systemctl start neutron-server.service \
  neutron-linuxbridge-agent.service neutron-dhcp-agent.service \
  neutron-metadata-agent.service
 systemctl enable neutron-l3-agent.service
systemctl start neutron-l3-agent.service

 

 

بنلتقي في الدرس القادم

This Post Has 81 Comments

  1. Pingback: img

  2. DouglasFew

    “This is the perfect web site for anyone who wishes to understand this topic. You know so much its almost tough to argue with you (not that I really will need toÖHaHa). You definitely put a brand new spin on a topic which has been discussed for decades. Wonderful stuff, just excellent!”
    ליווי בחיפה

  3. Pingback: 666

  4. RaymondZef

    Learn several foreign languages

    It’s nice to come to Italy and say “Buongiorno!” passing waiter. And then catch the admiring glances of those with whom you came. Is not it? But it has long been known that learning foreign languages contributes to the development of a good memory. It’s also very interesting! So why not take advantage of this?

    These are effective methods for training memory. But there is also something interesting. Memory is inextricably linked to proper and good brain function. This means that stimulating its work allows you to improve memory:

    It has been proven that regular sports activities increase brain activity and improve memory;
    No to gray days! It is well remembered that that does not fit into the framework of everyday life. Try to change the environment, add bright colors, go to the store on a new path … It is not necessary to radically change your life. Just add something new to your daily routine, and your brain will work with renewed vigor;
    Add new habits. For example, tidying up your desk in the morning is a great start to a productive day!
    Meditation, relaxation make the brain switch, relax. This means that he will perform new tasks with renewed vigor;
    Music has a magical effect on our brain. It has been proven that people who practice music have better memory and analytical skills;
    Teamwork. Brainstorms have proven their effectiveness more than once. And now scientists have proven that the decisions made in the team were more accurate and faster. They attribute this to the fact that information is easier to perceive and assimilate during communication. Therefore, solve problems together!
    The brain assimilates and sorts information while we sleep. So don’t ignore this process.
    Conclusion

    This is just a small part of the effective techniques for developing memory. But simple reading will not work. Apply these techniques. Remember, only 50% of the result depends on the doctor, and the remaining 50% on the patient. Without working on yourself, you will never reach the top.
    Figure 1. Sample structure of coursework
    The above structure can only serve as a guide. When giving the assignment to write a term paper, the teacher usually shows a sample of drawing up a plan, explains which sections should be contained in it.
    How to write the introduction of a term paper correctly

    The introduction is what is always read. If the main part of the commission (and even the leader, if he is not very conscientious) can skim through, then the first pages of the text will certainly receive close attention. As the title implies, this section serves to introduce readers to the course of the matter, to briefly describe the research. The introduction consists of typical parts:
    Relevance of the topic. You need to explain why you chose this particular topic, why it should be considered. The arguments presented depend significantly on the direction of the research – it can be either the novelty of the topic (“in connection with active changes in this area”), or its controversial nature (when one large scientific school expresses one opinion, and another – another), or practical significance. For historical topics, it is necessary to establish a connection with the present, to trace what the events of the past are affecting now, to draw parallels.
    Objective. A goal is what you want to achieve as a result of your research. For undergraduate coursework, the goal may be to “learn” something, or “systematize knowledge” about something. In senior years, the work is more practical in nature, and the goals change – “to formulate recommendations for improvement”, “to develop a project”, “to identify ways to improve efficiency.”
    Work tasks are a kind of “steps” to achieve the goal. If the goal of the work is one, then there are several tasks. Their number should correspond to the number of paragraphs in the work plan. Each item in the table of contents is a separate task.
    Dated using verbs – “analyze”, “consider”, “characterize”, “describe”, “classify”, “reveal” and others.

    college essay review service here “customer service” “verizon” “essay”

  5. Bobbyunits

    Кондиционеры, генераторы, стартеры для авто: https://kgs.kiev.ua/

  6. Bobbyunits

    Кондиционеры, генераторы, стартеры для авто:
    https://kgs.kiev.ua/

  7. DouglasFew

    “This is the right site for anyone who really wants to understand this topic. You know so much its almost hard to argue with you (not that I really would want toÖHaHa). You definitely put a new spin on a subject that has been written about for years. Great stuff, just wonderful!”
    דירות דיסקרטיות בחיפה

  8. Jestine Bonato

    Me: Fan of Watership Down book and original.BBC: Remakes it.Me: Infinite Nightmares

Leave a Reply