Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
{{NeedsUpdate}}
{{WorkInProgress}}
===Objective===
This is a project to update and modernize the infrastructure that keeps the Amahi web sites and services running.
'''NOTE:''' this project is not about running Amahi platform software on virtual servers, etc. For that there is a separate page on [[Virtualization]].
===Goals===
We have multiple goals:
* run some of internal build machines in a reliable, efficient way, so that we have consistent and updated builds/releases
...
===Known Issues===
* Controller node is memory intensive
* Image 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
* Create Amahi 7 Express CD image
===Hardware===
Dell Rack Server
* Dual Xeon E5450 3.0 GHz Processors
** 4 - Empty
===Software===
* CentOS 7 x86_64 (Minimal)
* OpenStack Juno 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>)
** Total volume space available is now 70GB.
===Build Images===
This will outline how to build OpenStack images using Proxmox VE.
* Log into Proxmox VE web UI
'''REF:''' [http://www.jamescoyle.net/how-to/323-reclaim-disk-space-from-a-sparse-image-file-qcow2-vmdk Reclaim disk space from .qcow2 or .vmdk image]
===Create Instance===
This is a nice straight forward tutorial on [https://community.hpcloud.com/article/creating-your-first-instance-0 Creating an instance].
===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
* 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!
===Tips=======Network Issues====
If the DNS server is changed or networking appears inoperable, check the following to ensure the DNS is correct:
* ''/etc/sysconfig/network-scripts/ifcfg-br-ex''
service neutron-openvswitch-agent restart</pre>
====Volume Issues====
When a volume becomes detached and/or shows in error, the state can be reset:
:<code>source keystonerc_admin</code>
or use web UI.
==Also refer to [https://bugs.amahi.org/issues/2051 Amahi Bug #2051]. ==Update/Reboot/Shutdown Process====
* Shutdown/Disconnect
** Stop all instances via SSH
** Verify all instances are operational
====Create Static IP for Instance====
Setting a static IP for instances will ensure the internal IP address remains the same through it's life cycle. The floating IP address can be easily added afterwards.
* As root user, execute <code>source keystonerc_admin</code>
Ref: [https://ask.openstack.org/en/question/30690/add-multiple-specific-ips-to-instance/ Add Multiple Specific IPs to Instance]
====Fedora Cloud Images====
See [https://www.rdoproject.org/Running_an_instance#Step_5:_Launch_the_instance Launch Fedora Cloud images] for guidance.
 
==Miscellaneous==
Refer to [https://bugs.amahi.org/issues/2050 Amahi Bug #2050] for some OpenStack Command-Line syntax.
----
12,424

edits