问题描述:
installed pip version1doesnot meet minimum requirements
[ERROR] /opt/stack/devstack/inc/python:146 Currently installed pip version1doesnot meet minimum requirements (>=6).
问题原因:
The code in '/opt/stack/devstack/inc/python' line 142to148local pip_version
pip_version=$(python -c "import pip; \
print(pip.__version__.strip('.')[0])")
if (( pip_version<6 )); then
die $LINENO "Currently installed pip version ${pip_version} does not" \
"meet minimum requirements (>=6)."
fi
When the pip version >10, the resule of 'pip.__version__.strip('.')[0]' is1, thentheerror happen.
问题解决:
修改/opt/stack/devstack/inc/python文件,替换上述代码为:
local pip_version
pip_version=$(python -c "import pip; \
print(pip.__version__.split('.')[0])")
if (( pip_version<6 )); then
die $LINENO "Currently installed pip version ${pip_version} does not" \
"meet minimum requirements (>=6)."
fi
glance-api无法启动
2018-04-1404:55:07.876 | /opt/stack/devstack/lib/glance:355:die
2018-04-1404:55:07.878 | [ERROR] /opt/stack/devstack/lib/glance:355 g-api did not start
问题原因:
oslo.utils 依赖库版本不正确
问题解决:
参考依赖库版本冲突问题解决方法,并删除/opt/stack/目录下的glance文件夹
依赖库版本冲突
问题描述:
2018-04-1314:57:39.584 | raise VersionConflict(dist, req).with_context(dependent_req)
2018-04-1314:57:39.584 | ContextualVersionConflict: (oslo.utils 3.28.2 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oslo.utils>=3.33.0'), set(['python-barbicanclient']))
问题原因:
2018-04-1509:56:51.916 | python-barbicanclient 4.6.1.dev8 has requirement keystoneauth1>=3.4.0, but you'll have keystoneauth1 3.1.0 which is incompatible.
2018-04-15 09:56:51.917 | python-barbicanclient 4.6.1.dev8 has requirement oslo.utils>=3.33.0, but you'll have oslo-utils 3.28.2 which is incompatible.
所有依赖库的版本信息都写在 /opt/stack/requirements/upper-constraints.txt文件中
问题解决:
修改 /opt/stack/requirements/upper-constraints.txt文件相应依赖库的版本
$ sudo vim /opt/stack/requirements/upper-constraints.txt
数据库连接出错
问题描述:
2018-04-1601:52:24.730 | mysqladmin: connect to server at '127.0.0.1' failed
2018-04-1601:52:24.730 | error: 'Access denied for user 'root'@'localhost' (using password: YES)'2018-04-1601:52:24.733 | +lib/databases/mysql:configure_database_mysql:91true2018-04-1601:52:24.736 | +lib/databases/mysql:configure_database_mysql:94sudo mysql -uroot -proot -h127.0.0.1-e'GRANT ALL PRIVILEGES ON *.* TO '\''root'\''@'\''%'\'' identified by '\''root'\'';'2018-04-1601:52:24.740 | mysql: [Warning] Using a password on the command line interface can be insecure.
2018-04-1601:52:24.741 | ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
问题原因:
数据库mysql没有初始化root密码,或者初始化root密码不成功;
问题解决:
重置密码的第一步就是跳过MySQL的密码认证过程,方法如下:
#vim /etc/my.cnf
在文档内搜索mysqld定位到[mysqld]文本段:
/mysqld(在vim编辑状态下直接输入该命令可搜索文本内容)
在[mysqld]后面任意一行添加“skip-grant-tables”用来跳过密码验证的过程,如下图所示:
保存文档并退出:
#:wq2.接下来我们需要重启MySQL:
/etc/init.d/mysql restart(有些用户可能需要使用/etc/init.d/mysqld restart)
3.重启之后输入#mysql即可进入mysql。4.接下来就是用sql来修改root的密码
mysql> use mysql;
mysql> update user set authentication_string=PASSWORD("密码") where user='root';
mysql> flush privileges;
mysql> quit
到这里root账户就已经重置成新的密码了。
5.编辑my.cnf,去掉刚才添加的内容,然后重启MySQL。
具体参考:https://www.cnblogs.com/gumuzi/p/5711495.html