From 4418c9962adae30665b855a11100574c2782d0ba Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 10 Mar 2014 20:12:45 +0100 Subject: [PATCH] Remove sudo usage from config reference Remove sudo usage and adjust prompts as needed. Change-Id: Ia1df06230203f7c8393b7f369c3dc396d8143799 --- .../drivers/emc-volume-driver.xml | 18 +++++++++--------- .../compute/section_compute-configure-ipv6.xml | 8 ++++---- .../compute/section_hypervisor_kvm.xml | 2 +- .../compute/section_hypervisor_qemu.xml | 14 +++++++------- .../object-storage/section_configure_s3.xml | 4 ++-- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/doc/config-reference/block-storage/drivers/emc-volume-driver.xml b/doc/config-reference/block-storage/drivers/emc-volume-driver.xml index 6d71029aea..754bf3ff53 100644 --- a/doc/config-reference/block-storage/drivers/emc-volume-driver.xml +++ b/doc/config-reference/block-storage/drivers/emc-volume-driver.xml @@ -101,7 +101,7 @@ On Ubuntu: - $ sudo apt-get install python-pywbem + # apt-get install python-pywbem On openSUSE: @@ -151,14 +151,14 @@ On the compute node 1.1.1.1, do the following (assume 10.10.61.35 is the iscsi target): - $ sudo /etc/init.d/open-iscsi start -$ sudo iscsiadm -m discovery -t st -p 10.10.61.35 -$ cd /etc/iscsi -$ sudo more initiatorname.iscsi -$ iscsiadm -m node + # /etc/init.d/open-iscsi start +# iscsiadm -m discovery -t st -p 10.10.61.35 +# cd /etc/iscsi +# more initiatorname.iscsi +# iscsiadm -m node Log in to VNX from the compute node using the target corresponding to the SPA port: - $ sudo iscsiadm -m node -T iqn.1992-04.com.emc:cx.apm01234567890.a0 -p 10.10.61.35 -l + # iscsiadm -m node -T iqn.1992-04.com.emc:cx.apm01234567890.a0 -p 10.10.61.35 -l Where iqn.1992-04.com.emc:cx.apm01234567890.a0 is the initiator name of the compute node. Login to @@ -174,11 +174,11 @@ Now host 1.1.1.1 also appears under Hosts->Host List. Log out of VNX on the compute node: - $ sudo iscsiadm -m node -u + # iscsiadm -m node -u Log in to VNX from the compute node using the target corresponding to the SPB port: - $ sudo iscsiadm -m node -T iqn.1992-04.com.emc:cx.apm01234567890.b8 -p 10.10.10.11 -l + # iscsiadm -m node -T iqn.1992-04.com.emc:cx.apm01234567890.b8 -p 10.10.10.11 -l In Unisphere register the initiator with the SPB port. diff --git a/doc/config-reference/compute/section_compute-configure-ipv6.xml b/doc/config-reference/compute/section_compute-configure-ipv6.xml index 9c4c2f48b9..c06f9e335b 100644 --- a/doc/config-reference/compute/section_compute-configure-ipv6.xml +++ b/doc/config-reference/compute/section_compute-configure-ipv6.xml @@ -22,12 +22,12 @@ nova-* service must have python-netaddr and radvd installed. On all nova-nodes, install python-netaddr: - $ sudo apt-get install python-netaddr + # apt-get install python-netaddr On all nova-network nodes install radvd and configure IPv6 networking: - $ sudo apt-get install radvd -$ sudo bash -c "echo 1 > /proc/sys/net/ipv6/conf/all/forwarding" -$ sudo bash -c "echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra" + # apt-get install radvd +# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding +# echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra Edit the nova.conf file on all nodes to set the use_ipv6 configuration option to True. Restart all nova- services. diff --git a/doc/config-reference/compute/section_hypervisor_kvm.xml b/doc/config-reference/compute/section_hypervisor_kvm.xml index d72cf26fc8..bf8af00c6b 100644 --- a/doc/config-reference/compute/section_hypervisor_kvm.xml +++ b/doc/config-reference/compute/section_hypervisor_kvm.xml @@ -167,6 +167,6 @@ libvirt_cpu_model=Nehalem set to kvm, run: # ls -l /dev/kvm If it is not set to kvm, run: - # sudo udevadm trigger + # udevadm trigger diff --git a/doc/config-reference/compute/section_hypervisor_qemu.xml b/doc/config-reference/compute/section_hypervisor_qemu.xml index b2931c09aa..8d9efc7cb5 100644 --- a/doc/config-reference/compute/section_hypervisor_qemu.xml +++ b/doc/config-reference/compute/section_hypervisor_qemu.xml @@ -29,13 +29,13 @@ libvirt_type=qemu For some operations you may also have to install the guestmount utility: On Ubuntu: - $ sudo apt-get install guestmount + # apt-get install guestmount On Red Hat Enterprise Linux, Fedora, or CentOS: - $ sudo yum install libguestfs-tools + # yum install libguestfs-tools On openSUSE: - $ sudo zypper install guestfs-tools + # zypper install guestfs-tools The QEMU hypervisor supports the following virtual machine image formats: @@ -62,9 +62,9 @@ libvirt_type=qemu with no overcommit. The second command, setsebool, may take a while. - $> sudo openstack-config --set /etc/nova/nova.conf DEFAULT libvirt_type qemu - $> sudo setsebool -P virt_use_execmem on - $> sudo ln -s /usr/libexec/qemu-kvm /usr/bin/qemu-system-x86_64 - $> sudo service libvirtd restart + # openstack-config --set /etc/nova/nova.conf DEFAULT libvirt_type qemu +# setsebool -P virt_use_execmem on +# ln -s /usr/libexec/qemu-kvm /usr/bin/qemu-system-x86_64 +# service libvirtd restart diff --git a/doc/config-reference/object-storage/section_configure_s3.xml b/doc/config-reference/object-storage/section_configure_s3.xml index d7847af109..99214db81e 100644 --- a/doc/config-reference/object-storage/section_configure_s3.xml +++ b/doc/config-reference/object-storage/section_configure_s3.xml @@ -46,10 +46,10 @@ $ cd swift3; git checkout v1.7 Then, install it using standard python mechanisms, such as: - $ sudo python setup.py install + # python setup.py install Alternatively, if you have configured the Ubuntu Cloud Archive, you may use: - $ sudo apt-get install swift-python-s3 + # apt-get install swift-python-s3 To add this middleware to your configuration, add the swift3 middleware in front of the swauth middleware, and before any other middleware that look at Object Storage requests (like rate limiting).