The model.deploy
unable to resolve to a revision for base [email protected]
#1240
Labels
kind/bug
indicates a bug in the project
Description
Running the following
await model.deploy("grafana-agent", "test-name", channel="latest/edge", base="[email protected]", num_units=0)
results in the following error:juju.errors.JujuError: base "[email protected]/stable" is not supported, supported bases are: [email protected]
However, there should be revisions that fits the constriant, such as revision 316:
![image](https://private-user-images.githubusercontent.com/43424755/393732490-11021854-b74e-46e3-b950-fc4bbfef9fa0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNzIyNDksIm5iZiI6MTczOTI3MTk0OSwicGF0aCI6Ii80MzQyNDc1NS8zOTM3MzI0OTAtMTEwMjE4NTQtYjc0ZS00NmUzLWI5NTAtZmM0YmJmZWY5ZmEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDExMDU0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZlNDhmOTMzMjIxZTA3NGY5ZTMxNzEzMDYxOGExMDk4NDYwMzMzODcxMTlkMmUzODA4MjE5Y2M3N2FkMzc0ZDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TaKGGb2WaiZ94-1HP256bcBovCLLr27iyEfua5ZXLAs)
Adding the revision to the args works fine:
await model.deploy("grafana-agent", "test-name", channel="latest/edge", base="[email protected]", revision=316, num_units=0)
It would be good for the deployment be done without hardcoding the revision.
Urgency
Annoying bug in our test suite
Python-libjuju version
3.6.0.0
Juju version
3.5.4 (locally), 3.6/stable (in GitHub workflows)
Reproduce / Test
The text was updated successfully, but these errors were encountered: