magnum/magnum/tests/unit
OTSUKA, Yuanying 08531c1702 Fix ironic template
This is workaround fix to support baremetal.
Following items are remained to support.
* Documents
* Functional test

To test this template, there are some requirements and problem as below.

Requirements:
* `ephemeral_disk` on ironic baremetal flavor
  `ephemeral_disk` is used for docker storage instead of cinder volume.

* `fixed_subnet` must be setup with dns_nameservers like following.
    * `neutron subnet-update private-subnet --dns-nameserver 8.8.8.8`

* `fixed_subnet` must be IP version 4.
  if you use devstack, please add following configuration.
    * `IP_VERSION=4`

* Fedora 23 image including kubernetes, etcd, flannel.

Problem:
Ironic stores `instance_info` about nova instance.
`instance_info` contains config_drive data, but this data can be
too large to store ironic.nodes table.
Magnum uses large config drive data to setup k8s.
It means, we can not start ironic instance by Magnum.

Workaround fix is changing column type of ironic.nodes.instance_info.
Following sql will help you.

  `alter table ironic.nodes modify instance_info LONGTEXT;`

Partial-Implements: blueprint magnum-baremetal-full-support
Change-Id: Ica87610b9114bff4277b492de8fe528fe2860108
Closes-Bug: #1454895
Closes-Bug: #1472938
Co-Authored-By: Spyros Trigazis <strigazi@gmail.com>
2016-08-09 11:27:55 +02:00
..
api Merge "Add microversioning support for methods" 2016-08-04 08:40:05 +00:00
common Remove container object 2016-08-01 16:16:20 +02:00
conductor Remove container object 2016-08-01 16:16:20 +02:00
db Remove container object 2016-08-01 16:16:20 +02:00
drivers Fix ironic template 2016-08-09 11:27:55 +02:00
objects Remove container object 2016-08-01 16:16:20 +02:00
service Fix global stack list in periodic task 2016-07-27 10:11:51 +02:00
servicegroup Cleanup MagnumService Object usage 2016-01-29 15:39:28 +08:00
template Improve yml template test case. 2015-11-24 16:54:41 +08:00
__init__.py Make room for functional tests 2015-04-02 12:25:43 -04:00
test_hacking.py Add hacking rule for explicit import of _ function 2016-07-29 23:17:06 +05:30
test_opts.py Introduce unit test for genconfig 2015-09-03 09:02:36 +09:00