From d3ae18b187d80a36ec99be39e93a1f31559bef79 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 10 Mar 2014 20:05:27 +0100 Subject: [PATCH] Remove usage of sudo from admin-guide Update prompts as needed. Change-Id: I29e3d620ef942be599e940023048e62df7e9d1f7 --- doc/admin-guide-cloud/ch_compute.xml | 7 +-- .../section_networking-use.xml | 8 +-- .../section_networking_introduction.xml | 51 ++++++++++--------- ...ion_ts_failed_attach_vol_no_sysfsutils.xml | 3 +- .../section_ts_multipath_warn.xml | 3 +- .../section_ts_vol_attach_miss_sg_scan.xml | 2 +- 6 files changed, 37 insertions(+), 37 deletions(-) diff --git a/doc/admin-guide-cloud/ch_compute.xml b/doc/admin-guide-cloud/ch_compute.xml index b7f223842c..11c9627873 100644 --- a/doc/admin-guide-cloud/ch_compute.xml +++ b/doc/admin-guide-cloud/ch_compute.xml @@ -459,7 +459,7 @@ install the latest version using the pip python package installer: - $ sudo pip install python-novaclient + # pip install python-novaclient For more information about python-novaclient and other available command-line tools, see the environment. $ curl -O http://pypi.python.org/packages/source/p/python-novaclient/python-novaclient-2.6.3.tar.gz $ tar -zxvf python-novaclient-2.6.3.tar.gz -$ cd python-novaclient-2.6.3 -$ sudo python setup.py install +$ cd python-novaclient-2.6.3 +As root execute: +# python setup.py install Now that you have installed the diff --git a/doc/admin-guide-cloud/section_networking-use.xml b/doc/admin-guide-cloud/section_networking-use.xml index aacda5ca32..5c24acf5da 100644 --- a/doc/admin-guide-cloud/section_networking-use.xml +++ b/doc/admin-guide-cloud/section_networking-use.xml @@ -6,10 +6,10 @@ You can manage OpenStack Networking services using the service command. For example: - # sudo service neutron-server stop -# sudo service neutron-server status -# sudo service neutron-server start -# sudo service neutron-server restart + # service neutron-server stop +# service neutron-server status +# service neutron-server start +# service neutron-server restart Log files are in the /var/log/neutron directory. diff --git a/doc/admin-guide-cloud/section_networking_introduction.xml b/doc/admin-guide-cloud/section_networking_introduction.xml index 45fe320d7b..1dc60beff8 100644 --- a/doc/admin-guide-cloud/section_networking_introduction.xml +++ b/doc/admin-guide-cloud/section_networking_introduction.xml @@ -387,7 +387,7 @@ Restart neutron-server to apply the new settings: - $ sudo service neutron-server restart + # service neutron-server restart @@ -403,8 +403,9 @@ is available at https://github.com/brocade/ncclient: - $ git clone https://www.github.com/brocade/ncclient -$ cd ncclient; sudo python ./setup.py install + $ git clone https://www.github.com/brocade/ncclient + As root execute: +# cd ncclient;python setup.py install Edit the @@ -488,7 +489,7 @@ local_ip=<data-net-IP-address-of-node> Restart to apply the new settings: - $ sudo service neutron-server restart + # service neutron-server restart @@ -503,7 +504,7 @@ local_ip=<data-net-IP-address-of-node> Install the NSX plug-in, as follows: - $ sudo apt-get install neutron-plugin-vmware + # apt-get install neutron-plugin-vmware Edit @@ -595,7 +596,7 @@ nsx_controllers = <comma separated list of API endpoints> Restart neutron-server to apply new settings: - $ sudo service neutron-server restart + # service neutron-server restart Example nsx.ini @@ -750,7 +751,7 @@ password = "PLUMgrid-director-admin-password" Restart neutron-server to apply the new settings: - $ sudo service neutron-server restart + # service neutron-server restart @@ -762,7 +763,7 @@ password = "PLUMgrid-director-admin-password" Install the Ryu plug-in, as follows: - $ sudo apt-get install neutron-plugin-ryu + # apt-get install neutron-plugin-ryu Edit @@ -827,7 +828,7 @@ password = "PLUMgrid-director-admin-password" Restart neutron-server to apply the new settings: - $ sudo service neutron-server restart + # service neutron-server restart @@ -880,7 +881,7 @@ password = "PLUMgrid-director-admin-password" Install the OVS agent package. This action also installs the Open vSwitch software as a dependency: - $ sudo apt-get install neutron-plugin-openvswitch-agent + # apt-get install neutron-plugin-openvswitch-agent On each node that runs the @@ -906,11 +907,11 @@ password = "PLUMgrid-director-admin-password" Restart Open vSwitch to properly load the kernel module: - $ sudo service openvswitch-switch restart + # service openvswitch-switch restart Restart the agent: - $ sudo service neutron-plugin-openvswitch-agent restart + # service neutron-plugin-openvswitch-agent restart All nodes that run @@ -918,7 +919,7 @@ password = "PLUMgrid-director-admin-password" must have an OVS br-int bridge. To create the bridge, run: - $ sudo ovs-vsctl add-br br-int + # ovs-vsctl add-br br-int @@ -986,13 +987,13 @@ password = "PLUMgrid-director-admin-password" plug-in Install Ryu (there isn't currently an - Ryu package for ubuntu): - $ sudo pip install ryu + Ryu package for Ubuntu): + # pip install ryu Install the Ryu agent and Open vSwitch packages: - $ sudo apt-get install neutron-plugin-ryu-agent openvswitch-switch python-openvswitch openvswitch-datapath-dkms + # apt-get install neutron-plugin-ryu-agent openvswitch-switch python-openvswitch openvswitch-datapath-dkms Replicate the @@ -1005,11 +1006,11 @@ password = "PLUMgrid-director-admin-password" Restart Open vSwitch to properly load the kernel module: - $ sudo service openvswitch-switch restart + # service openvswitch-switch restart Restart the agent: - $ sudo service neutron-plugin-ryu-agent restart + # service neutron-plugin-ryu-agent restart All nodes running @@ -1017,7 +1018,7 @@ password = "PLUMgrid-director-admin-password" also require that an OVS bridge named "br-int" exists on each node. To create the bridge, run: - $ sudo ovs-vsctl add-br br-int + # ovs-vsctl add-br br-int @@ -1039,7 +1040,7 @@ password = "PLUMgrid-director-admin-password" Install the DHCP agent: - $ sudo apt-get install neutron-dhcp-agent + # apt-get install neutron-dhcp-agent Finally, update any options in the @@ -1141,7 +1142,7 @@ interface_driver = neutron.agent.linux.interface.OVSInterfaceDriverInstall the neutron-l3-agent binary on the network node: - $ sudo apt-get install neutron-l3-agent + # apt-get install neutron-l3-agent To uplink the node that runs @@ -1151,8 +1152,8 @@ interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver For example, with Open vSwitch and NIC eth1 connected to the external network, run: - $ sudo ovs-vsctl add-br br-ex - $ sudo ovs-vsctl add-port br-ex eth1 + # ovs-vsctl add-br br-ex +# ovs-vsctl add-port br-ex eth1 Do not manually configure an IP address on the NIC connected to the external network for the node running @@ -1220,7 +1221,7 @@ interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver Install the agent by running: - $ sudo apt-get install neutron-plugin-metering-agent + # apt-get install neutron-plugin-metering-agent If you use one of the following plugins, you need to configure the metering agent with these lines as well: @@ -1261,7 +1262,7 @@ interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver Install the agent by running: -$ sudo apt-get install neutron-lbaas-agent +# apt-get install neutron-lbaas-agent diff --git a/doc/admin-guide-cloud/section_ts_failed_attach_vol_no_sysfsutils.xml b/doc/admin-guide-cloud/section_ts_failed_attach_vol_no_sysfsutils.xml index 60e7451a08..cabea9621b 100644 --- a/doc/admin-guide-cloud/section_ts_failed_attach_vol_no_sysfsutils.xml +++ b/doc/admin-guide-cloud/section_ts_failed_attach_vol_no_sysfsutils.xml @@ -16,8 +16,7 @@ Failed to attach volume 13d5c633-903a-4764-a5a0-3336945b1db1 at /dev/vdk.Run the following command on the compute node to install the sysfsutils packages. - $ sudo apt-get install sysfsutils + # apt-get install sysfsutils - diff --git a/doc/admin-guide-cloud/section_ts_multipath_warn.xml b/doc/admin-guide-cloud/section_ts_multipath_warn.xml index 83399c1de5..26625f8141 100644 --- a/doc/admin-guide-cloud/section_ts_multipath_warn.xml +++ b/doc/admin-guide-cloud/section_ts_multipath_warn.xml @@ -21,8 +21,7 @@ Run the following command on the compute node to install the multipath-tools packages. - $ sudo apt-get install multipath-tools + # apt-get install multipath-tools - diff --git a/doc/admin-guide-cloud/section_ts_vol_attach_miss_sg_scan.xml b/doc/admin-guide-cloud/section_ts_vol_attach_miss_sg_scan.xml index 790d1e050b..f5c2ed17af 100644 --- a/doc/admin-guide-cloud/section_ts_vol_attach_miss_sg_scan.xml +++ b/doc/admin-guide-cloud/section_ts_vol_attach_miss_sg_scan.xml @@ -24,6 +24,6 @@ Stdout: '/usr/local/bin/nova-rootwrap: Executable not found: /usr/bin/sg_scanSolution Run this command on the compute node to install the sg3-utils package: - $ sudo apt-get install sg3-utils + # apt-get install sg3-utils