Updated node-script not showing in UI

Bug #1879986 reported by Nick Niehoff
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Undecided
Unassigned
maas-ui
Unknown
Unknown

Bug Description

If you create and update a node-script via the CLI the CLI read and download both reflect the correct version history and the latest version. However if you then check the UI the contents of the script are the first version of the script.

Reproducing:

1. Create a node script as a text file script.sh
2. Use the CLI to create the node-script:

maas admin node-scripts create name=testingscript script@=/path/to/script.sh type=testing

3. Change the script.sh file
4. Use the CLI to update the script:

maas admin node-script update testingscript script@=/path/to/script.sh

5. Verify with the CLI:

maas admin node-script download testingscript

You should see your modified script from step 3

6. Verify history with CLI:

maas admin node-script read testingscript

You should see 2 history entries

7. Check the UI:

Under Settings/Scripts/Testing Scripts you should see your testingscript listed, select the script to view the contents. Note the contents are the original contents from step 1 not the updated contents from step 3

Tags: sts ui
Revision history for this message
Lee Trager (ltrager) wrote :

The backend does have a database trigger which should be updating the UI. Tagging this UI for the design team to look into.

One thing to note is that even if the data doesn't update in the UI if you run commissioning/testing the right version will be used as its been committed to the database.

tags: added: ui
Seyeong Kim (seyeongkim)
tags: added: sts
Kit Randel (blr)
Changed in maas:
status: New → Fix Committed
Nick Niehoff (nniehoff)
summary: - [UI] Updated node-script not showing in UI
+ Updated node-script not showing in UI
Changed in maas:
milestone: none → 3.1.0
status: Fix Committed → Fix Released
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.