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
100 stars 95 forks source link

RFE - Add functionality to deploy OpenDaylight with Composable roles #343

Open pradiptapks opened 5 years ago

pradiptapks commented 5 years ago

Currently in infrared, there is no composable functionality for OpenDyalight. Although following steps didn't help to deploy Networker composable profile for OpenDaylight. Can someone share appropriate steps to deploy OpenDaylight service in Networker composable profile? It would be appreciated infrared we can create an additional composable profile for ODL.

  1. Modify the interface and groups for odl node in topology section.
    
    cat /root/.venv_infrared/infrared/plugins/openstack/defaults/topology/nodes/odl.yml
    name: odl
    flavor_id: m1.small
    interfaces:
    nic1:
        network: "management"
    nic2:
        network: "data"
    nic3:
        network: "external"
    external_network: management

security_groups:

groups:

  1. Commented the required OSP service and updated ODL services in networker composable yml.
/root/.venv_infrared/infrared/plugins/tripleo-overcloud/files/roles/networker/controller.yml
    #- OS::TripleO::Services::OpenDaylightApi
        - "{% if install.version|default(undercloud_version) |openstack_release > 12 %}OS::TripleO::Services::OpenDaylightOvs{% endif %}"

/root/.venv_infrared/infrared/plugins/tripleo-overcloud/files/roles/networker/networker.yml
    #- OS::TripleO::Services::NeutronDhcpAgent
    #- "{% if install.version|default(undercloud_version) |openstack_release > 11 %}OS::TripleO::Services::NeutronL2gwAgent{% endif %}"
    #- OS::TripleO::Services::NeutronL3Agent
    #- "{% if install.version|default(undercloud_version) |openstack_release > 11 %}OS::TripleO::Services::NeutronLbaasv2Agent{% endif %}"
    #- "{% if install.version|default(undercloud_version) |openstack_release > 11 %}OS::TripleO::Services::NeutronLinuxbridgeAgent{% endif %}"
    #- OS::TripleO::Services::NeutronMetadataAgent
    #- OS::TripleO::Services::NeutronOvsAgent
    #- "{% if install.version|default(undercloud_version) |openstack_release > 11 %}OS::TripleO::Services::NeutronVppAgent{% endif %}"
     - OS::TripleO::Services::Ntp
    #- OS::TripleO::Services::OpenDaylightOvs
    - "{% if install.version|default(undercloud_version) |openstack_release > 12 %}OS::TripleO::Services::OpenDaylightApi{% endif %}"

It seems the above steps didn't help to include the updated service in following roles (composable_roles/roles/roles_data.yaml) for overcloud deployment.

pradiptapks commented 5 years ago

@obaranov It would be appreciated if you share any suggestion on this following RFE? https://github.com/redhat-openstack/infrared/issues/343