[ICN-575] Introducing the Network static IP in the user config Created: 21/Apr/21  Updated: 05/May/21  Resolved: 05/May/21

Status: Done
Project: Integrated Cloud Native NFV
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Sagar Menon Assignee: Todd Malsbary
Resolution: Done Votes: 0
Labels: RelianceJIO
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to ICN-572 Enable static configuration of BareMe... Done
Epic Link: ICN CI / CD
Sprint: ICN Sprint 39

 Description   

Having the following node.json.sample to include the network as a feature to include static IP, gateway and nameservers

{
   "nodes": [
           {
       "name""edge01-node01",
       "ipmi_driver_info": {
         "username""admin",
         "password""admin",
         "address""10.10.10.11"
       },
       "os": {
         "image_name""bionic-server-cloudimg-amd64.img",
         "username""ubuntu",
         "password""mypasswd"
       }
       "net": {
         " addresses""192.168.121.9/24",
         "mac""ee:ca:d6:e0:aa:90",
         " gateway4"" 192.168.121.1",
         " nameservers":  "[8.8.8.8,8.8.4.4]"
       }
     },
      {
       "name""edge01-node02",
       "ipmi_driver_info": {
         "username""admin",
         "password""admin",
         "address""10.10.10.12"
       },
       "os": {
         "image_name""bionic-server-cloudimg-amd64.img",
         "username""ubuntu",
         "password""mypasswd"
       }
       "net": {
         " addresses""192.168.121.10/24",
         "mac""ee:ca:d6:e0:aa:91",
         " gateway4"" 192.168.121.1",
         " nameservers":  "[8.8.8.8,8.8.4.4]"
       }
     }
   ]
 }


 Comments   
Comment by Todd Malsbary [ 27/Apr/21 ]

menonsagar, https://jira.akraino.org/browse/ICN-572 has been merged.  If the fix meets your need, please close this issue.

Comment by Todd Malsbary [ 26/Apr/21 ]

The BareMetalHost CR provided by metal3 allows for a networkData section that can provide the requested feature.  The resulting nodes.json will look something like:

{
   "nodes": [
           {
       "name""edge01-node01",
       "ipmi_driver_info": {
         "username""admin",
         "password""admin",
         "address""10.10.10.11"
       },
       "os": {
         "image_name""bionic-server-cloudimg-amd64.img",
         "username""ubuntu",
         "password""mypasswd"
       }
       "net": {
         "links": [
           {
             "id": "baremetal_nic",
             "ethernet_mac_address": "ee:ca:d6:e0:aa:90",
             "type": "phy"
           }
         ],
         "networks": [
           {
              "id": "baremetal",
              "link": "baremetal_nic",
              "type": "ipv4",
              "ip_address""192.168.121.9/24",
              "gateway"" 192.168.121.1",
              "dns_nameservers":  "[8.8.8.8,8.8.4.4]"
          }
        ]
       }

I'm currently prototyping a solution based on the above.

Comment by Kuralamudhan Ramakrishnan [ 22/Apr/21 ]

Related to https://jira.akraino.org/browse/ICN-572

Generated at Sat Feb 10 06:01:05 UTC 2024 using Jira 9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1.