blueprint migrate-to-diskimage-builder

Incorporated code review comments
- removed IDE specific values from .gitignore
- moved SSH Key creation into redstack/functions_qemu script
- removed dead files
- added GUEST_USERNAME if needed to override (otherwise inherits host username)
- cleaned up MySQL startup so that it does not start initially

Added "elements" directory which contains the parts to build a reddwarf-guest and reddwarf-mysql image
Modified "redstack" so that it installs diskimage-builder and copies elements to diskimage-builder directory (temp workaround)
Modified "redstack.rc" to point to diskimage-builder repository
Modified "functions_qemu" to replace ubuntu vm builder with diskimage-builder

Change-Id: Ifd6a28d94b3cc8d4d8dc6792d5db48b6ec57004d
adding ubuntu vmware performance options to doc

With these options it will allow you to make builds with kvm emulation
instead of qemu.

Bug 1098329
Change-Id: I95ff6979e82b7a7a3160855ab9db1d5e0c68fc65
Consolidating multiple volume flags into a single flag.

Implements blueprint reddwarf/fix-volume-flags

Change-Id: Ifb1e6dfec753d5bc4644f27efdf3eb495ed87659
Merge "Consolidating multiple volume flags into a single flag."
Merge "blueprint migrate-to-diskimage-builder"
Clean up scripts for guest image building

    creates sudoers files in tmp and sets perms before moving it to /etc/sudoers.d
    creates .ssh dir as root then changes perms and ownership to guest user
    creates symlinks to elements files rather than copying them to diskimage-builder

Change-Id: Ib019e46107fab1362d57f5fec3cdb97214764614
Fixes: bug/1100507
Create redstack command for post devstack run

Created a new command called post-devstack, which is meant to be run after a reddwarf devstack install.
The new redstack task does the following:
1. Create extra test users needed for the integration tests (eg. daffy, chunk, etc.)
2. Modify the integration test config files.
3. Install the needed test packages (proboscis/nose)
4. Build the guestimage and upload it to glance

Also fixed the path of the reddwarf conf files to be /etc/reddwarf and not ~.
(To be consistent with other OS components)

Fixes bug 1101297, 1101296

Change-Id: I352d0e50c4af5c7a131eae2b2a21b55cd1d52e7b
Merge "Create redstack command for post devstack run"
Parametrized paths for components in test config

Parametrized paths for keystone, glance, nova, reddwarf components
and set the appropriately in the test config. This is needed for the
vm-gate integration piece. The vm-gate doesn't use /opt/stack as the
location of the OpenStack components, so these need to be parametrized
and set correctly.

Fixes bug 1103718

Change-Id: I54bcf15af1423e22b2efef722eb19c222fce766e
Remove duplicate GRUB configuration

    The diskimage-builder now contains the GRUB configuration

    Removing extra (unnecessary) packages from base-apps

    Locking-in version on libmysql18 so that it works with mysql and percona

Change-Id: I81beafe0b9d6b563f07611ffcf01eefc8a28fb4c
Fixes: bug #1103665
Merge "Remove duplicate GRUB configuration"
Parametrize service_host value in the test config

Parametrize service_host value in the test config to be based on
actual value of SERVICE_HOST from devstack/vmgate config. This is
needed for the vm-gate integration piece. The vm-gate driver to devstack
uses 127.0.0.1 instead of localhost which causes a mismatch in the
reddwarf URLs checked by the tests, so these need to be set correctly.

Fixes bug 1103778

Change-Id: If544db2eb0e9fec5c5b35f6551ae0e7b648d35ae
Fixes and Improves Guest Agent Image

    Fixes assignment of tmp file when creating sudoers file
    Moved libmysqlclient18 to mysql element (for future compat)
    Disable AppArmor profile for mysqld so cnf file can be changed

Change-Id: I88fcceaf423237b4cf59c111b047453cd389f9b3
Fixes: bug #1103876
Merge "Fixes and Improves Guest Agent Image"
Ensure AppArmor Utils package is Installed

    AppArmor Utils contains apparmor_parser which is used to
    disable/enable profiles.  Currently, we are disabling mysql
    apparmor profile in guest agent so we load new cnf file

Change-Id: I7b4158e8aeb757ddf35f63de5ff44e71420d6846
Fixes: bug #1107616
Fixed redstack to enable host ips other than 10.0.0.1

There were a few places in redstack, reddwarf conf files, and diskimage-builder
files where we were assuming that the host would always be at 10.0.0.1. This was
tripping up the devstack-vm-gate which has the host as 10.1.0.1 . Fixed the
scripts and config files to use the NETWORK_GATEWAY from the devstack configuration.
We fall back to 10.0.0.1 if no NETWORK_GATEWAY is specified as the default behaviour.

This fixes bug 1108372

Change-Id: Ib53ff3548269abd1b9e006d71382a417237f0068
Merge "Ensure AppArmor Utils package is Installed"