28 Commits

Author SHA1 Message Date
Eric Windisch
e994f5708d Remove bm_poseur, unmaintained and obsolete
The bm_poseur git repository link has been broken
for over 11 months. The virtualized/fake baremetal
environment is not working and has not worked in a
long time. Now, on the tail of enabling 'enable -o errexit',
this functionality now has a hard break.

Change-Id: I3cbd8db58c422bc5273d2433278aaa5e449ecfd9
Closes-Bug: 1285954
2014-02-28 15:21:38 -05:00
Ian Wienand
aee18c749b Enforce function declaration format in bash8
Check that function calls look like ^function foo {$ in bash8, and fix
all existing failures of that check.  Add a note to HACKING.rst

Change-Id: Ic19eecb39e0b20273d1bcd551a42fe400d54e938
2014-02-28 07:59:03 +11:00
Sean Dague
16dd8b3ed9 introduce if/then & for/do rules
we mostly have a consistent style on if/then & for/do in devstack,
except when we don't. This attempts to build a set of rules to
enforce this.

Because there are times when lines are legitimately long, and there
is a continuation, this starts off ignoring if and for loops with
continuations. But for short versions, we should enforce this.

Changes to make devstack pass are included. The fact that the
cleanup patch was so small is pretty solid reason that this is
actually the style we've all agreed to.

Part of a git stash from hong kong that I finally cleaned up.

Change-Id: I6376d7afd59cc5ebba9ed69e5ee784a3d5934a10
2014-02-05 07:52:54 +01:00
Adam Spiers
6a5aa7c6a2 Fix some Markdown formatting issues
Address miscellaneous issues with Markdown formatting in comments which
are consumed by shocco when generating the online documentation.

Change-Id: I953075cdbddbf1f119c6c7e35f039e2e54b79078
2013-10-24 17:38:19 +01:00
Adam Spiers
cb961597cc Fix shocco errors and warnings
A few Markdown-oriented issues were causing Docutils errors to
leak into the end-user docs on http://devstack.org

Change-Id: I51fa9698afb1bfb48596478d83bd1fdcd84ac52e
2013-10-24 15:43:05 +01:00
Sean Dague
101b424842 fix whitespace in the rest of lib/*
this brings this in line with bash8 checker

Change-Id: Ib34a2292dd5bc259069457461041ec9cd4fd2957
2013-10-22 13:02:23 -04:00
Arata Notsu
af15d35414 baremetal: Allow BM_SECOND_MAC to be unset
Currently DevStack registers the second nic of the baremetal
node even if BM_SECOND_MAC is not set or empty. However
an interface with an empty mac address causes dhcp to fail
(bug 1238595). And such operation will get to return a error
after the bug is resolved. So we should not register the
second nic if BM_SECOND_MAC is not set.

Related-Bug: #1238595
Change-Id: Ib3cc77686b72311403ccacbd70ae9cf43e6eb4c9
2013-10-11 22:14:46 +09:00
Jenkins
ac369d68d8 Merge "Wrong arguments for die() call" 2013-09-11 17:22:58 +00:00
Lucas Alvares Gomes
c33d1f986e Wrong arguments for die() call
die() needs $LINENO as its first arg

Change-Id: I7c8043dbeb55ec9ed566e7055a02c0a2993d0a8a
2013-09-09 14:01:11 +01:00
Lucas Alvares Gomes
74aad31c33 Missing pxelinux.0 on RedHat systems
On a RedHat system the syslinux binaries are located in a different
directory.

Change-Id: I3b7a111e82e8845b6222c57fb2cfb725d9bb1dd7
2013-09-06 18:08:04 +01:00
Arata Notsu
d3a18ae1ec Update baremetal to work with the latest DIB
Adjust DevStack to the current DIB's naming to kernel/ramdisk.

BM_HOST_CURRENT_KERNEL is removed since the kernel is extracted from
a diskimage with the ramdisk and the host's kernel is not used.

BM_BUILD_DEPLOY_RAMDISK is added to control whether use DIB or not.

If you set BM_BUILD_DEPLOY_RAMDISK=False, you must BM_DEPLOY_KERNEL
and BM_DEPLOY_RAMDISK to point existing deploy kernel/ramdisk.

Fixes bug 1207719

Change-Id: I62af0b1942b07ac12665c0ed3619d64c1cccbe1f
2013-08-02 21:36:11 +09:00
Jenkins
ec32e9a143 Merge "Add option to serve PXE for baremetal from nova-network" 2013-07-31 03:59:56 +00:00
Christian Berendt
a7a219ab76 renamed deprecated glanceclient parameter
According to the sources the parameter --public in python-glanceclient
should be removed after only using the new parameter --is-public in
Devstack.

Change-Id: I25fbb23f4823b3766db647dd50a5b538aad3e55a
2013-07-30 18:28:13 +02:00
Arata Notsu
bbf0645981 Add option to serve PXE for baremetal from nova-network
New variable BM_DNSMASQ_FROM_NOVA_NETWORK: if setting this true,
DevStack configures nova-network's dnsmask to provide PXE and does
not run baremetal's one. In this case PXE traffic occur in the fixed-ip
network, so no dedicated network for PXE is needed.

Change-Id: I67cade02c03ab45ab6b77d8da9066d7d5ec6c78b
2013-07-30 10:47:46 +09:00
Émilien Macchi
b2ef890db3 Add Debian OS support in DevStack
Fix bug #1176216

Change-Id: Ia94c332f02a921a936db249dc3b4a7ae4eff0400
2013-05-09 00:18:37 +02:00
Dean Troyer
cc6b443545 Formatting cleanups, doc updates and whatnot
Change-Id: Ica8298353be22f947c8e8a03d8dc29ded9cb26dd
2013-04-09 14:05:32 -05:00
Arata Notsu
c4193b22f3 Use baremetal-interface-add, not baremetal-add-interface
Since nova doesn't have such subcommand.

Change-Id: I3c99de38f959418f82d45078c7784ba6ab60c383
2013-04-08 15:25:30 +09:00
Sean Dague
584d90ec56 add emacs shell-script tagging
for files that don't start with a #! or end in .sh, the added tags
are nice for emacs users to automatically switch to the right mode.

Change-Id: If4b93e106191bc744ccad8420cef20e751cdf902
2013-03-29 14:36:49 -04:00
Tim Miller
9a3ba4b3e1 Fix typo in baremetal header comment.
Change-Id: I553c37581c92dcdc13e0d8dcdb9c8be7309deaa1
2013-03-18 18:09:07 -07:00
Jenkins
de3f9d3faa Merge "Fix minor typo in IPMI virt driver" 2013-03-06 19:15:26 +00:00
Ghe Rivero
cc404a481a Fix minor typo in IPMI virt driver
The correct driver to use is:
    nova.virt.baremetal.ipmi.IPMI
instead of:
    nova.virt.baremetal.ipmi.Ipmi

Change-Id: I2bf11a3acb72f7c2ba37f1a03efe09f50dc9d239
2013-03-06 11:50:40 +01:00
Devananda van der Veen
2920b7decc Stash baremetal deploy image IDs in a namespace.
Baremetal PXE driver should read deploy_kernel_id & deploy_ramdisk_id
from the 'baremetal:' namespace within instance_type['extra_specs']
so that it doesn't conflict with ComputeCapabilitiesFilter any more.

This allows nova-compute to use ComputeCapabilitiesFilter with baremetal
again. For this filter to properly match the baremetal ndoe's RAM,
we need to tune two other Nova options for physical hardware.

Fixes bug 1129485.

Change-Id: I0aa1b0fef8ac59a06217577af8c747437d2d6bf5
2013-03-04 11:50:10 -08:00
Arata Notsu
24f796149a Use 'nova baremetal-*' instead of nova-baremetal-manage
Change-Id: Iee4dd721387dce39c8e46ea0e1e428513498c5a0
2013-02-15 16:53:39 +09:00
Chris Krelle
35336282da Add dhcp server option to dnsmasq for baremetal
This sets the dns option for baremetal deploy clients.
this is useful for clients who may require external access
during the deployment process.

Change-Id: Ibe680d2acaad826e4868223ebfd1f112d7796662
Authored-by: Chris Krelle <nobodycam@gmail.com>
2013-02-06 17:35:27 -08:00
Attila Fazekas
91b8d13eda Fix "sudo: sorry, you must have a tty to run sudo"
On many systems the requiretty sudoers option is turned on by default.
With "requiretty" option the sudo ensures the user have real tty access.

Just several "su" variant has an option for skipping the new session creation step.

Only one session can posses a tty, so after a "su -c" the sudo will not
work.

We will use sudo instead of su, when we create the stack account.

This change adds new variable the STACK_USER for
 service username.

Change-Id: I1b3fbd903686884e74a5a22d82c0c0890e1be03c
2013-01-11 09:15:30 +01:00
Devananda van der Veen
75eaaf43c7 Minor fixes for lib/baremetal
A recent patch moved the flavor management out of nova-manage
and into python-novaclient. This corrects the behaviour of lib/baremetal
so that it calls "nova flavor-key" instead of "nova-manage". This also
fixes a logical error in testing whether dnsmasq is installed.

Change-Id: I3fa821c22ae45a49e283d091b6e5ed51c9757e88
2012-12-31 07:24:46 -08:00
Devananda van der Veen
7611c894b5 Add fake env support to baremetal
Use bm_poseur to create VM and network bridge
so that, in the absence of physical hardware,
baremetal driver still has something to manipulate.

Change-Id: Id80ede13a35e4380f358b47f08d41ff98ea9d70f
2012-12-28 10:56:17 -08:00
Devananda van der Veen
f35cf91a1d adding support for baremetal hypervisor
New files for baremetal driver:
- lib/baremetal
- files/apts/baremetal

Adds two dependencies:
- google shell-in-a-box
- diskimage-builder

Enable by setting both:
  VIRT_DRIVER=baremetal
  ENABLED_SERVICES="$ENABLED_SERVICES,baremetal"

Change-Id: Ibf6fe1671a759a449c9eb0df47751d1b31ade591
2012-12-28 11:33:58 -06:00