← Back to team overview

fuel-dev team mailing list archive

Question about proxy server for OSTF.

 

Hi, folks.

Fuel uses http proxy on controller (i.e. 10.20.0.3:8888) to give access for
OSTF tests inside OpenStack networks. We've plunged in to troubles w/
python-ceilometerclient. It is not support http_proxy, because it based on
httplib module that not support proxy from environment variables.

[root@fuel ~]# http_proxy=http://10.20.0.3:8888 ceilometer
--os-username=admin --os-password=admin
--os-tenant-id=6fc07efb143b4aada4052c1ec0154545 --os-auth-url=
http://10.20.0.3:5000/v2.0 meter-list
Error communicating with http://172.16.0.2:8777 [Errno 113] No route to host

but novaclient works like a charm

[root@fuel ~]# http_proxy=http://10.20.0.3:8888 nova --os-username=admin
--os-password=admin --os-tenant-id=6fc07efb143b4aada4052c1ec0154545
--os-auth-url=http://10.20.0.3:5000/v2.0 list
+--------------------------------------+-------+--------+------------+-------------+----------------------+
| ID                                   | Name  | Status | Task State |
Power State | Networks             |
+--------------------------------------+-------+--------+------------+-------------+----------------------+
| 358da20a-e8ae-4d2a-afce-9ff866f6267a | new01 | ACTIVE | None       |
Running     | novanetwork=10.0.0.2 |
| 0e65a7cb-bed7-403b-9043-feadfb5f2149 | new02 | ACTIVE | None       |
Running     | novanetwork=10.0.0.4 |
| 831a198b-daea-4b85-a6ec-cce85861fcb2 | new03 | ACTIVE | None       |
Running     | novanetwork=10.0.0.5 |
| 13adf693-539f-40b9-bc87-af16ed45a016 | new04 | ACTIVE | None       |
Running     | novanetwork=10.0.0.6 |
| e8c46558-6f0c-4453-9a42-0c0e1df760c9 | new05 | ACTIVE | None       |
Running     | novanetwork=10.0.0.7 |
| ea443306-d2df-4fc2-9286-df74d4a48eb4 | new06 | ACTIVE | None       |
Running     | novanetwork=10.0.0.8 |
+--------------------------------------+-------+--------+------------+-------------+----------------------+

Also i've found that glanceclient also based on httplib and not works w/
http_proxy. In OSTF for image tests used novaclient, not glanceclient.

My question is... Is there any routing, iptables way(without proxy) to
provide access from master node to openstack networks?

-- 
Regards, Roman Sokolkov

Follow ups