Giter VIP home page Giter VIP logo

Comments (5)

pozgo avatar pozgo commented on July 30, 2024

Hi,
Please make sure that you are having those two sections in your cloud-config.yaml file:

# Environment Variables
  - path: /etc/environment
    content: |
      COREOS_PUBLIC_IPV4=$public_ipv4
      COREOS_PRIVATE_IPV4=$private_ipv4

and

# Linode Private network tweak
  - path: /etc/systemd/network/50-static.network
    content: |
      [Match]
      Name=eth0
      [Network]
      Address=$public_ipv4/24
      Address=$private_ipv4/17
      Gateway=$gateway.1
      DNS=8.8.8.8
      DNS=8.8.4.4

Those two sections are going to be modified after CoreOS is deployed on Linode accordingly to network settings created during the process of deployment.

from linodeapi.

pozgo avatar pozgo commented on July 30, 2024

I have used linode api to deploy my test cluster and all works fine. Please use settings from above in network section.

Closing...

from linodeapi.

stevesmename avatar stevesmename commented on July 30, 2024

Maybe this will help better explain the Linode provisioning issue that helped me find and resolve the issue of why provisioning was not working. For me, the Private IP was the first IP and the Public IP was the second IP. I ran the script a few times successfully after finding the problem, prior it would loop through "Waiting for server to boot...". The provision failed because it was hitting the Private IP instead of the Public IP.

diff --git a/linode b/linode
index ac05ad7..1476a8e 100755
--- a/linode
+++ b/linode
@@ -288,8 +288,8 @@ log "Configuring node networking..."
 $LINODEAPI -c linode.ip.addprivate -d LINODEID=$linodeid 1>/dev/null
 # Contains pure list of IP addresses, one per-line. The 1st one is public.
 iplist=$($LINODEAPI -c linode.ip.list -d LinodeID=$linodeid | grep -E 'IPADDRESS\W' | sed -E 's/[^\.0-9]//g')
-publicip=$(echo "$iplist" | sed -n 1p) # get the 1st IP addr
-privateip=$(echo "$iplist" | sed -n 2p) # get the 2nd IP addr
+privateip=$(echo "$iplist" | sed -n 1p) # get the 1st IP addr
+publicip=$(echo "$iplist" | sed -n 2p) # get the 2nd IP addr
 gateway_net=$(echo $privateip | awk -F. '{print $1 "." $2 "." $3}') # private IP, but with no last segment
 log "Public IP: ${bold}${white}$publicip${reset}, private IP: ${bold}${white}$privateip${reset}, gateway: ${bold}${white}$gateway_net.1${reset}."

from linodeapi.

dwaite avatar dwaite commented on July 30, 2024

These are also reversed for me

from linodeapi.

ryzy avatar ryzy commented on July 30, 2024

Should be fixed by now, let us know it works for you, @stevesmename

from linodeapi.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.