New charm: chamilo
Bug #1315593 reported by
José Antonio Rey
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charms Collection |
Fix Released
|
Undecided
|
José Antonio Rey |
Bug Description
Here is the submission of a Chamilo charm.
Chamilo is an e-learning and content management platform.
Tests are on the way for it, but not on the initial charm. Still need to make my way through them ;)
Related branches
Changed in charms: | |
status: | New → Incomplete |
Changed in charms: | |
status: | Incomplete → New |
To post a comment you must log in.
Greetings José,
Thank you for submitting the Chamilo charm! What an interesting application it will be a great addition to the Juju charm store.
You are well known to have charm proof with no warnings or errors. Once again you have achieved victory over the charm proof tool! Great job.
The README is in Markdown and looks great when it is converted. The content is clear and I was able to use it to deploy Chamilo successfully.
hooks/install
The code in here is clean and easy to follow. As you know it is charm store policy to verify the software that you download, your juju-log statement claims to verify the download but I do not see the sha1sum verification of the downloaded tar file. You will need to fix this before this charm is accepted in the charm store.
Also I see that you change the permissions to 777 on some of the files in /var/www. I think a better and more secure way is to change the owner of these files to www-data and www-data as the group. This can be done by running the following command: chown -R www-data:www-data /var/www/
hooks/config- changed
The README indicates the version is locked at 1.9.6. The version configuration option is never read in the config-changed file. If the option is not used please remove it from config.yaml.
If the configuration changes either by a config-changed event or a db-relation-changed event, would a restart of the server be in order? Looking at this code I do not see how the apache server can be restarted once it is started. See my comment about hooks/stop.
hooks/stop
This hooks look good, but stop never removes the .started file. This may be a problem if you need to restart the service.
hooks/db- relation- changed
I removed the database relation and chamilo had a user friendly error message: “Database is unavailable”. That is excellent! However when I added the relation back in I was unable to use chamilo after that. Something in the logic must need to tell chamilo that the database is back.
Over all I thought this was a very good charm, the code was easy to read and it was well done. Thank you so much for your submission!
Based on the cryptographic verification being policy I have moved this bug to Incomplete. Once you've addressed the issues above either with code changes or comments, and wish to have another review, simply move the bug back to either "New" or "Fix Committed" to have it added back to the review queue.
If you have any questions or comments about the review contact mbruzek in IRC. You can find the rest of the team in #juju on irc.freenode.net or email the mailing list <email address hidden>