However, glance call indeed uses internal IP but fails:
[root@node-4 ~]# glance -d image-create --name 'TestVM' --is-public 'true' --container-format='bare' --disk-format='qcow2' --min-ram='64' --file '/opt/vm/cirros-x86_64-disk.img'
/usr/lib/python2.6/site-packages/glanceclient/client.py:26: DeprecationWarning: `version` keyword is being deprecated. Please pass the version as part of the URL. http://$HOST:$PORT/v$VERSION_NUMBER
DeprecationWarning)
curl -i -X POST -H 'Accept-Encoding: gzip, deflate, compress' -H 'x-image-meta-container_format: bare' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}bc4cacea163762b4ec6d80f1fc04cc48d94d942f' -H 'x-image-meta-size: 13167616' -H 'x-image-meta-is_public: True' -H 'x-image-meta-min_ram: 64' -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: qcow2' -H 'x-image-meta-name: TestVM' http://192.168.0.2:9292/v1/images
Request returned failure status 400.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/glanceclient/shell.py", line 637, in main
args.func(client, args)
File "/usr/lib/python2.6/site-packages/glanceclient/v1/shell.py", line 232, in do_image_create
image = gc.images.create(**fields)
File "/usr/lib/python2.6/site-packages/glanceclient/v1/images.py", line 288, in create
data=image_data)
File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 262, in post
return self._request('POST', url, **kwargs)
File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 227, in _request
raise exc.from_response(resp, resp.content)
HTTPBadRequest: <html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
Client disconnected before sending all data to backend<br /><br />
</body>
</html> (HTTP 400)
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
Client disconnected before sending all data to backend<br /><br />
Alex, vip__public Stopped at Amichay's CentOS env too with no ping from outside..
[root@node-4 ~]# crm resource show ns_IPaddr2) : Started vrouter (ocf::fuel: ns_IPaddr2) : Started t_vrouter (ocf::fuel: ns_IPaddr2) : Started ns_IPaddr2) : Stopped p_rabbitmq- server [p_rabbitmq-server] neutron- openvswitch- agent [p_neutron- openvswitch- agent] neutron- dhcp-agent [p_neutron- dhcp-agent] neutron- metadata- agent [p_neutron- metadata- agent] neutron- l3-agent [p_neutron- l3-agent] openstack- heat-engine [p_openstack- heat-engine] vip__public [ping_vip__public]
Clone Set: clone_p_vrouter [p_vrouter]
Started: [ node-4.domain.tld ]
vip__management (ocf::fuel:
vip__public_
vip__managemen
vip__public (ocf::fuel:
Clone Set: clone_p_haproxy [p_haproxy]
Started: [ node-4.domain.tld ]
Clone Set: clone_p_mysql [p_mysql]
Started: [ node-4.domain.tld ]
Master/Slave Set: master_
Masters: [ node-4.domain.tld ]
Clone Set: clone_p_
Started: [ node-4.domain.tld ]
Clone Set: clone_p_
Started: [ node-4.domain.tld ]
Clone Set: clone_p_
Started: [ node-4.domain.tld ]
Clone Set: clone_p_
Started: [ node-4.domain.tld ]
Clone Set: clone_p_
Started: [ node-4.domain.tld ]
Clone Set: clone_p_dns [p_dns]
Started: [ node-4.domain.tld ]
Clone Set: clone_ping_
Started: [ node-4.domain.tld ]
However, glance call indeed uses internal IP but fails:
[root@node-4 ~]# glance -d image-create --name 'TestVM' --is-public 'true' --container- format= 'bare' --disk- format= 'qcow2' --min-ram='64' --file '/opt/vm/ cirros- x86_64- disk.img' python2. 6/site- packages/ glanceclient/ client. py:26: DeprecationWarning: `version` keyword is being deprecated. Please pass the version as part of the URL. http:// $HOST:$PORT/v$ VERSION_ NUMBER rning) meta-container_ format: bare' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}bc4cacea1 63762b4ec6d80f1 fc04cc48d94d942 f' -H 'x-image-meta-size: 13167616' -H 'x-image- meta-is_ public: True' -H 'x-image- meta-min_ ram: 64' -H 'User-Agent: python- glanceclient' -H 'Content-Type: application/ octet-stream' -H 'x-image- meta-disk_ format: qcow2' -H 'x-image-meta-name: TestVM' http:// 192.168. 0.2:9292/ v1/images python2. 6/site- packages/ glanceclient/ shell.py" , line 637, in main func(client, args) python2. 6/site- packages/ glanceclient/ v1/shell. py", line 232, in do_image_create create( **fields) python2. 6/site- packages/ glanceclient/ v1/images. py", line 288, in create image_data) python2. 6/site- packages/ glanceclient/ common/ http.py" , line 262, in post 'POST', url, **kwargs) python2. 6/site- packages/ glanceclient/ common/ http.py" , line 227, in _request response( resp, resp.content)
/usr/lib/
DeprecationWa
curl -i -X POST -H 'Accept-Encoding: gzip, deflate, compress' -H 'x-image-
Request returned failure status 400.
Traceback (most recent call last):
File "/usr/lib/
args.
File "/usr/lib/
image = gc.images.
File "/usr/lib/
data=
File "/usr/lib/
return self._request(
File "/usr/lib/
raise exc.from_
HTTPBadRequest: <html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
Client disconnected before sending all data to backend<br /><br />
</body>
</html> (HTTP 400)
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
Client disconnected before sending all data to backend<br /><br />
</body>
</html> (HTTP 400)