Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloud-init[387]: 2023-04-29 17:05:45,277 - __init__.py[WARNING]: Unhandled unknown content-type (x-scylla/json) userdata: 'b'{'...' #508

Open
mykaul opened this issue May 11, 2023 · 4 comments
Assignees

Comments

@mykaul
Copy link

mykaul commented May 11, 2023

Saw in a log file:

2023-04-29T17:05:51+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | cloud-init[387]: 2023-04-29 17:05:45,277 - __init__.py[WARNING]: Unhandled unknown content-type (x-scylla/json) userdata: 'b'{'...'
...
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: 2023-04-29 17:06:23,619 - [user_data] - INFO - Got user-data: Content-Type: multipart/mixed; boundary="===============1212770131587456580=="
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: MIME-Version: 1.0
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: --===============1212770131587456580==
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: Content-Type: x-scylla/json
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: MIME-Version: 1.0
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: Content-Disposition: attachment; filename="scylla_machine_image.json"
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: {
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]:     "cluster_name": "longevity-lwt-3h-2023-1-db-cluster-8f772d9e",
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]:     "data_device": "instance_store",
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]:     "raid_level": 0,
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]:     "scylla_yaml": {
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]:         "cluster_name": "longevity-lwt-3h-2023-1-db-cluster-8f772d9e"
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]:     },
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]:     "start_scylla_on_first_boot": false
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: }
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: --===============1212770131587456580==
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: Content-Type: text/cloud-config
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: MIME-Version: 1.0
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: Content-Disposition: attachment; filename="cloud-config.txt"
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]:         #cloud-config
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]:         cloud_final_modules:
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]:         - [scripts-user, always]
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]:         
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: --===============1212770131587456580==
2023-04-29T17:06:23+00:00 longevity-lwt-3h-2023-1-db-node-8f772d9e-3     !INFO | scylla_post_start.py[904]: Content-Type: text/x-shellscript

Should the Content-Type be json/x-scylla? or application/json ?

@fruch
Copy link
Collaborator

fruch commented May 11, 2023

Yeah, we should do better here.

But I suggest doing it gradually, and with advancing smi_version

@yaronkaikov
Copy link
Collaborator

@roydahan How is it related to us? it's in SCT,

@mykaul mykaul transferred this issue from scylladb/scylla-machine-image Mar 5, 2024
@mykaul mykaul removed their assignment Mar 5, 2024
@fruch
Copy link
Collaborator

fruch commented Mar 5, 2024

this is an issue for SMI

if part.get_content_type() in ('x-scylla/json', 'x-scylla/yaml'):

this is o.k. for cloud-init to complain on our own define mime type
it probably can be change to something that won't get those errors, but the idea that only our code would read those parts, i.e. other mime types that might be used by cloud-init itself shouldn't be used.

anyhow it's not an issue with SCT

@fruch fruch transferred this issue from scylladb/scylla-cluster-tests Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants