Merge "Remove remaining sudo usages"

This commit is contained in:
Jenkins 2014-03-11 01:06:22 +00:00 committed by Gerrit Code Review
commit f4b31857e0
9 changed files with 65 additions and 81 deletions

View File

@ -105,11 +105,11 @@
</listitem>
<listitem>
<para>On openSUSE:</para>
<screen><prompt>$</prompt> <userinput>zypper install python-pywbem</userinput></screen>
<screen><prompt>#</prompt> <userinput>zypper install python-pywbem</userinput></screen>
</listitem>
<listitem>
<para>On Fedora:</para>
<screen><prompt>$</prompt> <userinput>yum install pywbem</userinput></screen>
<screen><prompt>#</prompt> <userinput>yum install pywbem</userinput></screen>
</listitem>
</itemizedlist>
</section>
@ -183,7 +183,7 @@
<step> <para>In Unisphere register the initiator with the SPB
port.</para></step>
<step><para>Log out:</para>
<screen><prompt>$</prompt> <userinput>sudo iscsiadm -m node -u</userinput></screen></step>
<screen><prompt>#</prompt> <userinput>iscsiadm -m node -u</userinput></screen></step>
</procedure>
</section>
<section xml:id="create-masking">

View File

@ -252,7 +252,7 @@
<para>Install the <filename>hp3parclient</filename>
Python package on the OpenStack Block Storage
system.
<screen><prompt>$</prompt> <userinput>sudo pip install 'hp3parclient&gt;=3.0,&lt;4.0'</userinput></screen>
<screen><prompt>#</prompt> <userinput>pip install 'hp3parclient&gt;=3.0,&lt;4.0'</userinput></screen>
</para>
</step>
<step>

View File

@ -230,7 +230,7 @@
<filename>hplefthandclient</filename>
Python package on the OpenStack Block Storage system.
</para>
<screen><prompt>$</prompt> <userinput>sudo pip install 'hplefthandclient&gt;=1.0.2,&lt;2.0'</userinput></screen>
<screen><prompt>#</prompt> <userinput>pip install 'hplefthandclient&gt;=1.0.2,&lt;2.0'</userinput></screen>
</step>
<step>
<para>If you are not using an existing cluster, create a
@ -450,4 +450,4 @@ san_is_local=False
</procedure>
</section>
</section>
</section>
</section>

View File

@ -92,9 +92,10 @@
</listitem>
<listitem>
<formalpara>
<title>To install a client package the following command syntax is used:
$ sudo pip install [--update] python-project client (True or False)</title>
<para>
<title>To install a client package</title>
<para>
Run this command:
<screen><prompt>#</prompt> <userinput>pip install [--update] python-project client (True or False)</userinput></screen>
<orderedlist>
<listitem>
<para>True</para>
@ -108,9 +109,10 @@
</listitem>
<listitem>
<formalpara>
<title>To get a list of images in glance you can use the following command syntax:
$ glance image-list</title>
<para>
<title>To list images</title>
<para>
Run this command:
<screen><prompt>$</prompt> <userinput>glance image-list</userinput></screen>
<orderedlist>
<listitem>
<para>True</para>

View File

@ -81,11 +81,10 @@
<informaltable class="c25">
<tbody>
<tr>
<td rowspan="1" colspan="1">$sudo apt-get install
cpu-checker</td>
<td rowspan="1" colspan="1"><screen><prompt>#</prompt> <userinput>apt-get install cpu-checker</userinput></screen></td>
</tr>
<tr>
<td>$sudo kvm-ok</td>
<td><screen><prompt>#</prompt> <userinput>kvm-ok</userinput></screen></td>
</tr>
</tbody>
</informaltable>
@ -612,20 +611,16 @@
shutdown your 3. In case your VM's don't get internet.</para>
<itemizedlist>
<listitem>
<para>From your VM Instance, Use ping command to see whether
Internet is on.</para>
<para>From your VM Instance, use <command>ping</command>
command to see whether Internet is on.</para>
<screen><prompt>$</prompt> <userinput>ping www.google.com</userinput></screen>
</listitem>
</itemizedlist>
<programlisting>$ping www.google.com</programlisting>
<itemizedlist>
<listitem>
<para>If its not connected, restart networking
service-</para>
service:</para>
<screen><prompt>#</prompt> <userinput>service networking restart</userinput>
<prompt>#</prompt> <userinput>ping www.google.com</userinput></screen>
</listitem>
</itemizedlist>
<programlisting>$sudo service networking restart
$ping www.google.com</programlisting>
<itemizedlist>
<listitem>
<para>If this doesn't work, you need to check your network
settings from Virtual Box, you may have left something or

