技术流ken

运维拯救世界

openstack使用错误大集合~~持续更新–技术流ken

说明

 

本篇博文会记录在使用openstack过程中遇到的各种问题并提供详细的解决方案,本篇博客将会持续更新~~~文章原创来源:www.kendd.cn

 


  1. 在给实例分配浮动IP的时候报错
  2. 无法获取连接信息
  3. booting from hard disk

 

 

 


问题描述

在给实例分配浮动IP的时候报错

 

 

错误:External network e6dd69eb-49f3-4bf5-a7fe-051ae4be53ff is not reachable from subnet c23786fb-3073-4a19-a205-449b369f90f5. Therefore, cannot associate Port 5f0d5674-cc58-43f8-af4d-eeea865ffb31 with a Floating IP. Neutron server returns request_ids: [‘req-a4020402-b532-4e64-925a-0c8761eb199b’]

 

 

 

解决方案

 

创建路由,把内网和外网连接

 

再次分配浮动IP成功

 

 

 


问题描述

openstack的dashboard报错:无法获取连接信息

解决方案

 

实例被删除之后一个卷别保留了

直接从cinder数据库中修改该卷的相关信息:  下面的操作sql语句中instance_uuid以及id指定卷的id

MariaDB [(none)]> use cinder;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [cinder]> update volume_attachment set attach_status=’detached’ where instance_uuid=’576468c8-4725-4531-879f-c8c7b9aaac16′;
Query OK, 0 rows affected (0.01 sec)
Rows matched: 0 Changed: 0 Warnings: 0

MariaDB [cinder]> update volumes set status=’available’, attach_status=’detached’ where id=’576468c8-4725-4531-879f-c8c7b9aaac16′;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0

 

 

 


 

3,报错如下

 

解决如下:计算节点

需要编辑/etc/nova/nova.conf

[libvirt]

virt_type=qemu

 

修改后需要重启服务

[root@compute1 ~]# systemctl restart openstack-nova-compute.service

 

 

 

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

登录openstack图形化界面报错500

 

在这个文件中添加一行内容/etc/httpd/conf.d/openstack-dashboard.conf

WSGIApplicationGroup %{GLOBAL}

 

WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
WSGIApplicationGroup %{GLOBAL}

….

++++++++++++++++++++++++++++++++++++++++++++++++++

 

openstack客户端下载失败

在使用如下命令下载好安装源之后

[root@ken yum.repos.d]# yum install centos-release-openstack-rocky -y

 

会生成如下CentOS…yum 文件

[root@ken yum.repos.d]# ls
7yum.repo  CentOS-OpenStack-rocky.repo  ken  local.repo  test

 

但是在下载openstack客户端的时候,出现如下的错误

[root@ken yum.repos.d]# yum install python-openstackclient -y
Loaded plugins: fastestmirror
Determining fastest mirrors
centos                                                                                                         | 3.6 kB  00:00:00     
http://mirror.centos.org/altarch/7/cloud/x86_64/openstack-rocky/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.



 One of the configured repositories failed (CentOS-7 - OpenStack rocky),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=centos-openstack-rocky ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable centos-openstack-rocky
        or
            subscription-manager repos --disable=centos-openstack-rocky

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=centos-openstack-rocky.skip_if_unavailable=true

failure: repodata/repomd.xml from centos-openstack-rocky: [Errno 256] No more mirrors to try.
http://mirror.centos.org/altarch/7/cloud/x86_64/openstack-rocky/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
[root@ken yum.repos.d]# date

 

报告说这个地址没有找到

http://mirror.centos.org/altarch/7/cloud/x86_64/openstack-rocky/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.

 

其实地址已经被更改为如下的地址了:

http://mirror.centos.org/altarch/7/cloud/aarch64/openstack-rocky/

 

所以需要更改yum文件

发表评论

电子邮件地址不会被公开。