How to increase user data limit beyond 64k?

asked 2017-04-13 08:28:46 -0600

udayutkarsh gravatar image

updated 2017-04-17 08:49:42 -0600

zaneb gravatar image

I have a master file which invokes several files in its user data section. Now I have to add some extra contents in of those file. After file modification when I launched the stack it says:

| stack_status          | CREATE_FAILED                                                                                                        |
| stack_status_reason   | Resource CREATE failed: BadRequest:                                                                                  |
|                       | resources.lvs1.resources.vm: User data too large. User                                                               |
|                       | data must be no larger than 65535 bytes once base64                                                                  |
|                       | encoded. Your data is 65696 bytes (HTTP 400) (Request-                                                               |
|                       | ID: req-985472d6-9ff3-4f79-84d8-fb6cf22286c7)

As it says " User data must be no larger than 65535 byes once base64 encoded ". Do we have other encodings which might allow 128k of user data? or something like that?

Kindly help!!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-04-13 09:23:08 -0600

Mohit gravatar image

Bottleneck appears to be database -

edit flag offensive delete link more

answered 2017-04-17 08:49:09 -0600

zaneb gravatar image

The size of the user_data is constrained in Nova. (Nova is actually pretty generous, AWS only gives you 16K IIRC.)

I'd recommend using Heat Software Deployments instead to get whatever data you need to the server. (This provides a minimal cloud-init file and deploys everything else via a separate channel. Note that it does require in-instance guest agents like os-collect-config.)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-04-13 08:28:46 -0600

Seen: 1,962 times

Last updated: Apr 17 '17