need relation webcontainer

Bug #1538715 reported by Philip Brown
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomcat (Juju Charms Collection)
Fix Released
Undecided
Kevin W Monroe

Bug Description

For best use, this should provide relation: webcontainer.

the code in "precise" has been changed to offer a good relation, codewise, but it uses langauge in reverse. It claims to
provide: webapp.

This is backwards.
Tomcat is a webcontainer, that uses (ie: requires) webapps.
So either the direction for the relation webapp should be reversed, or it should be kept as-is, but renamed webcontainer

Revision history for this message
Matt Bruzek (mbruzek) wrote :

Thank you for pointing out this problem. This issue was discussed at length on #juju

A merge proposal has been created to address the issues you had with the precise charm:

https://code.launchpad.net/~mbruzek/charms/precise/tomcat/trunk/+merge/284188

A merge proposal has been created to add the metadata to the trusty charm:

https://code.launchpad.net/~mbruzek/charms/trusty/tomcat/trunk/+merge/284189

Changed in tomcat (Juju Charms Collection):
assignee: nobody → Matt Bruzek (mbruzek)
Matt Bruzek (mbruzek)
Changed in tomcat (Juju Charms Collection):
status: New → Fix Committed
Revision history for this message
Kevin W Monroe (kwmonroe) wrote :

Both precise and trusty charms have been merged. Thanks for the bug report and fix! Refreshed charms should be available from the store within an hour.

Changed in tomcat (Juju Charms Collection):
status: Fix Committed → Fix Released
Revision history for this message
Philip Brown (bolthole) wrote :

I heard a rumor the code was tested.. but it was not.
The code is broken :(

Attempts to deploy yield this:
unit.tomcat/0.webapp-container-relation-joined logger.go:40 error: expected "key=value", got "webapp-path"

culprit:

webapp-container-relation-joined
relation-set webapp-path /var/lib/$VERSION/webapps

should have an '='

Revision history for this message
Philip Brown (bolthole) wrote :
Philip Brown (bolthole)
Changed in tomcat (Juju Charms Collection):
status: Fix Released → In Progress
Revision history for this message
Matt Bruzek (mbruzek) wrote :

We currently do not have a webapp that consumes this relationship. When you are ready submit your code as a merge proposal and it will be reviewed in the queue.

Revision history for this message
Philip Brown (bolthole) wrote :

I'm confused which code you are suggesting I submit as a merge proposal.

But anyways, just for the record, the charm that now uses this relationship is officially at

lp:~bolthole/charms/trusty/tomcat-webapp/trunk

Revision history for this message
Kevin W Monroe (kwmonroe) wrote :

Hey Philip, your tomcat-webapp charm will be the first to use this relation (which is part of the reason it wasn't caught on the first push). Thanks for identifying and pointing to the fix so quickly! MPs for this fix:

Precise:
https://code.launchpad.net/~bolthole/charms/precise/tomcat/trunk/+merge/284373

Trusty:
https://code.launchpad.net/~bolthole/charms/trusty/tomcat/trunk/+merge/284213

Both have been merged and updated charms should hit the store in about an hour. Marking this Fix Released.

Changed in tomcat (Juju Charms Collection):
assignee: Matt Bruzek (mbruzek) → Kevin W Monroe (kwmonroe)
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.