Install devstack on Ubuntu 14.04 and record Problems

Source: Internet
Author: User

This article summarizes the process of deploying devstack in Ubuntu 14.04 and some possible problems.

I. Installation

The following operations are best performed under normal users, at least when git clone devstack is used, which can avoid unnecessary permissions, you can also use the permission change command to modify the permissions of common users. This method is described below.

1. first obtain the system update content

  $ sudo apt-get update

2. Upgrade the current release.

  $ sudo apt-get dist-upgrade

3. Restart your computer to make updates take effect.

4. Install git. You can skip this step.

  $ sudo apt-get install git

5. Obtain the devstack source code and place it in the target_dir/devstack directory.

  $ cd TARGET_DIR
  $ git clone https://github.com/openstack-dev/devstack.git

6. For this pip source, you need to create a new Pip. conf file to specify the target source (here, the PIP source of Douban is used as an example) to avoid installation failure caused by PIP source connection failure.

  $ mkdir ~/.pip  $ vim ~/.pip/pip.conf  --------pip.conf--------  [global]  index-url=http://pypi.douban.com/simple/

7. Edit and generate the localrc file by preconfiguring and installing the component, or move the existing localrc to the devstack/directory.

  $ cp localrc TARGET_DIR/devstack/

For more information about the content and explanations of the localrc file, see this blog.

8. Run the stack. Sh script. Note that it can only be executed by non-root users.

  $ cd TARGET_DIR/devstack  $ ./stack.s

Ii. Problems Encountered during installation

1. Permission issues

2. Component download failed

 

3. BUG: 'amqplib 'is not in global_requirements.txt

This is an published bug.

Bug #1343838.

For detailed solutions, refer to the Code review of the openstack team.

Code Review

Change commit

If yes, you must manually add some dependencies and set reclone in localrc to false.

$ Vim/opt/stack/requirements/global_requirements.txt // assume that your openstack component directory/stack is in the default/OPT directory. -------- Add content below ------- amqplib> = 0.6.1
$ Vim target_dir/devstack/localrc
-------- Set reclone to false --------
Reclone = false

Re-Execute stack. Sh to solve this problem.

 

4 BUG: Service N-novnc is not running

This is an published bug because the objects on which Nova relies have defects.

I will report this issue on

Https://bugs.launchpad.net/devstack/+bug/1361108

According to the comments, this is an old problem. It first appeared on the Havana version of Nova. For details, refer to here.

Https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1228490

This vulnerability is caused by the websockify vulnerability on which Nova depends. Later, websockify 0.5.1 solved this problem, and the NOVA team adjusted the Nova dependency.

Https://github.com/openstack/nova/commit/3eb67b811ae2442bd86781d9f1c4078a982cfe84

However, when PIP is used for installation, the latest version of websockify 0.6.0 is installed by default. Here, the bug of the previous version 0.5.1 fix is returned. Therefore, you need to manually downgrade websockify in case of this problem.

  $ sudo pip uninstall websockify  $ sudo pip install websockify==0.5.1

I reported this issue to the websockify team.

Https://github.com/kanaka/websockify/issues/136

At present, the question is still open, and I hope to receive a reply from them.

 

Install devstack on Ubuntu 14.04 and record Problems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.