renben-openstack-glance操作

 

1.#查看glance-api配置文件   ip地址自己对应好,看好conlloer 和computer节点
  [root@controller ~]# grep -vE '^#|^$' /etc/glance/glance-api.conf
  [DEFAULT]
  bind_host = 0.0.0.0
  bind_port = 9292
  workers = 4
  image_cache_dir = /var/lib/glance/image-cache
  registry_host = 0.0.0.0
  debug = False
  log_file = /var/log/glance/api.log
  log_dir = /var/log/glance
  rpc_backend = rabbit
  [cors]
  [cors.subdomain]
  [database]
  connection = mysql+pymysql://glance:deed8e52466b4833@192.168.124.100/glance
  [glance_store]
  stores = file,http,swift
  default_store = file
  filesystem_store_datadir = /var/lib/glance/images/
  os_region_name=RegionOne
  [image_format]
  [keystone_authtoken]
  auth_uri = http://192.168.124.200:5000/v2.0  
  auth_type = password
  project_name=services
  username=glance
  password=d7df1a4c57674e03
  auth_url=http://192.168.124.200:35357
  [matchmaker_redis]
  [oslo_concurrency]
  [oslo_messaging_amqp]
  [oslo_messaging_notifications]
  driver =messagingv2
  topics = notifications
  [oslo_messaging_rabbit]
  kombu_ssl_keyfile =
  kombu_ssl_certfile =
  kombu_ssl_ca_certs =
  rabbit_host = 192.168.124.100
  rabbit_port = 5672
  rabbit_use_ssl = False
  rabbit_userid = guest
  rabbit_password = guest
  default_notification_exchange = glance
  [oslo_messaging_zmq]
  [oslo_middleware]
  [oslo_policy]
  policy_file = /etc/glance/policy.json
  [paste_deploy]
  flavor = keystone
  [profiler]
  [store_type_location_strategy]
  [task]
  [taskflow_executor]
(1)修改glance-api.conf配置文件
  新增加如下一行
  memcached_servers=192.168.124.100:11211

2.#查看glance registry配置文件
  [root@controller ~]# grep -vE '^#|^$' /etc/glance/glance-registry.conf
  [DEFAULT]
  bind_host = 0.0.0.0
  bind_port = 9191
  workers = 4
  debug = False
  log_file = /var/log/glance/registry.log
  log_dir = /var/log/glance
  rpc_backend = rabbit
  [database]
  connection = mysql+pymysql://glance:deed8e52466b4833@192.168.124.100/glance
  [keystone_authtoken]
  auth_uri = http://192.168.124.200:5000/v2.0
  auth_type = password
  username=glance
  project_name=services
  password=d7df1a4c57674e03
  auth_url=http://192.168.124.200:35357
  [matchmaker_redis]
  [oslo_messaging_amqp]
  [oslo_messaging_notifications]
  driver =messagingv2
  topics = notifications
  [oslo_messaging_rabbit]
  kombu_ssl_keyfile =
  kombu_ssl_certfile =
  kombu_ssl_ca_certs =
  rabbit_host = 192.168.124.100
  rabbit_port = 5672
  rabbit_use_ssl = False
  rabbit_userid = guest
  rabbit_password = guest
  default_notification_exchange = glance
  [oslo_messaging_zmq]
  [oslo_policy]
  policy_file = /etc/glance/policy.json
  [paste_deploy]
  flavor = keystone
  [profiler]

修改glance-registry.conf配置文件下面新增加如下一行
  memcached_servers=192.168.124.100:11211

重启上面两个服务
  systemctl restart openstack-glance-api
  systemctl restart openstack-glance-registry

 

posted @ 2024-12-23 15:07  疯狂的米粒儿  阅读(10)  评论(0编辑  收藏  举报