Commit Graph

8 Commits

Author SHA1 Message Date
Ian Wienand 96dbd1a34e launch: move old scripts out of top-level
These don't make any sense in the top-level these days.

Once upon a time we used to use these as node scripts to bring up
testing nodes (I think).  The important thing is they're not used now.

Change-Id: Iffa6c6bee647f1a242e9e71241d829c813f2a3e7
2020-09-03 09:55:42 +10:00
Clark Boylan 319c9c44f0 Use swapfile if no extra device is present
We are booting instances outside of rax and they don't always come with
extra devices that can be repurposed for swap. If in that case then
create a swapfile instead.

Note we do not use fallocate as swapon's manpage says this is suboptimal
with the linux kernel's swap implementation.

Change-Id: I8b9ce18c18e4069aba7de27bb6a9927627b15b49
2019-07-17 10:37:30 -07:00
Monty Taylor 0bb4232586 Add base playbooks and roles to bootstrap a new server
We want to launch a new bastion host to run ansible on. Because we're
working on the transition to ansible, it seems like being able to do
that without needing puppet would be nice. This gets user management,
base repo setup and whatnot installed. It doesn't remove them from the
existing puppet, nor does it change the way we're calling anything that
currently exists.

Add bridge.openstack.org to the disabled group so that we don't try to
run puppet on it.

Change-Id: I3165423753009c639d9d2e2ed7d9adbe70360932
2018-08-01 14:57:44 -07:00
Clark Boylan 3beb89f8bf Create more inodes on ephemeral partition fs
When we create the ext4 filesystem on the ephemeral device presented to
rax nodes do so with roughly twice the number of inodes as the default
ext4 bytes to inodes ratio.

We do this because we have found that we have in multiple cases needed
more inodes and that is difficult to deal with after the fact. This may
create more inodes than necessary in other cases but the cost is
relatively low (just more disk used).

Change-Id: Ie5414212f4505e98ba3ee8144ac90fcd05aa5b67
2017-10-16 17:25:34 -07:00
Paul Belanger c3f3e627ea
Fix make_swap on rackspace
Rackspace is now providing a partition table on /dev/xvde1, so check
to see if a filesystem exists, and if now, delete it and rebuild.

Import our logic from devstack-gate role to fix swap issues too.

Change-Id: I81571489cab121159f48a9437a24388696db331c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-11 18:17:42 -04:00
Clark Boylan 6429922e99 Add support to launch-node for cinder attach
Now that we have a shade version of the launch node script adding in
support for attaching a cinder volume is simple. Do this so that
launching mirrors which rely on cinder volumes is simpler.

This updates the mount_volume.sh script to setup the first cinder volume
with lvm and mount it under the specified path. It will also install
lvm2 pacakges since they may not be present on all base images.

This updates the make_swap.sh script to avoid blindly using /dev/vdb as
the location for swap as this may be a cinder volume or config drive.

We add availability zone, device specification, mount path, and
fs label support to shade-launch-node.py as these are all necessary
inputs to properly mount a cinder volume in a VM.

Change-Id: Ie95fd4bd5fca8df4f8046d43d1333935cad567e3
2016-04-19 11:07:23 -07:00
Monty Taylor 61675716c4 Remove references to old volume from fstab
On HP Cloud, /dev/vdb winds up in fstab, which leads us to having
dupliate entries for /mnt.

Change-Id: I2c0914fdcf149cd823d4c9833a6e21d2bca8a6e7
2014-09-05 18:05:29 +00:00
James E. Blair 2c8d19ab08 Create a swap partition if needed for new servers
Add a script to  handle cloud servers with no swap. This can be
used before install_puppet when developers run it by hand, and
is called directly by launch_node. If the host has
no swap, create a swap partition from the ephemeral disk and use
the remainder on /opt.

Change-Id: Iac8bfe4924d8607ddbddc45312a51fe52eb4cdbc
2014-04-23 15:44:06 -07:00