Files
nova-specs/specs/mitaka/approved/user-data-modification.rst
Alexandre Levine 25c9dd1816 user_data modification
This spec was approved for liberty but implementation didn't make it.
Rescheduling for mitaka now.

Implements: blueprint userdata-modification
APIImpact

Previously-Approved: liberty

Change-Id: Ic25e057b0cc71c177aeaf202dfeea8bdf34700aa
2015-11-10 16:24:30 +00:00

2.1 KiB
Raw Blame History

Allow user_data modification

https://blueprints.launchpad.net/nova/+spec/userdata-modification

Current nova API allows setting up user_data during server creation and retrieving it along with other extended server attributes. EC2 API requires public API for modification of this data for compatibility with Amazon.

Problem description

There is no mechanism for end-user to modify user_data.

Use Cases

  1. User wants to modify user_data. Impacts end user.

Project Priority

None

Proposed change

Add a new microversion allowing modification of OS-USER-DATA:user_data via PUT method.

Alternatives

None

Data model impact

None

REST API impact

The method:

"/v2/{tenant_id}/servers/{server_id}"

With the method type PUT.

will be updated to allow setting of attribute "user_data" The JSON schema will be used exactly the same as for creation (it will be reused): :

server_create = {
    'user_data': {
    'type': 'string',
    'format': 'base64'
}

Security impact

None

Notifications impact

None

Other end user impact

None

Performance Impact

None

Other deployer impact

None

Developer impact

None

Implementation

Assignee(s)

Primary assignee:

Alexandre Levine (alexandrelevine@gmail.com)

Work Items

Single work item.

Dependencies

None

Testing

Unit tests and functional tests to be created.

Documentation Impact

Compute API documentation changes

References

https://etherpad.openstack.org/p/YVR-nova-contributor-meetup

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ API_ModifyInstanceAttribute.html

History

None