[Feature, UI] allow passing cloud-init user-data on deployment and power-on via UI

Bug #1794080 reported by Dmitrii Shcherbakov
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
MAAS
Invalid
High
Unassigned

Bug Description

Currently it is only possible to specify cloudinit-userdata via API and not via the UI which hides this functionality from a user. It would be good to have this functionality exposed to provide similar experience to private and public cloud platforms (e.g. OpenStack or AWS allow you to specify userdata before deployment).

Various ways to provide userdata:

1) enlistment time (via preseed files in /etc/maas);
2) deployment time (api call);
https://github.com/maas/maas/blob/2.4.2/src/maasserver/api/machines.py#L509-L515
3) power-on (api call).
https://github.com/maas/maas/blob/2.4.2/src/maasserver/api/nodes.py#L745-L751

maas maas machine deploy <system_id> user_data=<b64-encoded userdata>
maas maas machine power-on <system_id> user_data=<b64-encoded userdata>

description: updated
summary: - feature: allow passing cloud-init user-data on deployment and power-on
+ [Feature] allow passing cloud-init user-data on deployment and power-on
via UI
Changed in maas:
status: New → Triaged
importance: Undecided → High
tags: added: feature
Changed in maas:
milestone: none → next
tags: added: ui
summary: - [Feature] allow passing cloud-init user-data on deployment and power-on
- via UI
+ [Feature, UI] allow passing cloud-init user-data on deployment and
+ power-on via UI
Revision history for this message
Lee Trager (ltrager) wrote :

We should consider allowing users to upload and store cloud-init user-data in addition to supplying it at deployment time.

Changed in maas:
milestone: next → 2.5.0rc1
tags: added: track
Changed in maas:
milestone: 2.5.0rc1 → 2.5.0
Changed in maas:
milestone: 2.5.0 → 2.5.0rc1
Changed in maas:
milestone: 2.5.0rc1 → 2.5.0
Changed in maas:
milestone: 2.5.0 → 2.5.x
Changed in maas:
milestone: 2.5.x → next
tags: added: ux
Revision history for this message
Jochen Wezel (jwezel) wrote :

The process described at https://docs.maas.io/2.5/en/nodes-custom#cloud-init needs a GUI solution.

The UI should provide 2 types of user scripts for deployed machines
1. Script for ALL deployed machines, configurable at e.g. http://maas-server:5240/MAAS/settings/scripts/
   - multiple scripts are required for different platforms, e.g. Windows vs. Linux
   - optional: multiple scripts are required for different operating systems, e.g. CentOS vs. Ubuntu
2. Script for single deployed machines, configurable at e.g. http://maas-server:5240/MAAS/#/machine/8te8qw

Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

Changed in maas:
status: Triaged → Invalid
Changed in maas:
status: Invalid → New
Revision history for this message
Newell Jensen (newell-jensen) wrote :

Thanks for the suggestion. We've recently moved discussion of all new
features to https://discourse.maas.io/c/features Could you please post
there?

Changed in maas:
status: New → Invalid
Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :
Changed in maas:
milestone: next → none
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.