<?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 Network Server fails to get created when adding OpenStack cloud in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/network-server-fails-to-get-created-when-adding-openstack-cloud/m-p/7249818#M2992</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Just sharing a customer use case.&lt;/P&gt;
&lt;P&gt;They have added multiple OpenStack clouds in the Morpheus HA appliance and all of them failed to create a &lt;CODE style="background : #f0f1f2;"&gt;NetworkServer&lt;/CODE&gt; (referred to as &lt;EM&gt;Network Mode&lt;/EM&gt; on the cloud settings). After enabling debug on class &lt;CODE style="background : #f0f1f2;"&gt;AbstractOpenStackComputeService&lt;/CODE&gt;, we could see the below errors with failing to save the &lt;CODE style="background : #f0f1f2;"&gt;NetworkServer&lt;/CODE&gt; when the cloud was initialized.&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;2024-03-27_02:01:04.65130 ''[2024-03-27 02:01:04,736] [appJobHigh-20] [1;31mERROR[0;39m [36mo.h.e.j.s.SqlExceptionHelper[0;39m - Field 'uuid' doesn't have a default value 
2024-03-27_02:01:04.73615 ''[2024-03-27 02:01:04,736] [appJobHigh-20] [1;31mERROR[0;39m [36mc.m.n.NeutronNetworkService[0;39m - error initializing zone services: org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not execute statement; SQL [n/a]; Field 'uuid' doesn't have a default value; nested exception is java.sql.SQLException: Field 'uuid' doesn't have a default value 
2024-03-27_02:01:04.73671 'org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not execute statement; SQL [n/a]; Field 'uuid' doesn't have a default value; nested exception is java.sql.SQLException: Field 'uuid' doesn't have a default value
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The issue was that an upgrade was performed from 6.2.x to 6.3.x and then rolled back to 6.2.7 without rolling back the DB, which led to inconsistent DB schemas that caused this issue.&lt;/P&gt;
&lt;P&gt;The reason was that &lt;CODE style="background : #f0f1f2;"&gt;uuid&lt;/CODE&gt; field was added for the &lt;CODE style="background : #f0f1f2;"&gt;network_server&lt;/CODE&gt; table in the database in 6.3.x (&lt;A href="https://d.pr/i/Qeiv0q" class="inline-onebox"&gt;Screen Shot 2024-03-27 at 12.46.55 pm.png - Droplr&lt;/A&gt;) which doesn’t exist in 6.2.x (&lt;A href="https://d.pr/i/vGlZZf" class="inline-onebox"&gt;Screen Shot on 2024-03-27 at 12-44-29 pm.png - Droplr&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;All the clouds that were added after the rollback, failed to create the &lt;CODE style="background : #f0f1f2;"&gt;NetworkServer&lt;/CODE&gt; as it was getting a &lt;CODE style="background : #f0f1f2;"&gt;null&lt;/CODE&gt; value for the &lt;CODE style="background : #f0f1f2;"&gt;uuid&lt;/CODE&gt; which cannot be null and that could be seen in the debug logs.&lt;/P&gt;
&lt;P&gt;After upgrading to 7.0.0, and then doing an edit and saving changes on all the problematic clouds, it created and associated the network modes as expected.&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Deepti&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 20:53:25 GMT</pubDate>
    <dc:creator>dgaharwar</dc:creator>
    <dc:date>2024-04-05T20:53:25Z</dc:date>
    <item>
      <title>Network Server fails to get created when adding OpenStack cloud</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/network-server-fails-to-get-created-when-adding-openstack-cloud/m-p/7249818#M2992</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Just sharing a customer use case.&lt;/P&gt;
&lt;P&gt;They have added multiple OpenStack clouds in the Morpheus HA appliance and all of them failed to create a &lt;CODE style="background : #f0f1f2;"&gt;NetworkServer&lt;/CODE&gt; (referred to as &lt;EM&gt;Network Mode&lt;/EM&gt; on the cloud settings). After enabling debug on class &lt;CODE style="background : #f0f1f2;"&gt;AbstractOpenStackComputeService&lt;/CODE&gt;, we could see the below errors with failing to save the &lt;CODE style="background : #f0f1f2;"&gt;NetworkServer&lt;/CODE&gt; when the cloud was initialized.&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;2024-03-27_02:01:04.65130 ''[2024-03-27 02:01:04,736] [appJobHigh-20] [1;31mERROR[0;39m [36mo.h.e.j.s.SqlExceptionHelper[0;39m - Field 'uuid' doesn't have a default value 
2024-03-27_02:01:04.73615 ''[2024-03-27 02:01:04,736] [appJobHigh-20] [1;31mERROR[0;39m [36mc.m.n.NeutronNetworkService[0;39m - error initializing zone services: org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not execute statement; SQL [n/a]; Field 'uuid' doesn't have a default value; nested exception is java.sql.SQLException: Field 'uuid' doesn't have a default value 
2024-03-27_02:01:04.73671 'org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not execute statement; SQL [n/a]; Field 'uuid' doesn't have a default value; nested exception is java.sql.SQLException: Field 'uuid' doesn't have a default value
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The issue was that an upgrade was performed from 6.2.x to 6.3.x and then rolled back to 6.2.7 without rolling back the DB, which led to inconsistent DB schemas that caused this issue.&lt;/P&gt;
&lt;P&gt;The reason was that &lt;CODE style="background : #f0f1f2;"&gt;uuid&lt;/CODE&gt; field was added for the &lt;CODE style="background : #f0f1f2;"&gt;network_server&lt;/CODE&gt; table in the database in 6.3.x (&lt;A href="https://d.pr/i/Qeiv0q" class="inline-onebox"&gt;Screen Shot 2024-03-27 at 12.46.55 pm.png - Droplr&lt;/A&gt;) which doesn’t exist in 6.2.x (&lt;A href="https://d.pr/i/vGlZZf" class="inline-onebox"&gt;Screen Shot on 2024-03-27 at 12-44-29 pm.png - Droplr&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;All the clouds that were added after the rollback, failed to create the &lt;CODE style="background : #f0f1f2;"&gt;NetworkServer&lt;/CODE&gt; as it was getting a &lt;CODE style="background : #f0f1f2;"&gt;null&lt;/CODE&gt; value for the &lt;CODE style="background : #f0f1f2;"&gt;uuid&lt;/CODE&gt; which cannot be null and that could be seen in the debug logs.&lt;/P&gt;
&lt;P&gt;After upgrading to 7.0.0, and then doing an edit and saving changes on all the problematic clouds, it created and associated the network modes as expected.&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Deepti&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 20:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/network-server-fails-to-get-created-when-adding-openstack-cloud/m-p/7249818#M2992</guid>
      <dc:creator>dgaharwar</dc:creator>
      <dc:date>2024-04-05T20:53:25Z</dc:date>
    </item>
  </channel>
</rss>

