jolausa

network problem

Jun 9th, 2016
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. From inside the container:
  2.  
  3.  
  4. root@653effb1462d:~# cat openrc
  5. #!/bin/sh
  6. export LC_ALL=C
  7. export OS_NO_CACHE='true'
  8. export OS_TENANT_NAME='admin'
  9. export OS_PROJECT_NAME='admin'
  10. export OS_USERNAME='admin'
  11. export OS_PASSWORD='admin'
  12. export OS_AUTH_URL='http://172.16.0.3:5000/v2.0'
  13. export OS_DEFAULT_DOMAIN='default'
  14. export OS_AUTH_STRATEGY='keystone'
  15. export OS_REGION_NAME='RegionOne'
  16. export CINDER_ENDPOINT_TYPE='publicURL'
  17. export GLANCE_ENDPOINT_TYPE='publicURL'
  18. export KEYSTONE_ENDPOINT_TYPE='publicURL'
  19. export NOVA_ENDPOINT_TYPE='publicURL'
  20. export NEUTRON_ENDPOINT_TYPE='publicURL'
  21. export OS_ENDPOINT_TYPE='publicURL'
  22. export MURANO_REPO_URL='http://storage.apps.openstack.org/'
  23.  
  24. root@653effb1462d:~# . openrc
  25.  
  26.  
  27. root@653effb1462d:~# glance image-list
  28. +--------------------------------------+--------+
  29. | ID | Name |
  30. +--------------------------------------+--------+
  31. | a1cd96f8-0435-4b65-8d9c-36174d017bf7 | TestVM |
  32. +--------------------------------------+--------+
  33.  
  34. root@653effb1462d:~# nova list
  35. +----+------+--------+------------+-------------+----------+
  36. | ID | Name | Status | Task State | Power State | Networks |
  37. +----+------+--------+------------+-------------+----------+
  38. +----+------+--------+------------+-------------+----------+
  39.  
  40. root@653effb1462d:~# cinder list
  41. +----+--------+------+------+-------------+----------+-------------+
  42. | ID | Status | Name | Size | Volume Type | Bootable | Attached to |
  43. +----+--------+------+------+-------------+----------+-------------+
  44. +----+--------+------+------+-------------+----------+-------------+
  45.  
  46. root@653effb1462d:~# neutron net-list
  47. +--------------------------------------+--------------------+-------------------------------------------------------+
  48. | id | name | subnets |
  49. +--------------------------------------+--------------------+-------------------------------------------------------+
  50. | 79357c55-36f6-4303-ab96-f1a3c1cce511 | admin_floating_net | 2de46ce2-66d1-49ed-9b2b-3eb87baa67ae 172.16.0.0/24 |
  51. | c3ab46f2-8d97-42ec-8826-ff9cd3b09a99 | admin_internal_net | 65419787-a198-4ecd-9c13-f5bbe47fdd78 192.168.111.0/24 |
  52. +--------------------------------------+--------------------+-------------------------------------------------------+
  53.  
  54.  
  55. root@653effb1462d:~# openstack --debug user list
  56. [...]
  57. Using parameters {'username': 'admin', 'password': '***', 'project_name': 'admin', 'auth_url': 'http://172.16.0.3:5000/v2.0'}
  58. Get auth_ref
  59. REQ: curl -g -i -X GET http://172.16.0.3:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.6.0 python-requests/2.10.0 CPython/2.7.6"
  60. Starting new HTTP connection (1): 172.16.0.3
  61. "GET /v2.0 HTTP/1.1" 200 336
  62. RESP: [200] Date: Thu, 09 Jun 2016 16:06:11 GMT Server: Apache Content-Length: 336 Vary: X-Auth-Token x-openstack-request-id: req-a34899ee-6490-4cd7-aca3-fb94abc72ac5 Connection: close Content-Type: application/json
  63. RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://172.16.0.3:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
  64.  
  65. Making authentication request to http://172.16.0.3:5000/v2.0/tokens
  66. Resetting dropped connection: 172.16.0.3
  67. "POST /v2.0/tokens HTTP/1.1" 200 4876
  68. run(Namespace(columns=[], formatter='table', long=False, max_width=0, noindent=False, project=None, quote_mode='nonnumeric'))
  69. Instantiating identity client: <class 'openstackclient.identity.client.IdentityClientv2'>
  70. Making authentication request to http://172.16.0.3:5000/v2.0/tokens
  71. Resetting dropped connection: 172.16.0.3
  72. "POST /v2.0/tokens HTTP/1.1" 200 4876
  73. REQ: curl -g -i -X GET http://192.168.0.2:35357/ -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.6.0 python-requests/2.10.0 CPython/2.7.6"
  74. Starting new HTTP connection (1): 192.168.0.2
  75. ^CEND return value: 1
  76.  
  77. KeyboardInterrupt
  78.  
  79.  
  80. root@653effb1462d:~# ping 172.16.0.3
  81. PING 172.16.0.3 (172.16.0.3) 56(84) bytes of data.
  82. 64 bytes from 172.16.0.3: icmp_seq=1 ttl=63 time=0.610 ms
  83. 64 bytes from 172.16.0.3: icmp_seq=2 ttl=63 time=0.422 ms
  84. (external network reachable OK)
  85.  
  86. root@653effb1462d:~# ping 192.168.0.2
  87. PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
  88. (management network NOT reachable)
Advertisement
Add Comment
Please, Sign In to add comment