- Community Home
- >
- Storage
- >
- HPE SimpliVity
- >
- Re: OVC Shutdown through REST API
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2019 12:55 PM
07-01-2019 12:55 PM
OVC Shutdown through REST API
To get it out of the way my scripting skills are not the best.
With that taken care of I was wondering if anyone has worked with the Simplivity REST API to shutdown the OVC's in a cluster. We are trying to script shutting down all resources in a certain cluster for emergency events such as a building power outage. I'm able to successfully shutdown the 1st OVC but I am unable to shutdown the 2nd OVC in our cluster because of the need to do a force shutdown for HA sync. Below is a snippet of the code where I'm telling it to not wait for HA.
$body1 = @{'ha_wait' = 'false'}
$body1 = $body1 | ConvertTo-Json
$url = $BASE_URL+'hosts/' + $uid + '/shutdown_virtual_controller'
Invoke-RestMethod -ContentType 'application/vnd.simplivity.v1+json' -Uri $url -Header $header -Body $body1 -Method Post
The result I get with this is shutdown_status @{status=FAILURE}
If I set 'ha_wait' = 'true' then the 2nd OVC will start to shutdown but it never gets past the Wait for HA storage Compliance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2019 12:06 AM - edited 07-02-2019 12:19 AM
07-02-2019 12:06 AM - edited 07-02-2019 12:19 AM
Re: OVC Shutdown through REST API
The normal procedure without using the RestAPI, is to use the force flag after the first OVC has powered off, so the same should apply when scripting.
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-sv11955en_us&docLocale=en_US
What version of HPe SimpliVity software are you running?
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2019 12:56 AM
07-02-2019 12:56 AM
Re: OVC Shutdown through REST API
Can you also try using the interactive Rest API to narrow the focus to the probable cause?
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2019 05:26 AM
07-02-2019 05:26 AM
Re: OVC Shutdown through REST API
We are on version 3.7.8.
Yeah if I do a force shutdown through the GUI or command line using svt-shutdown-force it shuts down fine.
I also did try through the interactive Rest API and set ha_wait: false but I get the same error of shutdown_status = FAILURE.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP