Skip to content

multipart user_data issues #203

@branzo

Description

@branzo

Dear all,

I'm encountering an issue with the usage of a multipart user_data on a config-drive. I've assembled the file:

Content-Type: multipart/mixed; boundary="==BOUNDARY=="
MIME-Version: 1.0

==BOUNDARY==
MIME-Version: 1.0
Content-Type: text/cloud-config; charset="us-ascii"
Content-Disposition: attachment; filename="cloud-config"

set_timezone: Europe/Rome
users:
  - name: Administrator
    passwd: VerySecretPassword__?
  - name: myuser
    groups: Administrators
    passwd: AnotherVerySecretPassword?1
    inactive: false
  - name: otheruser
    groups: Administrators
    passwd: aScaryPassword_
    inactive: false

==BOUNDARY==
MIME-Version: 1.0
Content-Type: text/x-shellscript; charset="us-ascii"
Content-Disposition: attachment; filename="test.ps1"

echo "lol" | Out-File -Append -Path "C:\lol.log"

But when I boot an instance with this config drive attached, nothing gets done. By inspecting the logs I can see, as mentioned in #87, that the content is logged but then nothing seems to happen; here's the cloudbase-init.log.

Is multipart supported with openstack.configdrive / openstack.metadata or is it just supported w/NoCloud (as I can assume by having a look at #89)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions