Avoid _ in rabbitmq_clusterer.config

Bug #1581162 reported by Davanum Srinivas (DIMS)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Medium
Davanum Srinivas (DIMS)

Bug Description

A simple kubectl command shows the problem.

kubectl create configmap rabbitmq-configmap --from-file=/etc/kolla/rabbitmq/config.json --from-file=/etc/kolla/rabbitmq/rabbitmq-env.conf --from-file=/etc/kolla/rabbitmq/rabbitmq.config --from-file=/etc/kolla/rabbitmq/rabbitmq_clusterer.config
error: rabbitmq_clusterer.config is not a valid key name for a configMap

Trying to use ConfigMap's in Kubernetes leads to an interesting problem. We use the file name as the key and the contents of the file as the text value. The ConfigMap is mounted on the container as a volume and the key is then used as the name of the file. The problem is that kubernetes has a limitation on the name of the key

https://github.com/kubernetes/kubernetes/blob/release-1.2/docs/design/identifiers.md

Which means we cannot use '_' in the name of the file.

Revision history for this message
Steven Dake (sdake) wrote :
Changed in kolla:
importance: Undecided → Medium
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
milestone: none → newton-1
status: New → Confirmed
Changed in kolla-kubernetes:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
Changed in kolla:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/315701
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=48b4b158286c4490117c2abfd07c700208e36663
Submitter: Jenkins
Branch: master

commit 48b4b158286c4490117c2abfd07c700208e36663
Author: Davanum Srinivas <email address hidden>
Date: Thu May 12 13:59:57 2016 -0400

    Avoid _ in rabbitmq_clusterer.config

    Trying to use ConfigMap's in Kubernetes leads to an interesting
    problem. We use the file name as the key and the contents of the
    file as the text value. The ConfigMap is mounted on the container
    as a volume and the key is then used as the name of the file. The
    problem is that kubernetes has a limitation on the name of the
    key

    https://github.com/kubernetes/kubernetes/blob/release-1.2/docs/design/identifiers.md

    Which means we cannot use '_' in the name of the file.

    Closes-Bug: #1581162
    Change-Id: I2d9ec80f989c30893b019954fe18b3623d27a076

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 3.0.0.0b1

This issue was fixed in the openstack/kolla 3.0.0.0b1 development milestone.

Steven Dake (sdake)
no longer affects: kolla-kubernetes
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.