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
=== modified file 'README'
--- README 2015-03-25 04:36:21 +0000
+++ README 2015-05-27 17:55:36 +0000
@@ -1,7 +1,7 @@
1Overview1Overview
2--------2--------
33
4This charm install core-image-tester service.4This charm install snappy-proposed-image-tester service.
55
6Configuration6Configuration
7-------------7-------------
@@ -9,8 +9,8 @@
9There is only one config option for this charm:9There is only one config option for this charm:
1010
11 * config-file: A base64 encoded string with the config file to use for11 * config-file: A base64 encoded string with the config file to use for
12 core-image-tester.12 snappy-proposed-image-tester.
1313
14The charm expects the payload code to be provided as 14The charm expects the payload code to be provided as
15files/core-image-tester.tgz (a snapshot of lp:core-image-tester) along15files/snappy-proposed-image-tester.tgz (a snapshot of lp:snappy-proposed-image-tester) along
16with its corresponding files/pip-cache directory (python dependencies). 16with its corresponding files/pip-cache directory (python dependencies).
1717
=== modified file 'config.yaml'
--- config.yaml 2015-03-25 04:36:21 +0000
+++ config.yaml 2015-05-27 17:55:36 +0000
@@ -7,5 +7,5 @@
7 config-file:7 config-file:
8 type: string8 type: string
9 description: |9 description: |
10 base64 encoded string with the config file for core-image-tester10 base64 encoded string with the config file for snappy-proposed-image-tester
1111
1212
=== modified file 'hooks/actions.py'
--- hooks/actions.py 2015-04-28 02:09:37 +0000
+++ hooks/actions.py 2015-05-27 17:55:36 +0000
@@ -8,8 +8,8 @@
8from charmhelpers.core.host import adduser8from charmhelpers.core.host import adduser
9from charmhelpers.payload import (archive, execd)9from charmhelpers.payload import (archive, execd)
1010
11SERVICE_NAME = 'core-image-tester'11SERVICE_NAME = 'snappy-proposed-image-tester'
12SERVICE_CONFIGNAME = 'core-service.conf'12SERVICE_CONFIGNAME = 'snappy-proposed-service.conf'
13REQUIRED_PACKAGES = [13REQUIRED_PACKAGES = [
14 'autopkgtest', 'bzr', 'python-novaclient', 'python-virtualenv',14 'autopkgtest', 'bzr', 'python-novaclient', 'python-virtualenv',
15 'python3-dev', 'gcc',15 'python3-dev', 'gcc',
1616
=== modified file 'hooks/services.py'
--- hooks/services.py 2015-04-28 02:09:37 +0000
+++ hooks/services.py 2015-05-27 17:55:36 +0000
@@ -11,7 +11,7 @@
11 config = hookenv.config()11 config = hookenv.config()
12 manager = ServiceManager([12 manager = ServiceManager([
13 {13 {
14 'service': 'core-image-tester',14 'service': 'snappy-proposed-image-tester',
15 'required_data': [config],15 'required_data': [config],
16 'data_ready': [16 'data_ready': [
17 actions.basenode,17 actions.basenode,
@@ -22,7 +22,7 @@
22 actions.create_user,22 actions.create_user,
23 helpers.render_template(23 helpers.render_template(
24 source='upstart.conf',24 source='upstart.conf',
25 target='/etc/init/core-image-tester.conf'),25 target='/etc/init/snappy-proposed-image-tester.conf'),
26 actions.log_start,26 actions.log_start,
27 ],27 ],
28 },28 },
2929
=== modified file 'metadata.yaml'
--- metadata.yaml 2015-03-25 04:36:21 +0000
+++ metadata.yaml 2015-05-27 17:55:36 +0000
@@ -1,8 +1,8 @@
1name: core-image-tester1name: snappy-proposed-image-tester
2summary: |2summary: |
3 Deploy a service to test new ubuntucore images receiving requests via3 Deploy a service to test new ubuntucore images receiving requests via
4 rabbit queues.4 rabbit queues.
5maintainer: Canonical CI Engineering <canonical-ci-engineering@lists.launchpad.net>5maintainer: Canonical CI Engineering <canonical-ci-engineering@lists.launchpad.net>
6description: |6description: |
7 Runs core-image-tester service from a given service tarball (provided as7 Runs snappy-proposed-image-tester service from a given service tarball (provided as
8 files/core-image-tester.tgz).8 files/snappy-proposed-image-tester.tgz).
99
=== modified file 'templates/upstart.conf'
--- templates/upstart.conf 2015-03-25 04:36:21 +0000
+++ templates/upstart.conf 2015-05-27 17:55:36 +0000
@@ -1,4 +1,4 @@
1description "Starts a core-image-tester process"1description "Starts a snappy-proposed-image-tester process"
22
3start on (local-filesystems and net-device-up IFACE=eth0)3start on (local-filesystems and net-device-up IFACE=eth0)
4stop on runlevel [!12345]4stop on runlevel [!12345]
@@ -11,13 +11,13 @@
11# unless it fails 15 times within 5 seconds11# unless it fails 15 times within 5 seconds
12respawn limit 15 512respawn limit 15 5
1313
14env SERVICE_DIR=/srv/{{ environment }}/core-image-tester14env SERVICE_DIR=/srv/{{ environment }}/snappy-proposed-image-tester
15env SERVICE_USER=core-worker15env SERVICE_USER=core-worker
1616
17script17script
1818
19 install -d -o ${SERVICE_USER} ${SERVICE_DIR}/logs19 install -d -o ${SERVICE_USER} ${SERVICE_DIR}/logs
20 chdir ${SERVICE_DIR}20 chdir ${SERVICE_DIR}
21 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"21 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"
2222
23end script23end script

Subscribers

People subscribed via source and target branches