Merge lp:~marcoceppi/pyjuju/local-provider-fixes into lp:~charm-contributors/pyjuju/docs

Proposed by Marco Ceppi
Status: Rejected
Rejected by: Marco Ceppi
Proposed branch: lp:~marcoceppi/pyjuju/local-provider-fixes
Merge into: lp:~charm-contributors/pyjuju/docs
Diff against target: 150 lines (+64/-39)
1 file modified
source/getting-started.rst (+64/-39)
To merge this branch: bzr merge lp:~marcoceppi/pyjuju/local-provider-fixes
Reviewer Review Type Date Requested Status
Marco Ceppi (community) Needs Fixing
Review via email: mp+105406@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

There's some discussion/review of this change on the mailing list.

Revision history for this message
Marco Ceppi (marcoceppi) wrote :

Rejecting until I can implement changes discussed in IRC and mailing list

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

Hi Marco,

fwiw, typical thing to do here is just set the merge proposal to "Work in
progress" while the changes are being made.

On Wed, May 23, 2012 at 10:09 AM, Marco Ceppi <email address hidden> wrote:

> Rejecting until I can implement changes discussed in IRC and mailing list
> --
>
> https://code.launchpad.net/~marcoceppi/juju/local-provider-fixes/+merge/105406
> Your team juju Charm Contributors is requested to review the proposed
> merge of lp:~marcoceppi/juju/local-provider-fixes into lp:juju/docs.
>

Revision history for this message
Marco Ceppi (marcoceppi) wrote :

Thanks, was trying to get it to drop out of the review-queue. Wasn't sure if WIP would do that.

review: Needs Fixing

Unmerged revisions

22. By Marco Ceppi

Updated local provider configuration

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'source/getting-started.rst'
--- source/getting-started.rst 2012-05-04 17:17:34 +0000
+++ source/getting-started.rst 2012-05-10 22:12:19 +0000
@@ -21,14 +21,14 @@
2121
22For the moment, though, the only environment supported is EC2, OpenStack, and LXC containers. 22For the moment, though, the only environment supported is EC2, OpenStack, and LXC containers.
2323
24Running from PPA (11.10 only)24Running from PPA (required for 11.10)
25-----------------------------25-----------------------------
2626
27The juju team's Personal Package Archive (PPA) installation is27The juju team's Personal Package Archive (PPA) installation is
28currently the preferred installation mechanism for juju for 11.10 users. It28currently the preferred installation mechanism for juju for 11.10 users. It
29includes newer upstream versions of binary dependencies like Zookeeper29includes newer upstream versions of binary dependencies like Zookeeper
30which are more recent than the latest ubuntu release (11.10) and30which are more recent than the latest ubuntu release (11.10) and
31contain important bugfixes. For users in 12.04 we recommend using the package in the archive31contain important bugfixes. For users in 12.04 juju is available in the archive
3232
33To install juju from the PPA, execute the following in a shell::33To install juju from the PPA, execute the following in a shell::
3434
@@ -82,17 +82,27 @@
82Configuring a local environment82Configuring a local environment
83-------------------------------83-------------------------------
8484
85First install some dependencies it needs.85First install juju and it's dependancies::
8686
87 sudo apt-get install libvirt-bin lxc apt-cacher-ng libzookeeper-java zookeeper juju87 sudo apt-get install libvirt-bin lxc apt-cacher-ng libzookeeper-java zookeeper juju
8888
89After installing it, you may have to reboot (I had to else libvirt couldn't create the network bridge indicating it was already in use). After that you might get error for ``SSH authorized/public key not found. ERROR SSH authorized/public key not found.``89Check if you've been added to the ``libvirtd`` group::
9090
91 ssh-keygen -t rsa91 groups
9292
93First configure your environment local environment:93This will produce a list of groups your user is part of, if ``libvirtd`` is not in
9494that list perform the following::
95In ``~/.juju/environments.yaml``, add a section for type "local"::95
96 sudo usermod -a -G libvirtd `whoami`
97
98This change won't affect your current session. You can either log out then back in or
99issue the following command to log in under the new group::
100
101 newgrp libvirtd
102
103However, this will only apply to that terminal session. Isuse a ``juju
104bootstrap`` to create the necessary skeleton files. In ``~/.juju/environments.yaml``,
105add a section for type "local"::
96106
97 environments:107 environments:
98 sample:108 sample:
@@ -103,11 +113,22 @@
103 juju-origin: distro113 juju-origin: distro
104 data-dir: /home/jorge/whatever114 data-dir: /home/jorge/whatever
105115
106The ``data-dir`` is going to be where the containers and stuff will keep their data. As far as I can tell `control-bucket` and `admin-secret` can be whatever you want. If you are going to use juju from the PPA (11.10 users) then change ``juju-origin`` to ``ppa``. After this you can then:116The ``data-dir`` is going to be where the containers and stuff will keep
117their data. As far as I can tell `control-bucket` and `admin-secret` can
118be whatever you want. If you are going to use juju from the PPA then change
119``juju-origin`` to ``ppa``. After this you can then::
107120
108 juju bootstrap121 juju bootstrap
109122
110The first time this runs it might take a bit, as it's doing a netinstall for the container. Subsequent bootstraps should be much quicker. You can then locally deploy charms, make note of the "local:" in front of each service:123If during bootstrap you get the following error ``SSH authorized/public key
124not found. ERROR SSH authorized/public key not found.`` you will need to
125create an SSH Keypair, do so by issuing the following command::
126
127 ssh-keygen -t rsa
128
129The first time this runs it might take a bit, as it's doing a netinstall
130for the container. Subsequent bootstraps should be much quicker. You can
131then locally deploy charms, make note of the "local:" in front of each service::
111132
112 juju deploy mysql133 juju deploy mysql
113 juju deploy wordpress134 juju deploy wordpress
@@ -115,37 +136,41 @@
115136
116When it's deployed juju should return something like this in status::137When it's deployed juju should return something like this in status::
117138
118 machines:139 machines:
119 0: {dns-name: localhost, instance-id: local}140 0:
120 services:141 agent-state: running
121 mysql:142 dns-name: localhost
122 charm: local:oneiric/mysql-11143 instance-id: local
123 relations: {db: wordpress}144 instance-state: running
124 units:145 services:
125 mysql/0:146 mysql:
126 machine: 0147 charm: cs:precise/mysql-1
127 public-address: 192.168.122.137148 relations:
128 relations:149 db:
129 db: {state: up}150 - wordpress
130 state: started151 units:
131 wordpress:152 mysql/0:
132 charm: local:oneiric/wordpress-31153 agent-state: started
133 relations: {db: mysql}154 machine: 0
134 units:155 public-address: 192.168.122.47
135 wordpress/0:156 wordpress:
136 machine: 0157 charm: cs:precise/wordpress-0
137 public-address: 192.168.122.166158 relations:
138 relations:159 db:
139 db: {state: up}160 - mysql
140 state: started161 units:
141 2011-10-11 18:44:32,268 INFO 'status' command finished successfully162 wordpress/0:
163 agent-state: started
164 machine: 0
165 public-address: 192.168.122.193
142166
143Expose your service with:167Expose your service with::
144168
145 juju expose wordpress169 juju expose wordpress
146170
147In this example, navigating the browser to 192.168.122.166 should take you to the wordpress configuration page. 171In this example, navigating the browser to 192.168.122.166 should take you
172to the wordpress configuration page.
148173
149Enabling logging option.174Enabling logging option::
150175
151 juju debug-log176 juju debug-log

Subscribers

People subscribed via source and target branches