Skip to content

Instantly share code, notes, and snippets.

@yuanying
Last active August 29, 2015 14:15
Build a fedora21 software config image
git clone https://git.openstack.org/openstack/diskimage-builder.git
git clone https://git.openstack.org/openstack/tripleo-image-elements.git
git clone https://git.openstack.org/openstack/heat-templates.git
git clone https://git.openstack.org/openstack/dib-utils.git
export PATH="${PWD}/dib-utils/bin:$PATH"
export ELEMENTS_PATH=tripleo-image-elements/elements:heat-templates/hot/software-config/elements
export DIB_RELEASE=21
diskimage-builder/bin/disk-image-create baremetal \
  fedora selinux-permissive \
  os-collect-config \
  os-refresh-config \
  os-apply-config \
  heat-config-ansible \
  heat-config-cfn-init \
  heat-config-docker \
  heat-config-puppet \
  heat-config-salt \
  heat-config-script \
  -o fedora-21-software-config.qcow2
@hongbin
Copy link

hongbin commented Feb 21, 2015

Hi Yuanying,

I followed your another guide (https://github.com/yuanying/heat-kubernetes/tree/ironic/elements) to build a VM image, but it doesn't seem to work. I saw the stack was successfully launched but kubernetes didn't seem to be working. Please find the details below. Do you have any idea?

$ export KUBERNETES_MASTER=http://$(nova list | grep kube_master | awk '{print $13}'):8080
$ kubectl get pod
NAME IMAGE(S) HOST LABELS STATUS
redis-master kubernetes/redis:v1 name=redis,redis-sentinel=true,role=master Pending
kubernetes/redis:v1
403d4ee5-b9f1-11e4-b19b-fa163e1582a9 kubernetes/redis:v1 name=redis Pending
45451781-b9f1-11e4-b19b-fa163e1582a9 kubernetes/redis:v1 name=redis-sentinel,redis-sentinel=true,role=sentinel Pending

$ ssh minion@$(nova list | grep 10.0.0.5 | awk '{print $13}')
$ REDIS_ID=$(docker ps | grep redis:v1 | grep k8s_master | awk '{print $1}')
time="2015-02-21T17:46:25Z" level="fatal" msg="Get http:///var/run/docker.sock/v1.17/containers/json: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment