Comment 7 for bug 1572033

Revision history for this message
Krzysztof Szukiełojć (kszukielojc) wrote :

I was able to get to 9 step in virtual env.
This are steps I used

Steps to reproduce:
1) enable advanced feature in Fuel
1a) Use virtio driver for network instead of e1000
2) Create new environment
3) create a new network dedicated for ceph
fuel --env 1 network-group --create --node-group 1 --name "cluster" --release 2 --cidr "10.109.5.0/24" --vlan 222

4) upload custom network template
fuel --env 1 network-template --upload --dir ./
5) add 3 physical hosts and assign them a virt role
6) define 1 VMs on each hypervisor
for i in 1 2 3;do fuel2 node create-vms-conf $i --conf '{"id":1,"mem":2,"cpu":1,"vda_size":"200G"}';done

#id1 = for mongo, id2 = for controller, id3 - for LMA installed after the env is deployed (plugin is hot-plugabble)
7) Set proper IP ranges on network tabs (VLANs are already specified after the template is uploaded)
7a) Modify /etc/puppet/modules/osnailyfacter/templates/vm_libvirt.erb

Add
 <bootmenu enable='yes'/>

And replace interfaces interfaces to
    <interface type='bridge'>
      <source bridge='br-ex'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-database'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-ceph'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-fw-admin'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-ex'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-storage'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-mgmt'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-ex'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-messaging'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-ha'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-mongo'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-openstack'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-services'/>
      <model type='virtio'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br-prv'/>
      <model type='virtio'/><virtualport type='openvswitch'/>
    </interface>

8) privison VMs via UI or via cli (fuel2 env spawn-vms 1)
9) once the new VMs are discovered assign them with Controller, and Mongo roles; add physical compute nodes and Ceph OSDs

Correct problem is that interfaces aren't created according to /etc/puppet/modules/osnailyfacter/templates/vm_libvirt.erb.
I tried different template/interafaces, but it had not mongo/ceph roles and I failed.