openstack 一些安装错误记录
Q1:Login was refused using authentication mechanism AMQPLAIN
start openstack-nova-compute.service
rabbitmqctl add_user openstack ld2019
rabbitmqctl set_permissions openstack ".*" ".*" ".*"
查看信息
rabbitmqctl list_user_permissions
rabbitmqctl list_user_permissions openstack
Q2:
nova list
+--------------------------------------+--------------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------------+--------+------------+-------------+----------+
| 6b8f1aec-1b8a-4540-be3a-91ab1808f274 | hk-instance1 | ERROR | - | NOSTATE | |
| a6a20d5c-78b4-467f-bdc0-0b768633c89a | hk-instance2 | ERROR | - | NOSTATE | |
+--------------------------------------+--------------+--------+------------+-------------+----------+
A:controller /var/log/nova/nova-conductor.log
NoValidHost: No valid host was found. There are not enough hosts available.
nova show hk-instance3 (查看错误【wù】信息【xī】)
Q3:swift upload hk a.txt
Warning: failed to create container 'hk': 404 Not Found:
Not FoundThe resource could not be found.<
Object PUT failed: http://controller:8080/v1/AUTH_7a7db44e25bc4b9fa4b3a3cf3b0ba08d/hk/a.txt 404 Not Found [first 60 chars of response]
Q4:systemctl start openstack-cinder-volume.service target.service
启动失败:
查看/var/log/message 文件
Aug 21 09:46:53 block1 cinder-volume: from oslo_log import log as logging
Aug 21 09:46:53 block1 cinder-volume: ImportError: No module named oslo_log
Aug 21 09:46:53 block1 systemd: openstack-cinder-volume.service: main process exited, code=exited, status=1/FAILURE
Aug 21 09:46:53 block1 systemd: Unit openstack-cinder-volume.service entered failed state.
A:安装包
yum -y install python-oslo-log
Q5:nova service-list
ERROR (CommandError): You must provide a username or user id via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID]
A:设置环境变量
export OS_SERVICE_TOKEN=c47c52ab4a34a6272740
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0
echo $OS_SERVICE_TOKEN $OS_SERVICE_ENDPOINT
Q6:nova service-list
ERROR (Unauthorized): Unauthorized (HTTP 401) (Request-ID: req-66ee6c26-4c6b-441c-ad82-f458dae5e841)
A:配置/etc/nova/nova.conf文件
admin_token=c47c52ab4a34a6272740
Q7:su -s /bin/sh -c "nova-manage db sync" nova
Command failed, please check log for more info
tail -f /var/log/nova/nova-manage.log
提示:
TRACE nova OperationalError: (OperationalError) (1045, "Access denied for user 'nova'@'localhost' (using password: YES)") None None
A:
vi /etc/nova/nova.conf
不能使用nova_pwd 作为数据库密码,改用nova
Q8:keystone user-role-add --user=glance --tenant=service --role=admin
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
A: unset OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT
source /root/admin-openrc.sh
Q9:
glance image-create --name "cirros-0.3.2-x86_64" --disk-format qcow2 \
--container-format bare --is-public True --progress < cirros-0.3.2-x86_64-disk.img
Request returned failure status.
Invalid OpenStack Identity credentials.
A:加入调试模式:
glance --debug image-create --name "cirros-0.3.2-x86_64" --disk-format qcow2 --container-format bare --is-public True --progress < cirros-0.3.2-x86_64-disk.img
设置环境变量
source /root/admin-openrc.sh
重新配置glance 服务
Q10:使用【yòng】keystone user-create 时提【tí】示报错
/usr/lib64/python2.6/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
A:https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2
tar -xvjpf gmp-6.0.0a.tar.bz2
./configure
make
make check
make iinstall
Q11:http://192.168.211.174/dashboard
Internal Server Error
A:检查日志:
tail -f /var/log/httpd/error_log
修改允许访问WEB UI 的地址,并重启HTTPD服务
Q12:nova image-list
ERROR: Unauthorized (HTTP 401)
A:nova --debug image-list
由于配置密码错误导致
openstack-config --set /etc/nova/nova.conf keystone_authtoken admin_password NOVA_PASS
Q13:ERROR : Error appeared during Puppet run: 192.77.108.242_mysql.pp
Error: mysqladmin -u root password 'f40e1dec1deb43d3' returned 1 instead of one of [0]
# rpm -qa | grep -i mysql
mysql-server-5.1.9-21.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
mysql-5.1.9-21.el6.x86_64
mysql-libs-5.1.9-21.el6.x86_64
MySQL-python-1.2.9-21.3.c1.1.el6.x86_64
# rpm -e mysql-server-5.1.9-21.el6.x86_64
# rpm -e mysql-5.1.9-21.el6.x86_64
# rm -rf /var/lib/mysql
# packstack --allinone
Q14:openstack service create --name keystone --description "OpenStack Identity" identity
ERROR: openstack An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-fd033ddd-5fad-46ad-9ef7-9bfc3f37e40b)
查看日志
more /var/log/keystone/keystone.log
"Table 'keystone.service' doesn't exist")
use keystone
show tables;
为空
执行命令,再次同步。
su -s /bin/sh -c "keystone-manage db_sync" keystone
Q15:openstack endpoint create --publicurl http://192.168.211.171:5000/v2.0 --internalurl http://192.168.211.171:5000/v2.0 --adminurl http://192.168.211.171:35357/v2.0 --region RegionOne identity
ERROR: openstack An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-61d263a6-5a1c-465f-97cc-18d6acc97071)
export OS_SERVICE_TOKEN=e7f4236c2c67889b040a
export OS_SERVICE_ENDPOINT=http://192.168.211.171:35357/v2.0
Q16:You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
rpm -qa|grep gmp
gmp-4.3.9-21.el6_2.2.x86_64
rpm -e --nodeps gmp-4.3.9-21.el6_2.2.x86_64
ldconfig
wget http://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.bz2
tar jxf gmp-6.0.0a.tar.bz2
标签: #穿越火线安装失败错误代码263