Created
June 19, 2020 10:47
-
-
Save jseguillon/8dade7fd174874952110f97fc1938142 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\temp\2> New-Winspray-Cluster .\test.yml -Force | |
# Winspray - check env | |
Vagrant 2.2.6 | |
Client: Docker Engine - Community | |
Version: 19.03.8 | |
API version: 1.40 | |
Go version: go1.12.17 | |
Git commit: afacb8b | |
Built: Wed Mar 11 01:23:10 2020 | |
OS/Arch: windows/amd64 | |
Experimental: false | |
Server: Docker Engine - Community | |
Engine: | |
Version: 19.03.8 | |
API version: 1.40 (minimum version 1.12) | |
Go version: go1.12.17 | |
Git commit: afacb8b | |
Built: Wed Mar 11 01:29:16 2020 | |
OS/Arch: linux/amd64 | |
Experimental: false | |
containerd: | |
Version: v1.2.13 | |
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 | |
runc: | |
Version: 1.0.0-rc10 | |
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd | |
docker-init: | |
Version: 0.18.0 | |
GitCommit: fec3683 | |
## Winspray - check ok | |
# Winspray - destroying current VMs | |
==> k8s-server-2: VM not created. Moving on... | |
==> k8s-server-1: Stopping the machine... | |
==> k8s-server-1: Deleting the machine... | |
Exiting False | |
Au caractère C:\Users\jseguillon\Documents\WindowsPowerShell\Modules\winspray\0.0.6\winspray.psm1:14 : 20 | |
+ if (!$?) { throw ("Exiting $?") } # FIXME should exit and say ... | |
+ ~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : OperationStopped: (Exiting False:String) [], RuntimeException | |
+ FullyQualifiedErrorId : Exiting False | |
PS C:\temp\2> New-Winspray-Cluster .\test.yml -Force | |
# Winspray - check env | |
Vagrant 2.2.6 | |
Client: Docker Engine - Community | |
Version: 19.03.8 | |
API version: 1.40 | |
Go version: go1.12.17 | |
Git commit: afacb8b | |
Built: Wed Mar 11 01:23:10 2020 | |
OS/Arch: windows/amd64 | |
Experimental: false | |
Server: Docker Engine - Community | |
Engine: | |
Version: 19.03.8 | |
API version: 1.40 (minimum version 1.12) | |
Go version: go1.12.17 | |
Git commit: afacb8b | |
Built: Wed Mar 11 01:29:16 2020 | |
OS/Arch: linux/amd64 | |
Experimental: false | |
containerd: | |
Version: v1.2.13 | |
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 | |
runc: | |
Version: 1.0.0-rc10 | |
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd | |
docker-init: | |
Version: 0.18.0 | |
GitCommit: fec3683 | |
## Winspray - check ok | |
# Winspray - destroying current VMs | |
==> k8s-server-2: VM not created. Moving on... | |
==> k8s-server-1: VM not created. Moving on... | |
## Winspray - destroy done | |
# Winspray - create kubespray inventory and vagant config | |
[WARNING]: No inventory was parsed, only implicit localhost is available | |
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' | |
PLAY [localhost] ************************************************************************************************************************************************************************************************** | |
Friday 19 June 2020 10:20:03 +0000 (0:00:00.111) 0:00:00.111 *********** | |
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************** | |
ok: [localhost] | |
Friday 19 June 2020 10:20:04 +0000 (0:00:00.979) 0:00:01.091 *********** | |
TASK [create current directory] *********************************************************************************************************************************************************************************** | |
ok: [localhost] | |
Friday 19 June 2020 10:20:04 +0000 (0:00:00.347) 0:00:01.438 *********** | |
TASK [render given infra] ***************************************************************************************************************************************************************************************** | |
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": "Could not find or access '/opt/winspray/.\test.yml' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"} | |
PLAY RECAP ******************************************************************************************************************************************************************************************************** | |
localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 | |
Friday 19 June 2020 10:20:04 +0000 (0:00:00.464) 0:00:01.903 *********** | |
=============================================================================== | |
Gathering Facts -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.98s | |
render given infra ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.46s | |
create current directory ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.35s | |
** ERROR *** Found error while creating inventory | |
Au caractère C:\Users\jseguillon\Documents\WindowsPowerShell\Modules\winspray\0.0.6\winspray.psm1:142 : 17 | |
+ ... if (!$?) { throw ( "** ERROR *** Found error while creating inventor ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : OperationStopped: (** ERROR *** Fo...ating inventory:String) [], RuntimeException | |
+ FullyQualifiedErrorId : ** ERROR *** Found error while creating inventory | |
PS C:\temp\2> cp .\test.yml minimal.yml | |
PS C:\temp\2> New-Winspray-Cluster .\minimal.yml -Force | |
# Winspray - check env | |
Vagrant 2.2.6 | |
Client: Docker Engine - Community | |
Version: 19.03.8 | |
API version: 1.40 | |
Go version: go1.12.17 | |
Git commit: afacb8b | |
Built: Wed Mar 11 01:23:10 2020 | |
OS/Arch: windows/amd64 | |
Experimental: false | |
Server: Docker Engine - Community | |
Engine: | |
Version: 19.03.8 | |
API version: 1.40 (minimum version 1.12) | |
Go version: go1.12.17 | |
Git commit: afacb8b | |
Built: Wed Mar 11 01:29:16 2020 | |
OS/Arch: linux/amd64 | |
Experimental: false | |
containerd: | |
Version: v1.2.13 | |
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 | |
runc: | |
Version: 1.0.0-rc10 | |
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd | |
docker-init: | |
Version: 0.18.0 | |
GitCommit: fec3683 | |
## Winspray - check ok | |
# Winspray - destroying current VMs | |
Vagrant failed to initialize at a very early stage: | |
There was an error loading a Vagrantfile. The file being loaded | |
and the error message are shown below. This is usually caused by | |
a syntax error. | |
Path: C:/temp/2/Vagrantfile | |
Line number: 0 | |
Message: LoadError: cannot load such file -- C:/temp/2/current/vagrant.vars.rb | |
Exiting False | |
Au caractère C:\Users\jseguillon\Documents\WindowsPowerShell\Modules\winspray\0.0.6\winspray.psm1:14 : 20 | |
+ if (!$?) { throw ("Exiting $?") } # FIXME should exit and say ... | |
+ ~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : OperationStopped: (Exiting False:String) [], RuntimeException | |
+ FullyQualifiedErrorId : Exiting False | |
PS C:\temp\2> New-Winspray-Cluster .\minimal.yml -Force | |
# Winspray - check env | |
Vagrant 2.2.6 | |
Client: Docker Engine - Community | |
Version: 19.03.8 | |
API version: 1.40 | |
Go version: go1.12.17 | |
Git commit: afacb8b | |
Built: Wed Mar 11 01:23:10 2020 | |
OS/Arch: windows/amd64 | |
Experimental: false | |
Server: Docker Engine - Community | |
Engine: | |
Version: 19.03.8 | |
API version: 1.40 (minimum version 1.12) | |
Go version: go1.12.17 | |
Git commit: afacb8b | |
Built: Wed Mar 11 01:29:16 2020 | |
OS/Arch: linux/amd64 | |
Experimental: false | |
containerd: | |
Version: v1.2.13 | |
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 | |
runc: | |
Version: 1.0.0-rc10 | |
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd | |
docker-init: | |
Version: 0.18.0 | |
GitCommit: fec3683 | |
## Winspray - check ok | |
# Winspray - create kubespray inventory and vagant config | |
[WARNING]: No inventory was parsed, only implicit localhost is available | |
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' | |
PLAY [localhost] ************************************************************************************************************************************************************************************************** | |
Friday 19 June 2020 10:21:01 +0000 (0:00:00.141) 0:00:00.141 *********** | |
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************** | |
ok: [localhost] | |
Friday 19 June 2020 10:21:02 +0000 (0:00:00.849) 0:00:00.991 *********** | |
TASK [create current directory] *********************************************************************************************************************************************************************************** | |
changed: [localhost] | |
Friday 19 June 2020 10:21:02 +0000 (0:00:00.331) 0:00:01.322 *********** | |
TASK [render given infra] ***************************************************************************************************************************************************************************************** | |
changed: [localhost -> localhost] | |
Friday 19 June 2020 10:21:03 +0000 (0:00:01.064) 0:00:02.387 *********** | |
TASK [include now rendered infra] ********************************************************************************************************************************************************************************* | |
ok: [localhost] | |
Friday 19 June 2020 10:21:03 +0000 (0:00:00.072) 0:00:02.459 *********** | |
TASK [create vagrant env] ***************************************************************************************************************************************************************************************** | |
changed: [localhost -> localhost] | |
Friday 19 June 2020 10:21:04 +0000 (0:00:00.878) 0:00:03.338 *********** | |
TASK [create hosts inventory] ************************************************************************************************************************************************************************************* | |
changed: [localhost -> localhost] | |
Friday 19 June 2020 10:21:05 +0000 (0:00:00.901) 0:00:04.239 *********** | |
TASK [copy vagrant file] ****************************************************************************************************************************************************************************************** | |
changed: [localhost] | |
Friday 19 June 2020 10:21:05 +0000 (0:00:00.340) 0:00:04.579 *********** | |
TASK [copy default group_vars] ************************************************************************************************************************************************************************************ | |
changed: [localhost] | |
Friday 19 June 2020 10:21:12 +0000 (0:00:06.642) 0:00:11.221 *********** | |
TASK [copy default config] **************************************************************************************************************************************************************************************** | |
changed: [localhost] | |
PLAY RECAP ******************************************************************************************************************************************************************************************************** | |
localhost : ok=9 changed=7 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 | |
Friday 19 June 2020 10:21:13 +0000 (0:00:00.926) 0:00:12.148 *********** | |
=============================================================================== | |
copy default group_vars ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 6.64s | |
render given infra ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.06s | |
copy default config ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.93s | |
create hosts inventory ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.90s | |
create vagrant env ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.88s | |
Gathering Facts -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.85s | |
copy vagrant file ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.34s | |
create current directory ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.33s | |
include now rendered infra --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.07s | |
## Winspray - inventory and vagrant config created | |
# Winspray - create new VMs | |
PS C:\temp\2> Exiting due to interrupt. | |
PS C:\temp\2> New-Winspray-Cluster .\test.yml -Force | |
PS C:\temp\2> Do-Winspray-Bash | |
** Going to bash. Here are usefull commands : | |
pip install -r /opt/winspray/kubespray/requirements.txt | |
ansible-playbook --network host --become -i /opt/winspray/current/hosts.yaml cluster.yml -e '@/opt/winspray/config/kubespray.vars.json' -e '@/opt/winspray/config/network.vars.json' -e '@/opt/winspray/config/authent.vars.json' | |
root@842a7d072c00:/kubespray# ls /opt/winspray/ | |
Vagrantfile current kubespray_cache minimal.yml old-06-15-2020-22-03 old-06-19-2020-12-20 test.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment