單節點安裝openstack-M版本遇到的問題
環境:在單節點上一個模組一個模組的搭建出openstack-M版;
Centos7.2 + rdo.repo;
問題現象:
[[email protected] ~(keystone_admin)]# openstack compute service list
Unknown Error (HTTP 503) (Request-ID: req-626a283b-b4cf-49de-87ca-d4ffa8693ef2)除錯方法一:
檢視“# vim /var/log/nova/nova-api.log”
“”“2016-08-22 16:17:47.454 21731 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
2016-08-22 16:17:47.520 21731 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
2016-08-22 16:17:47.521 21731 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Identity server rejected authorization necessary to fetch token data
2016-08-22 16:17:47.522 21731 INFO nova.osapi_compute.wsgi.server [-] 192.168.215.103 "GET /v2.1/3dd37dde2d3549a7856ab377326178a4/os-services HTTP/1.1" status: 503 len: 323 time: 0.1303651
”“”
# export OS_TOKEN=c368003d933c558ea08c
# export OS_URL=http://192.168.215.103:35357/v3
[
The resource could not be found. (HTTP 404)
錯誤變了。。。。。
除錯方法二:
[[email protected] ~]# openstack compute service list --debug
根本原因:當你執行"openstack user create --domain default --password-prompt nova"會提示你輸入nova使用者的密碼,START with options: ['compute', 'service', 'list', '--debug'] options: Namespace(access_token_endpoint='', auth_type='', auth_url='http://192.168.215.103:35357/v3', cacert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_data_processing_api_version='1.1', os_data_processing_url='', os_identity_api_version='3', os_image_api_version='2', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_volume_api_version='', password='***', project_domain_id='', project_domain_name='default', project_id='', project_name='admin', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='***', trust_id='', url='http://192.168.215.103:5000/v3', user_domain_id='', user_domain_name='default', user_id='', username='admin', verbose_level=3, verify=None) defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, u'network_api_version': u'2', u'image_format': u'qcow2', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'disable_vendor_agent': {}} cloud cfg: {'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'data_processing_api_version': '1.1', u'network_api_version': u'2', u'image_format': u'qcow2', u'image_api_version': '2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'default', 'auth_url': 'http://192.168.215.103:35357/v3', 'password': '***', 'project_domain_name': 'default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'url': 'http://192.168.215.103:5000/v3', u'identity_api_version': '3', u'volume_api_version': u'2', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'interface': None, u'disable_vendor_agent': {}} compute API version 2, cmd group openstack.compute.v2 network API version 2, cmd group openstack.network.v2 image API version 2, cmd group openstack.image.v2 volume API version 2, cmd group openstack.volume.v2 identity API version 3, cmd group openstack.identity.v3 object_store API version 1, cmd group openstack.object_store.v1 orchestration API version 1, cmd group openstack.orchestration.v1 data_processing API version 1.1, cmd group openstack.data_processing.v1 command: compute service list -> openstackclient.compute.v2.service.ListService Auth plugin password selected auth_type: password Using auth plugin: password Using parameters {'username': 'admin', 'project_name': 'admin', 'auth_url': 'http://192.168.215.103:35357/v3', 'user_domain_name': 'default', 'password': '***', 'project_domain_name': 'default'} Get auth_ref REQ: curl -g -i -X GET http://192.168.215.103:35357/v3 -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.4.1 python-requests/2.10.0 CPython/2.7.5" Starting new HTTP connection (1): 192.168.215.103 "GET /v3 HTTP/1.1" 200 255 RESP: [200] Date: Mon, 22 Aug 2016 09:30:28 GMT Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Vary: X-Auth-Token x-openstack-request-id: req-ad02b0c2-386b-4aac-9392-ce0b2b746024 Content-Length: 255 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json RESP BODY: {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "http://192.168.215.103:35357/v3/", "rel": "self"}]}} Making authentication request to http://192.168.215.103:35357/v3/auth/tokens "POST /v3/auth/tokens HTTP/1.1" 201 1781 run(Namespace(columns=[], formatter='table', host=None, max_width=0, noindent=False, quote_mode='nonnumeric', service=None)) Instantiating compute client for VAPI Version Major: 2, Minor: 0 Making authentication request to http://192.168.215.103:35357/v3/auth/tokens "POST /v3/auth/tokens HTTP/1.1" 201 1781 REQ: curl -g -i -X GET http://192.168.215.103:8774/v2.1/3dd37dde2d3549a7856ab377326178a4/os-services -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4c27391610a1b6e96d431c3a2daf7aade68f845e" Starting new HTTP connection (1): 192.168.215.103 "GET /v2.1/3dd37dde2d3549a7856ab377326178a4/os-services HTTP/1.1" 503 100 RESP: [503] Content-Length: 100 Content-Type: text/plain; charset=UTF-8 X-Compute-Request-Id: req-05472f8e-d26e-40c5-8564-924cd2d65e75 Date: Mon, 22 Aug 2016 09:30:29 GMT Connection: keep-alive RESP BODY: 503 Service Unavailable The server is currently unavailable. Please try again at a later time. Unknown Error (HTTP 503) (Request-ID: req-05472f8e-d26e-40c5-8564-924cd2d65e75) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/cliff/app.py", line 346, in run_subcommand result = cmd.run(parsed_args) File "/usr/lib/python2.7/site-packages/openstackclient/common/command.py", line 38, in run return super(Command, self).run(parsed_args) File "/usr/lib/python2.7/site-packages/cliff/display.py", line 79, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/service.py", line 66, in take_action parsed_args.service) File "/usr/lib/python2.7/site-packages/novaclient/v2/services.py", line 52, in list return self._list(url, "services") File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 242, in _list resp, body = self.api.client.get(url) File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 173, in get return self.request(url, 'GET', **kwargs) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 94, in request raise exceptions.from_response(resp, body, url, method) ClientException: Unknown Error (HTTP 503) (Request-ID: req-05472f8e-d26e-40c5-8564-924cd2d65e75) clean_up ListService: Unknown Error (HTTP 503) (Request-ID: req-05472f8e-d26e-40c5-8564-924cd2d65e75) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 118, in run ret_val = super(OpenStackShell, self).run(argv) File "/usr/lib/python2.7/site-packages/cliff/app.py", line 226, in run result = self.run_subcommand(remainder) File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 153, in run_subcommand ret_value = super(OpenStackShell, self).run_subcommand(argv) File "/usr/lib/python2.7/site-packages/cliff/app.py", line 346, in run_subcommand result = cmd.run(parsed_args) File "/usr/lib/python2.7/site-packages/openstackclient/common/command.py", line 38, in run return super(Command, self).run(parsed_args) File "/usr/lib/python2.7/site-packages/cliff/display.py", line 79, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/service.py", line 66, in take_action parsed_args.service) File "/usr/lib/python2.7/site-packages/novaclient/v2/services.py", line 52, in list return self._list(url, "services") File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 242, in _list resp, body = self.api.client.get(url) File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 173, in get return self.request(url, 'GET', **kwargs) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 94, in request raise exceptions.from_response(resp, body, url, method) ClientException: Unknown Error (HTTP 503) (Request-ID: req-05472f8e-d26e-40c5-8564-924cd2d65e75) END return value: 1
此時這裡輸入的密碼要和配置檔案"/etc/nova/nova.conf"內'[keystone_authtoken]'的'password ='值要一致;
—————————————————————————————————————————————————————————————————————————————
相關推薦
單節點安裝openstack-M版本遇到的問題
前兩天在網上/群裡面看到好多人也遇到了這個問題,但是沒有看到具體的解決方法,今天自己在搭建環境的時候也碰到了,花了兩個小時解決了它。 環境:在單節點上一個模組一個模組的搭建出openstack-M版; Centos7.2 + rdo.repo
devstack安裝openstack newton版本
成功 mirrors format code 由於 基本上 temp gate roo 準備使用devstack安裝openstack N版,搞一套開發環境出來。一連整了4天,遇到各種問題,各種錯誤,一直到第4天下午4點多才算完成。 在這個過程中感覺到使用devstack
[Redis]單節點安裝
pid local ron version exe 持久化 http tar onf version:3.0.0 # wget http://download.redis.io/releases/redis-3.0.0.tar.gz # pwd/usr/local# t
hbase單節點安裝部署
support 環境變量 apache dir sudo sta 分布式 TP 用戶 本次配置延續上次的hadoop偽分布式安裝部署資源下載http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-3.4.12/zookee
安裝OpenStack QUEENS版本一:基礎環境
install cached ESS linu ado connect url 分享 var 很久沒搞openstack了,這兩天閑來無事,裝了一下QUEENS版本,記錄一下。[root@controller ~]# cat /etc/hosts192.168.137.36
安裝OpenStack QUEENS版本二:keystone
ofo mod_wsgi emc lis scrip server har base issue 安裝Keystone,在控制節點上yum install openstack-keystone httpd mod_wsgi -y create a databasemysql
安裝OpenStack QUEENS版本三:Glance
active bin create type tar ppa watermark openstac col 安裝Glance,在控制節點上。yum install openstack-glance -ymysql -uroot -ppassword -e "CRE
安裝OpenStack QUEENS版本六:dashboard
ron time_zone put allow vpd fault %s pen openstac yum install openstack-dashboard -yEdit the /etc/openstack-dashboard/local_settings file
FastDFS單節點安裝 & FastDFS+Nginx整合
sysconfig amp key err 查看 location 生產環境 erro info 安裝環境 FastDFS_v5.05.tar.gz(http://sourceforge.net/projects/fastdfs/files/) fastdfs-
redis單節點安裝及cluster的安裝
out tcp 實例 enc fix 修改配置 成了 release code 單點安裝 wget http://download.redis.io/releases/redis-4.0.2.tar.gz tar zxvf redis-4.0.1.tar.gz -C /us
Azkaban(2.50)單節點安裝
準備工作 Azkaban Web伺服器 azkaban-web-server-2.5.0.tar.gz Azkaban執行伺服器 azkaban-executor-server-2.5.0.tar.gz 下載地址:http://azkaban.github.io/downloads.html
一、hadoop單節點安裝測試
一、hadoop簡介 相信你或多或少都聽過hadoop這個名字,hadoop是一個開源的、分散式軟體平臺。它主要解決了分散式儲存(hdfs)和分散式計算(mapReduce)兩個大資料的痛點問題,在hadoop平臺上你可以輕易地使用和擴充套件數千臺的計算機而不用關心底層的實現問題。而現在的hadoop更是形
ambari單節點安裝過程中的一些問題
問題1:Confirm Hosts時,遇到Repository的問題 Error Summary ------------- Repository base is listed more than once in the configuration Repository updates
基於Kolla-Ansible安裝OpenStack Queens版本
0. 寫在前面 我在成功安裝這個之前,真的閱讀過很多部落格,我一開始覺得安裝很簡單,不過是把那些東西複製到命令列執行一遍就好了,但我實在是沒想到失敗的次數讓我無語,沒能執行成功的各種錯誤查也查不到,所以我寫這篇東西,第一是幫我自己鞏固成功的安裝過程,第二是為了看到這篇文章的同學
kolla單節點部署openstack
virtualbox環境: 雙網絡卡:enp0s3(橋接) 192.168.102.194 enp0s8(僅主機) 192.168.42.3 塊儲存 50G 關閉防火牆,selinux。 配置yum源:wget http
Ubuntu下用devstack單節點部署Openstack
虛擬機設置 admin ase -c align 根據 all ref 使用 一、實驗環境 本實驗是在Vmware Workstation下創建的單臺Ubuntu服務器版系統中,利用devstack部署的Openstack Pike版。 宿主機:win10 1803
RabbitMQ——rabbitmq單節點安裝
直接來,就幹,不要那麼囉嗦~~~~~~~~~~~~ 1、新增Erlang Solutions key rpm --import http://binaries.erlang-solutions.com/debian/erlang_solutions.asc/ wget h
Redis學習------單節點安裝部署
redis單節點安裝部署 一 、準備工作 1.linux服務一臺(本人版本:centos 6.6) 2.redis包:redis-3.0.0-rc2.tar.gz (下載地址:http://redis.io/download) 二、安裝 1.安裝gcc 1.1 命令:yum install gcc 1.2
Packstack 安裝openstack queens版本: 在horizon裡沒有heat的編排目錄
原因: before queens heat was inside horizon code, in queens and later, heat dashboard is in a different package and need to be installed, package name: op
基於kolla安裝OpenStack Queens版本
1. 環境準備 新建立1臺虛擬機器,配置2張網絡卡,作為all in one節點。作業系統為centos7.4 1)關閉Selinux vi /etc/sysconfig/selinux SELINUX=disabled 2)關閉firewalld