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
1=== modified file 'source/getting-started.rst'
2--- source/getting-started.rst 2012-05-04 17:17:34 +0000
3+++ source/getting-started.rst 2012-05-10 22:12:19 +0000
4@@ -21,14 +21,14 @@
5
6 For the moment, though, the only environment supported is EC2, OpenStack, and LXC containers.
7
8-Running from PPA (11.10 only)
9+Running from PPA (required for 11.10)
10 -----------------------------
11
12 The juju team's Personal Package Archive (PPA) installation is
13 currently the preferred installation mechanism for juju for 11.10 users. It
14 includes newer upstream versions of binary dependencies like Zookeeper
15 which are more recent than the latest ubuntu release (11.10) and
16-contain important bugfixes. For users in 12.04 we recommend using the package in the archive
17+contain important bugfixes. For users in 12.04 juju is available in the archive
18
19 To install juju from the PPA, execute the following in a shell::
20
21@@ -82,17 +82,27 @@
22 Configuring a local environment
23 -------------------------------
24
25-First install some dependencies it needs.
26+First install juju and it's dependancies::
27
28 sudo apt-get install libvirt-bin lxc apt-cacher-ng libzookeeper-java zookeeper juju
29
30-After 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.``
31-
32- ssh-keygen -t rsa
33-
34-First configure your environment local environment:
35-
36-In ``~/.juju/environments.yaml``, add a section for type "local"::
37+Check if you've been added to the ``libvirtd`` group::
38+
39+ groups
40+
41+This will produce a list of groups your user is part of, if ``libvirtd`` is not in
42+that list perform the following::
43+
44+ sudo usermod -a -G libvirtd `whoami`
45+
46+This change won't affect your current session. You can either log out then back in or
47+issue the following command to log in under the new group::
48+
49+ newgrp libvirtd
50+
51+However, this will only apply to that terminal session. Isuse a ``juju
52+bootstrap`` to create the necessary skeleton files. In ``~/.juju/environments.yaml``,
53+add a section for type "local"::
54
55 environments:
56 sample:
57@@ -103,11 +113,22 @@
58 juju-origin: distro
59 data-dir: /home/jorge/whatever
60
61-The ``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:
62+The ``data-dir`` is going to be where the containers and stuff will keep
63+their data. As far as I can tell `control-bucket` and `admin-secret` can
64+be whatever you want. If you are going to use juju from the PPA then change
65+``juju-origin`` to ``ppa``. After this you can then::
66
67 juju bootstrap
68
69-The 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:
70+If during bootstrap you get the following error ``SSH authorized/public key
71+not found. ERROR SSH authorized/public key not found.`` you will need to
72+create an SSH Keypair, do so by issuing the following command::
73+
74+ ssh-keygen -t rsa
75+
76+The first time this runs it might take a bit, as it's doing a netinstall
77+for the container. Subsequent bootstraps should be much quicker. You can
78+then locally deploy charms, make note of the "local:" in front of each service::
79
80 juju deploy mysql
81 juju deploy wordpress
82@@ -115,37 +136,41 @@
83
84 When it's deployed juju should return something like this in status::
85
86- machines:
87- 0: {dns-name: localhost, instance-id: local}
88- services:
89- mysql:
90- charm: local:oneiric/mysql-11
91- relations: {db: wordpress}
92- units:
93- mysql/0:
94- machine: 0
95- public-address: 192.168.122.137
96- relations:
97- db: {state: up}
98- state: started
99- wordpress:
100- charm: local:oneiric/wordpress-31
101- relations: {db: mysql}
102- units:
103- wordpress/0:
104- machine: 0
105- public-address: 192.168.122.166
106- relations:
107- db: {state: up}
108- state: started
109- 2011-10-11 18:44:32,268 INFO 'status' command finished successfully
110+ machines:
111+ 0:
112+ agent-state: running
113+ dns-name: localhost
114+ instance-id: local
115+ instance-state: running
116+ services:
117+ mysql:
118+ charm: cs:precise/mysql-1
119+ relations:
120+ db:
121+ - wordpress
122+ units:
123+ mysql/0:
124+ agent-state: started
125+ machine: 0
126+ public-address: 192.168.122.47
127+ wordpress:
128+ charm: cs:precise/wordpress-0
129+ relations:
130+ db:
131+ - mysql
132+ units:
133+ wordpress/0:
134+ agent-state: started
135+ machine: 0
136+ public-address: 192.168.122.193
137
138-Expose your service with:
139+Expose your service with::
140
141 juju expose wordpress
142
143-In this example, navigating the browser to 192.168.122.166 should take you to the wordpress configuration page.
144+In this example, navigating the browser to 192.168.122.166 should take you
145+to the wordpress configuration page.
146
147-Enabling logging option.
148+Enabling logging option::
149
150 juju debug-log

Subscribers

People subscribed via source and target branches