Merge lp:~seyeongkim/charms/trusty/swift-proxy/lp1334648.1 into lp:~openstack-charmers-archive/charms/trusty/swift-proxy/next

Proposed by Seyeong Kim
Status: Superseded
Proposed branch: lp:~seyeongkim/charms/trusty/swift-proxy/lp1334648.1
Merge into: lp:~openstack-charmers-archive/charms/trusty/swift-proxy/next
Diff against target: 118 lines (+41/-7)
4 files modified
config.yaml (+12/-0)
hooks/swift_context.py (+6/-0)
templates/icehouse/proxy-server.conf (+11/-2)
tests/basic_deployment.py (+12/-5)
To merge this branch: bzr merge lp:~seyeongkim/charms/trusty/swift-proxy/lp1334648.1
Reviewer Review Type Date Requested Status
James Page Needs Fixing
Edward Hope-Morley Pending
Review via email: mp+255614@code.launchpad.net

This proposal has been superseded by a proposal from 2015-04-13.

To post a comment you must log in.
Revision history for this message
Seyeong Kim (seyeongkim) wrote :

re propose, because there was weird problem.

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #3180 swift-proxy-next for xtrusia mp255614
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/3180/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #2968 swift-proxy-next for xtrusia mp255614
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/2968/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #2984 swift-proxy-next for xtrusia mp255614
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.

Full amulet test output: http://paste.ubuntu.com/10780014/
Build: http://10.245.162.77:8080/job/charm_amulet_test/2984/

91. By Seyeong Kim

remove comment

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #3181 swift-proxy-next for xtrusia mp255614
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/3181/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #2969 swift-proxy-next for xtrusia mp255614
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/2969/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #2985 swift-proxy-next for xtrusia mp255614
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.

Full amulet test output: http://paste.ubuntu.com/10780667/
Build: http://10.245.162.77:8080/job/charm_amulet_test/2985/

92. By Seyeong Kim

add tests

Revision history for this message
Seyeong Kim (seyeongkim) wrote :

not sure how i can fix the race condition problem on amulet test failed.

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #3201 swift-proxy-next for xtrusia mp255614
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/3201/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #2989 swift-proxy-next for xtrusia mp255614
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/2989/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #3018 swift-proxy-next for xtrusia mp255614
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.

Full amulet test output: http://paste.ubuntu.com/10789132/
Build: http://10.245.162.77:8080/job/charm_amulet_test/3018/

Revision history for this message
James Page (james-page) :
review: Needs Fixing
Revision history for this message
Seyeong Kim (seyeongkim) wrote :

please see inline question

Revision history for this message
Billy Olsen (billy-olsen) :
93. By Seyeong Kim

