nova command fails, when enable squid client in /etc/profile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When testing OpenStack in my local environment, downloading package or yum install takes a lot of time.
Thus, I enable squid in all nodes, by pointing http_proxy to a local squid server.
,-----------
| echo "export http_proxy='http://
`-----------
squid client works well, but nova cli fail.
,-----------
| [root@control ~(keystone_admin)]# nova --debug hypervisor-show 1
| nova --debug hypervisor-show 1
|
| REQ: curl -i http://
|
| INFO (connectionpool
| DEBUG (connectionpool
| RESP: [504] {'content-length': '1113', 'via': '1.0 macs-mac-
| RESP BODY: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
| <HTML><HEAD><META HTTP-EQUIV=
| <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
| <STYLE type="text/
| </HEAD><BODY>
| <H1>ERROR</H1>
| <H2>The requested URL could not be retrieved</H2>
| <HR noshade size="1px">
| <P>
| While trying to retrieve the URL:
| <A HREF="http://
| <P>
| The following error was encountered:
| <UL>
| <LI>
| <STRONG>
| Connection to 192.168.209.131 Failed
| </STRONG>
| </UL>
|
| <P>
| The system returned:
| <PRE><I> (61) Connection refused</I></PRE>
|
| <P>
| The remote host or network may be down. Please try the request again.
| <P>Your cache administrator is <A HREF="mailto:
|
| <BR clear="all">
| <HR noshade size="1px">
| <ADDRESS>
| Generated Sat, 28 Dec 2013 21:08:08 GMT by macs-mac-
| </ADDRESS>
| </BODY></HTML>
|
|
| DEBUG (shell:740) <attribute 'message' of 'exceptions.
| Traceback (most recent call last):
| File "/usr/lib/
| OpenStackComput
| File "/usr/lib/
| self.cs.
| File "/usr/lib/
| self.client.
| File "/usr/lib/
| auth_url = self._v2_
| File "/usr/lib/
| return self._authentic
| File "/usr/lib/
| **kwargs)
| File "/usr/lib/
| resp, body = self.request(url, method, **kwargs)
| File "/usr/lib/
| raise exceptions.
| ClientException: <attribute 'message' of 'exceptions.
| ERROR: <attribute 'message' of 'exceptions.
`-----------
summary: |
- nova command fail, when enable squid in /etc/profile + nova command fails, when enable squid client in /etc/profile |
Changed in nova: | |
status: | Incomplete → Invalid |
So I tested this by:
- bringing up a new VM in a public cloud
- installing devstack
- verifying that I could boot an instance in devstack
- installing / configuring squid
- verified squid was working
- made python nova client requests
These requests appear in the squid log, and work for me.
Are there additional steps I need to duplicate this problem, or is it perhaps a local squid misconfiguration?