From Menno:
The command is trying the application (aka service) name as a hostname because it doesn't support application names. Consequently, it fails with the "Name or service not known" error.
It may be enough to improve the error to give a little more detail.
Re-targeting for Juju 2.x
From Menno:
The command is trying the application (aka service) name as a hostname because it doesn't support application names. Consequently, it fails with the "Name or service not known" error.
It may be enough to improve the error to give a little more detail.