default things to template, more option on if branch

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config.yaml'
2--- config.yaml 2015-04-08 14:25:58 +0000
3+++ config.yaml 2015-04-13 22:57:35 +0000
4@@ -122,6 +122,18 @@
5 Timeouts from these requests can be recovered from so setting this to
6 something lower than node-timeout would provide quicker error recovery
7 while allowing for a longer timeout for non-recoverable requests (PUTs).
8+ # Logging configuration
9+ debug:
10+ default: False
11+ type: boolean
12+ description: |
13+ Set log-name, log-facility, log-level, log-address
14+ log-headers:
15+ default: False
16+ type: boolean
17+ description: |
18+ Enables the ability to log request headers.
19+ The default is False.
20 # Manual Keystone configuration.
21 keystone-auth-host:
22 type: string
23
24=== modified file 'hooks/swift_context.py'
25--- hooks/swift_context.py 2015-03-31 08:39:46 +0000
26+++ hooks/swift_context.py 2015-04-13 22:57:35 +0000
27@@ -100,8 +100,14 @@
28 'delay_auth_decision': config('delay-auth-decision'),
29 'node_timeout': config('node-timeout'),
30 'recoverable_node_timeout': config('recoverable-node-timeout'),
31+ 'log_headers': config('log-headers')
32 }
33
34+ if config('debug'):
35+ ctxt['log_level'] = 'DEBUG'
36+ else:
37+ ctxt['log_level'] = 'INFO'
38+
39 # Instead of duplicating code lets use charm-helpers to set signing_dir
40 # TODO(hopem): refactor this context handler to use charm-helpers
41 # code.
42
43=== modified file 'templates/icehouse/proxy-server.conf'
44--- templates/icehouse/proxy-server.conf 2015-02-20 10:20:45 +0000
45+++ templates/icehouse/proxy-server.conf 2015-04-13 22:57:35 +0000
46@@ -3,6 +3,12 @@
47 workers = {{ workers }}
48 user = swift
49 bind_ip = {{ bind_host }}
50+log_name = swift
51+log_facility = LOG_LOCAL0
52+log_level = {{ log_level }}
53+log_address = /dev/log
54+log_headers = {{ log_headers }}
55+
56 {% if ssl %}
57 cert_file = {{ ssl_cert }}
58 key_file = {{ ssl_key }}
59@@ -10,10 +16,10 @@
60
61 {% if auth_type == 'keystone' %}
62 [pipeline:main]
63-pipeline = gatekeeper healthcheck cache swift3 s3token container_sync bulk tempurl slo dlo formpost authtoken keystoneauth staticweb container-quotas account-quotas proxy-server
64+pipeline = gatekeeper healthcheck proxy-logging cache swift3 s3token container_sync bulk tempurl slo dlo formpost authtoken keystoneauth staticweb container-quotas account-quotas proxy-logging proxy-server
65 {% else %}
66 [pipeline:main]
67-pipeline = gatekeeper healthcheck cache container_sync bulk tempurl slo dlo formpost tempauth staticweb container-quotas account-quotas proxy-server
68+pipeline = gatekeeper healthcheck proxy-logging cache container_sync bulk tempurl slo dlo formpost tempauth staticweb container-quotas account-quotas proxy-logging proxy-server
69 {% endif %}
70
71 [app:proxy-server]
72@@ -40,6 +46,9 @@
73 [filter:container-quotas]
74 use = egg:swift#container_quotas
75
76+[filter:proxy-logging]
77+use = egg:swift#proxy_logging
78+
79 [filter:staticweb]
80 use = egg:swift#staticweb
81
82
83=== modified file 'tests/basic_deployment.py'
84--- tests/basic_deployment.py 2015-03-25 17:54:29 +0000
85+++ tests/basic_deployment.py 2015-04-13 22:57:35 +0000
86@@ -368,13 +368,19 @@
87 expected = {
88 'DEFAULT': {
89 'bind_port': '8070',
90- 'user': 'swift'
91+ 'user': 'swift',
92+ 'log_name': 'swift',
93+ 'log_facility': 'LOG_LOCAL0',
94+ 'log_level': 'INFO',
95+ 'log_headers': 'False',
96+ 'log_address': '/dev/log'
97 },
98 'pipeline:main': {
99- 'pipeline': 'gatekeeper healthcheck cache swift3 s3token '
100- 'container_sync bulk tempurl slo dlo formpost '
101- 'authtoken keystoneauth staticweb '
102- 'container-quotas account-quotas proxy-server'
103+ 'pipeline': 'gatekeeper healthcheck proxy-logging cache swift3 '
104+ 's3token container_sync bulk tempurl slo dlo '
105+ 'formpost authtoken keystoneauth staticweb '
106+ 'container-quotas account-quotas proxy-logging '
107+ 'proxy-server'
108 },
109 'app:proxy-server': {
110 'use': 'egg:swift#proxy',
111@@ -395,6 +401,7 @@
112 },
113 'filter:account-quotas': {'use': 'egg:swift#account_quotas'},
114 'filter:container-quotas': {'use': 'egg:swift#container_quotas'},
115+ 'filter:proxy-logging': {'use': 'egg:swift#proxy_logging'},
116 'filter:staticweb': {'use': 'egg:swift#staticweb'},
117 'filter:bulk': {'use': 'egg:swift#bulk'},
118 'filter:slo': {'use': 'egg:swift#slo'},

Subscribers

People subscribed via source and target branches