# Pastebin LGIPLkW6 rwellum@cluster2 kolla-kubernetes(keystone_admin)]$ kubectl get daemonset nova-compute -o yaml -n kolla apiVersion: extensions/v1beta1 kind: DaemonSet metadata: creationTimestamp: 2017-09-18T21:33:04Z generation: 1 labels: component: nova system: nova-compute name: nova-compute namespace: kolla resourceVersion: "199141" selfLink: /apis/extensions/v1beta1/namespaces/kolla/daemonsets/nova-compute uid: f41c505f-9cb8-11e7-b0fc-525400fe8d69 spec: revisionHistoryLimit: 10 selector: matchLabels: component: nova system: nova-compute template: metadata: annotations: pod.alpha.kubernetes.io/init-containers: '[{"name":"dependencies","image":"docker.io/kolla/centos-source-kubernetes-entrypoint:4.0.0","env":[{"name":"DEPENDENCY_SERVICE","value":"nova-metadata,nova-api"},{"name":"DEPENDENCY_SOCKET","value":"/var/run/libvirt/libvirt-sock"},{"name":"NAMESPACE","value":"kolla"}],"resources":{},"volumeMounts":[{"name":"run","mountPath":"/var/run"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"},{"name":"initialize-nova-compute","image":"docker.io/kolla/centos-source-kolla-toolbox:3.0.2","command":["sh","-xec","cp -a /config/..data/* /nova/; IP=$(ip addr show dev ens3 | grep -G ''inet '' | awk ''{print $2}'' | sed ''s@/.*@@''); mkdir -p /var/log/kolla/nova-init; echo Using $IP | tee /var/log/kolla/nova-init/ip.log; crudini --set /nova/nova.conf DEFAULT my_ip $IP; crudini --set /nova/nova.conf vnc novncproxy_host $IP; crudini --set /nova/nova.conf vnc vncserver_listen $IP; crudini --set /nova/nova.conf vnc vncserver_proxyclient_address $IP; crudini --set /nova/nova.conf vnc novncproxy_base_url http://nova-novncproxy:6080/vnc_auto.html; "],"resources":{},"volumeMounts":[{"name":"kolla-logs","mountPath":"/var/log/kolla/"},{"name":"nova-compute-config","mountPath":"/config/"},{"name":"nova-config","mountPath":"/nova/"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"},{"name":"initialize-nova","image":"docker.io/kolla/centos-source-nova-compute:4.0.0","command":["sh","-ce","[ ! -d /var/lib/nova/instances ] \u0026\u0026 mkdir -p /var/lib/nova/instances; chown nova: /var/lib/nova; chown nova: /var/lib/nova/instances; "],"resources":{},"volumeMounts":[{"name":"nova-compute-persistent-storage","mountPath":"/var/lib/nova"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent","securityContext":{"runAsUser":0}},{"name":"initialize-iscsi-iqn","image":"docker.io/kolla/centos-source-nova-compute:4.0.0","command":["bash","-ce","if [ ! -f /etc/iscsi/initiatorname.iscsi ]; then iqn=$( cat /dev/urandom | tr -dc ''a-f0-9'' | head -c 12 ); echo InitiatorName=iqn.2010-10.org.openstack:$iqn \u003e /etc/iscsi/initiatorname.iscsi; chmod 640 /etc/iscsi/initiatorname.iscsi; fi; "],"resources":{},"volumeMounts":[{"name":"iscsi-info","mountPath":"/etc/iscsi"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent","securityContext":{"privileged":true,"runAsUser":0}}]' pod.beta.kubernetes.io/init-containers: '[{"name":"dependencies","image":"docker.io/kolla/centos-source-kubernetes-entrypoint:4.0.0","env":[{"name":"DEPENDENCY_SERVICE","value":"nova-metadata,nova-api"},{"name":"DEPENDENCY_SOCKET","value":"/var/run/libvirt/libvirt-sock"},{"name":"NAMESPACE","value":"kolla"}],"resources":{},"volumeMounts":[{"name":"run","mountPath":"/var/run"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"},{"name":"initialize-nova-compute","image":"docker.io/kolla/centos-source-kolla-toolbox:3.0.2","command":["sh","-xec","cp -a /config/..data/* /nova/; IP=$(ip addr show dev ens3 | grep -G ''inet '' | awk ''{print $2}'' | sed ''s@/.*@@''); mkdir -p /var/log/kolla/nova-init; echo Using $IP | tee /var/log/kolla/nova-init/ip.log; crudini --set /nova/nova.conf DEFAULT my_ip $IP; crudini --set /nova/nova.conf vnc novncproxy_host $IP; crudini --set /nova/nova.conf vnc vncserver_listen $IP; crudini --set /nova/nova.conf vnc vncserver_proxyclient_address $IP; crudini --set /nova/nova.conf vnc novncproxy_base_url http://nova-novncproxy:6080/vnc_auto.html; "],"resources":{},"volumeMounts":[{"name":"kolla-logs","mountPath":"/var/log/kolla/"},{"name":"nova-compute-config","mountPath":"/config/"},{"name":"nova-config","mountPath":"/nova/"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"},{"name":"initialize-nova","image":"docker.io/kolla/centos-source-nova-compute:4.0.0","command":["sh","-ce","[ ! -d /var/lib/nova/instances ] \u0026\u0026 mkdir -p /var/lib/nova/instances; chown nova: /var/lib/nova; chown nova: /var/lib/nova/instances; "],"resources":{},"volumeMounts":[{"name":"nova-compute-persistent-storage","mountPath":"/var/lib/nova"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent","securityContext":{"runAsUser":0}},{"name":"initialize-iscsi-iqn","image":"docker.io/kolla/centos-source-nova-compute:4.0.0","command":["bash","-ce","if [ ! -f /etc/iscsi/initiatorname.iscsi ]; then iqn=$( cat /dev/urandom | tr -dc ''a-f0-9'' | head -c 12 ); echo InitiatorName=iqn.2010-10.org.openstack:$iqn \u003e /etc/iscsi/initiatorname.iscsi; chmod 640 /etc/iscsi/initiatorname.iscsi; fi; "],"resources":{},"volumeMounts":[{"name":"iscsi-info","mountPath":"/etc/iscsi"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent","securityContext":{"privileged":true,"runAsUser":0}}]' creationTimestamp: null labels: component: nova system: nova-compute spec: containers: - env: - name: KOLLA_KUBERNETES - name: KOLLA_CONFIG_STRATEGY value: COPY_ONCE image: docker.io/kolla/centos-source-nova-compute:4.0.0 imagePullPolicy: IfNotPresent name: main resources: {} securityContext: privileged: true terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /var/log/kolla/ name: kolla-logs - mountPath: /etc/localtime name: host-etc-localtime readOnly: true - mountPath: /etc/resolv.conf name: resolv-conf subPath: resolv.conf - mountPath: /var/lib/kolla/config_files name: nova-config - mountPath: /var/lib/nova name: nova-compute-persistent-storage - mountPath: /lib/modules name: lib-modules - mountPath: /var/run name: run - mountPath: /dev name: dev - mountPath: /sys/fs/cgroup name: sys-fs-cgroup - mountPath: /etc/iscsi name: iscsi-info dnsPolicy: ClusterFirst hostIPC: true hostNetwork: true initContainers: - env: - name: DEPENDENCY_SERVICE value: nova-metadata,nova-api - name: DEPENDENCY_SOCKET value: /var/run/libvirt/libvirt-sock - name: NAMESPACE value: kolla image: docker.io/kolla/centos-source-kubernetes-entrypoint:4.0.0 imagePullPolicy: IfNotPresent name: dependencies resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /var/run name: run - command: - sh - -xec - 'cp -a /config/..data/* /nova/; IP=$(ip addr show dev ens3 | grep -G ''inet '' | awk ''{print $2}'' | sed ''s@/.*@@''); mkdir -p /var/log/kolla/nova-init; echo Using $IP | tee /var/log/kolla/nova-init/ip.log; crudini --set /nova/nova.conf DEFAULT my_ip $IP; crudini --set /nova/nova.conf vnc novncproxy_host $IP; crudini --set /nova/nova.conf vnc vncserver_listen $IP; crudini --set /nova/nova.conf vnc vncserver_proxyclient_address $IP; crudini --set /nova/nova.conf vnc novncproxy_base_url http://nova-novncproxy:6080/vnc_auto.html; ' image: docker.io/kolla/centos-source-kolla-toolbox:3.0.2 imagePullPolicy: IfNotPresent name: initialize-nova-compute resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /var/log/kolla/ name: kolla-logs - mountPath: /config/ name: nova-compute-config - mountPath: /nova/ name: nova-config - command: - sh - -ce - '[ ! -d /var/lib/nova/instances ] && mkdir -p /var/lib/nova/instances; chown nova: /var/lib/nova; chown nova: /var/lib/nova/instances; ' image: docker.io/kolla/centos-source-nova-compute:4.0.0 imagePullPolicy: IfNotPresent name: initialize-nova resources: {} securityContext: runAsUser: 0 terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /var/lib/nova name: nova-compute-persistent-storage - command: - bash - -ce - 'if [ ! -f /etc/iscsi/initiatorname.iscsi ]; then iqn=$( cat /dev/urandom | tr -dc ''a-f0-9'' | head -c 12 ); echo InitiatorName=iqn.2010-10.org.openstack:$iqn > /etc/iscsi/initiatorname.iscsi; chmod 640 /etc/iscsi/initiatorname.iscsi; fi; ' image: docker.io/kolla/centos-source-nova-compute:4.0.0 imagePullPolicy: IfNotPresent name: initialize-iscsi-iqn resources: {} securityContext: privileged: true runAsUser: 0 terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /etc/iscsi name: iscsi-info nodeSelector: kolla_compute: "true" restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 volumes: - hostPath: path: /etc/localtime name: host-etc-localtime - emptyDir: {} name: kolla-logs - configMap: defaultMode: 420 name: resolv-conf name: resolv-conf - configMap: defaultMode: 420 name: nova-compute name: nova-compute-config - hostPath: path: /var/lib/nova name: nova-compute-persistent-storage - hostPath: path: /lib/modules name: lib-modules - hostPath: path: /var/run name: run - hostPath: path: /dev name: dev - hostPath: path: /sys/fs/cgroup name: sys-fs-cgroup - emptyDir: {} name: nova-config - hostPath: path: /var/lib/kolla/iscsi name: iscsi-info templateGeneration: 1 updateStrategy: type: OnDelete status: currentNumberScheduled: 1 desiredNumberScheduled: 1 numberAvailable: 1 numberMisscheduled: 0 numberReady: 1 observedGeneration: 1 updatedNumberScheduled: 1 [rwellum@cluster2 kolla-kubernetes(keystone_admin)]$