View File

@ -555,7 +555,7 @@ osapi_volume_listen_port=5900</programlisting>
<listitem>
<para>Restart nova-* services (all nova services):</para>
<para>
<screen><prompt>#</prompt> <userinput>cd /etc/init.d/; for i in $( ls nova-* ); do sudo service $i restart; done</userinput></screen>
<screen><prompt>#</prompt> <userinput>cd /etc/init.d/; for i in $( ls nova-* ); do service $i restart; done</userinput></screen>
</para>
</listitem>
<listitem>
@ -680,13 +680,13 @@ rabbit_port = 5672</programlisting>
<listitem>
<para>Restart the Cinder services:</para>
<para>
<screen><prompt>#</prompt> <userinput>cd /etc/init.d/; for i in $( ls cinder-* ); do sudo service $i restart; done</userinput></screen>
<screen><prompt>#</prompt> <userinput>cd /etc/init.d/; for i in $( ls cinder-* ); do service $i restart; done</userinput></screen>
</para>
</listitem>
<listitem>
<para>Verify if Cinder services are running:</para>
<para>
<screen><prompt>#</prompt> <userinput>cd /etc/init.d/; for i in $( ls cinder-* ); do sudo service $i status; done</userinput></screen>
<screen><prompt>#</prompt> <userinput>cd /etc/init.d/; for i in $( ls cinder-* ); do service $i status; done</userinput></screen>
</para>
</listitem>
</itemizedlist>

View File

@ -278,11 +278,11 @@ osapi_volume_listen_port=5900
cinder_catalog_info=volume:cinder:internalURL</programlisting></para>
</listitem>
<listitem>
<para>Restart Nova Services</para>
<screen><prompt>#</prompt> <userinput>cd /etc/init.d/; for i in $( ls nova-* ); do sudo service $i restart; done</userinput></screen>
<para>Restart nova services</para>
<screen><prompt>#</prompt> <userinput>cd /etc/init.d/; for i in $( ls nova-* ); do service $i restart; done</userinput></screen>
</listitem>
<listitem>
<para>List Nova Services (Check for the Smiley Faces to know if the services are running):</para>
<para>List nova services (Check for the Smiley Faces to know if the services are running):</para>
<screen><prompt>#</prompt> <userinput>nova-manage service list</userinput></screen>
</listitem>
</itemizedlist>

View File

@ -929,61 +929,47 @@
<listitem>
<para>Run the following command to install or update a
client package:</para>
</listitem>
<listitem>
<para>$ sudo pip install [--update]
python-&lt;project>client</para>
</listitem>
<listitem>
<para>Where &lt;project> is the project name and has one
<screen><prompt>#</prompt> <userinput>pip install [--update] python-&lt;project>client</userinput></screen>
<para>Where &lt;project> is the project name and has one
of the following values:</para>
<itemizedlist>
<listitem>
<para>nova. Compute API and extensions.</para>
</listitem>
<listitem>
<para>neutron. Networking API.</para>
</listitem>
<listitem>
<para>keystone. Identity Service API.</para>
</listitem>
<listitem>
<para>glance. Image Service API.</para>
</listitem>
<listitem>
<para>swift. Object Storage API.</para>
</listitem>
<listitem>
<para>cinder. Block Storage Service API.</para>
</listitem>
<listitem>
<para>heat. Orchestration API.</para>
</listitem>
</itemizedlist>
</listitem>
</orderedlist>
<itemizedlist>
<listitem>
<para>nova. Compute API and extensions.</para>
</listitem>
<listitem>
<para>neutron. Networking API.</para>
</listitem>
<listitem>
<para>keystone. Identity Service API.</para>
</listitem>
<listitem>
<para>glance. Image Service API.</para>
</listitem>
<listitem>
<para>swift. Object Storage API.</para>
</listitem>
<listitem>
<para>cinder. Block Storage Service API.</para>
</listitem>
<listitem>
<para>heat. Orchestration API.</para>
</listitem>
</itemizedlist>
<orderedlist>
<listitem>
<para>For example, to install the nova client, run the
following command:</para>
</listitem>
<listitem>
<para>$ sudo pip install python-novaclient</para>
<screen><prompt>#</prompt> <userinput>pip install python-novaclient</userinput></screen>
</listitem>
<listitem>
<para>To update the nova client, run the following
command:</para>
</listitem>
<listitem>
<para>$ sudo pip install --upgrade
python-novaclient</para>
<screen><prompt>#</prompt> <userinput>pip install --upgrade python-novaclient</userinput></screen>
</listitem>
<listitem>
<para>To remove the nova client, run the following
command:</para>
</listitem>
<listitem>
<para>$ sudo pip uninstall python-novaclient</para>
<screen><prompt>#</prompt> <userinput>pip uninstall python-novaclient</userinput></screen>
</listitem>
<listitem>
<para>Before you can issue client commands, you must

View File

@ -105,7 +105,7 @@
<para>Create the
<filename>apache-maven</filename>
directory:</para>
<screen><prompt>$</prompt> <userinput>sudo mkdir /usr/local/apache-maven</userinput></screen>
<screen><prompt>#</prompt> <userinput>mkdir /usr/local/apache-maven</userinput></screen>
</step>
<step>
<para>Copy the latest stable binary from <link
@ -116,8 +116,8 @@
</step>
<step>
<para>Extract the distribution archive to the directory you wish to install Maven:</para>
<screen><prompt>$</prompt> <userinput>cd /usr/local/apache-maven/</userinput>
<prompt>$</prompt> <userinput>sudo tar -xvzf apache-maven-x.x.x-bin.tar.gz</userinput></screen>
<screen><prompt>#</prompt> <userinput>cd /usr/local/apache-maven/</userinput>
<prompt>#</prompt> <userinput>tar -xvzf apache-maven-x.x.x-bin.tar.gz</userinput></screen>
<para>The <filename>apache-maven-<replaceable>x.x.x</replaceable></filename> subdirectory is created from the archive file, where <replaceable>x.x.x</replaceable> is your Maven version.</para>
</step>
<step>
@ -212,9 +212,10 @@
</step>
<step>
<para>Install git-review. If pip is not already
installed, use <code>sudo easy_install pip</code>
to install it on a Mac or Ubuntu</para>
<screen><prompt>$</prompt> <userinput>sudo pip install git-review</userinput></screen>
installed, run <code>easy_install pip</code> as
<systemitem class="username">root</systemitem> to
install it on a Mac or Ubuntu.</para>
<screen><prompt>#</prompt> <userinput>pip install git-review</userinput></screen>
</step>
<step>
<para>Change to the directory:</para>
@ -309,7 +310,7 @@
Jenkins runs gating scripts to check that the patch is fine. Locally,
you can use the <command>tox</command> tool to run the same checks and ensure that a patch works.
Install the tox package and run it from the top level directory which has the <filename>tox.ini</filename> file.</para>
<screen><prompt>$</prompt> <userinput>sudo pip install tox</userinput>
<screen><prompt>#</prompt> <userinput>pip install tox</userinput>
<prompt>$</prompt> <userinput>tox</userinput></screen>
<para>Jenkins runs the following four checks. You can run them individually:</para>
<substeps>
@ -484,7 +485,7 @@ blueprint training-manuals</computeroutput></screen>
Jenkins runs gating scripts to check that the patch is fine. Locally,
you can use the <command>tox</command> tool to run the same checks and ensure that a patch works.
Install the tox package and run it from the top level directory which has the <filename>tox.ini</filename> file.</para>
<screen><prompt>$</prompt> <userinput>sudo pip install tox</userinput>
<screen><prompt>#</prompt> <userinput>pip install tox</userinput>
<prompt>$</prompt> <userinput>tox</userinput></screen>
</step>
<step>