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

Add Red Hat OpenShift 2021-09-01-preview #15616

Conversation

mjudeikis
Copy link

@mjudeikis mjudeikis commented Aug 11, 2021

MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

Changelog

Add a changelog entry for this PR by answering the following questions:

  1. What's the purpose of the update?
    • new service onboarding
    • new API version
    • update existing version for new feature
    • update existing version to fix swagger quality issue in s360
    • Other, please clarify
  2. When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
  3. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
  4. If updating an existing version, please select the specific langauge SDKs and CLIs that must be refreshed after the swagger is published.
    • SDK of .NET (need service team to ensure code readiness)
    • SDK of Python
    • SDK of Java
    • SDK of Js
    • SDK of Go
    • PowerShell
    • CLI
    • Terraform
    • No refresh required for updates in this PR

Contribution checklist:https://aka.ms/openapiportal

If any further question about AME onboarding or validation tools, please view the FAQ.

ARM API Review Checklist

Applicability: ⚠️

If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

  • Change to data plane APIs
  • Adding new properties
  • All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

  • Check this box if any of the following apply to the PR so that label “WaitForARMFeedback” will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

    • Adding a new service
    • Adding new API(s)
    • Adding a new API version
      -[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit (including refactoring) and then push new changes, including version updates, in separate commits.
  • Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

  • If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist

If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in a stable version
  • Removing properties in a stable version
  • Removing API version(s) in a stable version
  • Updating API in a stable or public preview version with Breaking Change Validation errors
  • Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.

Please follow the link to find more details on PR review process.

@openapi-workflow-bot
Copy link

Hi, @mjudeikis Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. vsswagger@microsoft.com

    @openapi-workflow-bot
    Copy link

    [Call for Action] To better understand Azure service dev/test scenario, and support Azure service developer better on Swagger and REST API related tests in early phase, please help to fill in with this survey https://aka.ms/SurveyForEarlyPhase. It will take 5 to 10 minutes. If you already complete survey, please neglect this comment. Thanks.

    @openapi-workflow-bot openapi-workflow-bot bot added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Aug 11, 2021
    @openapi-workflow-bot
    Copy link

    Hi, @mjudeikis your PR are labelled with WaitForARMFeedback. A notification email will be sent out shortly afterwards to notify ARM review board(armapireview@microsoft.com).

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 11, 2021

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️LintDiff: 0 Warnings warning [Detail]
    The following errors/warnings exist before current PR submission:
    Rule Message
    R4011 - DeleteOperationResponses The delete operation is defined without a 200 or 204 error response implementation,please add it.'
    Location: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L271
    R4013 - IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L896
    R4013 - IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L904
    R4018 - OperationsApiResponseSchema The response schema of operations API '/providers/Microsoft.RedHatOpenShift/operations' does not match the ARM specification. Please standardize the schema.
    Location: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L19
    ⚠️ R4030 - UniqueXmsExample Do not have duplicate name of x-ms-example, make sure every x-ms-example name unique. Duplicate x-ms-example: Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name.
    Location: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L347
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️❌ModelValidation: 2 Errors, 0 Warnings failed [Detail]
    Rule Message
    SECRET_PROPERTY Secret property "kubeconfig", cannot be sent in the response.
    Url: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L652
    JsonUrl: preview/2021-09-01-preview/examples/OpenShiftClusters_ListAdminCredentials.json#L11
    SECRET_PROPERTY Secret property "kubeadminPassword", cannot be sent in the response.
    Url: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L667
    JsonUrl: preview/2021-09-01-preview/examples/OpenShiftClusters_ListCredentials.json#L12
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️⚠️Cross-Version Breaking Changes: 52 Warnings warning [Detail]
    The following breaking changes are detected by comparison with the latest stable version:

    Only 30 items are listed, please refer to log for more details.

    Rule Message
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L35:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L35:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L784:11
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L675:11
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L767:9
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L659:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L41:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L41:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L472:9
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L423:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L497:11
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L447:11
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L75:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L75:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L681:11
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L581:11
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L636:9
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L555:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L699:9
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L598:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L703:9
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L602:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L707:9
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L606:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L711:9
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L610:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L715:9
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L614:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L722:11
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L621:11
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L726:9
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L625:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L733:11
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L632:11
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L81:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L81:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L118:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L118:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L124:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L124:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L168:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L168:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L174:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L174:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L214:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L214:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L222:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L222:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L228:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L228:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L234:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L234:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L280:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L280:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L321:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L321:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L747:9
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L645:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json#L329:13
    Old: Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json#L329:13
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️️✔️[Staging] SDK Track2 Validation succeeded [Detail] [Expand]
    Validation passes for SDKTrack2Validation

    The following errors/warnings are introduced by current PR:

    |:speech_balloon: AutorestCore/Exception|"readme":"redhatopenshift/resource-manager/readme.md",
    "tag":"package-2021-09-01-preview",
    "details":"> Installing AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0)"|
    |:speech_balloon: AutorestCore/Exception|"readme":"redhatopenshift/resource-manager/readme.md",
    "tag":"package-2021-09-01-preview",
    "details":"> Installed AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0->1.8.0)"|
    |:speech_balloon: AutorestCore/Exception|"readme":"redhatopenshift/resource-manager/readme.md",
    "tag":"package-2021-09-01-preview",
    "details":"> Loading AutoRest extension '@autorest/modelerfour' (4.15.456->4.15.456)"|

    ️️✔️[Staging] PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️[Staging] SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️[Staging] Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 11, 2021

    Swagger Generation Artifacts

    ️🔄[Staging] ApiDocPreview inProgress [Detail]
    ️️✔️[Staging] SDK Breaking Change Tracking succeeded [Detail] [Expand]

    Breaking Changes Tracking

    Posted by Swagger Pipeline | How to fix these errors?

    @mjudeikis
    Copy link
    Author

    Same PR as in https://github.com/Azure/azure-rest-api-specs-pr/pull/4459 because I can't get anybody to look into it.

    @openapi-workflow-bot
    Copy link

    Hi @mjudeikis, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff.

    TaskHow to fixPrioritySupport (Microsoft alias)
    AvocadoFix-AvocadoHighruowan
    Semantic validationFix-SemanticValidation-ErrorHighraychen, jianyxi
    Model validationFix-ModelValidation-ErrorHighraychen,jianyxi
    LintDiffFix-LintDiffhighjianyxi, ruoxuan
    If you need further help, please feedback via swagger feedback."

    @mjudeikis
    Copy link
    Author

    Hey,

    On the failures - I would like some guidance whats needs to be changed in the swagger itself to be compliant. Especially with sytemData failure as it looks like we have everything in there what is required. Would be nice if somebody would help to identify what is wrong, and not just saying its wrong.

    @weidongxu-microsoft
    Copy link
    Member

    I think the item is quite clear, you do not have systemData in OpenShiftClusterUpdate, why would it appear in your example json (OpenShiftClusters_Update.json)?

    @mjudeikis
    Copy link
    Author

    @weidongxu-microsoft added it again, and now getting error:
    READONLY_PROPERTY_NOT_ALLOWED_IN_REQUEST
    Where its is same as here:

    "systemData": {
    "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData",
    "description": "The system metadata relating to this resource.",
    "readOnly": true
    }

    So what is different?

    @weidongxu-microsoft
    Copy link
    Member

    weidongxu-microsoft commented Aug 11, 2021

    The systemData property is readOnly, which means client will not send it to service (there will be no setter method in client). And because client cannot set it, it should not be in the request. That is what the validation checks.

    My idea is that your example JSON is wrong. Please double check whether service really need to read the systemData from client.
    My understanding is that systemData is service info on when/who create/update the resource. And it does not get update from user request (that user cannot set it to say it is create 100 years ago).

    @mjudeikis
    Copy link
    Author

    mjudeikis commented Aug 11, 2021

    The systemData property is readOnly, which means client will not send it to service (there will be no setter method in client). And because client cannot set it, it should not be in the request. That is what the validation checks.

    Yes, this is right. Based on ARM requirement system data we inject from ARM headers.
    As per ARM spec we read it from header, and return in the response (hence systemData in the response objects). But we dont read it in payload (hence "readOnly:true")

    My idea is that your example JSON is wrong. Please double check whether service really need to read the systemData from client.
    My understanding is that systemData is service info on when/who create/update the resource. And it does not get update from user request (that user cannot set it to say it is create 100 years ago).

    It does not. But if we remove it - we get one error that we are missing one. If we add we get this error. So both ways failure. And example I pasted from Microsoft.Media does same as we do here.

    I would gladly change either way and adjust our RP behavior, if I would know what is wrong here. (Don't get me wrong, If I would know what to change I would. We look to other APIs and read rest spec requirements and I think we did how it should be, but its still failing on both cases)

    @openapi-pipeline-app
    Copy link

    Swagger Validation Report

    ️⌛BreakingChange pending [Detail]
    ️⌛LintDiff pending [Detail]
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️🔄ModelValidation inProgress [Detail]
    ️⌛SemanticValidation pending [Detail]
    ️⌛Cross-Version Breaking Changes pending [Detail]
    ️⌛CredScan pending [Detail]
    ️⌛[Staging] SDK Track2 Validation pending [Detail]
    ️⌛[Staging] PrettierCheck pending [Detail]
    ️⌛[Staging] SpellCheck pending [Detail]
    ️️✔️[Staging] Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 11, 2021

    Swagger Generation Artifacts

    ️️✔️[Staging] ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️️✔️[Staging] SDK Breaking Change Tracking succeeded [Detail] [Expand]

    Breaking Changes Tracking

    ️✔️azure-sdk-for-go - redhatopenshift/mgmt/2020-04-30/redhatopenshift - v57.1.0
    ️✔️azure-sdk-for-go - preview/mgmt/2021-09-01-preview/redhatopenshift - v57.1.0
    ️✔️azure-sdk-for-python-track2 - track2_azure-mgmt-redhatopenshift - 1.0.0
    ️⚠️ azure-sdk-for-python warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from b9e1a57. SDK Automation 14.0.0
      command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
      cmderr	[automation_init.sh] ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
      cmderr	[automation_init.sh] azure-mgmt-core 1.3.0 requires azure-core<2.0.0,>=1.15.0, but you have azure-core 1.6.0 which is incompatible.
      cmderr	[automation_init.sh] ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
      cmderr	[automation_init.sh] azure-mgmt-core 1.3.0 requires azure-core<2.0.0,>=1.15.0, but you have azure-core 1.6.0 which is incompatible.
      cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
    • ️✔️azure-mgmt-redhatopenshift [View full logs]  [Release SDK Changes]
      info	[Changelog]
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from b9e1a57. SDK Automation 14.0.0
      command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
      cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
    • ️✔️track2_azure-mgmt-redhatopenshift [View full logs]  [Release SDK Changes]
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Model MasterProfile has a new parameter disk_encryption_set_id
      info	[Changelog]   - Model MasterProfile has a new parameter encryption_at_host
      info	[Changelog]   - Model NetworkProfile has a new parameter software_defined_network
      info	[Changelog]   - Model OpenShiftClusterUpdate has a new parameter system_data
      info	[Changelog]   - Model OpenShiftCluster has a new parameter system_data
      info	[Changelog]   - Model WorkerProfile has a new parameter disk_encryption_set_id
      info	[Changelog]   - Model WorkerProfile has a new parameter encryption_at_host
      info	[Changelog]   - Added operation OpenShiftClustersOperations.list_admin_credentials
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from b9e1a57. SDK Automation 14.0.0
      command	sh ./initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️redhatopenshift/mgmt/2020-04-30/redhatopenshift [View full logs]  [Release SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️preview/mgmt/2021-09-01-preview/redhatopenshift [View full logs
      info	[Changelog] This is a new package
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from b9e1a57. Schema Automation 14.0.0
      command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
      cmderr	[initScript.sh] WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile The package-lock.json file was created with an old version of npm,
      cmderr	[initScript.sh] npm WARN old lockfile so supplemental metadata must be fetched from the registry.
      cmderr	[initScript.sh] npm WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile This is a one-time fix-up, please be patient...
      cmderr	[initScript.sh] npm WARN old lockfile
      warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
      command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
      cmderr	[generateScript.sh] (node:2681) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
      cmderr	[generateScript.sh]     at JSON.parse (<anonymous>)
      cmderr	[generateScript.sh]     at Object.readJsonFile (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/utils.ts:174:17)
      cmderr	[generateScript.sh]     at getCurrentTemplateRefs (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:290:21)
      cmderr	[generateScript.sh]     at /home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:297:29
      cmderr	[generateScript.sh] (Use `node --trace-warnings ...` to show where the warning was created)
      cmderr	[generateScript.sh] (node:2681) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
      cmderr	[generateScript.sh] (node:2681) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      cmderr	[generateScript.sh] (node:2681) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
      cmderr	[generateScript.sh]     at JSON.parse (<anonymous>)
      cmderr	[generateScript.sh]     at Object.readJsonFile (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/utils.ts:174:17)
      cmderr	[generateScript.sh]     at getCurrentTemplateRefs (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:290:21)
      cmderr	[generateScript.sh]     at /home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:297:29
      cmderr	[generateScript.sh] (node:2681) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
      cmderr	[generateScript.sh] (node:2681) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
      cmderr	[generateScript.sh]     at JSON.parse (<anonymous>)
      cmderr	[generateScript.sh]     at Object.readJsonFile (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/utils.ts:174:17)
      cmderr	[generateScript.sh]     at getCurrentTemplateRefs (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:290:21)
      cmderr	[generateScript.sh]     at /home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:297:29
      cmderr	[generateScript.sh] (node:2681) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
      cmderr	[generateScript.sh] (node:2681) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
      cmderr	[generateScript.sh]     at JSON.parse (<anonymous>)
      cmderr	[generateScript.sh]     at Object.readJsonFile (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/utils.ts:174:17)
      cmderr	[generateScript.sh]     at getCurrentTemplateRefs (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:290:21)
      cmderr	[generateScript.sh]     at /home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:297:29
      cmderr	[generateScript.sh] (node:2681) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
    • ️✔️redhatopenshift [View full logs]  [Release Schema Changes]
    Posted by Swagger Pipeline | How to fix these errors?

    @weidongxu-microsoft
    Copy link
    Member

    weidongxu-microsoft commented Aug 11, 2021

    @mjudeikis
    Copy link
    Author

    I don't know. I think mediaservices does not have systemData in their example JSON request. https://github.com/Azure/azure-rest-api-specs/blob/master/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-06-01/examples/accounts-update.json

    And in this example, systemData is not in request, but in response https://github.com/Azure/azure-rest-api-specs/blob/master/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-06-01/examples/jobs-update.json

    Got ya! I think I got this. Let me try to regenerate and see if this works. Thanks for helping here.. Really appreciate.

    @mjudeikis
    Copy link
    Author

    @weidongxu-microsoft now looks like unrelated ci failures?

    @weidongxu-microsoft
    Copy link
    Member

    @msyyc Would you or some other from Python SDK to have a look on the python build failure? The message seems not informative.

    ],
    "type": "string",
    "x-ms-enum": {
    "name": "SDNProvider",
    Copy link
    Member

    Choose a reason for hiding this comment

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

    SDNProvider

    Suggest expanding the SDN acroynm.

    "NetworkProfile": {
    "description": "NetworkProfile represents a network profile.",
    "properties": {
    "sdnProvider": {
    Copy link
    Member

    Choose a reason for hiding this comment

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

    sdnProvider

    I'm guessing SDN == Software Defined Network. ARM generally recommends against acronyms unless they are really common (e.g. IP, DNS). This is jargony enough I'd recommend spelling it out (softwareDefinedNetworkProvider). Not blocking ARM approval, just a suggestion.

    @mjudeikis
    Copy link
    Author

    @weidongxu-microsoft good to merge

    @mjudeikis mjudeikis force-pushed the dev-redhatopenshift-Microsoft.RedHatOpenShift-2021-01-31-preview branch from 6572b89 to 2538157 Compare September 7, 2021 11:55
    @weidongxu-microsoft weidongxu-microsoft merged commit b9e1a57 into Azure:main Sep 8, 2021
    iscai-msft added a commit to iscai-msft/azure-rest-api-specs that referenced this pull request Sep 10, 2021
    …into add_endpoint
    
    * 'main' of https://github.com/Azure/azure-rest-api-specs: (5079 commits)
      Add Microsoft.ExtendedLocation [CustomLocation] 2021-08-15 stable API Version (Azure#15967)
      Updated SKU property to be read only (Azure#15965)
      Add Microsoft.Communication.UserDisconnected Event (Azure#15870)
      Add collection APIs (Azure#15221)
      [Cognitive Services - Personalizer] v1.1-preview.2 (Azure#15699)
      Adding default error response & updating basePath (Azure#15784)
      Update readme and readme.python (Azure#15973)
      add synapse batch tag package-composite-v1 (Azure#15974)
      Microsoft.BareMetalInfrastructure: add stable API version 2021-08-09 (Azure#15680)
      change readme.go.md template to track 2 (Azure#15972)
      [CosmosDB] Adding apiVersion 2021-07-01-preview (Azure#14817)
      Merge Dev-containerservice-microsoft.containerservice-2021-08-01 branch to main (Azure#15954)
      DiskRP swagger for 2021-04-01 (Azure#15665)
      Use IncidentSeverity in IncidentInfo (Azure#15762)
      Add stable API version "2021-09-01" (Azure#15897)
      add-purview-typescript-file (Azure#15948)
      Swagger Completeness for Microsoft.Authorization (Azure#15253)
      [Hub Generated] Review request for Microsoft.Aadiam to add version preview/2020-03-01-preview and stable/2020-03-01 (Azure#15861)
      Add swagger for missing CheckPolicyRestrictions API version (Azure#15888)
      Add Red Hat OpenShift 2021-09-01-preview (Azure#15616)
      ...
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Approved-ModelValidation Approved-OkToMerge <valid label in PR review process>add this label when assignee approve to merge the updates ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review CI-FixRequiredOnFailure
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    5 participants