Re: Installing out-of-tree ML2 neutron plugins with kolla-ansible
Hi Aditya, First of all, please remember to always CC the mailing list so that other users can benefit from the answers. Regarding the question at hand - the same documentation (starting from the beginning of the page) describes the kolla-build tool, including the usual way to install it. Remember to install the version for your OpenStack release - the right source of versions is [1]. The kolla-build tool is the tool to build the images. I assume so far you have used the prebuilt ones. This time you will have to build your own because you want to add software inside of them. You might also be interested in deploying your own local registry. The simplest way to do so is via [2] but understand it is not production-ready unless in a strictly isolated network (for other use cases I generally recommend Harbor [3]). [1] https://docs.openstack.org/releasenotes/kolla/ [2] https://docs.openstack.org/kolla-ansible/yoga/user/multinode.html#deploy-a-r... [3] https://goharbor.io/ Kind regards, Radek -yoctozepto On Sun, 16 Oct 2022 at 21:43, Aditya Sathish <saditya@vt.edu> wrote:
Hi Radek,
This was incredibly helpful. However, I couldn't find where the kolla-build.conf file is and should I create my own, where I have to add this.
Regards, Aditya.
On Sun, Oct 16, 2022 at 3:10 PM Radosław Piliszek <radoslaw.piliszek@gmail.com> wrote:
I believe you want to first install the plugin in the container image. The section on plugins might be of interest to you. [1]
[1] https://docs.openstack.org/kolla/yoga/admin/image-building.html#plugin-funct...
Kind regards, Radek -yoctozepto
On Sun, 16 Oct 2022 at 20:31, Aditya Sathish <saditya@vt.edu> wrote:
Hello,
I am trying to use an out-of-tree ML2 neutron plugin with OpenStack with Kolla-Ansible but I am having a hard time figuring out how to go about it.
For example, this is my repository for the plugin: https://github.com/adityasathis/networking-onos.
I have made changes to the deployment YML files to allow configuration for this new neutron plugin from the global.yml file. However, I am not able to figure out how to copy over my plugin files and install them on the controller node.
I came across the commit: https://opendev.org/openstack/kolla-ansible/commit/418cb52767270d85e28a6f302... which, I think, does what I'm looking to do and so I kept the networking-onos directory (with the setup.py in it) in the /etc/kolla/config/neutron/plugins directory. The deploy script is able to detect the file in the "Checking for ML2 plugins" step however, I'm not able to copy it anywhere in the "Copying ML2 plugin" step. Am I missing something?
Regards, Aditya.
Hi, My apologies for the unicast email as I wasn't aware of the protocol. I'll be sure to keep it in mind moving forward. Regarding my query, thank you so much, I was able to get my plugin working by following the kolla-build instructions and things seem to have gone my way. Thank you very much! Regards, Aditya. On Mon, Oct 17, 2022, 03:27 Radosław Piliszek <radoslaw.piliszek@gmail.com> wrote:
Hi Aditya,
First of all, please remember to always CC the mailing list so that other users can benefit from the answers.
Regarding the question at hand - the same documentation (starting from the beginning of the page) describes the kolla-build tool, including the usual way to install it. Remember to install the version for your OpenStack release - the right source of versions is [1]. The kolla-build tool is the tool to build the images. I assume so far you have used the prebuilt ones. This time you will have to build your own because you want to add software inside of them. You might also be interested in deploying your own local registry. The simplest way to do so is via [2] but understand it is not production-ready unless in a strictly isolated network (for other use cases I generally recommend Harbor [3]).
[1] https://docs.openstack.org/releasenotes/kolla/ [2] https://docs.openstack.org/kolla-ansible/yoga/user/multinode.html#deploy-a-r... [3] https://goharbor.io/
Kind regards, Radek -yoctozepto
On Sun, 16 Oct 2022 at 21:43, Aditya Sathish <saditya@vt.edu> wrote:
Hi Radek,
This was incredibly helpful. However, I couldn't find where the
kolla-build.conf file is and should I create my own, where I have to add this.
Regards, Aditya.
On Sun, Oct 16, 2022 at 3:10 PM Radosław Piliszek <
radoslaw.piliszek@gmail.com> wrote:
I believe you want to first install the plugin in the container image. The section on plugins might be of interest to you. [1]
[1]
https://docs.openstack.org/kolla/yoga/admin/image-building.html#plugin-funct...
Kind regards, Radek -yoctozepto
On Sun, 16 Oct 2022 at 20:31, Aditya Sathish <saditya@vt.edu> wrote:
Hello,
I am trying to use an out-of-tree ML2 neutron plugin with OpenStack
with Kolla-Ansible but I am having a hard time figuring out how to go about it.
For example, this is my repository for the plugin:
https://github.com/adityasathis/networking-onos.
I have made changes to the deployment YML files to allow
configuration for this new neutron plugin from the global.yml file. However, I am not able to figure out how to copy over my plugin files and install them on the controller node.
I came across the commit:
https://opendev.org/openstack/kolla-ansible/commit/418cb52767270d85e28a6f302... which, I think, does what I'm looking to do and so I kept the networking-onos directory (with the setup.py in it) in the /etc/kolla/config/neutron/plugins directory. The deploy script is able to detect the file in the "Checking for ML2 plugins" step however, I'm not able to copy it anywhere in the "Copying ML2 plugin" step. Am I missing something?
Regards, Aditya.
On Mon, 2022-10-17 at 09:26 +0200, Radosław Piliszek wrote:
Hi Aditya,
First of all, please remember to always CC the mailing list so that other users can benefit from the answers.
Regarding the question at hand - the same documentation (starting from the beginning of the page) describes the kolla-build tool, including the usual way to install it. Remember to install the version for your OpenStack release - the right source of versions is [1]. The kolla-build tool is the tool to build the images. I assume so far you have used the prebuilt ones. This time you will have to build your own because you want to add software inside of them.
This is quite outdated as i have not been active in kolla for some time but i wote a template-override for ovs-dpdk isntallation from soruce as a replacment for standard ovs. https://github.com/openstack/kolla/blob/master/contrib/template-override/ovs... that shows how to use some of the macros ectra that are avaiable https://github.com/openstack/kolla/blob/master/doc/source/admin/template-ove... show how to hten use that template-override as part of the image build. as radek noted https://docs.openstack.org/kolla/yoga/admin/image-building.html#plugin-funct... porvides a more eplicit exmaple of how to do this for ml2 plugins. if the kolla core tema was open to it you proably coudl add a template to the contib dir in kolla once created to share with others. there used to be odl examples in the past.
You might also be interested in deploying your own local registry. The simplest way to do so is via [2] but understand it is not production-ready unless in a strictly isolated network (for other use cases I generally recommend Harbor [3]).
[1] https://docs.openstack.org/releasenotes/kolla/ [2] https://docs.openstack.org/kolla-ansible/yoga/user/multinode.html#deploy-a-r... [3] https://goharbor.io/
Kind regards, Radek -yoctozepto
On Sun, 16 Oct 2022 at 21:43, Aditya Sathish <saditya@vt.edu> wrote:
Hi Radek,
This was incredibly helpful. However, I couldn't find where the kolla-build.conf file is and should I create my own, where I have to add this.
Regards, Aditya.
On Sun, Oct 16, 2022 at 3:10 PM Radosław Piliszek <radoslaw.piliszek@gmail.com> wrote:
I believe you want to first install the plugin in the container image. The section on plugins might be of interest to you. [1]
[1] https://docs.openstack.org/kolla/yoga/admin/image-building.html#plugin-funct...
Kind regards, Radek -yoctozepto
On Sun, 16 Oct 2022 at 20:31, Aditya Sathish <saditya@vt.edu> wrote:
Hello,
I am trying to use an out-of-tree ML2 neutron plugin with OpenStack with Kolla-Ansible but I am having a hard time figuring out how to go about it.
For example, this is my repository for the plugin: https://github.com/adityasathis/networking-onos.
I have made changes to the deployment YML files to allow configuration for this new neutron plugin from the global.yml file. However, I am not able to figure out how to copy over my plugin files and install them on the controller node.
I came across the commit: https://opendev.org/openstack/kolla-ansible/commit/418cb52767270d85e28a6f302... which, I think, does what I'm looking to do and so I kept the networking-onos directory (with the setup.py in it) in the /etc/kolla/config/neutron/plugins directory. The deploy script is able to detect the file in the "Checking for ML2 plugins" step however, I'm not able to copy it anywhere in the "Copying ML2 plugin" step. Am I missing something?
Regards, Aditya.
participants (3)
-
Aditya Sathish
-
Radosław Piliszek
-
Sean Mooney