No reasonable separators are permitted in juju service names

Bug #1384348 reported by Aaron Bentley
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Medium
Unassigned

Bug Description

abentley@skinny:~/canonical/juju-ci-tools$ juju --version
1.20.9-trusty-amd64
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu-1
error: invalid service name "ubuntu-1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu_1
error: invalid service name "ubuntu_1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu:1
error: invalid service name "ubuntu:1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu/1
error: invalid service name "ubuntu/1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu=1
error: invalid service name "ubuntu=1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\|1
error: invalid service name "ubuntu|1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\!1
error: invalid service name "ubuntu!1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\@1
error: invalid service name "ubuntu@1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\#1
error: invalid service name "ubuntu#1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\$1
error: invalid service name "ubuntu$1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\%1
error: invalid service name "ubuntu%1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\^1
error: invalid service name "ubuntu^1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\&1
error: invalid service name "ubuntu&1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\*1
error: invalid service name "ubuntu*1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\(1
error: invalid service name "ubuntu(1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\)1
error: invalid service name "ubuntu)1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\_1
error: invalid service name "ubuntu_1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\+1
error: invalid service name "ubuntu+1"
abentley@skinny:~/canonical/juju-ci-tools$ juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu\=1
error: invalid service name "ubuntu=1"
abentley@skinny:~/canonical/juju-ci-tools$
juju --show-log deploy -e test-release-hp-new -n 2 --to lxc:1 ubuntu ubuntu1X0
error: invalid service name "ubuntu1X0"

Tags: ci deploy service
Aaron Bentley (abentley)
description: updated
Abel Deuring (adeuring)
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Curtis Hovey (sinzui) wrote :

What? I have used hyphens to rename services. Is this a container name problem because the service name becomes the lxc container name ? Hyphens and numbers /letter are still acceptable to lxc. Something else must be interfering with the rules.

tags: added: deploy service
Revision history for this message
Anastasia (anastasia-macmood) wrote :

We believe that this has been addressed by re-work in Juju 2.

If you are still seeing a failure, it would be helpful to have a CI test for this \o/ and feel free to file a bug against "juju".

Changed in juju-core:
status: Triaged → Fix Released
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.