FAQs and solutions for installing and using openstack in devstack _ MySQL

Source: Internet
Author: User
Devstack installation and use openstack FAQ and solution statement:

You are welcome to forward this blog, but please keep the original author information!

Blog: http://blog.csdn.net/halcyonbaby

It is a pleasure to study, study, and summarize the content!

  1. When installing the run create-stack-user.sh script, the current directory is not devstack
  2. If the pbr version is incorrect during installation
    Run pip install -- upgrade pbr, pip install -- upgrade setuptools
  3. A download timeout prompt is prompted during installation. you can use pip install -- upgrade to install the failed package.
  4. During installation, the system prompts that mysql has no permission to execute the following commands:
    Service mysqld stop
    Mysqld_safe -- user = mysql -- skip-grant-tables -- skip-networking &
    Mysql-u root mysql
    UPDATE user SET Password = PASSWORD () where USER = 'root ';
    Flush privileges;
    Quit
    Service mysqld stop
  5. The default size of the devstack volume is relatively small (10 GB) and can be adjusted during installation (this environment variable can be imported under the stack user)
    Export VOLUME_BACKING_FILE_SIZE = 102500 M
  6. To install openstack, you need to access the pypi website. if timeout fails
    You can run./unstack. sh,./stack. sh to solve the problem.
  7. After the system is restarted, you need to run rejoin. sh and restore the volume group before running.
    Losetup-f/opt/stack/data/stack-volumes-backing-file
  8. The volume size is small after installation. you can adjust the volume size as follows:
    The default lvm backend capacity for devstack installation is 10 GB.
    You can modify the configuration as follows:
    1. Qemu-img create-f raw 100G
    2. Losetup-f
    3. Pvcreate
    4. Vgextend
      Note: vg_name can be displayed through vgdisplay.
  9. Pip displays "No module named pkg resources" error during installation
    $ Wgethttp: // python-distribute.org/distribute_setup.py
    $ Python distribute_setup.py
    Detailed reference http://stackoverflow.com/questions/7110360/easy-install-and-pip-doesnt-work
  10. Failed to start the VM. Error "some rules cocould not be created for interface vnet0"
    Cause:
    Libmongod is not restarted after the firewall is disabled.
    Solution:
    Restart libmongod
  11. The control node restarts after an unexpected power loss, and mysql fails to start, which also causes the neutron-server to fail to start.
    Rm-rf/var/lib/mysql. sock and restart the node
  12. Error: failed to create/opt/stack/horizon/openstack_dashboard/local/
    Solution: execute setenforce 0.
  13. Disable all screens of devstack
    Solution: screen-wipe

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.