Changes

From Amahi Wiki
Jump to: navigation, search
{{WorkInProgress}}
'''Last Update:''' May 22, 2022
=Objective=
This is a project to update and modernize the infrastructure that keeps the Amahi web sites and services running.
<br>
'''Server #1 (CURRENT):'''
* OpenStack release UssuriYoga* Operating System: CentOS 8.2.2004Stream* 24GB 32GB PC2-5300 RAM (4x2/8x28x4)
* Quick Swap Drive Bays
** 1 - 128GB SSD (LVM)1TB** 2 - EMPTY750GB (Backup)** 3 - 800GB HD (LVM)EMPTY** 4 - 120GB SSD (Backup)EMPTY
<br>
'''Server #2 (BACKUP):'''
* OpenStack release SteinWallaby* Operating System: CentOS 7.8.2003Stream* 32GB 24GB PC2-5300 RAM (8x44x2/8x2)
* Quick Swap Drive Bays
** 1 - 1 TB850GB (LVM)** 2 - 120 GB SSDEMPTY** 3 - 750 GB 120GB SSD (Backup)
** 4 - EMPTY
<br>
=Setup=
The following guidance is based on the latest release of OpenStack (UssuriYoga):
<ul>
<li> Download [https://www.centos.org/download/ CentOS8 Stream] minmal image and install following [https://linuxhint.com/install_centos8_netboot_iso/ Installing CentOS 8 using NetBoot ISO Image] tutorial(use LVM, but remove ''/home'' partition and redistribute space to ''/''). </li><li> [https://linuxconfig.org/rhel-8-configure-static-ip-address Set Static IP Address] and [https://techjourney.net/how-to-set-change-hostname-fqdn-fully-qualified-domain-name-in-rhel-centos-7/ Configure configure Fully Qualified Domain Name] and , then reboot</li><li> Follow step 0 - 2 3 of the [https://www.rdoproject.org/install/packstack/ RDO Packstack Quickstart] for the OpenStack installation (ensure step 0 prerequisites are completed first).</li><li> At step 34, follow the [https://www.rdoproject.org/networking/neutron-with-existing-external-network/ Neutron with existing network guidance]:</li>
<ul>
<li> Use command : <code>packstack --cinderallinone --volumesprovision-createdemo=y n --cinder-volumes-size=100G --provision-demo=n --oskeystone-heatadmin-installpasswd=y --os-ceilometer-install=y --os-horizon-ssl=n {set password} --os-neutron-ml2-mechanism-drivers=openvswitch --os-neutron-ml2-tenant-network-types=vxlan --os-neutron-ml2-type-drivers=vxlan,flat,vlan --os-neutron-l2-agent=openvswitch --os-neutron-ovs-bridge-mappings=extnet:br-ex --os-neutron-ovs-bridge-interfaces=br-ex:eth0 --nova-libvirt-virt-type=kvm</code> (replace {set password} and ''eth0'' with appropriate interfacevalues)</li>
<li> Skip down to ''Now, create the external network with Neutron.'' and follow guidance.</li>
<li> Next move to ''Then create a router and set its gateway using the external network...'' and follow remaining guidance.</li>
<li> TCP / 443 (<i>Optional</i>)</li>
</ul>
<li> Set Cinder Volumes to 100GB</li>
<li> Add users and private keys for SSH login</li>
<li> Disable SSH password and root login</li>
<b>NOTE:</b> A terminal script has been created developed to automate the installation steps above for OpenStack after CentOS is installed.
=Naming Convention=
* Images: '''os-type''' (i.e. ''f24-cd'', ''f24-dvd'', etc)
* Snapshot: '''os-function-ss#''' (i.e. ''f24-repo-ss1'', ''f24-bot-ss2'', etc)
* Volumes: '''instance-vol''' (i.e. ''f24-repo-vol'', ''mirrormgr-vol'', ''dl-masterdlmaster-vol'', etc)
=Build Images=
** If using a clone, start the VM
* Open a console window for the VM
** Log in and as <code>root </code> do the following
*** <code>dd if=/dev/zero of=/mytempfile bs=1M</code> (zero out any unused space)
*** <code>rm -f /mytempfile</code>
=Backup=
'''Last Backup completed:'''
* Instances - ''25 Aug 202004 Jul 2021''* Volumes - '' 25 Aug 202004 Jul 2021''
=Tips=
==Command Line==
[https://docs.openstack.org/python-openstackclient/ussuri/ OpenStack Command Line Guide]
==Network Issues==
See [https://docs.openstack.org/newton/user-guide/cli-change-the-size-of-your-server Change the size of your server] for command line guidance.
==Fedora Cloud Base Images==See [https://wwwalt.linuxtechifedoraproject.comorg/use-fedora-23-cloud-image-redhat-openstack/ Launch Fedora 23 Cloud imageBase Images] for guidance.
== Migration ==
12,424

edits