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)
While upgrading product in 1.9 there is a problem when sending the options for the
to_versionthrough the request post params instead of sending it as json in the body.