Sal to inject values to the nodes

Bug #2065383 reported by Jan Marchel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NebulOuS
Invalid
Undecided
Ankica Barisic

Bug Description

SAL to grab public IP and port given during the edge registration and inject them as environment variables for cluster creation for the selected edge node (MASTER/WORKER_PRE_INSTALL_SCRIPT.sh)
Use env variables PUBLIC_IP, SSH_PORT.

here is an example:
{
    "name": "{{cluster_name}}",
    "master-node": "master-node",
    "nodes": [
 {
  "nodeName": "master-node",
  "nodeCandidateId": "{{nodeCandidateId1}}",
  "cloudId": "uio-openstack-optimizer"
        "env-var": "EDGE_IP2"
 },
 {
  "nodeName": "worker-node",
  "nodeCandidateId": "{{nodeCandidateId2}}",
  "cloudId": "uio-openstack-optimizer",
        "env-var": "EDGE_IP1"
 }
    ],
    "env-var": {
        "APPLICATION_ID": "dummy-app-id"
    }

Tags: sal
Changed in nebulous:
assignee: nobody → Ankica Barisic (akki55)
tags: added: sal
Revision history for this message
Ankica Barisic (akki55) wrote :

It doesn't make any sense to have the env vars in postman api where you added them as this is a place where the master/worker nodes are selected.

In any case this is not a bug but new requirement that needs to be discussed.
We need to have a ONM working scripts set and tested for OS to elaborate this.

Please add your suggestion to the technical-coordination ticket: https://openproject.nebulouscloud.eu/projects/nebulous-collaboration-hub/work_packages/486/activity

Changed in nebulous:
status: New → Invalid
Revision history for this message
Jan Marchel (janmarchel7bulls) wrote :

Ankica this is not about the postman!! but about api call... i just wanted to ilustrate it for you.
We discussed it couple of times already! Why do we need working onm scripts???
This is feature which will enable us to work on edge deployment

Revision history for this message
Ankica Barisic (akki55) wrote : Re: [Bug 2065383] Re: Sal to inject values to the nodes

you are showing the postman/API call based on our illustrative example for
the deploy cluster which passes ENV VARS to k8s deployment scripts - so
scripts need to be ready to accept these vars if SAL transmits them - and
for now the current solution supports this (passing a name and value of as
many env var users wants to deployment scripts)

if you want to propose the changes in the SAL please explain your changes
in SAL which are required (not api call for the cluster deployment)

On Fri, May 10, 2024 at 11:05 AM Jan Marchel <email address hidden>
wrote:

> Ankica this is not about the postman!! but about api call... i just wanted
> to ilustrate it for you.
> We discussed it couple of times already! Why do we need working onm
> scripts???
> This is feature which will enable us to work on edge deployment
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/2065383
>
> Title:
> Sal to inject values to the nodes
>
> Status in NebulOuS:
> Invalid
>
> Bug description:
> SAL to grab public IP and port given during the edge registration and
> inject them as environment variables for cluster creation for the selected
> edge node (MASTER/WORKER_PRE_INSTALL_SCRIPT.sh)
> Use env variables PUBLIC_IP, SSH_PORT.
>
> here is an example:
> {
> "name": "{{cluster_name}}",
> "master-node": "master-node",
> "nodes": [
> {
> "nodeName": "master-node",
> "nodeCandidateId": "{{nodeCandidateId1}}",
> "cloudId": "uio-openstack-optimizer"
> "env-var": "EDGE_IP2"
> },
> {
> "nodeName": "worker-node",
> "nodeCandidateId": "{{nodeCandidateId2}}",
> "cloudId": "uio-openstack-optimizer",
> "env-var": "EDGE_IP1"
> }
> ],
> "env-var": {
> "APPLICATION_ID": "dummy-app-id"
> }
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nebulous/+bug/2065383/+subscriptions
>
>

--
Ankica Barišić

R&D Engineer

R&D | ActiveEon
<email address hidden>
www.activeeon.com
2000 route des Lucioles, Les Algorithmes, Pythagore B, 06560 Sophia
Antipolis, France

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.