<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): configure-helper.sh</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): 1.5 beta</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: GCE (using GCI for the master)</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): GCI</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
<li><strong>Install tools</strong>: kube-up.sh</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="190886594" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/37257" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/37257/hovercard" href="https://github.com/kubernetes/kubernetes/issues/37257">#37257</a> exposed a bug where configure-helper.sh was broken. The script got past mounting the master PD, so fixing it locally and trying to re-run it has no effect because it gets to the step where it tries to mount the master PD and then errors out. We should fix the script to be tolerant of having the master PD be mounted so that if the script gets interrupted for some reason and then re-run by systemd it can run to completion.</p>
<p dir="auto"><strong>What you expected to happen</strong>: configure-helper.sh should be able to run successfully even if the master PD has already been mounted</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<ol dir="auto">
<li>sync to master release-1.4 branch; run <code class="notranslate">make clean; make quick-release</code>; run <code class="notranslate">cluster/kube-up.sh</code></li>
<li>sync to the release-1.5 branch; run <code class="notranslate">cluster/gce/upgrade.sh -M v1.5.0-beta.1</code></li>
<li>Log into the kubernetes master, fix the error in the shell script (vi <code class="notranslate">/home/kubernetes/bin/configure-helper.sh</code> and fix line 809 as was done in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="191213946" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/37358" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/37358/hovercard" href="https://github.com/kubernetes/kubernetes/pull/37358">#37358</a>) then run <code class="notranslate">sudo /home/kubernetes/bin/configure-helper.sh</code> to see the script bail out</li>
</ol>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): no</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): kubeadm</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p>

<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl version
Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.0&quot;, GitCommit:&quot;a16c0a7f71a6f93c7e0f222d961f4675cd97a46b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-09-26T18:16:57Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.0&quot;, GitCommit:&quot;a16c0a7f71a6f93c7e0f222d961f4675cd97a46b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-09-26T18:10:32Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}"><pre class="notranslate"><code class="notranslate">$ kubectl version
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:10:32Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
</code></pre></div>
<p dir="auto"><strong>Environment</strong>: kubeadm install on fresh Ubuntu 16.04 machine</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: VirtualBox VM, host = x86_64 = guest</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): 16.04 LTS (Xenial Xerus)</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux mvespa4-2 4.4.0-43-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35518434" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/63" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/63/hovercard" href="https://github.com/kubernetes/kubernetes/pull/63">#63</a>-Ubuntu SMP Wed Oct 12 13:48:03 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li>
<li><strong>Install tools</strong>: kubeadm</li>
<li><strong>Others</strong>:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo docker info
Containers: 14
 Running: 12
 Paused: 0
 Stopped: 2
Images: 8
Server Version: 1.12.2
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 49
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-43-generic
Operating System: Ubuntu 16.04 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.796 GiB
Name: mvespa4-2
ID: 33RL:MPT4:RYCF:HH2K:POGH:MPGE:NID7:VVV6:IMYC:2NYU:BECI:YQQZ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 127.0.0.0/8"><pre class="notranslate"><code class="notranslate">$ sudo docker info
Containers: 14
 Running: 12
 Paused: 0
 Stopped: 2
Images: 8
Server Version: 1.12.2
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 49
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-43-generic
Operating System: Ubuntu 16.04 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.796 GiB
Name: mvespa4-2
ID: 33RL:MPT4:RYCF:HH2K:POGH:MPGE:NID7:VVV6:IMYC:2NYU:BECI:YQQZ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 127.0.0.0/8
</code></pre></div>
<p dir="auto"><strong>What happened</strong>:<br>
I ran the first two steps of <a href="http://kubernetes.io/docs/getting-started-guides/kubeadm/" rel="nofollow">http://kubernetes.io/docs/getting-started-guides/kubeadm/</a> .  I found a duplicated command argument in the manifest for the apiserver:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@mvespa4-2:/etc/kubernetes/manifests# cat kube-apiserver.json 
{
  &quot;kind&quot;: &quot;Pod&quot;,
  &quot;apiVersion&quot;: &quot;v1&quot;,
  &quot;metadata&quot;: {...}
  },
  &quot;spec&quot;: {
    &quot;volumes&quot;: [...],
    &quot;containers&quot;: [
      {
        &quot;name&quot;: &quot;kube-apiserver&quot;,
        &quot;image&quot;: &quot;gcr.io/google_containers/kube-apiserver-amd64:v1.4.0&quot;,
        &quot;command&quot;: [
          &quot;/usr/local/bin/kube-apiserver&quot;,
          &quot;--v=4&quot;,
          &quot;--insecure-bind-address=127.0.0.1&quot;,
          &quot;--etcd-servers=http://127.0.0.1:2379&quot;,
          &quot;--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota&quot;,
          &quot;--service-cluster-ip-range=100.64.0.0/12&quot;,
          &quot;--service-account-key-file=/etc/kubernetes/pki/apiserver-key.pem&quot;,
          &quot;--client-ca-file=/etc/kubernetes/pki/ca.pem&quot;,
          &quot;--tls-cert-file=/etc/kubernetes/pki/apiserver.pem&quot;,
          &quot;--tls-private-key-file=/etc/kubernetes/pki/apiserver-key.pem&quot;,
          &quot;--token-auth-file=/etc/kubernetes/pki/tokens.csv&quot;,
          &quot;--secure-port=443&quot;,
          &quot;--allow-privileged&quot;,
          &quot;--etcd-servers=http://127.0.0.1:2379&quot;
        ],
..."><pre class="notranslate"><code class="notranslate">root@mvespa4-2:/etc/kubernetes/manifests# cat kube-apiserver.json 
{
  "kind": "Pod",
  "apiVersion": "v1",
  "metadata": {...}
  },
  "spec": {
    "volumes": [...],
    "containers": [
      {
        "name": "kube-apiserver",
        "image": "gcr.io/google_containers/kube-apiserver-amd64:v1.4.0",
        "command": [
          "/usr/local/bin/kube-apiserver",
          "--v=4",
          "--insecure-bind-address=127.0.0.1",
          "--etcd-servers=http://127.0.0.1:2379",
          "--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota",
          "--service-cluster-ip-range=100.64.0.0/12",
          "--service-account-key-file=/etc/kubernetes/pki/apiserver-key.pem",
          "--client-ca-file=/etc/kubernetes/pki/ca.pem",
          "--tls-cert-file=/etc/kubernetes/pki/apiserver.pem",
          "--tls-private-key-file=/etc/kubernetes/pki/apiserver-key.pem",
          "--token-auth-file=/etc/kubernetes/pki/tokens.csv",
          "--secure-port=443",
          "--allow-privileged",
          "--etcd-servers=http://127.0.0.1:2379"
        ],
...
</code></pre></div>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
I expected no duplicated arguments.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
Follow the first two steps of the cited doc on a fresh Ubuntu 16.04 machine with Docker 1.12.2.</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p>