This file is used by all scripts to find the directories for the files
they read or write. They find this file as "$TOP_DIR/config/paths".
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: Ia63b8489c66acf174f3b3850d24fd7c6108f59b4
Disk labels were referred to diagrams which was not requried at this
stage of learning for the students. This patch removes the references to the
diagrams to avoid confusion.
Change-Id: I3fc41cf7a96916b2f3eadfba953fa5f9e26c095a
Closes-Bug: #1267673
Implements: blueprint training-manuals
This change enables autostart functionality for osbash.
activate_autostart is called by a minimal script written by
preseed/kickstart files (if configured).
It creates (and grants sudo privileges to) the osbash user if
that has not been done by preseed/kickstart.
It uses template-osbashauto to generate /etc/init.d/osbashauto and
configures the system to run the script immediately and during every
subsequent system boot.
osbashauto iterates over all files in the autostart directory (in the
VirtualBox shared folder; filled by osbash from the host side) and
executes them as the osbash user. It writes its log files into the log
directory in the shared folder.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: I0394c5ea4e3f75a9d9bee30d119e047a762e86ce
The helper functions in this library are for use by host-side scripts
(osbash) and by scripts running inside the node VMs.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: Ie3f7ec480a70beea1abedb3bb81d7380b978d7b2
This change adds a library of functions that are used by scripts running
inside the node VMs (i.e. scripts located in the scripts directory).
Many of them are specific to either Vagrant or osbash, so they might
get split out later on.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: Ieb57e77bb65c562d3674b964af4ac28bc8766c65
This changeset adds the functions-common library from the devstack
project.
As the file's header states: "The canonical copy of this file is
maintained in the DevStack repo. All modifications should be made there
and then sync'ed to other repos as required."
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: I726414adca545fc6d6e59cd900b6179a6233f096
The functions introduced with this changeset create and configure
VirtualBox node VMs.
The VMs use copy-on-write disks based on previously created base disks.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: Idfb78f3683c5bedba96f16fdef23512be6c251d9
The function introduced with this changeset creates a base disk that
can be used to create custom node VMs.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: Ib736b65ec0f87decd81866a60ed82d6f8b5aa0f1
This changeset adds a library of functions for interacting with
VirtualBox via VBoxManage. It contains functions for creating and
booting VMs, taking snapshots, configuring disks, networking, and
shared folders.
In addition, its vm_attach_guestadd-iso can ask VirtualBox for the
guest-additions ISO and, if that fails, look for it on the local
filesystem or download the correct version from virtualbox.org. On
Windows (wbatch), the function relies on VirtualBox providing the
guest-additions ISO (which on that platform appears to be a safe bet).
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: Id5529432eba01bd1e3e67a1d64b7517efd1966d0
This changeset adds two files (one for Ubuntu 12.04.4 LTS amd64 server,
one for Fedora 20 x86_64) containing the distribution specific
boot code.
This includes the URL for the installation ISO image, the location of the
distribution-specific preseed or kickstart files, the boot arguments,
and the sequence of keys needed to get the installer to take our boot
arguments.
The preseed or kickstart file to use is selected based on the VM_ACCESS
variable.
In the case of Fedora, VM memory is increased to 1024 MB to allow a
smooth install.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: Idaf8b859e2b58036948f1a3ad077d797b3757d61
There is a wrong caption in the subsection of 'Launch an instance from an
image' in the 'Controller Node' section of Associate Training Guide. And
there is no figure for it. This patch fix the problem.
Change-Id: I112bbfc9947091e36a55ba0471928b5822c29424
Closes-Bug: #1327017
This changeset adds templates used by osbash/wbatch guest-side scripts
when creating network configuration files.
The template-ubuntu-interfaces-* files are for /etc/network/interfaces
(as used by Ubuntu and Debian).
The template-fedora-ifcfg-* files are for ifcfg-<interfacename> files
in /etc/sysconfig/network-scripts/ (as used by Fedora).
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: I0aebc71e416bf931aa698d66d9e135ba05fda017
The files added in this changeset are used by osbash as templates when
the user requests the creation of Windows batch files.
The names of the templates end on _bat rather than .bat because some
mail providers refuse to deliver .bat files even within archives.
The generated Windows batch files will have the proper extension (.bat).
Change-Id: I5dbed4bc6a4e30b50693208812d3dbfebecb2f19
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Add a library used by osbash to generate Windows batch files that
can build a base disk and create a VM cluster with no dependency
other than VirtualBox.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: I43cf5f47ac17b8292c5ce32a6849e89d1e192be3
This changeset adds README.rst files to several subdirectories
to explain their content and purpose.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: Ibba6a68d104b2aade412a06d63ed49467fb2bba3
This library is used by osbash host-side scripts.
It contains exec_cmd, a simple function that is used when marking
commands for conditional execution, depending on whether the user
requested Windows batch files and whether the artifacts are to be
created on the local machine as well.
The library also contains functions that allow the host to execute
scripts in the VMs, either directly through ssh or indirectly, by
adding files to an autostart directory shared with the guest VMs.
In addition, the library contains functions to find and (if
necessary) download the install ISO image of the configured
Linux distribution.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: I49d49340db89b61a03dbc483291c252c8c72d61a
For the compute and the network nodes, the current Vagrantfile uses IP
addresses that are different from those in the training-guide.
This patch fixes that.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: Ib4909d42472e8a60397952d04d88e80f5d9daad1
Add scanlib, a library for turning characters into keyboard scancodes
which are needed for scripted keyboard input to VirtualBox VMs.
The keyboard scancode strings returned by this library consist of groups
of two or four hex bytes: two for a key pressed and released, four if a
modifier key such as shift is involved.
The char2scancode function is complemented by two functions for special
keys, esc2scancode and enter2scancode.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: Id8691fff1499cc2428e4b7858c908c117f3c4bce
These kickstart files take the Fedora 20 installer through the first
stage of installation.
The three files differ in what is configured when the freshly installed
system reboots:
ks-ssh.cfg:
user osbash (password: osbash) can log in with the insecure Vagrant
key and use password-less sudo for all commands.
ks-vbadd.cfg
VirtualBox guest additions are installed from /dev/sr1 (will
be put there by install script); a script is installed to run
activate_autostart.sh from an auto-mounted shared folder upon reboot.
ks-all.cfg:
Enables both VM access methods described above.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: I8d29b775b380f4efdcbca61ed1667b84db572bf5
These preseed files take the Ubuntu 12.04.4 LTS installer through the
first stage of installation.
The three files differ in what is configured when the freshly installed
system reboots:
preseed-ssh.cfg:
user osbash (password: osbash) can log in with the insecure Vagrant
key and use password-less sudo for all commands.
preseed-vbadd.cfg
VirtualBox guest additions are installed from /dev/sr1 (will
be put there by install script); a script is installed to run
activate_autostart.sh from an auto-mounted shared folder upon reboot.
preseed-all.cfg:
Enables both VM access methods described above.
Partial-Bug: 1312764
Implements: blueprint openstack-training-labs
Change-Id: I37752b7311f7e41b1a798a711f2059ab4ac51230
Adds basic skeleton/structure with stubs. Changes are done as per Roger
Luethi's scripts. These changes are done to incorporate various features
like logging, multi-os setup etc. These scripts may also target more
virtualization products like KVM, LXC down the roadmap.
blueprint openstack-training-labs
Change-Id: I0bb33b518080f8a9b9c0e1624f43a66337eb8278
Training Labs folder was kept inside the training-guides folder since the
project was sheltered under openStack manuals project. To keep the content
more organized, moving the folder to appropriate location would be necessary.
blueprint openstack-training-labs
blueprint training-manuals
Change-Id: I4007c3fb64e76cda798ffe6cb68557f462ad07ff
added the files to explain the spec basics. We
will follow using tox as it seems to be too much
overhead for little benefit for the volume of
spec requests the team is likely to get.
Implements blueprint training-guide-spec
Change-Id: I7ba685c94b375f1e1ef2f7203034ad2b86c0c748
POM.xml was not updated for the changes in the repository structure. This patch
address the changes required for repo migration.
all 49 entries using the local reference ../common/ were updated with the
raw github URL.
bk002-ch013-operator-object-storage-node.xml is commented out while we figure out
how to correct including remote content that references local content.
Change-Id: Iea78458e536330778360f87993cbbb37d4b389d2
Keystone Architecture in OpenStack Training Guides has
typo with cinder policy instead of nova policy filename.
Also, the policy sample was missing. Added policy sample
on privileges for creating volumes.
Change-Id: I85e2e6a3c75a98e2cb5c5e5eda3ff8647aa32e66
Closes-bug: #1326104