<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating new server profile from template error in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/creating-new-server-profile-from-template-error/m-p/7059554#M4500</link>
    <description>&lt;P&gt;What is the generation of server you attempted to deploy the profile to?&amp;nbsp; If it is a Gen8 or Gen9 server, I would suggest you review &lt;A href="https://support.hpe.com/hpsc/doc/public/display?docId=c04996097" target="_blank" rel="noopener"&gt;this Customer Advisory&lt;/A&gt;.&amp;nbsp; If it is a Gen10 server, I would review &lt;A href="https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-a00079854en_us" target="_blank" rel="noopener"&gt;this Customer Advisory&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you have a typo on the re-apply profile operation attempt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATA='[{ "op": "replace", "path": "/firmware/reapplyState", "value": "ApplyPending" }]"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your end quote is a double quote, where you started with a single quote right after the = sign.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATA='[{ "op": "replace", "path": "/firmware/reapplyState", "value": "ApplyPending" }]'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 17:03:45 GMT</pubDate>
    <dc:creator>ChrisLynch</dc:creator>
    <dc:date>2019-08-22T17:03:45Z</dc:date>
    <item>
      <title>Creating new server profile from template error</title>
      <link>https://community.hpe.com/t5/hpe-oneview/creating-new-server-profile-from-template-error/m-p/7059516#M4499</link>
      <description>&lt;P&gt;I have a server profile object in a BASH variable that I created from a template (GET /rest/server-profiles/{uuid}/new-profile) and modified for the given server.&amp;nbsp; When I attempt to apply the profile to the server:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --insecure \
     --include \
     --header "content-type: application/json" \
     --header "X-API-Version: ${currentVersion}" \
     --header "auth: ${sessionID}" \
     --data "${NEW_PROF}" \
     --request GET ${OneView}/rest/server-profiles&lt;/LI-CODE&gt;&lt;P&gt;I am getting back:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"taskState": "Error",
"taskStatus": "Unable to create server profile: this-host",
"taskErrors": [
  {
    "recommendedActions": "Try the operation again.  If the problem persists, contact your authorized support representative and provide them with a support dump." ],
  "message": "Unable to apply firmware baseline settings on the server due to an unexpected problem encoutered while writing the settings on the server.",
"errorCode": "RIS_OSSETTINGS_APPLY_INTERNAL_ERROR" } ],&lt;/LI-CODE&gt;&lt;P&gt;So, I define a DATA variable:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATA='[{ "op": "replace", "path": "/firmware/reapplyState", "value": "ApplyPending" }]"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and get the server profile id from the task uri:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SRV_PROF_ID=$(curl --insecure \
     --header "X-API-Version: ${currentVersion}" \
     --header "auth: ${sessionID}" \
     --request GET ${OneView}/rest/tasks/${TASK_ID} | jq -r '.associatedResource | .resourceUri')&lt;/LI-CODE&gt;&lt;P&gt;and then attempt to reapply the firmware:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --insecure \
     --include \
     --header "content-type: application/json" \
     --header "X-API-Version: ${currentVersion}" \
     --header "auth: ${sessionID}" \
     --data "${DATA}" \
     --request PATCH ${OneView}${SRV_PROF_ID} | jq -r '.'&lt;/LI-CODE&gt;&lt;P&gt;I'm getting back:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;parse error: Invalid numeric literal at line 1, column 9&lt;/LI-CODE&gt;&lt;P&gt;I don't have any numerics in DATA.&amp;nbsp; Not sure what it is referring to?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 11:59:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/creating-new-server-profile-from-template-error/m-p/7059516#M4499</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2019-08-22T11:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new server profile from template error</title>
      <link>https://community.hpe.com/t5/hpe-oneview/creating-new-server-profile-from-template-error/m-p/7059554#M4500</link>
      <description>&lt;P&gt;What is the generation of server you attempted to deploy the profile to?&amp;nbsp; If it is a Gen8 or Gen9 server, I would suggest you review &lt;A href="https://support.hpe.com/hpsc/doc/public/display?docId=c04996097" target="_blank" rel="noopener"&gt;this Customer Advisory&lt;/A&gt;.&amp;nbsp; If it is a Gen10 server, I would review &lt;A href="https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-a00079854en_us" target="_blank" rel="noopener"&gt;this Customer Advisory&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you have a typo on the re-apply profile operation attempt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATA='[{ "op": "replace", "path": "/firmware/reapplyState", "value": "ApplyPending" }]"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your end quote is a double quote, where you started with a single quote right after the = sign.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATA='[{ "op": "replace", "path": "/firmware/reapplyState", "value": "ApplyPending" }]'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 17:03:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/creating-new-server-profile-from-template-error/m-p/7059554#M4500</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2019-08-22T17:03:45Z</dc:date>
    </item>
  </channel>
</rss>

