Horizon dashboard query
Hi everyone! I need a guide or advice or anything. I am administering a private cloud in openstack. As I am using the Horizon dashboard for the VM provisioning and administering activities. But the users are sending requests in mail and creating the VMs for them. can we make workflow automation for the request and approval and provisioning automatically in the Horizon dashboard on approval? Has anyone already done /have idea on these kinds of solutions for your openstack cloud ??. Is there some kind of documentation that could help me?. Any guidance much appreciated, where to start, what to refer and which tool/programming language best if I need to code from scratch. thanks in advance. Krish
Hello, You want to automate and provide a web interface solution. The simplest way would be to create a new web application (which can have only 2-3 pages) with an input form asking for VM details and usage. 1. Get all info in json format, update it as per available image, flavor details. Now you have all details of request, you can add an approval system here manual/automated (as per usage and quota assigned). 2. Convert this to a heat template, upload to swift(for future reference), and call heat api. Why heat ? It will allow you to create n+ number of VM at once, for example can create a full lab, having different instance flavor on different networks. 3. Update VM deployment status and access info back in the web application. Tools: web app: Django or node js Docs: https://docs.openstack.org/api-ref/orchestration/v1/ https://docs.openstack.org/heat/rocky/template_guide/hot_guide.html https://docs.openstack.org/ocata/cli-reference/heat.html#heat-stack-create Regards On Tue, Aug 2, 2022 at 9:14 AM KK CHN <kkchn.in@gmail.com> wrote:
Hi everyone! I need a guide or advice or anything.
I am administering a private cloud in openstack. As I am using the Horizon dashboard for the VM provisioning and administering activities. But the users are sending requests in mail and creating the VMs for them. can we make workflow automation for the request and approval and provisioning automatically in the Horizon dashboard on approval?
Has anyone already done /have idea on these kinds of solutions for your openstack cloud ??. Is there some kind of documentation that could help me?.
Any guidance much appreciated, where to start, what to refer and which tool/programming language best if I need to code from scratch.
thanks in advance. Krish
I don't have any suggestions for the automation here but a question. Couldn't you just give each user a project so they can login and create their instances themselves? Zitat von Amit Uniyal <auniyal@redhat.com>:
Hello,
You want to automate and provide a web interface solution.
The simplest way would be to create a new web application (which can have only 2-3 pages) with an input form asking for VM details and usage.
1. Get all info in json format, update it as per available image, flavor details.
Now you have all details of request, you can add an approval system here manual/automated (as per usage and quota assigned).
2. Convert this to a heat template, upload to swift(for future reference), and call heat api. Why heat ? It will allow you to create n+ number of VM at once, for example can create a full lab, having different instance flavor on different networks.
3. Update VM deployment status and access info back in the web application.
Tools: web app: Django or node js
Docs: https://docs.openstack.org/api-ref/orchestration/v1/ https://docs.openstack.org/heat/rocky/template_guide/hot_guide.html https://docs.openstack.org/ocata/cli-reference/heat.html#heat-stack-create
Regards
On Tue, Aug 2, 2022 at 9:14 AM KK CHN <kkchn.in@gmail.com> wrote:
Hi everyone! I need a guide or advice or anything.
I am administering a private cloud in openstack. As I am using the Horizon dashboard for the VM provisioning and administering activities. But the users are sending requests in mail and creating the VMs for them. can we make workflow automation for the request and approval and provisioning automatically in the Horizon dashboard on approval?
Has anyone already done /have idea on these kinds of solutions for your openstack cloud ??. Is there some kind of documentation that could help me?.
Any guidance much appreciated, where to start, what to refer and which tool/programming language best if I need to code from scratch.
thanks in advance. Krish
The use case is, the user requests need to be controlled. Cannot provide each project for each user. Even Though your infrastructure is large enough to support each project for each user ( for a large user base automation with approval/rejection like this is a fair practice.) On Tue, Aug 2, 2022 at 2:33 PM Eugen Block <eblock@nde.ag> wrote:
I don't have any suggestions for the automation here but a question. Couldn't you just give each user a project so they can login and create their instances themselves?
Zitat von Amit Uniyal <auniyal@redhat.com>:
Hello,
You want to automate and provide a web interface solution.
The simplest way would be to create a new web application (which can have only 2-3 pages) with an input form asking for VM details and usage.
1. Get all info in json format, update it as per available image, flavor details.
Now you have all details of request, you can add an approval system here manual/automated (as per usage and quota assigned).
2. Convert this to a heat template, upload to swift(for future reference), and call heat api. Why heat ? It will allow you to create n+ number of VM at once, for example can create a full lab, having different instance flavor on different networks.
3. Update VM deployment status and access info back in the web application.
Tools: web app: Django or node js
Docs: https://docs.openstack.org/api-ref/orchestration/v1/ https://docs.openstack.org/heat/rocky/template_guide/hot_guide.html
https://docs.openstack.org/ocata/cli-reference/heat.html#heat-stack-create
Regards
On Tue, Aug 2, 2022 at 9:14 AM KK CHN <kkchn.in@gmail.com> wrote:
Hi everyone! I need a guide or advice or anything.
I am administering a private cloud in openstack. As I am using the
dashboard for the VM provisioning and administering activities. But the users are sending requests in mail and creating the VMs for
Horizon them.
can we make workflow automation for the request and approval and provisioning automatically in the Horizon dashboard on approval?
Has anyone already done /have idea on these kinds of solutions for your openstack cloud ??. Is there some kind of documentation that could help me?.
Any guidance much appreciated, where to start, what to refer and which tool/programming language best if I need to code from scratch.
thanks in advance. Krish
On Tue, 2022-08-02 at 17:13 +0530, KK CHN wrote:
The use case is, the user requests need to be controlled. Cannot provide each project for each user. Even Though your infrastructure is large enough to support each project for each user ( for a large user base automation with approval/rejection like this is a fair practice.)
normal users will only see the project they are a member off not all porject so this sound like a admin use cuase not a enduser use case corect.
On Tue, Aug 2, 2022 at 2:33 PM Eugen Block <eblock@nde.ag> wrote:
I don't have any suggestions for the automation here but a question. Couldn't you just give each user a project so they can login and create their instances themselves?
Zitat von Amit Uniyal <auniyal@redhat.com>:
Hello,
You want to automate and provide a web interface solution.
The simplest way would be to create a new web application (which can have only 2-3 pages) with an input form asking for VM details and usage.
1. Get all info in json format, update it as per available image, flavor details.
Now you have all details of request, you can add an approval system here manual/automated (as per usage and quota assigned).
2. Convert this to a heat template, upload to swift(for future reference), and call heat api. Why heat ? It will allow you to create n+ number of VM at once, for example can create a full lab, having different instance flavor on different networks.
3. Update VM deployment status and access info back in the web application.
Tools: web app: Django or node js
Docs: https://docs.openstack.org/api-ref/orchestration/v1/ https://docs.openstack.org/heat/rocky/template_guide/hot_guide.html
https://docs.openstack.org/ocata/cli-reference/heat.html#heat-stack-create
Regards
On Tue, Aug 2, 2022 at 9:14 AM KK CHN <kkchn.in@gmail.com> wrote:
Hi everyone! I need a guide or advice or anything.
I am administering a private cloud in openstack. As I am using the
dashboard for the VM provisioning and administering activities. But the users are sending requests in mail and creating the VMs for
Horizon them.
can we make workflow automation for the request and approval and provisioning automatically in the Horizon dashboard on approval?
Has anyone already done /have idea on these kinds of solutions for your openstack cloud ??. Is there some kind of documentation that could help me?.
Any guidance much appreciated, where to start, what to refer and which tool/programming language best if I need to code from scratch.
thanks in advance. Krish
Does this need to be a separate web application? or Customizing horizon dashboard ? Which is feasible ? On Tue, Aug 2, 2022 at 1:06 PM Amit Uniyal <auniyal@redhat.com> wrote:
Hello,
You want to automate and provide a web interface solution.
The simplest way would be to create a new web application (which can have only 2-3 pages) with an input form asking for VM details and usage.
1. Get all info in json format, update it as per available image, flavor details.
Now you have all details of request, you can add an approval system here manual/automated (as per usage and quota assigned).
2. Convert this to a heat template, upload to swift(for future reference), and call heat api. Why heat ? It will allow you to create n+ number of VM at once, for example can create a full lab, having different instance flavor on different networks.
3. Update VM deployment status and access info back in the web application.
Tools: web app: Django or node js
Docs: https://docs.openstack.org/api-ref/orchestration/v1/ https://docs.openstack.org/heat/rocky/template_guide/hot_guide.html https://docs.openstack.org/ocata/cli-reference/heat.html#heat-stack-create
Regards
On Tue, Aug 2, 2022 at 9:14 AM KK CHN <kkchn.in@gmail.com> wrote:
Hi everyone! I need a guide or advice or anything.
I am administering a private cloud in openstack. As I am using the Horizon dashboard for the VM provisioning and administering activities. But the users are sending requests in mail and creating the VMs for them. can we make workflow automation for the request and approval and provisioning automatically in the Horizon dashboard on approval?
Has anyone already done /have idea on these kinds of solutions for your openstack cloud ??. Is there some kind of documentation that could help me?.
Any guidance much appreciated, where to start, what to refer and which tool/programming language best if I need to code from scratch.
thanks in advance. Krish
Another option is what Cern does that uses a mistral workflow to do something somewhat similar to that. Users can request resources and a mistral workflow provisions them. Here is the repo for some of their workflows. You can probably find a more detailed infrastructure description on one of their talks. https://gitlab.cern.ch/cloud-infrastructure/mistral-workflows Cheers, Adriano On Tue, 2 Aug 2022 at 14:05, KK CHN <kkchn.in@gmail.com> wrote:
Does this need to be a separate web application? or Customizing horizon dashboard ? Which is feasible ?
On Tue, Aug 2, 2022 at 1:06 PM Amit Uniyal <auniyal@redhat.com> wrote:
Hello,
You want to automate and provide a web interface solution.
The simplest way would be to create a new web application (which can have only 2-3 pages) with an input form asking for VM details and usage.
1. Get all info in json format, update it as per available image, flavor details.
Now you have all details of request, you can add an approval system here manual/automated (as per usage and quota assigned).
2. Convert this to a heat template, upload to swift(for future reference), and call heat api. Why heat ? It will allow you to create n+ number of VM at once, for example can create a full lab, having different instance flavor on different networks.
3. Update VM deployment status and access info back in the web application.
Tools: web app: Django or node js
Docs: https://docs.openstack.org/api-ref/orchestration/v1/ https://docs.openstack.org/heat/rocky/template_guide/hot_guide.html https://docs.openstack.org/ocata/cli-reference/heat.html#heat-stack-create
Regards
On Tue, Aug 2, 2022 at 9:14 AM KK CHN <kkchn.in@gmail.com> wrote:
Hi everyone! I need a guide or advice or anything.
I am administering a private cloud in openstack. As I am using the Horizon dashboard for the VM provisioning and administering activities. But the users are sending requests in mail and creating the VMs for them. can we make workflow automation for the request and approval and provisioning automatically in the Horizon dashboard on approval?
Has anyone already done /have idea on these kinds of solutions for your openstack cloud ??. Is there some kind of documentation that could help me?.
Any guidance much appreciated, where to start, what to refer and which tool/programming language best if I need to code from scratch.
thanks in advance. Krish
-- Adriano Vieira Petrich Software Engineer He/Him/His Red Hat GmbH <https://www.redhat.com/de/global/dach>, Registered seat: Werner von Siemens Ring 14, D-85630 Grasbrunn, Germany Commercial register: Amtsgericht Muenchen/Munich, HRB 153243, Managing Directors: Ryan Barnhart, Charles Cachera, Michael O'Neill, Amy Ross Commercial register: Amtsgericht Muenchen/Munich, HRB 153243, Managing Directors: Ryan Barnhart, Charles Cachera, Michael O'Neill, Amy Ross
participants (5)
-
Adriano Petrich
-
Amit Uniyal
-
Eugen Block
-
KK CHN
-
Sean Mooney