redhat-openstack / infrared

Plugin based framework that aims to provide an easy-to-use CLI for Ansible based projects
https://infrared.readthedocs.io/en/latest/index.html
Apache License 2.0
99 stars 96 forks source link

SDN supports #316

Open coolpalani opened 6 years ago

coolpalani commented 6 years ago

is there any inbuilt SDN supports included in this infrared such as Contrail or OpenDaylight Can I use this to automate in baremetal instead of Virtual + nested setup

wznoinsk commented 6 years ago

hi coolpalani, infrared supports deploying overcloud (via tripleo-overcloud plugin) with whatever tripleo-heat-templates you give to it, we (Red Hat) have a CI job for OSP12 (pike) + opendaylight deployments, while most of our deployments are tested within nested-virtualization environment we also test the deployment on baremetal (which is not far different from virtualized deployment from infrared/tripleo point of view but yes - it needs additional quirks and networking between baremetal machines setup correctly)

an example infrared command which will deploy tripleo-overcloud with opendaylight on baremetal (that's a cut from bit CI job so you won't need most of these params probably):

infrared tripleo-overcloud -o overcloud-install.yml --version 12 --deployment-files /home/rhos-ci/jenkins/workspace/DFG-opendaylight-odl-netvirt-12_director-rhel-virthost-1cont_2comp-ipv4-vlan-baremetal/odl-qe/deployments/ospd-12-odl-baremetal-vlan/ --overcloud-templates opendaylight --storage-backend lvm --overcloud-ssl no --network-backend vlan --network-protocol ipv4 --network-bgpvpn no --network-dvr no --network-l2gw no --storage-external no --overcloud-debug yes --introspect no --tagging no --deploy yes --post no --containers yes --collect-ansible-facts True --deployment-files /home/rhos-ci/jenkins/workspace/DFG-opendaylight-odl-netvirt-12_director-rhel-virthost-1cont_2comp-ipv4-vlan-baremetal/odl-qe/deployments/ospd-12-odl-baremetal-vlan/ --overcloud-script /home/rhos-ci/jenkins/workspace/DFG-opendaylight-odl-netvirt-12_director-rhel-virthost-1cont_2comp-ipv4-vlan-baremetal/odl-qe/deployments/ospd-12-odl-baremetal-vlan/overcloud_deploy.sh --public-subnet odl_subnet --public-vlan-ip 192.168.210.100

that will eventually result in something like:

timeout 100m openstack overcloud deploy \ --templates /usr/share/openstack-tripleo-heat-templates \ --libvirt-type kvm \ --ntp-server clock.redhat.com \ -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \ -e /home/stack/ospd-12-odl-baremetal-vlan/hostnames.yml \ -e /usr/share/openstack-tripleo-heat-templates/environments/docker.yaml \ -e /usr/share/openstack-tripleo-heat-templates/environments/docker-ha.yaml \ --environment-file /usr/share/openstack-tripleo-heat-templates/environments/services-docker/neutron-opendaylight.yaml \ -e /home/stack/ospd-12-odl-baremetal-vlan/docker-images.yaml \ -e /home/stack/ospd-12-odl-baremetal-vlan/debug.yaml \ -e /home/stack/ospd-12-odl-baremetal-vlan/nodes_data.yaml \ -e /home/stack/ospd-12-odl-baremetal-vlan/network-environment.yaml \ --log-file overcloud_deployment_46.log

hope that helps ping here if you need more info