Mobicents RestComm Juju Charm

Bug #1473509 reported by Jean Deruelle
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juju Charms Collection
In Progress
Undecided
Unassigned

Bug Description

please find the source code at https://github.com/Mobicents/juju-charms

Revision history for this message
Jean Deruelle (jean-deruelle) wrote :

Any news on this ?

Revision history for this message
Jean Deruelle (jean-deruelle) wrote :
Revision history for this message
Kevin W Monroe (kwmonroe) wrote :
Download full text (5.6 KiB)

Hi Jean, thanks so much for the submission! I didn't know much about Mobicents prior to this review, but it seems like an interesting multimedia/communication platform. It would be a very welcomed addition to the charm store!

I am a bit confused as there seems to be 2 charms for mobicents, one is mobicents-restcomm (by thomnico), and the other is mobicents-restcomm-charm (by you). The source is almost identical, but I wanted to confirm that your charm is the one that we should be reviewing.

Assuming yours is the right charm, I'm happy to say that 'charm proof' completed without issue and your icon.svg looks good. However, I did find a few issues that we'd like to see polished prior to recommending this for the charm store:

+ Superflous files
The 'revision' file is obsolete and can be removed from your charm source without causing any problems. I also found the following .bak and ~ files that can be removed (i'm guessing these backup files snuck into your repo with 'bzr add'):

│   ├── mediaserver-relation-joined.bak
│   ├── restcomm-relation-changed.bak
│   ├── restcomm-relation-joined.bak
├── metadata.yaml~
├── revision~

+ README.md
As mentioned earlier, I wasn't familiar with Mobicents prior to this review. It would help to add an Introduction section that summarizes what Mobicents does and what users can expect after deploying this charm. Adding a Resources section that links to the mobicents.org site and other references (bug trackers, mailing lists, docs, etc) is also recommended to help users like myself become familiar with this offering.

The deployment instructions for this charm require a local copy to be present. You can deploy directly from your namespace in the charm store, which would eliminate that requirement. In the README, I suggest changing this:

    juju deploy -u --repository=../../ local:trusty/mobicents-restcomm

to this:

    juju deploy cs:~jean-deruelle/trusty/mobicents-restcomm-charm

You have quite a few relations to this charm, which is great! Part of the power of Juju comes from the ability to relate services to one another. You show how to use the database relation in the README, but not the cscf, clearwater-ellis, or load-balancer relations. I'm unclear on how/when I would use those, so a more detailed Deployment section talking about these relations would help.

In the Test section, you list 2 URLs to try, yet they are identical. Is there a different port/path to try besides :8080/restcomm-management?

+ Hooks
- The 'clearwater-ellis-relation-changed' hooks is mostly commented out. Is that intentional? I noticed other hooks (e.g. cscf-relation-changed) stop and start the service. I am curious if a similar restart needs to happen on a clearwater relation change.

- The 'database-relation-changed' hook logs the database connection information. I would at least remove the password in case juju logs are shared with people that should not know this info:

    juju-log "user $user password $password host $host database $database"

- I suggest creating a 'database-relation-departed' hook that removes the mysql db in case the relation to mysql is ever removed. This will help anyone maintaining...

Read more...

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

Moving to In Progress for now. Jean, please set this bug status back to "New" or "Fix Committed" when you're ready for additional feedback/review. Thank you!

Changed in charms:
status: New → In Progress
Revision history for this message
Jean Deruelle (jean-deruelle) wrote :

Thanks Kevin. I started to make modifications based on your comments. It may take a while for me to go through everything. I'll ping you back when I'm done. Thanks again for your valuable feedback.

Revision history for this message
Artur Tyloch (artur-tyloch) wrote :

Kevin
yes, we should review Jean's mobicents-restcomm-charm as it contains latest and greatest version of restcomm from restcomm developers.

Revision history for this message
Nicolas Thomas (thomnico) wrote : Re: [Bug 1473509] Re: Mobicents RestComm Juju Charm
Download full text (6.8 KiB)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I do confirm that the thmonico branch has been used only for demos
(pre-CPP time) .. please move forward with Jean submission..

Should I destroy mine to avoid confusion ??

On 20/08/2015 20:48, Kevin W Monroe wrote:
> Hi Jean, thanks so much for the submission! I didn't know much
> about Mobicents prior to this review, but it seems like an
> interesting multimedia/communication platform. It would be a very
> welcomed addition to the charm store!
>
> I am a bit confused as there seems to be 2 charms for mobicents,
> one is mobicents-restcomm (by thomnico), and the other is
> mobicents-restcomm- charm (by you). The source is almost
> identical, but I wanted to confirm that your charm is the one that
> we should be reviewing.
>
> Assuming yours is the right charm, I'm happy to say that 'charm
> proof' completed without issue and your icon.svg looks good.
> However, I did find a few issues that we'd like to see polished
> prior to recommending this for the charm store:
>
>
> + Superflous files The 'revision' file is obsolete and can be
> removed from your charm source without causing any problems. I
> also found the following .bak and ~ files that can be removed (i'm
> guessing these backup files snuck into your repo with 'bzr add'):
>
> │ ├── mediaserver-relation-joined.bak │ ├──
> restcomm-relation-changed.bak │ ├── restcomm-relation-joined.bak
> ├── metadata.yaml~ ├── revision~
>
>
> + README.md As mentioned earlier, I wasn't familiar with Mobicents
> prior to this review. It would help to add an Introduction section
> that summarizes what Mobicents does and what users can expect after
> deploying this charm. Adding a Resources section that links to the
> mobicents.org site and other references (bug trackers, mailing
> lists, docs, etc) is also recommended to help users like myself
> become familiar with this offering.
>
> The deployment instructions for this charm require a local copy to
> be present. You can deploy directly from your namespace in the
> charm store, which would eliminate that requirement. In the
> README, I suggest changing this:
>
> juju deploy -u --repository=../../ local:trusty/mobicents-restcomm
>
> to this:
>
> juju deploy cs:~jean-deruelle/trusty/mobicents-restcomm-charm
>
> You have quite a few relations to this charm, which is great! Part
> of the power of Juju comes from the ability to relate services to
> one another. You show how to use the database relation in the
> README, but not the cscf, clearwater-ellis, or load-balancer
> relations. I'm unclear on how/when I would use those, so a more
> detailed Deployment section talking about these relations would
> help.
>
> In the Test section, you list 2 URLs to try, yet they are
> identical. Is there a different port/path to try besides
> :8080/restcomm-management?
>
>
> + Hooks - The 'clearwater-ellis-relation-changed' hooks is mostly
> commented out. Is that intentional? I noticed other hooks (e.g.
> cscf-relation-changed) stop and start the service. I am curious if
> a similar restart needs to happen on a clearwater relation change.
>
> - The 'database-relation-changed' hook logs th...

Read more...

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.