Giter VIP home page Giter VIP logo

Comments (7)

damianoneill avatar damianoneill commented on August 21, 2024 2

@galexrt on my specific version of OSX the issue can be fixed by using LC_ALL rather than LC_CTYPE, see below.

Also note in the makefile there is an if statement that is being written to console, added an @ to silence.

$ git diff
diff --git a/Makefile b/Makefile
index 94ce364..a9ade67 100644
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ token: ## Generate a kubeadm join token, if needed (token file is `DIRECTORY_OF_
        fi
        @if [ ! -f "$(MFILECWD)/.vagrant/KUBETOKEN" ]; then \
                if [ -z "$(KUBETOKEN)" ]; then \
-                       echo "$(shell LC_CTYPE=C tr -cd 'a-z0-9' < /dev/urandom | fold -w 6 | head -n 1).$(shell cat /dev/urandom | LC_CTYPE=C tr -cd 'a-z0-9' < /dev/urandom | fold -w 16 | head -n 1)" > "$(MFILECWD)/.vagrant/KUBETOKEN"; \
+                       echo "$(shell LC_ALL=C tr -cd 'a-z0-9' < /dev/urandom | fold -w 6 | head -n 1).$(shell cat /dev/urandom | LC_ALL=C tr -cd 'a-z0-9' < /dev/urandom | fold -w 16 | head -n 1)" > "$(MFILECWD)/.vagrant/KUBETOKEN"; \
                else \
                        echo "$(KUBETOKEN)" > "$(MFILECWD)/.vagrant/KUBETOKEN"; \
                fi; \
@@ -119,7 +119,7 @@ kubectl: ## Configure kubeconfig context for the cluster using `kubectl config`
        @echo

 pull: ## Add and download, or update the box image on the host.
-       if !(vagrant box list | grep -q $(shell grep "^\$$box_image.*=.*'.*'\.freeze" "$(MFILECWD)/vagrantfiles/$(BOX_OS)/common" | cut -d\' -f2)); then \
+       @if !(vagrant box list | grep -q $(shell grep "^\$$box_image.*=.*'.*'\.freeze" "$(MFILECWD)/vagrantfiles/$(BOX_OS)/common" | cut -d\' -f2)); then \
                vagrant \
                        box \
                        add \

from k8s-vagrant-multi-node.

galexrt avatar galexrt commented on August 21, 2024

@jbw976 Could you check if 6a1720d fixed these tr error messages?

from k8s-vagrant-multi-node.

jbw976 avatar jbw976 commented on August 21, 2024

Seems to work OK now:

> make token
> cat .vagrant/KUBETOKEN
lgypb9.19zafgyfcgk5678o

from k8s-vagrant-multi-node.

galexrt avatar galexrt commented on August 21, 2024

Thanks for verifying! That is the "correct" output now.
Fix is now in master will tag it soon.

from k8s-vagrant-multi-node.

damianoneill avatar damianoneill commented on August 21, 2024

I'm see similar issue with current master / head

commit e65032e881877d39dbd652561f6ec061fc5f2241 (HEAD -> master, origin/master, origin/HEAD)
Author: Alexander Trost <[email protected]>
Date:   Mon Mar 4 18:36:33 2019 +0100

    Removed mentions of unused vagrant-plugin-vagrant-reload plugin

    Use Google DNS servers for Ubuntu as the "default" ones are sometimes
    broken causing the whole environment install to fail.

    Signed-off-by: Alexander Trost <[email protected]>

Using vagrant version;

$ vagrant version
Installed Version: 2.2.4
Latest Version: 2.2.4

You're running an up-to-date version of Vagrant!

Running the following command.

$ NODE_MEMORY_SIZE_GB=3 NODE_CPUS=2 NODE_COUNT=3 make up -j4
tr: Illegal byte sequence
tr: Illegal byte sequence
tr: Illegal byte sequence
tr: Illegal byte sequence
if !(vagrant box list | grep -q generic/fedora29); then \
		vagrant \
			box \
			add \
			--provider=virtualbox \
			generic/fedora29; \
	else \
		vagrant box update --box=generic/fedora29; \
	fi
==> box: Loading metadata for box 'generic/fedora29'
    box: URL: https://vagrantcloud.com/generic/fedora29

Host info

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.12.6
BuildVersion:	16G1815

from k8s-vagrant-multi-node.

galexrt avatar galexrt commented on August 21, 2024

@damianoneill I see, thanks for debugging this!

Do you want to open a PR with this fix?

from k8s-vagrant-multi-node.

damianoneill avatar damianoneill commented on August 21, 2024

@galexrt see #36

from k8s-vagrant-multi-node.

Related Issues (20)

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.