Comments (5)
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.
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.
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.
These are also reversed for me
from linodeapi.
Should be fixed by now, let us know it works for you, @stevesmename
from linodeapi.
Related Issues (12)
- Better handling invalid arguments, rewrite how the arguments are handled HOT 2
- Docker: --config_local does not work
- --extra-disk-size option doesn't add created disk to configuration profiles.
- IPs reversed, cannot connect to server on boot HOT 2
- Add an option to select CoreOS release channel for deployment HOT 2
- Private network IP is not set correctly set after boot HOT 1
- Compile custom kernel for Linode HOT 2
- cloud-config.yaml HOT 2
- Coreos failing to boot HOT 2
- API ERROR HOT 5
- Mac brew install does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linodeapi.