Merge lp:~psivaa/charms/trusty/snappy-proposed-image-tester/renames-subs into lp:~canonical-ci-engineering/charms/trusty/snappy-proposed-image-tester/trunk

Proposed by Para Siva
Status: Needs review
Proposed branch: lp:~psivaa/charms/trusty/snappy-proposed-image-tester/renames-subs
Merge into: lp:~canonical-ci-engineering/charms/trusty/snappy-proposed-image-tester/trunk
Diff against target: 113 lines (+14/-14)
6 files modified
README (+3/-3)
config.yaml (+1/-1)
hooks/actions.py (+2/-2)
hooks/services.py (+2/-2)
metadata.yaml (+3/-3)
templates/upstart.conf (+3/-3)
To merge this branch: bzr merge lp:~psivaa/charms/trusty/snappy-proposed-image-tester/renames-subs
Reviewer Review Type Date Requested Status
Francis Ginther Disapprove
Celso Providelo (community) Approve
Review via email: mp+260352@code.launchpad.net

Commit message

Changing names of the service and the upstart job

Description of the change

Changing names of the service and the upstart job. The upstart job is now using snappy-proposed-image-tester.py assuming the content of lp:snappy-proposed-image-tester will reflect the branch name.

To post a comment you must log in.
8. By Para Siva

Formatting

Revision history for this message
Celso Providelo (cprov) wrote :

Psivaa, thank you, it looks correct.

review: Approve
Revision history for this message
Francis Ginther (fginther) wrote :

This is identical to https://code.launchpad.net/~fginther/charms/trusty/snappy-proposed-image-tester/renames/+merge/260324 which has already landed except for some whitespace differences. I don't see any reason to also attempt to merge this. Apologies for not making the other MP obvious.

review: Disapprove

Unmerged revisions

8. By Para Siva

Formatting

7. By Para Siva

Renaming and substituting core-image-tester to snappy-proposed-image-tester

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README'
2--- README 2015-03-25 04:36:21 +0000
3+++ README 2015-05-27 17:55:36 +0000
4@@ -1,7 +1,7 @@
5 Overview
6 --------
7
8-This charm install core-image-tester service.
9+This charm install snappy-proposed-image-tester service.
10
11 Configuration
12 -------------
13@@ -9,8 +9,8 @@
14 There is only one config option for this charm:
15
16 * config-file: A base64 encoded string with the config file to use for
17- core-image-tester.
18+ snappy-proposed-image-tester.
19
20 The charm expects the payload code to be provided as
21-files/core-image-tester.tgz (a snapshot of lp:core-image-tester) along
22+files/snappy-proposed-image-tester.tgz (a snapshot of lp:snappy-proposed-image-tester) along
23 with its corresponding files/pip-cache directory (python dependencies).
24
25=== modified file 'config.yaml'
26--- config.yaml 2015-03-25 04:36:21 +0000
27+++ config.yaml 2015-05-27 17:55:36 +0000
28@@ -7,5 +7,5 @@
29 config-file:
30 type: string
31 description: |
32- base64 encoded string with the config file for core-image-tester
33+ base64 encoded string with the config file for snappy-proposed-image-tester
34
35
36=== modified file 'hooks/actions.py'
37--- hooks/actions.py 2015-04-28 02:09:37 +0000
38+++ hooks/actions.py 2015-05-27 17:55:36 +0000
39@@ -8,8 +8,8 @@
40 from charmhelpers.core.host import adduser
41 from charmhelpers.payload import (archive, execd)
42
43-SERVICE_NAME = 'core-image-tester'
44-SERVICE_CONFIGNAME = 'core-service.conf'
45+SERVICE_NAME = 'snappy-proposed-image-tester'
46+SERVICE_CONFIGNAME = 'snappy-proposed-service.conf'
47 REQUIRED_PACKAGES = [
48 'autopkgtest', 'bzr', 'python-novaclient', 'python-virtualenv',
49 'python3-dev', 'gcc',
50
51=== modified file 'hooks/services.py'
52--- hooks/services.py 2015-04-28 02:09:37 +0000
53+++ hooks/services.py 2015-05-27 17:55:36 +0000
54@@ -11,7 +11,7 @@
55 config = hookenv.config()
56 manager = ServiceManager([
57 {
58- 'service': 'core-image-tester',
59+ 'service': 'snappy-proposed-image-tester',
60 'required_data': [config],
61 'data_ready': [
62 actions.basenode,
63@@ -22,7 +22,7 @@
64 actions.create_user,
65 helpers.render_template(
66 source='upstart.conf',
67- target='/etc/init/core-image-tester.conf'),
68+ target='/etc/init/snappy-proposed-image-tester.conf'),
69 actions.log_start,
70 ],
71 },
72
73=== modified file 'metadata.yaml'
74--- metadata.yaml 2015-03-25 04:36:21 +0000
75+++ metadata.yaml 2015-05-27 17:55:36 +0000
76@@ -1,8 +1,8 @@
77-name: core-image-tester
78+name: snappy-proposed-image-tester
79 summary: |
80 Deploy a service to test new ubuntucore images receiving requests via
81 rabbit queues.
82 maintainer: Canonical CI Engineering <canonical-ci-engineering@lists.launchpad.net>
83 description: |
84- Runs core-image-tester service from a given service tarball (provided as
85- files/core-image-tester.tgz).
86+ Runs snappy-proposed-image-tester service from a given service tarball (provided as
87+ files/snappy-proposed-image-tester.tgz).
88
89=== modified file 'templates/upstart.conf'
90--- templates/upstart.conf 2015-03-25 04:36:21 +0000
91+++ templates/upstart.conf 2015-05-27 17:55:36 +0000
92@@ -1,4 +1,4 @@
93-description "Starts a core-image-tester process"
94+description "Starts a snappy-proposed-image-tester process"
95
96 start on (local-filesystems and net-device-up IFACE=eth0)
97 stop on runlevel [!12345]
98@@ -11,13 +11,13 @@
99 # unless it fails 15 times within 5 seconds
100 respawn limit 15 5
101
102-env SERVICE_DIR=/srv/{{ environment }}/core-image-tester
103+env SERVICE_DIR=/srv/{{ environment }}/snappy-proposed-image-tester
104 env SERVICE_USER=core-worker
105
106 script
107
108 install -d -o ${SERVICE_USER} ${SERVICE_DIR}/logs
109 chdir ${SERVICE_DIR}
110- exec sudo -u ${SERVICE_USER} sh -c "./ve/bin/python3 core-image-tester.py -c ${SERVICE_DIR}/core-service.conf >> logs/core-image-tester.log 2>&1"
111+ exec sudo -u ${SERVICE_USER} sh -c "./ve/bin/python3 snappy-proposed-image-tester.py -c ${SERVICE_DIR}/core-service.conf >> logs/snappy-proposed-image-tester.log 2>&1"
112
113 end script

Subscribers

People subscribed via source and target branches