我无法在配置openstack Helm时成功部署“make dev-deploy k8s multinode”

时间:2018-04-30 18:43:37

标签: kubernetes openstack kubernetes-helm

我正在尝试部署openstack Helm和Contrail Helm,并在make“dev-deploy k8s multinode”中陷入困境,并为deploy-kubelet操作获取以下错误

<div class="card" *ngFor="let contest of contests">
  <div class="container">
    <form (ngSubmit)="initiateJoinContest(f)" #f="ngForm">
    <h4><b>{‌{contest.data.name}}</b></h4>
    <div class="row">
      <div class="col-sm-2" >Join Fee : </div>
      <div class="col-sm-2">Rs.{‌{contest.data.join_fee}}</div>
    </div>
    <div class="row">
      <div class="col-sm-2">Created on </div>
      <div class="col-sm-2">{‌{contest.data.creation_date}}</div>
    </div>
    <div class="row">
      <div class="col-sm-2">Contest ends On : </div>
      <div class="col-sm-2">{‌{contest.data.end_date}}</div>
    </div>
    <div class="row">
      <div class="col-sm-2">Ends In : </div>
      <div class="col-sm-2">{‌{contest.data.ends_in}}</div>
    </div>
    <div style="text-align: right;width:40%"><button type="submit" class="btn btn-primary">Join</button></div>
    </form>
  </div>
</div>

我是否需要在opt / openstack-helm-infra / tools / gate / devel / multinode-vars.yaml文件中进行任何更改?

下面是我的multinode-vars.yaml文件

ok: [verne] => {
"out.stdout_lines": [
"",
"PLAY [all] *********************************************************************",
"",
"TASK [Gathering Facts] *********************************************************",
"ok: [/mnt/rootfs]",
"",
"TASK [deploy-kubelet : include_tasks] ******************************************",
"included: /opt/playbooks/roles/deploy-kubelet/tasks/support-packages.yaml for /mnt/rootfs",
"",
"TASK [deploy-kubelet : centos | installing epel-release] ***********************",
"skipping: [/mnt/rootfs] => (item=[]) ",
"",
"TASK [deploy-kubelet : centos | installing SElinux support packages] ***********",
"skipping: [/mnt/rootfs] => (item=[]) ",
"",
"TASK [deploy-kubelet : fedora | installing SElinux support packages] ***********",
"skipping: [/mnt/rootfs] => (item=[]) ",
"",
"TASK [deploy-kubelet : installing ceph support packages] ***********************",
"",
"TASK [deploy-package : ubuntu | installing packages] ***************************",
"ok: [/mnt/rootfs] => (item=[u'ceph-common'])",
"",
"TASK [deploy-package : centos | installing packages] ***************************",
"skipping: [/mnt/rootfs] => (item=[]) ",
"",
"TASK [deploy-package : fedora | installing packages] ***************************",
"skipping: [/mnt/rootfs] => (item=[]) ",
"",
"TASK [deploy-kubelet : installing NFS support packages] ************************",
"",
"TASK [deploy-package : ubuntu | installing packages] ***************************",
"ok: [/mnt/rootfs] => (item=[u'nfs-common'])",
"",
"TASK [deploy-package : centos | installing packages] ***************************",
"skipping: [/mnt/rootfs] => (item=[]) ",
"",
"TASK [deploy-package : fedora | installing packages] ***************************",
"skipping: [/mnt/rootfs] => (item=[]) ",
"",
"TASK [deploy-kubelet : installing LinuxBridge support] *************************",
"",
"TASK [deploy-package : ubuntu | installing packages] ***************************",
"ok: [/mnt/rootfs] => (item=[u'bridge-utils'])",
"",
"TASK [deploy-package : centos | installing packages] ***************************",
"skipping: [/mnt/rootfs] => (item=[]) ",
"",
"TASK [deploy-package : fedora | installing packages] ***************************",
"skipping: [/mnt/rootfs] => (item=[]) ",
"",
"TASK [deploy-kubelet : include_tasks] ******************************************",
"included: /opt/playbooks/roles/deploy-kubelet/tasks/hostname.yaml for /mnt/rootfs",
"",
"TASK [deploy-kubelet : DNS | Ensure node fully qualified hostname is set] ******",
"fatal: [/mnt/rootfs]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'ipv4'\n\nThe error appears to have been in '/opt/playbooks/roles/deploy-kubelet/tasks/hostname.yaml': line 13, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: DNS | Ensure node fully qualified hostname is set\n ^ here\n"}",
"\tto retry, use: --limit @/opt/playbooks/kubeadm-aio-deploy-kubelet.retry",

以下是我的multinode-inventory.yaml文件

kubernetes:
network:
default_device: enp129s0f1
ipv4: 172.19.2.2
cluster:
cni: calico
pod_subnet: 192.168.0.0/16
domain: cluster.local

1 个答案:

答案 0 :(得分:0)

我猜测你的multinode-vars.yaml文件中的默认设备是错误的。该设备不存在于您的工作节点中。使用现有配置的设备,你可以去:)