Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
=Known Issues=
* Controller node is memory intensive* Image resizing does not work* Volumes resizing does not work* Suspending instance with volume attached does not work after reboot =Pending Actions=* <s>Set up floating IP address range</s>* Create automated VM backup routine* <s>Create Fedora 19 32- and 64-bit minimal install images</s>None
=Hardware=
* RAID Controller
* Four Quick Swap Drive Bays
** 1 - 1 TB 850GB (OS and Backup)** 2 - 120GB SSD 2 TB (VMsImages and Backup)** 3 - Empty120GB SSD (VMs)
** 4 - Empty
=Software=
* CentOS 7 .2 x86_64 (Minimal)* OpenStack Juno Mitaka Release
=Setup=
* Download and install [http://isoredirect.centos.org/centos/7/isos/x86_64/ CentOS 7 x86_64 minimal] image following [https://www.howtoforge.com/tutorial/centos-7.1-server/ CentOS 7.1 Server] tutorial.* Configure FQDN (<code>/etc/hosts</code> and <code>/etc/hostname</code>)* Manually configure networking (set static IP address)* Add users and private keys for SSH login* Disable SSH password and root login* Enable EPEL Repo:<code>yum install epel-release</code>:or:<code>rpm -Uvh <nowiki>http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm</nowiki></code>* Perform OS update:<code>yum -y update</code>* Install OpenStack following [https://openstack.redhat.com/Quickstart RDO Quickstart] instructions (run <code>packstack --allinone</code> as '''root''')* Configure network bridging (refer to [https://openstack.redhat.com/Neutron_with_existing_external_network RDO Reference])** Set <code>CONFIG_PROVISION_ALL_IN_ONE_OVS_BRIDGE=n</code> Work in ''packstack-answers-20141028-205455.txt''** Executed <code>packstack --answer-file=packstack-answers-20141028-205455.txt</code> (as '''root''')** Created ''/etc/sysconfig/network-scripts/ifcfg-br-ex''** Revised ''/etc/sysconfig/network-scripts/ifcfg-enp9s0f0''** Appended lines to ''/etc/neutron/plugin.ini''** Restarted the network service ** Removed router and subnet ('''ALL''' instances must be terminated to remove subnet)** Recreated subnet with IP address allocation range (set floating IP addresses)** Recreated router to match gateway* Configure DNS to access internet** Edit <code>/etc/neutron/dhcp_agent.ini</code> and uncomment the line below:<pre># Comma-separated list of DNS servers which will be used by dnsmasq# as forwarders.# dnsmasq_dns_servers = </pre>: and add <code>8.8.8.8,8.8.4.4</code> after equal (=), then reboot as I could not determine what services to restart.* Extend cinder-volumes past 20GB to allow for creating additional volumes to attach to instances.** Followed the [https://udaraliyanage.wordpress.com/2014/05/23/openstack-increase-volume-capacity OpenStack Increase Volume Capacity] tutorial (substitute any name for ''cinder-volumes'')** After <code>losetup -f /var/lib/cinder/cinder-volumes</code> in ''/etc/rc.local'' file**# Added <code>&& losetup -f /mnt/backup/stack-volumes</code>**# When extending ''cinder-volumes'', add <code>&& losetup -f</code> and location of new LVM file to sequence.**# Do <code>pvs -v</code> to verify, then reboot and recheck.**# This change is required to ensure the LVM remains intact on reboot.** Created 50Gb additional space for volumes (''/mnt/backup/stack-volumes'').** Total volume space available is now 70GB.progress
=Build Images=
=Notes=
* the floating IPs situation may not work on non-externally routed IPs. this may be why they set up a 179. "public" network by detafult in the RDO setup. i deleted that network * the external network needs to be "flagged" as external. this cannot be done with the UI, but i am told the juno release has a feature where attribute editing. so that the external attribute can be set to Yes. once that is done, MAYBE the system allows floating IPs in that network even if the IP range is not externally routable* basically understand what it takes to get an image created, seasoned, and how we need to maintain these over long periods. i think the main workhorse is qcow2 tools.* these images are like "snapshots" in some way, but a snapshot is frozen and cannot be tweaked.* long term we want to make images like this for testing, e.g. and amahi 7 image that is bootable and it's plain instal. another example is a fully up to date amahi 7 image, etc.* so they are alive in that these images are frozen in time, but one takes a copy and can then evolve it into a new version of the image.* Refer to [https://raymii.org/s/articles/Fix_inconsistent_Openstack_volumes_and_instances_from_Cinder_and_Nova_via_the_database.html Fix inconsistent OpenStack volumes and instances from Cinder and Nova via the database] for correcting instances in error ('''NOTE:''' Use extreme caution as this could corrupt the database.) <u>ALWAYS</u> back up the database before making any changes!None
=Tips=
* Shutdown/Disconnect
** Stop all instances via SSH
** Detach volumes from instances (this may not be neededin Mitaka)
** Verify all volumes detached and instances stopped
** Perform Update/Reboot
* Once system rebooted:
** Verify cinder_volumes (LVM) is operational** Reattach volumes to instances (this may not be neededin Mitaka)
** Start all needed instances
** Verify all instances are operational
12,424

edits