doc: clarify required vs optional files for NoCloud datasource - #7029
doc: clarify required vs optional files for NoCloud datasource#7029sundeep8967 wants to merge 2 commits into
Conversation
a0f8d1d to
bafbc05
Compare
blackboxsw
left a comment
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
| 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. |
| invalid and skip it (e.g., logging a warning such as | ||
| ``device ... with label=cidata not a valid seed``). |
There was a problem hiding this comment.
I don't think we want to statically represent the exact warning log message here as it may change in the future.
| 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. |
There was a problem hiding this comment.
Can we add your (required) up here instead as we don't have a clear representation madatory vs optional data in this section.
| user-data (required) |
There was a problem hiding this comment.
| meta-data (required) |
There was a problem hiding this comment.
| vendor-data (optional) |
There was a problem hiding this comment.
| network-config (optional) |
|
thanks for the review! updated the documentation with all the suggestions:
|
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>
1b4a7b5 to
0d4dd31
Compare
Summary of changes
This PR updates the NoCloud documentation in
doc/rtd/reference/datasources/nocloud.rst:meta-dataanduser-dataas Required files andvendor-dataandnetwork-configas Optional files.user-dataormeta-datais missing, the NoCloud datasource treats the seed as invalid and skips it (which often manifests asdevice ... with label=cidata not a valid seed).Fixes #5858
Testing done
Ran pytest unit tests locally:
All tests passed.