Merge lp:~seyeongkim/charms/trusty/swift-proxy/lp1334648 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
Merge into: lp:~openstack-charmers-archive/charms/trusty/swift-proxy/next
Diff against target: 125 lines (+50/-7)
4 files modified
config.yaml (+23/-0)
hooks/swift_context.py (+5/-0)
templates/icehouse/proxy-server.conf (+10/-2)
tests/basic_deployment.py (+12/-5)
To merge this branch: bzr merge lp:~seyeongkim/charms/trusty/swift-proxy/lp1334648
Reviewer Review Type Date Requested Status
Edward Hope-Morley Needs Fixing
Ryan Beisner (community) Needs Fixing
Review via email: mp+247835@code.launchpad.net

This proposal has been superseded by a proposal from 2015-02-10.

To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #1297 swift-proxy-next for xtrusia mp247835
    LINT OK: passed

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

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

charm_unit_test #1250 swift-proxy-next for xtrusia mp247835
    UNIT OK: passed

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

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

charm_amulet_test #1351 swift-proxy-next for xtrusia mp247835
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
  ERROR subprocess encountered error code 1
  make: *** [test] Error 1

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

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

charm_amulet_test #1352 swift-proxy-next for xtrusia mp247835
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
  ERROR subprocess encountered error code 1
  make: *** [test] Error 1

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

Revision history for this message
Ryan Beisner (1chb1n) wrote :

FYI I triggered another run of the amulet test to confirm failure.

review: Needs Fixing
83. By Seyeong Kim

edit some conf order

84. By Seyeong Kim

reduce timeout to default

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

charm_unit_test #1408 swift-proxy-next for xtrusia mp247835
    UNIT OK: passed

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

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

charm_lint_check #1455 swift-proxy-next for xtrusia mp247835
    LINT OK: passed

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

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

charm_amulet_test #1573 swift-proxy-next for xtrusia mp247835
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
  ERROR subprocess encountered error code 1
  make: *** [test] Error 1

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

85. By Seyeong Kim

modify amulet config test

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

charm_lint_check #1457 swift-proxy-next for xtrusia mp247835
    LINT OK: passed

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

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

charm_unit_test #1410 swift-proxy-next for xtrusia mp247835
    UNIT OK: passed

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

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

charm_amulet_test #1575 swift-proxy-next for xtrusia mp247835
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
  ERROR subprocess encountered error code 1
  make: *** [test] Error 1

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

86. By Seyeong Kim

fix amulet test

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

charm_lint_check #1458 swift-proxy-next for xtrusia mp247835
    LINT OK: passed

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

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

charm_unit_test #1411 swift-proxy-next for xtrusia mp247835
    UNIT OK: passed

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

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

charm_amulet_test #1576 swift-proxy-next for xtrusia mp247835
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/1576/

Revision history for this message
Edward Hope-Morley (hopem) wrote :

Seyeong thanks a lot for adding this in it is very much needed indeed. I would like to deploy it before giving a +1 and will endeavour to do so asap. Thanks.

Revision history for this message
Edward Hope-Morley (hopem) wrote :

Ok finally tested this out and it seems to work well. There a few things that should be cleaned up though (see inline).

review: Needs Fixing
87. By Seyeong Kim

fix some issues

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

charm_lint_check #1825 swift-proxy-next for xtrusia mp247835
    LINT FAIL: lint-test failed
    LINT FAIL: charm-proof failed

LINT Results (max last 2 lines):
  W: config.yaml: option keystone-admin-password does not have the keys: default
  make: *** [lint] Error 100

Full lint test output: http://paste.ubuntu.com/10135958/
Build: http://10.245.162.77:8080/job/charm_lint_check/1825/

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

charm_unit_test #1653 swift-proxy-next for xtrusia mp247835
    UNIT OK: passed

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

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

charm_amulet_test #1844 swift-proxy-next for xtrusia mp247835
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/1844/

88. By Seyeong Kim

remove amulet test < icehouse part

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

charm_unit_test #1660 swift-proxy-next for xtrusia mp247835
    UNIT OK: passed

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

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

charm_lint_check #1832 swift-proxy-next for xtrusia mp247835
    LINT FAIL: lint-test failed
    LINT FAIL: charm-proof failed

LINT Results (max last 2 lines):
  W: config.yaml: option keystone-admin-password does not have the keys: default
  make: *** [lint] Error 100

Full lint test output: http://paste.ubuntu.com/10156942/
Build: http://10.245.162.77:8080/job/charm_lint_check/1832/

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

charm_amulet_test #1851 swift-proxy-next for xtrusia mp247835
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/1851/

89. By Seyeong Kim

charmhelpers sync

90. By Seyeong Kim

combine 4 configurations to debug

91. By Seyeong Kim

fix conflicts

92. By Seyeong Kim

fix debug type

93. By Seyeong Kim

fix mistake on basic_deployment.py

94. By Seyeong Kim

amulet test

95. By Seyeong Kim

fix config.yaml

96. By Seyeong Kim

test

97. By Seyeong Kim

fix some amulet test

98. By Seyeong Kim

fix some amulet test

99. By Seyeong Kim

default things to template, more option on if branch

100. By Seyeong Kim

remove test timeout

Unmerged revisions

100. By Seyeong Kim

remove test timeout

99. By Seyeong Kim

default things to template, more option on if branch

98. By Seyeong Kim

fix some amulet test

97. By Seyeong Kim

fix some amulet test

96. By Seyeong Kim

test

95. By Seyeong Kim

fix config.yaml

94. By Seyeong Kim

amulet test

93. By Seyeong Kim

fix mistake on basic_deployment.py

92. By Seyeong Kim

fix debug type

91. By Seyeong Kim

fix conflicts

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-01-09 10:36:01 +0000
3+++ config.yaml 2015-02-10 10:45:35 +0000
4@@ -114,6 +114,29 @@
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+ log-name:
10+ default: swift
11+ type: string
12+ description: Label used when logging. The default is swift.
13+ log-facility:
14+ default: LOG_LOCAL0
15+ type: string
16+ description: Syslog log facility. The default is LOG_LOCAL0.
17+ log-level:
18+ default: INFO
19+ type: string
20+ description: Logging level. The default is INFO.
21+ log-headers:
22+ default: false
23+ type: boolean
24+ description: |
25+ Enables the ability to log request headers.
26+ The default is False.
27+ log-address:
28+ default: /dev/log
29+ type: string
30+ description: Logging address. The default is /dev/log.
31 # Manual Keystone configuration.
32 keystone-auth-host:
33 type: string
34
35=== modified file 'hooks/swift_context.py'
36--- hooks/swift_context.py 2014-12-19 10:29:32 +0000
37+++ hooks/swift_context.py 2015-02-10 10:45:35 +0000
38@@ -99,6 +99,11 @@
39 'delay_auth_decision': config('delay-auth-decision'),
40 'node_timeout': config('node-timeout'),
41 'recoverable_node_timeout': config('recoverable-node-timeout'),
42+ 'log_name': config('log-name'),
43+ 'log_facility': config('log-facility'),
44+ 'log_level': config('log-level'),
45+ 'log_headers': config('log-headers'),
46+ 'log_address': config('log-address')
47 }
48
49 ctxt['ssl'] = False
50
51=== modified file 'templates/icehouse/proxy-server.conf'
52--- templates/icehouse/proxy-server.conf 2014-09-25 06:20:53 +0000
53+++ templates/icehouse/proxy-server.conf 2015-02-10 10:45:35 +0000
54@@ -3,6 +3,11 @@
55 workers = {{ workers }}
56 user = swift
57 bind_ip = {{ bind_host }}
58+log_name = {{ log_name }}
59+log_facility = {{ log_facility }}
60+log_level = {{ log_level }}
61+log_headers = {{ log_headers }}
62+log_address = {{ log_address }}
63 {% if ssl %}
64 cert_file = {{ ssl_cert }}
65 key_file = {{ ssl_key }}
66@@ -10,10 +15,10 @@
67
68 {% if auth_type == 'keystone' %}
69 [pipeline:main]
70-pipeline = gatekeeper healthcheck cache swift3 s3token container_sync bulk tempurl slo dlo formpost authtoken keystoneauth staticweb container-quotas account-quotas proxy-server
71+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
72 {% else %}
73 [pipeline:main]
74-pipeline = gatekeeper healthcheck cache container_sync bulk tempurl slo dlo formpost tempauth staticweb container-quotas account-quotas proxy-server
75+pipeline = gatekeeper healthcheck proxy-logging cache container_sync bulk tempurl slo dlo formpost tempauth staticweb container-quotas account-quotas proxy-logging proxy-server
76 {% endif %}
77
78 [app:proxy-server]
79@@ -40,6 +45,9 @@
80 [filter:container-quotas]
81 use = egg:swift#container_quotas
82
83+[filter:proxy-logging]
84+use = egg:swift#proxy_logging
85+
86 [filter:staticweb]
87 use = egg:swift#staticweb
88
89
90=== modified file 'tests/basic_deployment.py'
91--- tests/basic_deployment.py 2015-01-05 13:43:32 +0000
92+++ tests/basic_deployment.py 2015-02-10 10:45:35 +0000
93@@ -370,13 +370,19 @@
94 'DEFAULT': {
95 'bind_port': '8070',
96 'workers': '0',
97- 'user': 'swift'
98+ 'user': 'swift',
99+ 'log_name': 'swift',
100+ 'log_facility': 'LOG_LOCAL0',
101+ 'log_level': 'INFO',
102+ 'log_headers': 'False',
103+ 'log_address': '/dev/log'
104 },
105 'pipeline:main': {
106- 'pipeline': 'gatekeeper healthcheck cache swift3 s3token '
107- 'container_sync bulk tempurl slo dlo formpost '
108- 'authtoken keystoneauth staticweb '
109- 'container-quotas account-quotas proxy-server'
110+ 'pipeline': 'gatekeeper healthcheck proxy-logging cache swift3 '
111+ 's3token container_sync bulk tempurl slo dlo '
112+ 'formpost authtoken keystoneauth staticweb '
113+ 'container-quotas account-quotas proxy-logging '
114+ 'proxy-server'
115 },
116 'app:proxy-server': {
117 'use': 'egg:swift#proxy',
118@@ -397,6 +403,7 @@
119 },
120 'filter:account-quotas': {'use': 'egg:swift#account_quotas'},
121 'filter:container-quotas': {'use': 'egg:swift#container_quotas'},
122+ 'filter:proxy-logging': {'use': 'egg:swift#proxy_logging'},
123 'filter:staticweb': {'use': 'egg:swift#staticweb'},
124 'filter:bulk': {'use': 'egg:swift#bulk'},
125 'filter:slo': {'use': 'egg:swift#slo'},

Subscribers

People subscribed via source and target branches