Symptoms

During OA upgrade action CCU-17112-synch-os-templates fails to complete. In vps.aps.log one might see the following request:

ERROR ApsResourceHelperBaseImpl [pa-rest task-76] - [APS] Failed to get resource 'implementing(http://www.parallels.com/infrastructure/virtual-environment/os-template/1.0),eq(name,windows)-pcs6)': [APS] {
        "error": "APS::Util::Exception",
        "message": "RQL parsing failed, stopped at: \"-pcs6)\""
}
...
INFO  ImplicitAPSIdInjectorWebFilter [pa-rest task-76] - HTTP Response POST /vps/api/cloud/.../sync_os_templates status code 500

Cause

Symbols that are part of RQL syntax are parsed incorrectly.

During sync_os_templates action, OA template properties are synchronized between IM and APS. Templates are requested from IM and their properties are populated into Templates' APS resources. But before that, each template is requested from APS bus via the RQL like below:

GET https://127.0.0.1:6308/aps/2/resources?implementing(http://www.parallels.com/infrastructure/virtual-environment/os-template/1.0),eq(name,test-template(test))

But if template contains any symbols, used by RQL itself, for example '(', ')' - post-upgrade action will fail.

Resolution

This issue has been reported to Development team as CCU-17788 and will be fixed in the further OA releases.

As the workaround you may unregisted faulty template from IM via Cloud Infrastructure > OS Templates menu.

Internal content