juju2.0beta10: websockets API usability Application Deploy failure to inform of required addCharm pre-requisite

Bug #1597941 reported by Chad Smith
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
High
Unassigned

Bug Description

In beta10 we broke websockets API consumers by requiring that Client AddCharm be called before Application Deploy. Beta9 took care of this under the hood and now our api call chains have to discover why application deploy errors out with the following message:

{u'error': {u'message': u'charm "cs:trusty/ubuntu-0" not found', u'code': u'not found'}

When we break api contracts, is there a possibility that we can add slightly more informational error messages which might point api consumers to the "missing" AddCharm method call that they might need to call?

tags: removed: kanban-cross-team
Revision history for this message
Adam Stokes (adam-stokes) wrote :

Also keep in mind that if you do not perform the Resources.AddPendingResources prior to deploying your charm those resources will not be made available during deployment. So both of those should highlighted in the error message if possible

tags: added: conjure
Revision history for this message
Adam Stokes (adam-stokes) wrote :

I think we should also mark this as critical as anything API related is heavily used outside of the official Juju client (autopilot, deployer, macumba, conjure-up, juju-gui)

Ian Booth (wallyworld)
Changed in juju-core:
milestone: none → 2.0-beta12
importance: Undecided → Critical
status: New → Triaged
tags: added: 2.0
Changed in juju-core:
importance: Critical → High
milestone: 2.0-beta12 → 2.0-beta13
Revision history for this message
Cheryl Jennings (cherylj) wrote :

This particular API has been deprecated for several releases, but unfortunately that was not properly documented.

beta 11 should have most of the API changes and they are documented in this thread to the juju-dev mailing list: https://lists.ubuntu.com/archives/juju-dev/2016-June/005715.html

Revision history for this message
Chad Smith (chad.smith) wrote :

Cherly I'm not sure if your 'deprecated' comment is implying that Landscape shouldn't use AddCharmWithAuthorization? If so, what should we be using?

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta13 → 2.0-beta14
Revision history for this message
Ian Booth (wallyworld) wrote :

Cheryl's comment referred to calling Deploy() without first calling AddCharmWithAuthorization(). What was deprecated was the behaviour of Deploy() which did an explicit AddCharm() under the covers.

Changed in juju-core:
status: Triaged → Won't Fix
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta14 → none
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.