Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation steps for openstack

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains the "openstack installation steps", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "openstack installation steps" bar!

Https://docs.openstack.org/mitaka/zh_CN/install-guide-ubuntu/keystone-install.html

In the [database] section, configure database access:

[database]

...

Connection = mysql+pymysql://keystone:KEYSTONE_DBPASS@controller/keystone

Controller should be changed to ip, otherwise the database will not be connected.

Configure the Apache HTTP server

Edit the ``/ etc/apache2/ apache2.conf`` file to configure the ``ServerName`` option for the control node:

ServerName controller

Controller will be changed to ip

Configure the Linuxbridge Agent Q

The Linuxbridge agent establishes the layer-2 virtual network for the instance and handles the security group rules.

Edit the ``/ etc/neutron/plugins/ml2/linuxbridge_ agent.ini`` file and complete the following:

In the ``[linux_bridge]`` section, correspond the public virtual network to the public physical network interface:

[linux_bridge]

Physical_interface_mappings = provider:PROVIDER_INTERFACE_NAME

Change PROVIDER_INTERFACE_NAME to the actual network port name of the machine, such as eth0

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

Sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) Cannot add a NOT NULL column with default value NULL [SQL: u'ALTER TABLE address_scopes ADD COLUMN ip_version INTEGER NOT NULL']

The reason for the error is that the original connection field in the neutron configuration file (/ etc/neutron/neutron.conf) is not deleted, which causes the newly assigned connection to be overwritten by the original one, and the original default still uses sqlite3....

Dashboard input default/admin/huawei, login authentication failed, check apach error.log, user admin login failed. Check the dashboard configuration file and there is a problem with one configuration:

OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3.0"% OPENSTACK_HOST

The correct ones should be:

OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3"% OPENSTACK_HOST

[Thu Jun 22 12 pid 3107:tid 23 Thu Jun 38.272490 2017] [: error] [pid 3107:tid 3051838272] Could not process panel theme_preview: Dashboard with slug "developer" is not registered.

Root@ubuntu:~# pvcreate / dev/sdc

Device / dev/sdc not found (or ignored by filtering).

The hard disk was added, but the creation still failed because the filter field in / etc/lvm/lvm.conf did not add sdc to the accept.

Neutron subnet-create-- name provider\

-- allocation-pool start=START_IP_ADDRESS,end=END_IP_ADDRESS\

-- dns-nameserver DNS_RESOLVER-- gateway PROVIDER_NETWORK_GATEWAY\

Provider PROVIDER_NETWORK_CIDR

START_IP_ADDRESS uses 192.168.1.100

END_IP_ADDRESS uses 192.168.1.200

DNS_RESOLVER uses 192.168.1.1

PROVIDER_NETWORK_GATEWAY uses 192.168.1.1

PROVIDER_NETWORK_CIDR uses 192.168.1.0 Compact 24

Openstack server create-flavor m1.tiny-image cirros\

-- nic net-id=PROVIDER_NET_ID-- security-group default\

-- key-name mykey provider-instance

If you specify key_name, an error will be reported:

Invalid key_name provided. (HTTP 400) (Request-ID: req-5f12f3e7-5ff9-4a1a-932e-ebd936de1be1)

Can be created without specifying a key_name

The community version comes with the Horizon plug-in for manila, and the M version does not have the Horizon plug-in for manila by default, so you can't see the operation of manila on Dashboard.

Https://github.com/openstack/manila-ui

Install git first

Apt-get install git

Download the code for horizon and manila-ui from github

Git clone https://github.com/openstack/horizon

Git clone https://github.com/openstack/manila-ui

Install gcc

Apt-get install gcc

Install python-dev

Sudo apt-get install python-dev

Install python-pip

Apt-get install python-pip

Cd horizon

Python tools/install_venv.py

After logging in to dashboard, you will receive an error. Apach log:

RuntimeError: Unable to create a new session key. It is likely that the cache is unavailab

Solution:

Vi / etc/openstack-dashboard/local_settings.py

SESSION_ENGINE = 'django.contrib.sessions.backends.cache' changed to SESSION_ENGINE =' django.contrib.sessions.backends.file'

If you are prompted that pip is not installed and apt-get install python-pip cannot be installed, please refer to http://www.linuxdiyf.com/linux/19248.html.

Manila is not included in Horizon in the OpenStack Mitaka distribution, and you need to install the additional plug-in manila-ui to display the Share menu in Horizon.

Install Manila UI View list: http://tarballs.openstack.org/manila-ui/

Pip install 'http://tarballs.openstack.org/manila-ui/manila-ui-stable-mitaka.tar.gz'

Enable Manila UI in Horizon to view the Manila UI installation path: find / usr-name 'manila_ui'

Cd / usr/local/lib/python2.7/dist-packages/manila_ui

Sudo cp. / enabled/_90_manila_*.py / usr/share/openstack-dashboard/openstack_dashboard/local/enabled

Configure Chinese language support

Sudo apt-get install gettext python-pip python-dev build-essential

Cd / usr/share/openstack-dashboard/horizon

Sudo / usr/share/openstack-dashboard/manage.py makemessages-l en-- no-obsolete

Sudo / usr/share/openstack-dashboard/manage.py makemessages-d djangojs-l en-- no-obsolete

Cd / usr/share/openstack-dashboard/openstack_dashboard

Sudo / usr/share/openstack-dashboard/manage.py makemessages-- extension=html,txt,csv-- ignore=openstack-l en-- no-obsolete

Cd / usr/share/openstack-dashboard/horizon

Sudo / usr/share/openstack-dashboard/manage.py compilemessages

Cd / usr/share/openstack-dashboard/openstack_dashboard

Sudo / usr/share/openstack-dashboard/manage.py compilemessagescd / usr/local/lib/python2.7/dist-packages/manila_ui

Reload Apache Web Server

Sudo service apache2 reload

Thank you for your reading, the above is the content of "openstack installation steps", after the study of this article, I believe you have a deeper understanding of the installation steps of openstack, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report