Merge lp:~evarlast/charms/trusty/apache2/trunk into lp:charms/trusty/apache2
| Status: | Merged |
|---|---|
| Merged at revision: | 69 |
| Proposed branch: | lp:~evarlast/charms/trusty/apache2/trunk |
| Merge into: | lp:charms/trusty/apache2 |
| Diff against target: |
192 lines (+69/-10) 5 files modified
Makefile (+14/-3) config.yaml (+13/-0) hooks/hooks.py (+28/-1) hooks/tests/test_balancer_hook.py (+13/-6) hooks/tests/test_config_changed.py (+1/-0) |
| To merge this branch: | bzr merge lp:~evarlast/charms/trusty/apache2/trunk |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Kevin W Monroe | Approve on 2016-02-25 | ||
| Jay R. Wren (community) | Resubmit on 2016-02-24 | ||
| Andrew McLeod (community) | Needs Fixing on 2016-02-11 | ||
| Adam Israel | 2015-11-20 | Needs Fixing on 2016-01-15 | |
| Review Queue (community) | automated testing | Needs Fixing on 2015-11-21 | |
|
Review via email:
|
|||
Description of the Change
Add apt config options to allow apache2 to be installed from a PPA. This enabled use of http2 supporting apache.
- 69. By Jay R. Wren on 2015-11-20
-
do not enable http2 by default
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
| Andrew McLeod (admcleod) wrote : | # |
Hi Jay,
In order to confirm your changes are fully functional, I've attempted to run bundletester (bundletester -e $AWS -l DEBUG -vF) on this.
It appears that there are initial failures related to apt-source, but because of the 'F' I see that there are also older issues related to assert_called_once (see: https:/
Unfortunately because tests are failing (as noted by the automated testing also) I can't approve this - however, perhaps they're passing for you? If so can you tell me more about your environment so I can try to replicate it - I'm using trusty.
Thanks!
Andrew
| Andrew McLeod (admcleod) wrote : | # |
Jay,
I've just seen another RQ item from you where you've fixed some of those assert_called_once errors, but still failing on the following:
http://
I've put this same pastebin in your other RQ item.
Andrew
| Adam Israel (aisrael) wrote : | # |
Hi Jay,
Just following up from our conversation on IRC yesterday. There are some failing tests here that are in the upstream, but new failing tests are introduced with this merge. Specifically:
=======
ERROR: tests.test_
-------
_StringException: Traceback (most recent call last):
File "/tmp/bundletes
return func(*args, **keywargs)
File "/tmp/bundletes
result = hooks.install_
File "/tmp/bundletes
open(
TypeError: expected a character buffer object
=======
ERROR: tests.test_
-------
_StringException: Traceback (most recent call last):
File "/tmp/bundletes
return func(*args, **keywargs)
File "/tmp/bundletes
hooks.
File "/tmp/bundletes
apt_source = config_
KeyError: 'apt-source'
- 70. By Jay R. Wren on 2016-01-16
-
fix tests which I broke
| Jay R. Wren (evarlast) wrote : | # |
Thanks for this. I think I have fixed the required tests.
Please take another look.
| Haw Loeung (hloeung) wrote : | # |
These are pretty bad defaults. We're adding the http://
I think the defaults for apt-key-id and apt-source should be empty.
| Jay R. Wren (evarlast) wrote : | # |
Indeed! I intended them to be empty. Thank Haw.
- 71. By Jay R. Wren on 2016-01-19
-
default apt-key-id and apt-source to empty string
| Andrew McLeod (admcleod) wrote : | # |
Hi Jay,
There are still tests failing (http://
| Jay R. Wren (evarlast) wrote : | # |
Maybe someone can help me out with what changes in this MR cause these
tests to fail?
On Thu, Feb 11, 2016 at 6:01 PM, Andrew McLeod
<email address hidden> wrote:
> Review: Needs Fixing
>
> Hi Jay,
>
> There are still tests failing (http://
> --
> https:/
> You are the owner of lp:~evarlast/charms/trusty/apache2/trunk.
| Kevin W Monroe (kwmonroe) wrote : | # |
Hey Jay - it's likely that nothing you did in this MP caused these failures. In fact, I'm quite certain that the 'assert_
That said, I agree with Andrew's desire to get tests passing before committing updates to a charm as important as apache2. If you have ideas on how to fix these test issues (even though you didn't introduce them), that would be much appreciated. If not, please at least hit the 'affects me too' on bug [0] to raise the heat.
Meanwhile, I'll try to poke on a test refactor to get around the assert_called_once errors, but we'll still need to dig into the other failures Andrew found in his latest pastebin.
[0] - https:/
| Kevin W Monroe (kwmonroe) wrote : | # |
Hey Jay! I didn't realize when I pointed you at bug 1511474 that you already fixed it way back in November (which made it in with your add-logs-interface merge to apache2 today [0]).
That clears up all the apache2 errors that weren't your fault, but we're not out of the woods yet :) 'make test' with these changes merged into the new apache2 trunk branch yields:
=======
ERROR: tests.test_
-------
_StringException: Traceback (most recent call last):
File "/tmp/bundletes
return func(*args, **keywargs)
File "/tmp/bundletes
hooks.
File "/tmp/bundletes
old_apt_source = open('config.
IOError: [Errno 2] No such file or directory: 'config.apt-source'
This happens because install_hook() is the only place config.apt-source is written, and we're not invoking that in test_config_
...
relationsh
config_data = config_get()
+ apt_source = config_
+ try:
+ old_apt_source = open('config.
+ except IOError:
+ # File may not exist if install hook hasn't run (unlikely) or during
+ # ./hooks/
+ # assume if this file DNE, our old apt source == current apt config.
+ old_apt_source = apt_source
...
In the same method, do you need to write the new repo config to the config.apt-source file? Altering your diff like:
+ if old_apt_source != apt_source:
+ subprocess.
+ old_apt_source])
+ add_source(
+ open('config.
Otherwise, I don't think your "old_apt_source != apt_source" test will be accurate after changing that config.
One last morsel of awesome, test_config_
- }
+ "apt-source": "",
+ })
I know this MP has been a long time coming, and I *really* appreciate the fixes to apache2/trunk that you didn't cause. I think we're close with this one, but I want to get your input on these last few concerns of mine. Thanks!!
[0] - https:/
- 72. By Jay R. Wren on 2016-02-24
-
fix config changed handling of apt-source
| Jay R. Wren (evarlast) wrote : | # |
Great catch @kevin.
I've updated to include suggested fixes.
- 73. By Jay R. Wren on 2016-02-24
-
merge parent
- 74. By Jay R. Wren on 2016-02-25
-
i knew that was bug
| Kevin W Monroe (kwmonroe) wrote : | # |
Thanks for the updates Jay! Tests pass and I verified apt config settings are honored during both install and config-changed.
This has been merged into trusty/apache2. An updated charm should hit the store in about an hour. Thanks again for your patience during this review!

This item has failed automated testing! Results available here http:// juju-ci. vapour. ws:8080/ job/charm- bundle- test-lxc/ 1486/