charm readiness != API readiness
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Neutron API Charm |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Reference: https:/
Test output:
```
2019-11-29 08:03:12 [INFO] Setting config to {'use-policyd-
2019-11-29 08:03:13 [INFO] Waiting for at least one unit with agent status "executing"
2019-11-29 08:04:07 [INFO] Finally verify that operation works after removing the override.
2019-11-29 08:04:07 [INFO] Authentication for demo on keystone IP 10.5.0.67
2019-11-29 08:04:07 [INFO] keystone IP 10.5.0.67
2019-11-29 08:04:08 [INFO] ERROR
2019-11-29 08:04:08 [INFO] =======
2019-11-29 08:04:08 [INFO] ERROR: test_003_
2019-11-29 08:04:08 [INFO] Test that the override is observed by the underlying service.
2019-11-29 08:04:08 [INFO] -------
2019-11-29 08:04:08 [INFO] Traceback (most recent call last):
2019-11-29 08:04:08 [INFO] File "/home/
2019-11-29 08:04:08 [INFO] networks = neutron_
2019-11-29 08:04:08 [INFO] File "/home/
2019-11-29 08:04:08 [INFO] **_params)
2019-11-29 08:04:08 [INFO] File "/home/
2019-11-29 08:04:08 [INFO] for r in self._paginatio
2019-11-29 08:04:08 [INFO] File "/home/
2019-11-29 08:04:08 [INFO] res = self.get(path, params=params)
2019-11-29 08:04:08 [INFO] File "/home/
2019-11-29 08:04:08 [INFO] headers=headers, params=params)
2019-11-29 08:04:08 [INFO] File "/home/
2019-11-29 08:04:08 [INFO] headers=headers, params=params)
2019-11-29 08:04:08 [INFO] File "/home/
2019-11-29 08:04:08 [INFO] self._handle_
2019-11-29 08:04:08 [INFO] File "/home/
2019-11-29 08:04:08 [INFO] exception_
2019-11-29 08:04:08 [INFO] File "/home/
2019-11-29 08:04:08 [INFO] request_
2019-11-29 08:04:08 [INFO] neutronclient.
2019-11-29 08:04:08 [INFO] <html><head>
2019-11-29 08:04:08 [INFO] <title>503 Service Unavailable</title>
2019-11-29 08:04:08 [INFO] </head><body>
2019-11-29 08:04:08 [INFO] <h1>Service Unavailable</h1>
2019-11-29 08:04:08 [INFO] <p>The server is temporarily unable to service your
2019-11-29 08:04:08 [INFO] request due to maintenance downtime or capacity
2019-11-29 08:04:08 [INFO] problems. Please try again later.</p>
2019-11-29 08:04:08 [INFO] <hr>
2019-11-29 08:04:08 [INFO] <address>
2019-11-29 08:04:08 [INFO] </body></html>
2019-11-29 08:04:08 [INFO] During handling of the above exception, another exception occurred:
2019-11-29 08:04:08 [INFO] Traceback (most recent call last):
2019-11-29 08:04:08 [INFO] File "/home/
2019-11-29 08:04:08 [INFO] self.get_
2019-11-29 08:04:08 [INFO] File "/home/
2019-11-29 08:04:08 [INFO] raise PolicydOperatio
2019-11-29 08:04:08 [INFO] zaza.openstack.
2019-11-29 08:04:08 [INFO] During handling of the above exception, another exception occurred:
2019-11-29 08:04:08 [INFO] Traceback (most recent call last):
2019-11-29 08:04:08 [INFO] File "/home/
2019-11-29 08:04:08 [INFO] .format(str(e)))
2019-11-29 08:04:08 [INFO] zaza.openstack.
```
Neutron API charm log:
```
2019-11-29 08:04:05 INFO juju-log Unit is ready
2019-11-29 08:07:49 INFO juju-log ...
```
neutron-api syslog:
```
Nov 29 08:04:04 juju-c66fd6-
Nov 29 08:04:04 juju-c66fd6-
Nov 29 08:17:01 juju-c66fd6-
```
Neutron API server daemon log:
```
2019-11-29 08:04:03.901 14066 INFO oslo_service.
2019-11-29 08:04:07.039 20193 INFO neutron.
...
2019-11-29 08:04:09.014 20193 INFO neutron.service [req-b336a6d0-
```
Apache error log:
```
[Fri Nov 29 08:04:05.494436 2019] [proxy:error] [pid 18852:tid 140220213229312] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:9676 (localhost) failed
[Fri Nov 29 08:04:05.494493 2019] [proxy_http:error] [pid 18852:tid 140220213229312] [client 10.5.0.52:40388] AH01114: HTTP: failed to make connection to backend: localhost
[Fri Nov 29 08:04:08.358579 2019] [proxy:error] [pid 18852:tid 140220204836608] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:9676 (localhost) failed
[Fri Nov 29 08:04:08.358625 2019] [proxy_http:error] [pid 18852:tid 140220204836608] [client 10.5.0.52:40398] AH01114: HTTP: failed to make connection to backend: localhost
```
Apache access log:
```
10.5.0.52:443 10.5.0.52 - - [29/Nov/
10.5.0.52:443 10.5.0.52 - - [29/Nov/
10.5.0.52:443 10.5.0.52 - - [29/Nov/
10.5.0.52:443 10.5.0.52 - - [29/Nov/
```
So, what's going on here is that the second the `neutron-api` charm signals it has done executing (which it has) the test attempts to use the service. And it appears to not actually ready to answer requests until a few seconds later at the earliest.
Changed in charm-neutron-api: | |
status: | New → Triaged |
Seen a variant of this on https:/ /review. opendev. org/#/c/ 732657/ as well.