Advertisement
Guest User

forbiddenera-0

a guest
Mar 30th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 13.97 KB | None | 0 0
  1. root@ubuntu0:~# nova service-list                                                                                                                                                                  [75/1883]
  2. +----+------------------+---------+----------+---------+-------+----------------------------+-----------------+
  3. | Id | Binary           | Host    | Zone     | Status  | State | Updated_at                 | Disabled Reason |
  4. +----+------------------+---------+----------+---------+-------+----------------------------+-----------------+
  5. | 1  | nova-cert        | ubuntu0 | internal | enabled | up    | 2016-03-30T11:49:19.000000 | -               |
  6. | 2  | nova-consoleauth | ubuntu0 | internal | enabled | up    | 2016-03-30T11:49:14.000000 | -               |
  7. | 3  | nova-scheduler   | ubuntu0 | internal | enabled | up    | 2016-03-30T11:49:19.000000 | -               |
  8. | 4  | nova-conductor   | ubuntu0 | internal | enabled | up    | 2016-03-30T11:49:21.000000 | -               |
  9. | 7  | nova-cert        | ubuntu1 | internal | enabled | down  | 2016-03-30T11:37:15.000000 | -               |
  10. | 8  | nova-consoleauth | ubuntu1 | internal | enabled | down  | 2016-03-30T11:37:26.000000 | -               |
  11. | 9  | nova-scheduler   | ubuntu1 | internal | enabled | down  | 2016-03-30T11:37:17.000000 | -               |
  12. | 10 | nova-conductor   | ubuntu1 | internal | enabled | down  | 2016-03-30T11:37:21.000000 | -               |
  13. | 12 | nova-compute     | ubuntu0 | nova     | enabled | down  | 2016-03-30T11:41:57.000000 | -               |
  14. | 13 | nova-compute     | ubuntu1 | nova     | enabled | up    | 2016-03-30T11:49:16.000000 | -               |
  15. +----+------------------+---------+----------+---------+-------+----------------------------+-----------------+
  16. root@ubuntu0:~# openstack endpoint list                                                                                                                                                                    
  17. +----------------------------------+--------+--------------+--------------+---------+-----------+-----------------------------------------+
  18. | ID                               | Region | Service Name | Service Type | Enabled | Interface | URL                                     |
  19. +----------------------------------+--------+--------------+--------------+---------+-----------+-----------------------------------------+
  20. | 292b14ac42344e2c837a277dc545a0b6 | YYC0   | nova         | compute      | True    | public    | http://controller:8774/v2/%(tenant_id)s |
  21. | 2a6cd0c7f2f64ccba047224ad6dfc1e5 | YYC0   | glance       | image        | True    | public    | http://controller:9292                  |
  22. | 58e692cb5cb14f6a85797e57a2aaeae7 | YYC0   | keystone0    | identity     | True    | internal  | http://controller:5000/v2.0             |
  23. | 70d394e5fd684a659b916d6fa076cdb5 | YYC0   | nova         | compute      | True    | internal  | http://controller:8774/v2/%(tenant_id)s |
  24. | 7aa3b784080a438e9c5ab9427cf07a5e | YYC0   | keystone0    | identity     | True    | public    | http://controller:5000/v2.0             |
  25. | a58b13ebff704da0bdb5667fe7da5ea6 | YYC0   | keystone0    | identity     | True    | admin     | http://controller:35357/v2.0            |
  26. | ae0673362753493e997b20351551adf3 | YYC0   | nova         | compute      | True    | admin     | http://controller:8774/v2/%(tenant_id)s |
  27. | c7b1377434334fb7a293c244168ac7ca | YYC0   | glance       | image        | True    | internal  | http://controller:9292                  |
  28. | c9167e60db0946ef9f1b2dfba71ca4f8 | YYC0   | glance       | image        | True    | admin     | http://controller:9292                  |
  29. +----------------------------------+--------+--------------+--------------+---------+-----------+-----------------------------------------+
  30. root@ubuntu0:~# nova endpoints                                                                                                                                                                              
  31. +-----------+----------------------------------+
  32. | glance    | Value                            |
  33. +-----------+----------------------------------+
  34. | id        | 2a6cd0c7f2f64ccba047224ad6dfc1e5 |
  35. | interface | public                           |
  36. | region    | YYC0                             |
  37. | region_id | YYC0                             |
  38. | url       | http://controller:9292           |
  39. +-----------+----------------------------------+
  40. +-----------+------------------------------------------------------------+
  41. | nova      | Value                                                      |
  42. +-----------+------------------------------------------------------------+
  43. | id        | 292b14ac42344e2c837a277dc545a0b6                           |
  44. | interface | public                                                     |
  45. | region    | YYC0                                                       |
  46. | region_id | YYC0                                                       |
  47. | url       | http://controller:8774/v2/08c2051056494af5b4d0e89373a98230 |
  48. +-----------+------------------------------------------------------------+
  49. +-----------+----------------------------------+
  50. | keystone0 | Value                            |
  51. +-----------+----------------------------------+
  52. | id        | 58e692cb5cb14f6a85797e57a2aaeae7 |
  53. | interface | internal                         |
  54. | region    | YYC0                             |
  55. | region_id | YYC0                             |
  56. | url       | http://controller:5000/v2.0      |
  57. +-----------+----------------------------------+
  58. root@ubuntu0:~# nova service-list                                                                                                                                                                          
  59. +----+------------------+---------+----------+---------+-------+----------------------------+-----------------+
  60. | Id | Binary           | Host    | Zone     | Status  | State | Updated_at                 | Disabled Reason |
  61. +----+------------------+---------+----------+---------+-------+----------------------------+-----------------+
  62. | 1  | nova-cert        | ubuntu0 | internal | enabled | up    | 2016-03-30T11:49:29.000000 | -               |
  63. | 2  | nova-consoleauth | ubuntu0 | internal | enabled | up    | 2016-03-30T11:49:34.000000 | -               |
  64. | 3  | nova-scheduler   | ubuntu0 | internal | enabled | up    | 2016-03-30T11:49:29.000000 | -               |
  65. | 4  | nova-conductor   | ubuntu0 | internal | enabled | up    | 2016-03-30T11:49:31.000000 | -               |
  66. | 7  | nova-cert        | ubuntu1 | internal | enabled | down  | 2016-03-30T11:37:15.000000 | -               |
  67. | 8  | nova-consoleauth | ubuntu1 | internal | enabled | down  | 2016-03-30T11:37:26.000000 | -               |
  68. | 9  | nova-scheduler   | ubuntu1 | internal | enabled | down  | 2016-03-30T11:37:17.000000 | -               |
  69. | 10 | nova-conductor   | ubuntu1 | internal | enabled | down  | 2016-03-30T11:37:21.000000 | -               |
  70. | 12 | nova-compute     | ubuntu0 | nova     | enabled | down  | 2016-03-30T11:41:57.000000 | -               |
  71. | 13 | nova-compute     | ubuntu1 | nova     | enabled | up    | 2016-03-30T11:49:36.000000 | -               |
  72. +----+------------------+---------+----------+---------+-------+----------------------------+-----------------+
  73. root@ubuntu0:~# openstack service list
  74. +----------------------------------+-----------+----------+
  75. | ID                               | Name      | Type     |
  76. +----------------------------------+-----------+----------+
  77. | 051448041adf491e8ca8fd593742c855 | glance    | image    |
  78. | 7adf7329271d4cf3b7f4614d3c448884 | nova      | compute  |
  79. | b0185de9f042492b92db182563ff3db8 | keystone0 | identity |
  80. +----------------------------------+-----------+----------+
  81. root@ubuntu0:~# glance image-list
  82. +--------------------------------------+-----------------------+
  83. | ID                                   | Name                  |
  84. +--------------------------------------+-----------------------+
  85. | 6d6b9d24-7084-4fda-ad17-d04a48afe8ca | cirros                |
  86. | 8b8c4728-2b53-4edd-8e57-c8fa3a7ee2ab | coreos-current-stable |
  87. +--------------------------------------+-----------------------+
  88. root@ubuntu0:~# nova --debug image-list
  89. DEBUG (session:198) REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
  90. INFO (connectionpool:205) Starting new HTTP connection (1): controller
  91. DEBUG (connectionpool:385) "GET /v3 HTTP/1.1" 200 250
  92. DEBUG (session:215) RESP: [200] Content-Length: 250 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Wed, 30 Mar 2016 11:49:59 GMT x-openstack-$
  93. equest-id: req-177e94ca-bdba-42b5-b9b2-68804217af09 Content-Type: application/json X-Distribution: Ubuntu
  94. RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": $
  95. {"href": "http://controller:35357/v3/", "rel": "self"}]}}
  96.  
  97. DEBUG (base:188) Making authentication request to http://controller:35357/v3/auth/tokens
  98. DEBUG (connectionpool:385) "POST /v3/auth/tokens HTTP/1.1" 201 2168
  99. DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}b6d9bd9916efade800b87e605ed5a791270c4fd0"
  100. INFO (connectionpool:205) Starting new HTTP connection (1): controller
  101. DEBUG (connectionpool:385) "GET /v2/ HTTP/1.1" 200 375
  102. DEBUG (session:215) RESP: [200] Date: Wed, 30 Mar 2016 11:49:59 GMT Connection: keep-alive Content-Type: application/json Content-Length: 375 X-Compute-Request-Id: req-ce618164-cc64-44c4-a3ed-39e48d90d47$
  103.  
  104. RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://controller:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/htm$
  105. ", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}
  106.  
  107. DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/08c2051056494af5b4d0e89373a98230/images/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA$
  108. }b6d9bd9916efade800b87e605ed5a791270c4fd0"
  109. DEBUG (connectionpool:385) "GET /v2/08c2051056494af5b4d0e89373a98230/images/detail HTTP/1.1" 500 214
  110. DEBUG (session:215) RESP: [500] Date: Wed, 30 Mar 2016 11:51:40 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 214 X-Compute-Request-Id: req-8b216671-557d-4ae4-a$
  111. a4-54ec13b6797c
  112. RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'glanceclient.exc.HTTPInternalServerE$
  113. ror'>", "code": 500}}
  114.  
  115. DEBUG (shell:905) Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  116. <class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500) (Request-ID: req-8b216671-557d-4ae4-aaa4-54ec13b6797c)
  117. Traceback (most recent call last):
  118.   File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 903, in main
  119.     OpenStackComputeShell().main(argv)
  120.   File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 830, in main
  121.     args.func(self.cs, args)
  122.   File "/usr/lib/python2.7/dist-packages/novaclient/v2/shell.py", line 1115, in do_image_list
  123.     image_list = cs.images.list(limit=limit)
  124.   File "/usr/lib/python2.7/dist-packages/novaclient/v2/images.py", line 74, in list
  125.     return self._list('/images%s%s' % (detail, query), 'images')
  126.   File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 72, in _list
  127.     _resp, body = self.api.client.get(url)
  128.   File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 170, in get
  129.     return self.request(url, 'GET', **kwargs)
  130.   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 93, in request
  131.     raise exceptions.from_response(resp, body, url, method)
  132. ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  133. <class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500) (Request-ID: req-8b216671-557d-4ae4-aaa4-54ec13b6797c)
  134. ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  135. <class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500) (Request-ID: req-8b216671-557d-4ae4-aaa4-54ec13b6797c)
  136. root@ubuntu0:~# cat /etc/nova/nova.conf
  137. [DEFAULT]
  138. verbose=true
  139. rpc_backend = rabbit
  140. auth_strategy = keystone
  141. dhcpbridge_flagfile=/etc/nova/nova.conf
  142. dhcpbridge=/usr/bin/nova-dhcpbridge
  143. logdir=/var/log/nova
  144. state_path=/var/lib/nova
  145. lock_path=/var/lock/nova
  146. force_dhcp_release=True
  147. libvirt_use_virtio_for_bridges=True
  148. verbose=True
  149. ec2_private_dns_show_ip=True
  150. api_paste_config=/etc/nova/api-paste.ini
  151. enabled_apis=osapi_compute,metadata
  152.  
  153. osapi_compute_listen = 192.168.0.168
  154. my_ip = 192.168.0.168
  155. network_api_class = nova.network.neutronv2.api.API
  156. security_group_api = neutron
  157. linuxnet_interface_driver = nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver
  158. firewall_driver = nova.virt.firewall.NoopFirewallDriver
  159.  
  160. [glance]
  161. host = controller
  162. api_servers = controller:9292
  163.  
  164. [vnc]
  165. enabled = True
  166. vncserver_listen = $my_ip
  167. vncserver_proxyclient_address = $my_ip
  168. novncproxy_base_url = http://controller:6080/vnc_auto.html
  169.  
  170. [database]
  171. connection = mysql+pymysql://nova:nova@controller/nova
  172.  
  173. [oslo_messaging_rabbit]
  174. rabbit_host = controller
  175. rabbit_userid = openstack
  176. rabbit_password = rabbit
  177.  
  178. [oslo_concurrency]
  179. lock_path = /var/lib/nova/tmp
  180.  
  181. [keystone_authtoken]
  182. auth_uri = http://controller:5000
  183. #auth_host = controller
  184. auth_url = http://controller:35357
  185. #identity_uri = http://controller:35357
  186. auth_plugin = password
  187. project_domain_id = default
  188. user_domain_id = default
  189. project_name = service
  190. username = nova
  191. password = nova
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement