Skip to content

Upgrading product does not work with opsman_cli 0.5.0 on opsman 1.9 #23

@bonzofenix

Description

@bonzofenix

While upgrading product in 1.9 there is a problem when sending the options for the to_version
through the request post params instead of sending it as json in the body.

2017-01-25T20:28:11.087175 #14]  INFO -- : performing put to https://OPSMAN_IP/api/v0/staged/products/apm-asd123123123 with opts: {:to_version=>"1.2.5"}  res.code: 422
I, [2017-01-25T20:28:11.087274 #14]  INFO -- : put response body {"errors":["Upgrading to a previous version (downgrading) is restricted.","Unable to find available product 'Metrics' with version '' for upgrade."]}
/usr/local/bundle/gems/ops_manager_cli-0.5.0/lib/ops_manager/api/opsman.rb:100:in `upgrade_product_installation': {"errors":["Upgrading to a previous version (downgrading) is restricted.","Unable to find available product 'Metrics' with version '' for upgrade."]} (OpsManager::UpgradeError)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions