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!
- When installing the run create-stack-user.sh script, the current directory is not devstack
- If the pbr version is incorrect during installation
Run pip install -- upgrade pbr, pip install -- upgrade setuptools
- A download timeout prompt is prompted during installation. you can use pip install -- upgrade to install the failed package.
- 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
- 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
- To install openstack, you need to access the pypi website. if timeout fails
You can run./unstack. sh,./stack. sh to solve the problem.
- 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
- 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:
- Qemu-img create-f raw 100G
- Losetup-f
- Pvcreate
- Vgextend
Note: vg_name can be displayed through vgdisplay.
- 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
- 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
- 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
- Error: failed to create/opt/stack/horizon/openstack_dashboard/local/
Solution: execute setenforce 0.
- Disable all screens of devstack
Solution: screen-wipe