Moving bundleservice charm to reactive #2

Merged
merged 10 commits into from Sep 7, 2016

Conversation

Projects
None yet
4 participants
Member

makyo commented Aug 29, 2016

No description provided.

Member

jujugui commented Aug 29, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm/7/
Test FAILed.

Member

jujugui commented Aug 29, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm-merge/8/
Test FAILed.

- default: 8084
- description: This is the tcp port on which the bundleservices server will listen for connections.
+ default: 8000
+ description: (READ ONLY) This is the tcp port on which the bundleservices server will listen for connections.
@makyo

makyo Aug 29, 2016

Member

bundleservice doesn't yet know how to accept a port/config yaml, but may in the future.

layer.yaml
@@ -0,0 +1,6 @@
+includes: ['layer:basic', 'layer:apt', 'layer:nagios', 'interface:nrpe-external-master']
+repo: git+ssh://git@github.com:makyo/bundleservice-charm-reactive.git
@hatched

hatched Aug 29, 2016

Owner

Incorrect repo :)

Owner

hatched commented Aug 29, 2016

This is awesome thanks for sticking with this @makyo

If I could make a couple suggestions. In a follow-up we should add some tests for the nrpe relation and the config changed hook. Also the readme is a little out of date now so in a follow-up it could use some work.

👍 with the trivial comment fixed

Member

jujugui commented Aug 29, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm/8/
Test FAILed.

Member

jujugui commented Aug 29, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm-merge/9/
Test FAILed.

@@ -1,4 +1,7 @@
name: bundleservice
+series:
+ - trusty
+ - xenial
summary: provide bundle information
maintainer: Juju GUI Team <juju-gui@lists.launchpad.net>
description: Juju Bundle Service provides information about bundles.
@bac

bac Aug 29, 2016

Collaborator

This could be beefed up. What kind of information and to who for what purposes?

+
+sudo add-apt-repository ppa:juju/stable -y
+sudo apt-get update
+sudo apt-get install amulet python-requests -y
@bac

bac Aug 29, 2016

Collaborator

Are these two test files mainly boilerplate? They are inconsistent.

10-deploy has python3 on the shebang. 00-setup installs python-requests not python3-requests, which I just verified is required for trusty.

+
+ def test_service(self):
+ # test we can access over http
+ page = requests.get('http://{}'.format(self.unit.info['public-address']))
@bac

bac Aug 29, 2016

Collaborator

Is port 8000 part of 'public-address'? Where does it come from? It would be a better test to see it responding on port 8000 since that is what is hard-coded in the charm.

Collaborator

bac commented Aug 29, 2016

Great start to the layered charm @makyo. It'll be great if we get it all nailed down and it becomes a pattern for our other charms for go-based services.

Collaborator

bac commented Aug 29, 2016

The README is out of date. It includes

 juju set-config bundleservice listen-port=8000

which the charm does not currently support.

Collaborator

bac commented Aug 31, 2016

QA bad at the moment, pending resolution of the issue where the nrpe charm is only available for precise. Any insight appreciated.

@bac bac removed the +1 label Aug 31, 2016

Member

jujugui commented Sep 5, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm/9/
Test FAILed.

Member

jujugui commented Sep 5, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm-merge/10/
Test FAILed.

Member

jujugui commented Sep 5, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm/10/
Test FAILed.

Member

jujugui commented Sep 5, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm-merge/11/
Test FAILed.

Member

jujugui commented Sep 5, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm/11/
Test FAILed.

Member

jujugui commented Sep 5, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm-merge/12/
Test FAILed.

Makefile
+
+# Since having a Makefile in the layer means that the Makefile that would wind
+# up in the built charm gets overwritten, the generated Makefile is included
+# here so that the targets remain.
@bac

bac Sep 5, 2016

Collaborator

Please put in a link to the issue on github you filed.

+
+@when('config.changed')
+def config_changed():
+ restart()
@bac

bac Sep 5, 2016

Collaborator

I know you have a READ-ONLY caveat about listen-port, but when changing the port is supported I think here you should remove_state('bundleservice-charm.nrpe-check-added') to free up setup_nagios to run again.

Collaborator

bac commented Sep 5, 2016

Once you sort out the CI issues I think this initial version is ready to land. 👍 Thanks for the perseverance.

Member

jujugui commented Sep 7, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm/12/
Test FAILed.

Member

jujugui commented Sep 7, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm-merge/13/
Test FAILed.

Member

jujugui commented Sep 7, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm-merge/14/
Test FAILed.

Member

jujugui commented Sep 7, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm/17/
Test FAILed.

Member

jujugui commented Sep 7, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm-merge/15/
Test FAILed.

Member

jujugui commented Sep 7, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm/19/
Test FAILed.

Member

jujugui commented Sep 7, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm-merge/16/
Test FAILed.

Member

jujugui commented Sep 7, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm/20/
Test FAILed.

Member

jujugui commented Sep 7, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm-merge/17/
Test FAILed.

Member

jujugui commented Sep 7, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/bundleservice-charm/21/
Test FAILed.

Member

makyo commented Sep 7, 2016

BGB here we go

@makyo makyo merged commit be4173a into juju:master Sep 7, 2016

1 check failed

default Merged build finished.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment