magnum/magnum/tests
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
..
contrib Remove kube-user.yaml 2016-08-05 16:33:34 -05:00
functional Fix ironic template 2016-08-09 11:27:55 +02:00
unit Fix ironic template 2016-08-09 11:27:55 +02:00
__init__.py Remove redundant FunctionalTest class 2015-07-15 03:39:11 +08:00
base.py Use fixtures.TempDir in unit tests 2016-05-27 15:03:34 +02:00
conf_fixture.py Copy logs on test failure 2016-02-29 10:25:10 -06:00
fake_notifier.py Emit notifications when bay operations get executed 2016-05-19 15:29:56 +08:00
fake_policy.py Remove container object 2016-08-01 16:16:20 +02:00
fakes.py Support the OpenStack-API-Version header 2016-07-14 09:23:06 +05:30
policy_fixture.py Remove redundant code about fake_policy 2015-08-07 01:29:26 +00:00
utils.py Remove redundant code from magnum.test.utils 2015-07-20 21:53:12 +08:00