Skip to content

doc: clarify required vs optional files for NoCloud datasource - #7029

Open
sundeep8967 wants to merge 2 commits into
canonical:mainfrom
sundeep8967:fix/nocloud-mandatory-files-doc
Open

doc: clarify required vs optional files for NoCloud datasource#7029
sundeep8967 wants to merge 2 commits into
canonical:mainfrom
sundeep8967:fix/nocloud-mandatory-files-doc

Conversation

@sundeep8967

Copy link
Copy Markdown
Contributor

Summary of changes

This PR updates the NoCloud documentation in doc/rtd/reference/datasources/nocloud.rst:

  • Explicitly lists meta-data and user-data as Required files and vendor-data and network-config as Optional files.
  • Adds an explanatory note clarifying that if either user-data or meta-data is missing, the NoCloud datasource treats the seed as invalid and skips it (which often manifests as device ... with label=cidata not a valid seed).

Fixes #5858

Testing done

Ran pytest unit tests locally:

pytest tests/unittests

All tests passed.

@github-actions github-actions Bot added the documentation This Pull Request changes documentation label Aug 23, 2026
@sundeep8967
sundeep8967 force-pushed the fix/nocloud-mandatory-files-doc branch from a0f8d1d to bafbc05 Compare August 27, 2026 05:38

@blackboxsw blackboxsw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sundeep8967 for this update. Couple of minor comments and then +1


* ``vendor-data`` (optional): Used for cloud provider defaults.
* ``network-config`` (optional): Network configuration if differing
from defaults.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for these clarifying headers and section breaks.

I think this section is clear enough given the bolded title. Let's drop the (required) and (optional) for each item within that section.

Suggested change
from defaults.
* ``meta-data``: Contains cloud-instance information.
It is recommended to define a unique ``instance-id``.
* ``user-data``: Contains user configuration instructions
(can be empty if no configuration is needed).
* **Optional files:**
* ``vendor-data`` : Used for cloud provider defaults.
* ``network-config``: Network configuration if differing
from defaults.

Comment on lines +227 to +228
invalid and skip it (e.g., logging a warning such as
``device ... with label=cidata not a valid seed``).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to statically represent the exact warning log message here as it may change in the future.

Suggested change
invalid and skip it (e.g., logging a warning such as
``device ... with label=cidata not a valid seed``).
invalid and skip it while logging a warning.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add your (required) up here instead as we don't have a clear representation madatory vs optional data in this section.

Suggested change
user-data (required)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
meta-data (required)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
vendor-data (optional)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
network-config (optional)

@blackboxsw blackboxsw self-assigned this Aug 31, 2026
@blackboxsw blackboxsw added the incomplete Action required by submitter label Sep 1, 2026
@sundeep8967

Copy link
Copy Markdown
Contributor Author

thanks for the review! updated the documentation with all the suggestions:

  • added (required) and (optional) markers to the runtime configuration section headers.
  • removed redundant inline tags within the bulleted lists.
  • generalized the warning log description in the note.

Explicitly specify that user-data and meta-data are required for the
NoCloud datasource to operate, while vendor-data and network-config
are optional. Add explanatory note regarding missing seed files.

Fixes canonicalGH-5858
…l files

Signed-off-by: sundeep8967 <sundeep8967@gmail.com>
@sundeep8967
sundeep8967 force-pushed the fix/nocloud-mandatory-files-doc branch from 1b4a7b5 to 0d4dd31 Compare September 5, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation This Pull Request changes documentation incomplete Action required by submitter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs]: NoCloud missing mandatory file information

2 participants