Better message for machines validation on bundle.yaml

Bug #1992689 reported by Amanda Hager Lopes de Andrade Katz
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Unassigned

Bug Description

Goal:
Deploy bundle with existing machines set via bundle.yaml

Error:
ERROR cannot deploy bundle: the provided bundle has the following errors:
at least one application must be specified

Suggestion:
Give an error related to the machines validation.

Cause:
Set machines at bundle.yaml as:
name: openstack-base
series: focal
machines:
  '0': 1
  '1': 2
  '2': 3
applications:
  ceph-mon:
    annotations:
      gui-x: '790'
      gui-y: '1540'
    charm: ch:ceph-mon
    channel: quincy/stable
    num_units: 3
    options:
      expected-osd-count: 3
      monitor-count: 3
      source: cloud:focal-yoga
    to:
    - lxd:0
    - lxd:1
    - lxd:2
 ...

Entire bundle.yaml in:
https://pastebin.canonical.com/p/2XPxtDpprG/

Fix:
Set via parameter:
juju deploy ./bundle.yaml --map-machines=0=1,1=2,2=3

Repo:
https://github.com/juju/charm

Tags: bundles
tags: added: bundles
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
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.