梦云游 2024-04-01 14:33 采纳率: 0%
浏览 8

controller搭建Nova报错

先电iaas
OpenStack搭建
centos6.5版本
Nova搭建
[root@controllerljh∽] nova image-list
Could not find any suitable endpoint. Correct region?
ERROR

img

img

img

  • 写回答

3条回答 默认 最新

  • 码农阿豪@新空间代码工作室 Java领域优质创作者 2024-04-01 14:53
    关注
    让阿豪来帮你解答,本回答参考chatgpt3.5编写提供,如果还有疑问可以评论或留言
    问题:在OpenStack的Nova服务中使用命令“nova image-list”报错“Could not find any suitable endpoint. Correct region?”,如何解决? 回答:
    1. 检查nova.conf配置文件中的keystone_authtoken部分,确认keystone服务的认证地址、用户名和密码是否正确。 例如: [keystone_authtoken] auth_uri = http://controller:5000/v2.0 identity_uri = http://controller:35357 admin_tenant_name = service admin_user = nova admin_password = NOVA_PASS
    2. 检查nova.conf配置文件中的glance部分,确认glance服务的地址和认证方式是否正确。 例如: [glance] host = controller port = 9292 api_servers = http://controller:9292 auth_url = http://controller:5000/v2.0 auth_strategy = keystone glance_api_servers = http://controller:9292
    3. 检查系统环境变量中的OS_REGION_NAME是否设置为正确的区域名称。 例如: export OS_REGION_NAME=RegionOne
    4. 检查系统环境变量中的OS_AUTH_URL是否设置为正确的认证地址。 例如: export OS_AUTH_URL=http://controller:5000/v2.0
    5. 如果以上步骤都正常,可以尝试重新启动nova和glance服务。 例如: service openstack-nova-api restart service openstack-nova-scheduler restart service openstack-nova-conductor restart service openstack-glance-api restart service openstack-glance-registry restart
    6. 如果问题仍未解决,可以查看日志文件,了解更详细的错误信息。 例如: tail -f /var/log/nova/nova-api.log tail -f /var/log/glance/api.log 代码示例: $ export OS_REGION_NAME=RegionOne $ export OS_AUTH_URL=http://controller:5000/v2.0 $ nova image-list 或者: [root@controller ~]# vi /etc/nova/nova.conf ... [glance]

    Host name or IP address for the Glance API server

    host = controller

    Port for the Glance API server

    port = 9292

    Protocol to use when connecting to the Glance API server (http or https)

    (string value)

    #protocol = http

    Timeout for connecting to Glance (in seconds)

    #timeout = 60

    Number of retries when a request to Glance fails

    num_retries = 1

    CA certificate file to use to verify SSL connections

    #ca_file = /opt/stack/data/ca-bundle.pem

    Authentication URL for connecting to Glance in admin context

    auth_url = http://controller:5000/v2.0

    Authorization strategy to use when connecting to Glance in admin context

    keystone or noauth (string value)

    auth_strategy = keystone

    Name of container to store disk images in Glance (string value)

    #image_cache_dir=/var/lib/nova/images

    Recreate missing disk images if possible (boolean value)

    (supported only by imagecache backed instances) (boolean

    value)

    #checksum = true

    Directory to use for lock files during image downloads (string value)

    #lock_path = /var/lib/nova/tmp

    Number of seconds to wait between image status checks when downloading an image

    (integer value)

    #image_status_timeout = 30

    Location of ca certicates file to use for glance client requests when https is used to

    communicate with glance (string value)

    #glance_ca_certificates_file =

    Allow to perform insecure SSL (https) requests to glance (boolean value)

    #gclient_insecure = false

    Internal Glance API endpoint override (URL string value)

    #internal_endpoint = http://localhost:9292/

    Admin Glance API endpoint override (URL string value)

    #admin_endpoint = http://localhost:9292/

    Notification topics (multi valued)

    (list value)

    notification_topics = notifications,glance_notifications

    Notification driver to use for sending Glance notifications (string value)

    notification_driver = messagingv2 [opt1] ... [root@controller ~]# service openstack-nova-api restart [root@controller ~]# service openstack-nova-scheduler restart [root@controller ~]# service openstack-nova-conductor restart [root@controller ~]# service openstack-glance-api restart [root@controller ~]# service openstack-glance-registry restart

    评论

报告相同问题?

问题事件

  • 修改了问题 4月1日
  • 创建了问题 4月1日

悬赏问题

  • ¥15 matlab自定义损失函数
  • ¥15 35114 SVAC视频验签的问题
  • ¥15 impedancepy
  • ¥15 在虚拟机环境下完成以下,要求截图!
  • ¥15 求往届大挑得奖作品(ppt…)
  • ¥15 如何在vue.config.js中读取到public文件夹下window.APP_CONFIG.API_BASE_URL的值
  • ¥50 浦育平台scratch图形化编程
  • ¥20 求这个的原理图 只要原理图
  • ¥15 vue2项目中,如何配置环境,可以在打完包之后修改请求的服务器地址
  • ¥20 微信的店铺小程序如何修改背景图