I am trying in Casablanca Release to instantiate a "Generic NeutronNet" within 
a service instance.
After the service is created, I sucessfully stored the Preload data in SDNC,
Then I start the Network creation via 
http://so-bpmn-infra.onap:8081/mso/async/services/CreateNetworkInstance
>From the SO BPMN Log it shows a sucessful creation of the AAI entry through 
>the SDNC Adapter for the Network.
Finally the SO Workflow wants to instantiate the Network through its Openstack 
adapter, where it fails.
The log of the BPMN shows the CreateNetworkRequest, which has an 
"allocationPools" section, which seems to be the problem in the data send by 
the Openstack Adapter,
as it sends an empty "allocation_pools" vaue to the Openstack Heat interface.
Can someone give me a hint, what to do or should I raise a ticket to that ?

I am also wondering, how the vCPE usecase could have been tested without these 
problems.

*SO BPMN Log:*
2019-02-14T17:56:01.580Z|7015d62d-3131-43f2-9edb-c71d47f7d0e9| 
o.o.s.b.i.scripts.DoCreateNetworkInstance - CRENWKI_createNetworkRequest - 
<createNetworkRequest>
   <cloudSiteId>RegionOne</cloudSiteId>
   <tenantId>84aa6ffd02a64c8ab5bf2d7b6e1eb648</tenantId>
   <networkId>6d3abab7-481e-46aa-8f7e-adb08d0ae83d</networkId>
   <networkName>PureNw-net-instance-vfw_internal_QH9UGL</networkName>
   <networkType>Generic NeutronNet</networkType>
   
<modelCustomizationUuid>581671fc-5ec0-4954-a4c6-0d307730685b</modelCustomizationUuid>
   <networkTechnology>NEUTRON</networkTechnology>
   <providerVlanNetwork>
      <physicalNetworkName>null</physicalNetworkName>
      <vlans/>
   </providerVlanNetwork>
   <subnets>
*      <allocationPools>*
*         <start/>*
*         <end/>*
*      </allocationPools>*
      <cidr>10.200.0.0/24</cidr>
      <enableDHCP>true</enableDHCP>
      <gatewayIp>10.200.0.1</gatewayIp>
      <ipVersion>4</ipVersion>
      <subnetId>0f8bcf22-6159-4d27-a606-29f7a128eada</subnetId>
      <subnetName>my-subnet</subnetName>
   </subnets>
   <skipAAI>true</skipAAI>
   <backout>true</backout>
   <failIfExists>false</failIfExists>
   <msoRequest>
      <requestId>7015d62d-3131-43f2-9edb-c71d47f7d0e9</requestId>
      
<serviceInstanceId>ae697848-99a0-4b17-9531-8ee0851366ca</serviceInstanceId>
   </msoRequest>
   <messageId>308603bc-ea21-42dd-9140-0805d760e11d</messageId>
   <notificationUrl/>
</createNetworkRequest>

*SO Openstack Adapter Log:*
2019-02-14T17:56:04.145Z|7015d62d-3131-43f2-9edb-c71d47f7d0e9| 
org.onap.so.openstack.utils.MsoHeatUtils - Ready to Create Stack (
heat_template_version: 2013-05-23
description: A simple Neutron network
parameters:
 network_name:
   type: string
   description: Name of the Neutron Network
   default: ONAP-NW1
 shared:
   type: boolean
   description: Shared amongst tenants
   default: False
outputs:
  subnet_id_0f8bcf22-6159-4d27-a606-29f7a128eada:
    description: Openstack subnet identifier
    value: {get_resource: subnet_0f8bcf22-6159-4d27-a606-29f7a128eada}
 
  network_id:
    description: Openstack network identifier
    value: { get_resource: network }
resources:
  subnet_0f8bcf22-6159-4d27-a606-29f7a128eada:
    type: OS::Neutron::Subnet
    properties:
      name: my-subnet
      network_id: { get_resource: network }
      cidr: 10.200.0.0/24
      ip_version: 4
      enable_dhcp: true
      gateway_ip: 10.200.0.1
      allocation_pools:
 
   network:
     type: OS::Neutron::Net
     properties:
       name: { get_param: network_name }
       shared: { get_param: shared }) with input params: {}
..
2019-02-14T17:56:04.302Z|7015d62d-3131-43f2-9edb-c71d47f7d0e9| 
org.onap.so.openstack.utils.MsoHeatUtils - ERROR STATUS = 400,
Bad Request
Bad Request
2019-02-14T17:56:04.303Z|7015d62d-3131-43f2-9edb-c71d47f7d0e9| 
org.onap.so.openstack.utils.MsoCommonUtils - RA_CONNECTION_EXCEPTION
2019-02-14T17:56:04.304Z|7015d62d-3131-43f2-9edb-c71d47f7d0e9| 
org.onap.so.openstack.utils.MsoCommonUtils - The server could not comply with 
the request since it is either malformed or otherwise incorrect., er
ror.type=HTTPBadRequest, error.message=Template not in valid format: Error 
parsing template: while parsing a block mapping
  in "<unicode string>", line 22, column 3:
      subnet_0f8bcf22-6159-4d27-a606-2 ... 
      ^
expected <block end>, but found '<block mapping start>'
  in "<unicode string>", line 33, column 4:
       network:
       ^
2019-02-14T17:56:04.305Z|7015d62d-3131-43f2-9edb-c71d47f7d0e9| 
org.onap.so.adapters.network.MsoNetworkAdapterImpl - RA_CREATE_NETWORK_EXC
org.onap.so.openstack.exceptions.MsoOpenstackException: The server could not 
comply with the request since it is either malformed or otherwise incorrect., 
error.type=HTTPBadRequest, error.message=Template not 
in valid format: Error parsing template: while parsing a block mapping
  in "<unicode string>", line 22, column 3:
      subnet_0f8bcf22-6159-4d27-a606-2 ... 
      ^
expected <block end>, but found '<block mapping start>'
  in "<unicode string>", line 33, column 4:
       network:
       ^

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15552): https://lists.onap.org/g/onap-discuss/message/15552
Mute This Topic: https://lists.onap.org/mt/29844586/21656
Mute #so: https://lists.onap.org/mk?hashtag=so&subid=2740164
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to