· 6 years ago · Mar 28, 2020, 10:48 PM
1devnode: registry-image-helper.sh --to localhost:5000/olcne
2 devnode: Returned a non-zero code: 1
3 devnode: Last output lines:
4 devnode: Digest: sha256:e0194cfb1e7bc7527ad8f80f2976fa9f3fdd0127ccc6becadf4197a133c3d99f
5 devnode: Status: Downloaded newer image for container-registry.oracle.com/olcne/kubernetes-dashboard:v1.10.1-1
6 devnode: container-registry.oracle.com/olcne/kubernetes-dashboard:v1.10.1-1
7 devnode: Trying to pull repository container-registry.oracle.com/olcne/coredns ...
8 devnode: Get https://container-registry-phx.oracle.com/v2/olcne/coredns/manifests/1.3.1: Get https://container-registry.oracle.com/auth?scope=repository%3Aolcne%2Fcoredns%3Apull&service=Oracle+Registry: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
9 devnode: See /var/tmp/cmd_2ysW9.log for details
10The SSH command responded with a non-zero exit status. Vagrant
11assumes that this means the command failed. The output for this command
12should be in the log above. Please read the output to determine what
13went wrong.
14 ✘ rafael@MarkIV ~/projetos/oracle/olcne-infra master vagrant provision devnode
15==> devnode: Running provisioner: hosts...
16==> devnode: Running provisioner: shell...
17 devnode: Running: /var/folders/gk/42f8xyw124nb6l8tcq3s4gxr0000gn/T/vagrant-shell20200328-67998-10pxt1x.sh
18 devnode: ===== Configure private network =====
19 devnode: ===== Configure YUM repos for Oracle Linux Cloud Native Environment =====
20 devnode: ===== Fulfil requirements =====
21 devnode: ===== Allow passwordless ssh between VMs =====
22 devnode: ===== Oracle Linux base software installation complete. =====
23 devnode: ===== Setting up a Container Registry Mirror (Be patient!) =====
24 devnode: docker run --name registry -itd -p :5000:5000 -v /home/vagrant:/certs -e REGISTRY_AUTH= -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt -e REGISTRY_HTTP_TLS_KEY=/certs/domain.key --restart always registry
25 devnode: Returned a non-zero code: 125
26 devnode: Last output lines:
27 devnode: docker: Error response from daemon: Conflict. The container name "/registry" is already in use by container "c0042737593eda688b510bf697d7e6f0c00c56e94005f1c1c658ce98b1f5405c". You have to remove (or rename) that container to be able to reuse that name.
28 devnode: See 'docker run --help'.
29 devnode: See /var/tmp/cmd_1QvxM.log for details
30The SSH command responded with a non-zero exit status. Vagrant
31assumes that this means the command failed. The output for this command
32should be in the log above. Please read the output to determine what
33went wrong.
34 ✘ rafael@MarkIV ~/projetos/oracle/olcne-infra master vagrant destroy -f
35==> master1: VM not created. Moving on...
36==> worker1: VM not created. Moving on...
37==> devnode: Running cleanup tasks for 'hosts' provisioner...
38==> devnode: Forcing shutdown of VM...
39==> devnode: Destroying VM and associated drives...
40 ✘ rafael@MarkIV ~/projetos/oracle/olcne-infra master ls
41README.md Vagrantfile bbc id_rsa id_rsa.pub provision scripts
42 rafael@MarkIV ~/projetos/oracle/olcne-infra master rm -rf .vagrant/
43 rafael@MarkIV ~/projetos/oracle/olcne-infra master vagrant up
44Vagrant has detected project local plugins configured for this
45project which are not installed.
46
47 vagrant-hosts
48Install local plugins (Y/N) [N]: y
49Installing the 'vagrant-hosts' plugin. This can take a few minutes...
50Fetching: vagrant-hosts-2.9.0.gem (100%)
51Installed the plugin 'vagrant-hosts (2.9.0)'!
52
53
54Vagrant has completed installing local plugins for the current Vagrant
55project directory. Please run the requested command again.
56 ✘ rafael@MarkIV ~/projetos/oracle/olcne-infra master vagrant up
57Bringing machine 'devnode' up with 'virtualbox' provider...
58Bringing machine 'worker1' up with 'virtualbox' provider...
59Bringing machine 'master1' up with 'virtualbox' provider...
60==> devnode: Importing base box 'ol7-latest'...
61==> devnode: Matching MAC address for NAT networking...
62==> devnode: Setting the name of the VM: olcne-infra_devnode_1585433476390_63479
63==> devnode: Clearing any previously set network interfaces...
64==> devnode: Preparing network interfaces based on configuration...
65 devnode: Adapter 1: nat
66 devnode: Adapter 2: hostonly
67==> devnode: Forwarding ports...
68 devnode: 22 (guest) => 2222 (host) (adapter 1)
69==> devnode: Running 'pre-boot' VM customizations...
70==> devnode: Booting VM...
71==> devnode: Waiting for machine to boot. This may take a few minutes...
72 devnode: SSH address: 127.0.0.1:2222
73 devnode: SSH username: vagrant
74 devnode: SSH auth method: private key
75 devnode:
76 devnode: Vagrant insecure key detected. Vagrant will automatically replace
77 devnode: this with a newly generated keypair for better security.
78 devnode:
79 devnode: Inserting generated public key within guest...
80 devnode: Removing insecure key from the guest if it's present...
81 devnode: Key inserted! Disconnecting and reconnecting using new SSH key...
82==> devnode: Machine booted and ready!
83==> devnode: Checking for guest additions in VM...
84==> devnode: Setting hostname...
85==> devnode: Configuring and enabling network interfaces...
86==> devnode: Mounting shared folders...
87 devnode: /vagrant => /Users/rafael/projetos/oracle/olcne-infra
88==> devnode: Running provisioner: hosts...
89==> devnode: Running provisioner: shell...
90 devnode: Running: /var/folders/gk/42f8xyw124nb6l8tcq3s4gxr0000gn/T/vagrant-shell20200328-68214-1gbny6s.sh
91 devnode: ===== Configure private network =====
92 devnode: ===== Configure YUM repos for Oracle Linux Cloud Native Environment =====
93 devnode: ===== Fulfil requirements =====
94 devnode: ===== Allow passwordless ssh between VMs =====
95 devnode: ===== Oracle Linux base software installation complete. =====
96 devnode: ===== Setting up a Container Registry Mirror (Be patient!) =====
97 devnode: ===== Preparing custom Jenkins image =====
98 devnode: ===== Deploy Git repository =====
99 devnode: Initialized empty Git repository in /home/demo/git/cncfdemo/
100 devnode: ===== Populating BBC git repository =====
101==> worker1: Importing base box 'ol7-latest'...
102==> worker1: Matching MAC address for NAT networking...
103==> worker1: Setting the name of the VM: olcne-infra_worker1_1585434417929_74458
104==> worker1: Fixed port collision for 22 => 2222. Now on port 2200.
105==> worker1: Clearing any previously set network interfaces...
106==> worker1: Preparing network interfaces based on configuration...
107 worker1: Adapter 1: nat
108 worker1: Adapter 2: hostonly
109==> worker1: Forwarding ports...
110 worker1: 22 (guest) => 2200 (host) (adapter 1)
111==> worker1: Running 'pre-boot' VM customizations...
112==> worker1: Booting VM...
113==> worker1: Waiting for machine to boot. This may take a few minutes...
114 worker1: SSH address: 127.0.0.1:2200
115 worker1: SSH username: vagrant
116 worker1: SSH auth method: private key
117 worker1:
118 worker1: Vagrant insecure key detected. Vagrant will automatically replace
119 worker1: this with a newly generated keypair for better security.
120 worker1:
121 worker1: Inserting generated public key within guest...
122 worker1: Removing insecure key from the guest if it's present...
123 worker1: Key inserted! Disconnecting and reconnecting using new SSH key...
124==> worker1: Machine booted and ready!
125==> worker1: Checking for guest additions in VM...
126==> worker1: Setting hostname...
127==> worker1: Mounting shared folders...
128 worker1: /vagrant => /Users/rafael/projetos/oracle/olcne-infra
129==> worker1: Running provisioner: hosts...
130==> devnode: Updating hosts on: devnode
131==> worker1: Running provisioner: shell...
132 worker1: Running: /var/folders/gk/42f8xyw124nb6l8tcq3s4gxr0000gn/T/vagrant-shell20200328-68214-8cn1qz.sh
133 worker1: ===== Configure private network =====
134 worker1: ===== Configure YUM repos for Oracle Linux Cloud Native Environment =====
135 worker1: ===== Fulfil requirements =====
136 worker1: ===== Installing the Oracle Linux Cloud Native Environment Platform Agent =====
137 worker1: ===== Allow passwordless ssh between VMs =====
138 worker1: ===== Oracle Linux base software installation complete. =====
139 worker1: ===== Copying devnode:5000 registry certificate to local machine =====
140==> master1: Importing base box 'ol7-latest'...
141==> master1: Matching MAC address for NAT networking...
142==> master1: Setting the name of the VM: olcne-infra_master1_1585434757031_45090
143==> master1: Fixed port collision for 22 => 2222. Now on port 2201.
144==> master1: Clearing any previously set network interfaces...
145==> master1: Preparing network interfaces based on configuration...
146 master1: Adapter 1: nat
147 master1: Adapter 2: hostonly
148==> master1: Forwarding ports...
149 master1: 22 (guest) => 2201 (host) (adapter 1)
150==> master1: Running 'pre-boot' VM customizations...
151==> master1: Booting VM...
152==> master1: Waiting for machine to boot. This may take a few minutes...
153 master1: SSH address: 127.0.0.1:2201
154 master1: SSH username: vagrant
155 master1: SSH auth method: private key
156 master1:
157 master1: Vagrant insecure key detected. Vagrant will automatically replace
158 master1: this with a newly generated keypair for better security.
159 master1:
160 master1: Inserting generated public key within guest...
161 master1: Removing insecure key from the guest if it's present...
162 master1: Key inserted! Disconnecting and reconnecting using new SSH key...
163==> master1: Machine booted and ready!
164==> master1: Checking for guest additions in VM...
165==> master1: Setting hostname...
166==> master1: Mounting shared folders...
167 master1: /vagrant => /Users/rafael/projetos/oracle/olcne-infra
168==> master1: Running provisioner: hosts...
169==> worker1: Updating hosts on: worker1
170==> devnode: Updating hosts on: devnode
171==> master1: Running provisioner: shell...
172 master1: Running: /var/folders/gk/42f8xyw124nb6l8tcq3s4gxr0000gn/T/vagrant-shell20200328-68214-xyi0mx.sh
173 master1: ===== Configure private network =====
174 master1: ===== Configure YUM repos for Oracle Linux Cloud Native Environment =====
175 master1: ===== Fulfil requirements =====
176 master1: ===== Installing the Oracle Linux Cloud Native Environment Platform API Server and Platform CLI tool to the operator node. =====
177 master1: ===== Installing the Oracle Linux Cloud Native Environment Platform Agent =====
178 master1: ===== Allow passwordless ssh between VMs =====
179 master1: ===== Oracle Linux base software installation complete. =====
180 master1: ===== Copying devnode:5000 registry certificate to local machine =====
181 master1: ===== Generate and deploy X.509 Certificates =====
182 master1: ===== Bootstrap the Oracle Linux Cloud Native Environment Platform Agent on all nodes =====
183 master1: ===== Create the Oracle Linux Cloud Native Environment: olcne-env =====
184 master1: ===== Create the Kubernetes module for olcne-env =====
185 master1: ===== Validate all required prerequisites are met for the Kubernetes module =====
186 master1: ===== Deploy the Kubernetes module into olcne-env (Be patient!) =====
187 master1: ===== Copying admin.conf for vagrant user on master node(s) =====
188 master1: ===== Updating Flannel DaemonSet for Vagrant =====
189 master1: ===== Starting kubectl proxy service on master nodes =====
190 master1: ===== Deploy Jenkins =====
191 master1: ===== Your Oracle Linux Cloud Native Environment is operational. =====
192 master1: NAME STATUS ROLES AGE VERSION
193 master1: master1.vagrant.vm Ready master 2m36s v1.14.8+1.0.2.el7
194 master1: worker1.vagrant.vm Ready <none> 2m4s v1.14.8+1.0.2.el7