Project

General

Profile

Actions

Bug #57338

open

Orchestrator not correctly parsing extra_container_args for volumes

Added by Sake Paulusma over 1 year ago. Updated over 1 year ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
orchestrator
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

At our company host certificates are automatically created and updated on the hostmachine. To set the correct certificate for Grafana I use the extra_container_args and add a volume to overwrite the container certificate.

The following configuration works correctly:

service_type: grafana
service_name: grafana
placement:
  count: 1
  hosts:
  - host1.example.com
  - host2.example.com
  - host3.example.com
extra_container_args:
  - "-v=/opt/ceph_cert/host.cert:/etc/grafana/certs/cert_file:ro" 
  - "-v=/opt/ceph_cert/host.key:/etc/grafana/certs/cert_key:ro" 

The volume settings in extra_container_args won't work if you use for example "-v /opt/ceph_cert/host.key:/etc/grafana/certs/cert_key:ro" (using a space) or "--volume /opt/ceph_cert/host.key:/etc/grafana/certs/cert_key:ro".

Via "journalctl -xe" I got the error why the container wouldn't start when using a space between "-v" and the paths:

Error: error creating named volume " /opt/ceph_cert/host.cert": running volume create option: names must match [a-zA-Z0-9][a-zA-Z0-9_.-]*: invalid argument

When using "--volume", I got an error indicating unknown parameter.

Actions

Also available in: Atom PDF