Merge lp:~celebdor/charms/precise/cassandra/hostname_resolve into lp:charms/cassandra
Proposed by
Antoni Segura Puimedon
on 2015-04-22
| Status: | Merged |
|---|---|
| Approved by: | Matt Bruzek on 2015-07-22 |
| Approved revision: | 42 |
| Merged at revision: | 39 |
| Proposed branch: | lp:~celebdor/charms/precise/cassandra/hostname_resolve |
| Merge into: | lp:charms/cassandra |
| Diff against target: |
64 lines (+22/-1) 2 files modified
config.yaml (+5/-0) hooks/cassandra-common (+17/-1) |
| To merge this branch: | bzr merge lp:~celebdor/charms/precise/cassandra/hostname_resolve |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Matt Bruzek (community) | 2015-07-07 | Approve on 2015-07-22 | |
| Charles Butler | 2015-04-22 | Pending | |
|
Review via email:
|
|||
Description of the Change
see commit msg.
To post a comment you must log in.
| Matt Bruzek (mbruzek) wrote : | # |
I can confirm that deploying with the following configuration created a precise with cassandra version 2.0.10 installed.
cassandra:
allow-
cluster-name: midonet
apt-repo-spec: "deb http://
apt-repo-key: "7E41C00F85BFC1
extra_packages: "openjdk-
package_version: "2.0.10"
+1 LGTM
review:
Approve

Hello Antoni,
Thank you for submitting this fix. It is my understanding this fix allows cassandra to be installed on LXC.
The code adds a configuration option that is only evaluated at install time. If the customer were to change the package_version after install the operation would have no effect. This is what we call "immutable configuration". This is because "config-changed" is the only hook called when the Juju user changes the configuration in the GUI or on the command line.
If you are going to add a configuration option like this I would like to see the configuration option read and reacted in the "configure_ cassandra" function of the hooks/cassandra -common file.
You can keep the code in the "install" function but need to add it to something that will be called on "config-changed".
Please let me know when you are ready for another review.
Thanks!