Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to accelerate for devstack

Shulou Source: shulou.com Published: 2022-05-31 12:23:12 09月21日 Update

This article mainly analyzes the relevant knowledge points of how to accelerate for devstack, the content is detailed and easy to understand, the operation details are reasonable, and has a certain reference value. If you are interested, you might as well follow the editor to have a look, and follow the editor to learn more about "how to accelerate devstack".

I. replace the system source

System dependencies are installed during devstack configuration, so configuring the system source is of course the first step

Centos root execution:

Curl firxiao.com/sh/chrepo.sh | sh

Ordinary ubuntu users execute:

Curl firxiao.com/sh/chapt.sh | sudo sh

The script automatically configures the source as the source of aliyun

II. Replace the pip source

Openstack is a python project. A lot of dependencies have to use pip install. Of course, you have to switch to pip sources.

Just execute the following command

Mkdir ~ / .pipcat ~ / .pip/ pip.conf.global] index-url = http://mirrors.aliyun.com/pypi/simple/trusted-host = mirrors.aliyun.comEOF III. Replace the git source

In the process of implementing devstack, you should go to the official source code of clone

The git:// protocol is used by default. If you find that it is stuck in git clone every time.

Then you can change it to https:// protocol.

Just change the GIT_BASE in stackrc

Diff-- git a/stackrc b/stackrcindex d16fcf6..2290edd 100644-an Accord stackrcages @-161 7 + 161 https://git.openstack.org-GIT_BASE=${GIT_BASE:-git://git.openstack.org}+#GIT_BASE=${GIT_BASE:-git://git.openstack.org}+GIT_BASE=${GIT_BASE:-https://git.openstack.org 8 @ @ USE_CONSTRAINTS=$ (trueorfalse False USE_CONSTRAINTS) # Base GIT Repo URL # Another option is https://git.openstack.org-GIT_BASE=${GIT_BASE:-git://git.openstack.org}+#GIT_BASE=${GIT_BASE:-git://git.openstack.org}+GIT_BASE=${GIT_BASE:-https://git.openstack.org } # Which libraries should we install from git instead of using released # versions on pypi? This is the end of the introduction on "how to accelerate for devstack". More related content can be searched for previous articles, hoping to help you answer questions and questions, please support the website!

Tags: System configuration content knowledge follow process ordinary value interest command official article easy to understand is in more source code user knowledge point question and answer article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MariaDB Shulou Technology Docker Apple