Invalid charm options while deploying mongodb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-gui |
Fix Released
|
High
|
Kyle Adams |
Bug Description
The GUI fails to deploy the mongodb charm due to unrecognized options.
To dupe:
- deploy the GUI in a real env: I used juju devel (1.22-beta4-
- search for mongodb;
- drag and drop the charm;
- click commit.
The service deployment fails ("Could not deploy the requested service. Server responded with: unknown option opidmem" or similar). The JS console show an "Uncaught TypeError: Cannot read property 'get' of null".
The service in the canvas is left in uncommited state and the GUI is no longer usable.
It might be a red herring but https:/
Changed in juju-gui: | |
assignee: | nobody → Kyle Adams (kadams54) |
Changed in juju-gui: | |
status: | Fix Committed → Fix Released |
Verified it also happens with 1.21.3
The v3 api has the correct case: manage. jujucharms. com/api/ 3/charm/ trusty/ mongodb
http://
As does the search api call: /api.jujucharms .com/charmstore /v4/search? text=mongodb& limit=1& include= charm-metadata& include= charm-config& include= bundle- metadata& include= extra-info& include= stats
https:/
The charm details configuration has the correct case in the title /10.0.3. 238/trusty/ mongodb- 16/?text= mongodb# configuration
https:/
I clicked "add to canvas" and checked the case is correct in the database services. item(1) .config
app.db.
And the commit/deploy worked.
Repeating the above with a drag/drop the db keys are lower case after the drop before the commit: services. item(1) .config
app.db.
So this is a case where the drag/drop path goes through something that is lower casing the keys of the service config causing the error on the Juju end once we attempt to commit.