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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjMxOTMsIm5iZiI6MTczOTQ2Mjg5MywicGF0aCI6Ii80MzQyNDc1NS8zOTM3MzI0OTAtMTEwMjE4NTQtYjc0ZS00NmUzLWI5NTAtZmM0YmJmZWY5ZmEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE2MDgxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxMDg5Mjk4ZTk1NjRjOTFkYmRjY2I1ZWVmOWM1MmZiODJmZDZiNDk0Y2ViY2ZhN2M4YmIwYWNhYjExY2NlZGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-I7DHctBmaCq91I-z19_1yDRPGm-VXhFOx7UiFf2Q4U)
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: