This is a known issue affecting vRealize Operations Manager 6.7 and later.
Currently there is no resolution.
This issue will be addressed in a future release or vRealize Operations Manager.
Workaround:
To work around the issue, use the REST API to edit Maintenance Schedules.
Use one of the following options for cURL or Postman.
cURL
- Log into the vRealize Operations Manager Primary node as root via SSH or console.
- Run the following command to export a list of all existing Maintenance Schedules:
curl -k -H "Accept: application/json" -H "Content-type: application/json" -H "X-vRealizeOps-API-use-unsupported: true" -u 'admin:password' -X GET https://ip/suite-api/api/maintenanceschedules > /tmp/schedules.txt
Note: Replace password with the local admin user password and ip with the IP address of the vRealize Operations Manager Primary node.
Example: curl -k -H "Accept: application/json" -H "Content-type: application/json" -H "X-vRealizeOps-API-use-unsupported: true" -u 'admin:Secret123!' -X GET https://192.168.3.10/suite-api/api/maintenanceschedules > /tmp/schedules.txt
- Run the following command to convert the exported list to JSON format:
python -mjson.tool /tmp/schedules.txt > /tmp/schedules-f.txt
- Open /tmp/schedules-f.txt in a text editor.
- Find the Maintenance Schedule you want to edit, make the desired edits, and remove all other lines around the Maintenance Schedule.
Note: Only one Maintenance Schedule can be updated at a time, so only one Maintenance Schedule should be left in the file. Once complete, the file should similar to the below:
{
"id": "<UUID_1>",
"key": "My Maintenance Schedule",
"schedule": {
"duration": 1,
"expireRuns": 2,
"hour": 0,
"minuteOfTheHour": 0,
"recurrence": 1,
"scheduleType": "DAILY",
"startDate": "10/28/2018"
"timeZone": "America/New_York"
}
}
- Save and close the file.
- Run the following command to update the Maintenance Schedule with the edits made to /tmp/schedules-f.txt:
curl -k -H "Content-type: application/json" -H "Accept: application/json" -H "X-vRealizeOps-API-use-unsupported: true" -u 'admin:password' -X PUT https://ip/suite-api/api/maintenanceschedules -d @/tmp/schedules-f.txt
Note: Replace password with the local admin user password and ip with the IP address of the vRealize Operations Manager Primary node.
Example: curl -k -H "Content-type: application/json" -H "Accept: application/json" -H "X-vRealizeOps-API-use-unsupported: true" -u 'admin:Secret123!' -X PUT https://192.168.3.10/suite-api/api/maintenanceschedules -d @/tmp/schedules-f.txt
Postman
Postman, which can be downloaded from
https://www.getpostman.com/apps):
Note: This is a link to an external, 3rd party solution. If you find this link to not work any longer, please provide feedback at the bottom of the article to request it to be updated.
- Open Postman and navigate to File > Settings > General.
- Disable SSL certificate verification, then close the Settings window.
- Under the Authorization tab, set the Type dropdown to Basic Auth and supply the credentials for the local vRealize Operations Manager admin user.
- From the Headers tab, add an Accept key with application/json as the value.
- At the top, set the request type to GET and enter https://ip/suite-api/api/maintenanceschedules for the request URL.
Note: Replace ip with the IP address of the vRealize Operations Manager Primary node.
Example: https://192.168.3.10/suite-api/api/maintenanceschedules
- Click Send.
- The output will display all saved Maintenance Schedules.
- Find the Maintenance Schedule you want to edit and copy it's block
Note: The full block will look similar to this:
{
"id": "<UUID_1>",
"key": "My Maintenance Schedule",
"schedule": {
"duration": 1,
"expireRuns": 2,
"hour": 0,
"minuteOfTheHour": 0,
"recurrence": 1,
"scheduleType": "DAILY",
"startDate": "10/28/2018"
"timeZone": "America/New_York"
}
}
- Under the Body tab, select raw and change the type to JSON (application/json).
- Paste the Maintenance Schedule block into the body window and make any desired edits.
Note: Only one Maintenance Schedule can be updated at a time, so only one Maintenance Schedule should be line the raw body. Once complete, the raw body should look similar to this:
{
"id": "<UUID_1>",
"key": "My Maintenance Schedule",
"schedule": {
"duration": 1,
"expireRuns": 2,
"hour": 4,
"minuteOfTheHour": 30,
"recurrence": 1,
"scheduleType": "DAILY",
"startDate": "10/28/2018"
"timeZone": "America/New_York"
}
}
- Set the request type to PUT and click Send.