Commit Graph

12 Commits

Author SHA1 Message Date
Ben Swartzlander 7c22a02127 Add rnd-tools for faster random pool initialization
Use rngd to quickly fill up the entropy pool at boot time.

Change-Id: I68acd3c3c2fff158a0d794cc32a63ff9de03ac52
2017-10-26 18:14:55 +00:00
Ben Swartzlander d0a55ebf86 Use DHCP for eth1 and enforce MTU
If there are 2 network interfaces, acquire DHCP leases from
both. Also fix the DHCP client script to accept the MTU from
Neutron.

Change-Id: I664be34659bc41f38c69d4b3e08120488cb07f83
2017-10-26 18:13:15 +00:00
Ben Swartzlander dca0bd32e5 Add fake sudo script
Manila tests use sudo all over the place and while the only
configured user in the test image is root, it's easier to
fake the sudo binary than to modify test code to know when
to sudo and when to not.

Also remove 2 mkdir calls that are obviated by the new file
getting copied in those directories.

Change-Id: Ib0cbe05130bc617154bf471e2ecc0a78b2bb8377
2017-02-16 16:47:09 +00:00
Ben Swartzlander cadc0ee391 Create a config drive to test the metadata code
Because it's not possible to test the metadata service
code in an easy way, create a config drive ISO image for
test purposes.

Also speed up the metadata code to not block while waiting
for the metadata service and to exit quickly when there is
no config drive CD present.

Change-Id: If6a5565825b67de58715e3d2de1cbf69b7f9e551
2017-01-30 19:09:43 +00:00
Ben Swartzlander 0c98cfee3e Wrap long lines
Fix bashate warning E006 by wrapping long lines.

Also make sure bashate runs on init scripts that don't end
in .sh.

Change-Id: I077a064505e6f11f61c65279a54c9b2430044bf0
2017-01-29 23:56:20 +00:00
Ben Swartzlander 0358d1f175 Conform to bashate standards for control structures
Enable bashate errors E010 and E011 which require "then" and "do"
tokens on the same lines as "if" and "while" respectively.

Change-Id: I4a167530a21ab95d5dbe9f903facc9566a0461e2
2017-01-29 23:56:06 +00:00
Ben Swartzlander 6f370f0608 Convert tabs to spaces
Replace all tabs with 4 spaces, and re-enable bashate
warnings E002 and E003.

Change-Id: I11f3a9ca9b910555e1b1477c52288493f9bb0244
2017-01-29 18:55:19 -05:00
Ben Swartzlander c533026ed7 Support SSH keys from config drive
Add kernel support for IDE CDROM drives, add a package for JSON
parsing, and updating the metadata script to look for SSH keys
on the config drive in addition to the metadata server.

Change-Id: Ic8f065bfd77dd4c533590a023bab8b1d32da1f53
2017-01-28 15:38:30 +00:00
Jenkins 02b1c8ec5e Merge "Support DHCPv6" 2017-01-28 15:38:04 +00:00
Ben Swartzlander b355c01d5c Support DHCPv6
Add dhcp6c client to aquire IPv6 addresses and routes automatically
and modify ifupdown config to use it for eth0.

Change-Id: I6cdaf4cfaeef6b101659a9abf98b1dd2e0fc2b77
2017-01-28 15:24:03 +00:00
Ben Swartzlander 9698c519c7 Replace chown with chmod
Chmod was accidentally used instead of chown in the metadata script.

Change-Id: I34d550bd57d7858250f8039c48bc52645923bb5b
2017-01-28 15:23:27 +00:00
Ben Swartzlander 9d92a48629 Initial commit 2016-10-19 11:36:17 -04:00