Hi,
thanks for the answer. It solves the issue.
Now, the Macro instantaiton starts, but it fails when the STACK is deployed 
into OPENSTACK :

> 
> "requestStatus": "IN_PROGRESS",
> "statusMessage": "Received vfModuleException from VnfAdapter:
> category='INTERNAL' message='Exception during create VF 400 Bad Request:
> The server could not comply with the request since it is either malformed
> or otherwise incorrect., error.type=StackValidationFailed,
> error.message=Invalid stack name  must contain only alphanumeric or
> \"_-.\" characters, must start with alpha and must be 255 characters or
> less.' rolledBack='true'",
> "rollbackStatusMessage": null,
> "flowStatus": "Execution of ConfigAssignVnfBB has completed successfully,
> next invoking CreateVfModuleBB (Execution Path progress: BBs completed =
> 7; BBs remaining = 11).",
> 
> 

The error is abount the Stack name that is malformed.d
Here the openstack log:

2019-07-09T09:45:04.906Z|| org.onap.so.openstack.utils. MsoHeatUtils - Found: 
CloudSite_.._jvsta48_3c[ regionId=RegionOne, identityServiceId=REGION_ 
THREE_KEYSTONE,cloudVersion=2. 5,clli=RegionOne,cloudifyId=< 
null>,platform=<null>, orchestrator=<null>]
2019-07-09T09:45:04.906Z|| org.onap.so.openstack.utils. MsoHeatUtils - Found: 
CloudIdentity[id=REGION_THREE_ KEYSTONE,identityUrl= http:// 
163.162.95.137:5000/v3,msoId= dc1,projectDomain=datacenter1, 
userDomain=Default, adminTenant= 34f1fe41d1a0483dbd1aa94c26dc55 
45,memberRole=admin, tenantMetadata= ( 
http://163.162.95.137:5000/v3,msoId=dc1,projectDomain=datacenter1,userDomain=Default,adminTenant=34f1fe41d1a0483dbd1aa94c26dc5545,memberRole=admin,tenantMetadata=
 ) <null>, identityServerType=KEYSTONE_ V3,identityAuthenticationType= 
USERNAME_PASSWORD]
2019-07-09T09:45:04.906Z|| org.onap.so.openstack.utils. MsoHeatUtils - 
keystoneUrl= http://163.162.95. 137:5000/v3 ( http://163.162.95.137:5000/v3 )
2019-07-09T09:45:05.071Z|| org.onap.so.openstack.utils. MsoHeatUtils - Found: 
com.woorea.openstack.heat. Heat@631e3393
2019-07-09T09:45:05.071Z|| org.onap.so.openstack.utils. MsoHeatUtils - Ready to 
Create Stack (############################# ############################## 
###############
#
#==================LICENSE_ START========================= =================
#
#
# Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/ licenses/LICENSE-2.0 ( 
http://www.apache.org/licenses/LICENSE-2.0 )
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#==================LICENSE_ END=========================== =================
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
#
############################## ############################## ##############

heat_template_version: 2013-05-23

description: Heat template that deploys common resources

##############
#            #
# PARAMETERS #
#            #
##############

parameters:

vlb_private_net_id:
type: string
label: vLoadBalancer private network name or ID
description: Private network that connects vLoadBalancer with vDNSs
pktgen_private_net_id:
type: string
label: vPacketGen private network name or ID
description: Private network that connects vLoadBalancer with vPacketGen
vlb_private_net_cidr:
type: string
label: vLoadBalancer private network CIDR
description: The CIDR of the vLoadBalancer private network
pktgen_private_net_cidr:
type: string
label: vPacketGen private network CIDR
description: The CIDR of the vPacketGen private network
vnf_id:
type: string
label: VNF ID
description: The VNF ID is provided by ONAP
vnf_name:
type: string
label: VNF NAME
description: The VNF NAME is provided by ONAP
vlb_0_int_pktgen_private_port_ 0_mac:
type: string
label: vLB MAC address
description: MAC address of the vLB used by the vPacketGen VM
vpg_0_int_pktgen_private_port_ 0_mac:
type: string
label: vPacketGen MAC address
description: MAC address of the vPacketGen used by the vLB VM
key_name:
type: string
label: Key pair name
description: Public/Private key pair name
pub_key:
type: string
label: Public key
description: Public key to be installed on the compute instance

#############
#           #
# RESOURCES #
#           #
#############

resources:

random-str_0:
type: OS::Heat::RandomString
properties:
length: 4

my_keypair_0:
type: OS::Nova::KeyPair
properties:
name:
str_replace:
template: vnfname_base_rand
params:
base: { get_param: key_name }
rand: { get_resource: random-str_0 }
vnfname: { get_param: vnf_name }
public_key: { get_param: pub_key }
save_private_key: false

# NETWORK_ROLE: private
int_private_network:
type: OS::Neutron::Net
properties:
name:
str_replace:
template: vnfname_privatenetid
params:
privatenetid: { get_param: vlb_private_net_id }
vnfname: { get_param: vnf_name }

# NETWORK_ROLE: private
int_private_subnet_0:
type: OS::Neutron::Subnet
properties:
name:
str_replace:
template: vnfname_privatenetid_subnet
params:
privatenetid: { get_param: vlb_private_net_id }
vnfname: { get_param: vnf_name }
network: { get_resource: int_private_network }
cidr: { get_param: vlb_private_net_cidr }

# NETWORK_ROLE: pktgen_private
int_pktgen_private_network:
type: OS::Neutron::Net
properties:
name:
str_replace:
template: vnfname_privatenetid
params:
privatenetid: { get_param: pktgen_private_net_id }
vnfname: { get_param: vnf_name }

# NETWORK_ROLE: pktgen_private
int_pktgen_private_subnet_0:
type: OS::Neutron::Subnet
properties:
name:
str_replace:
template: vnfname_privatenetid_subnet
params:
privatenetid: { get_param: pktgen_private_net_id }
vnfname: { get_param: vnf_name }
network: { get_resource: int_pktgen_private_network }
cidr: { get_param: pktgen_private_net_cidr }

outputs:
int_private_subnet_id:
value: { get_resource: int_private_subnet_0 }
int_private_net_id:
value: { get_resource: int_private_network }
int_pktgen_private_subnet_id:
value: { get_resource: int_pktgen_private_subnet_0 }
int_pktgen_private_net_id:
value: { get_resource: int_pktgen_private_network }
keypair:
value: { get_resource: my_keypair_0 }
vnf_id:
value: { get_param: vnf_id }
vnf_name:
value: { get_param: vnf_name }
vlb_0_mac_address:
value: { get_param: vlb_0_int_pktgen_private_port_ 0_mac }
vpg_0_mac_address:
value: { get_param: vpg_0_int_pktgen_private_port_ 0_mac }) with input params: 
{pktgen_private_net_cidr= 192. 168.20.0/24 ( http://192.168.20.0/24 ) , 
key_name=olc-key, vlb_private_net_cidr= 192.168. 10.0/24 ( 
http://192.168.10.0/24 ) , vnf_id=532aea4a-0bb9-44ec- 96f8-37ebc176697b, 
vpg_0_int_pktgen_private_port_ 0_mac=fa:16:3e:00:00:20, pktgen_private_net_id= 
private2, vlb_private_net_id=private1, vnf_name=RegionOne_ONAP-NF_ 
20190709T093939082Z, vlb_0_int_pktgen_private_port_ 0_mac=fa:16:3e:00:00:10, 
pub_key=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ Cwj7uJMyKiP1ogEsZv5kKDFw9mFNhx 
I+ woR3Tuv8vjfNnqdB1GfSnvTFyNbdpy NdR8BlljkiZ1SlwJLEkvPk0HpOoSVV ek/ 
QmBeGC7mxyRcpMB2cNQwjXGfsVrfor ddXOnOkj+zx1aNdVGMc52Js3pex8B/ 
L00H68kOcwP26BI1o77Uh+ AxjOkIEGs+ wlWNUmXabLDCH8l8IJk9mCTruKEN9K Nj4NRZcaNC+ 
XOz42SyHV9RT3N6efp31FqKzo8Ko63 QirvKEEBSOAf9VlJ7mFMrGIGH37AP3 
JJfFYEHDdOA3N64ZpJLa39y25EWwGZ NlWpO/GW5bNjTME04dl4eRyd}
2019-07-09T09:45:05.290Z|| org.onap.so.openstack.utils. MsoCommonUtils - Config 
values RetryDelay:5 RetryCount:3  RetryCodes:504 ResponseCode:400
2019-07-09T09:45:05.290Z|| org.onap.so.openstack.utils. MsoHeatUtils - ERROR 
STATUS = 400,
Bad Request
Bad Request
2019-07-09T09:45:05.290Z|| org.onap.so.openstack.utils. MsoCommonUtils - 
RA_CONNECTION_EXCEPTION 300 Exception - Openstack Error on CreateStack : 
Explanation [ code='400', title='Bad Request', explanation='The server could 
not comply with the request since it is either malformed or otherwise 
incorrect.', Error [type='StackValidationFailed', message='Invalid stack name  
must contain only alphanumeric or "_-." characters, must start with alpha and 
must be 255 characters or less.' ] ]
2019-07-09T09:45:05.290Z|| org.onap.so.openstack.utils. MsoCommonUtils - The 
server could not comply with the request since it is either malformed or 
otherwise incorrect., error.type= StackValidationFailed, error.message=Invalid 
stack name  must contain only alphanumeric or "_-." characters, must start with 
alpha and must be 255 characters or less.
2019-07-09T09:45:05.290Z|| org.onap.so.adapters.vnf. MsoVnfAdapterImpl - 
RA_CREATE_VNF_ERR svc_20190708/null:: VdnsloadbalancerCds..base_ 
template..module-0 CloudOwner RegionOne 34f1fe41d1a0483dbd1aa94c26dc55 45 
OpenStack 300 MsoException - createStack
org.onap.so.openstack. exceptions. MsoOpenstackException: The server could not 
comply with the request since it is either malformed or otherwise incorrect., 
error.type= StackValidationFailed, error.message=Invalid stack name  must 
contain only alphanumeric or "_-." characters, must start with alpha and must 
be 255 characters or less.
at org.onap.so.openstack.utils. MsoCommonUtils. heatExceptionToMsoException( 
MsoCommonUtils.java:202)
at org.onap.so.openstack.utils. MsoHeatUtils.createStack( MsoHeatUtils.java:251)
at org.onap.so.adapters.vnf. MsoVnfAdapterImpl. createVfModule( 
MsoVnfAdapterImpl.java:1218)
at org.onap.so.adapters.vnf. MsoVnfAdapterImpl$$ FastClassBySpringCGLIB$$ 
8b1f101c.invoke(<generated>)
at org.springframework.cglib. proxy.MethodProxy.invoke( MethodProxy.java:204)
at org.springframework.aop. framework.CglibAopProxy$ CglibMethodInvocation. 
invokeJoinpoint(CglibAopProxy. java:746)
at org.springframework.aop. framework. ReflectiveMethodInvocation. proceed( 
ReflectiveMethodInvocation. java:163)
at org.springframework. transaction.interceptor. TransactionAspectSupport. 
invokeWithinTransaction( TransactionAspectSupport.java: 294)
at org.springframework. transaction.interceptor. TransactionInterceptor.invoke( 
TransactionInterceptor.java: 98)
at org.springframework.aop. framework. ReflectiveMethodInvocation. proceed( 
ReflectiveMethodInvocation. java:185)
at org.springframework.aop. framework.CglibAopProxy$ DynamicAdvisedInterceptor. 
intercept(CglibAopProxy.java: 688)
at org.onap.so.adapters.vnf. MsoVnfAdapterImpl$$ EnhancerBySpringCGLIB$$ 
13694f70.createVfModule(< generated>)
at org.onap.so.adapters.vnf. VnfAdapterRest$ CreateVfModuleTask.run( 
VnfAdapterRest.java:362)
at java.lang.Thread.run(Thread. java:748)
2019-07-09T09:45:05.290Z|| org.onap.so.adapters.vnf. MsoVnfAdapterImpl - Create 
VF Module svc_20190708/null:: VdnsloadbalancerCds..base_ template..module-0 in 
CloudOwner/RegionOne/ 34f1fe41d1a0483dbd1aa94c26dc55 45: 400 Bad Request: The 
server could not comply with the request since it is either malformed or 
otherwise incorrect., error.type= StackValidationFailed, error.message=Invalid 
stack name  must contain only alphanumeric or "_-." characters, must start with 
alpha and must be 255 characters or less.
2019-07-09T09:45:05.290Z|| org.onap.so.adapters.vnf. MsoVnfAdapterImpl - 
unhandled exception in create VF
org.onap.so.adapters.vnf. exceptions.VnfException: 400 Bad Request: The server 
could not comply with the request since it is either malformed or otherwise 
incorrect., error.type= StackValidationFailed, error.message=Invalid stack name 
 must contain only alphanumeric or "_-." characters, must start with alpha and 
must be 255 characters or less.
at org.onap.so.adapters.vnf. MsoVnfAdapterImpl. createVfModule( 
MsoVnfAdapterImpl.java:1244)
at org.onap.so.adapters.vnf. MsoVnfAdapterImpl$$ FastClassBySpringCGLIB$$ 
8b1f101c.invoke(<generated>)
at org.springframework.cglib. proxy.MethodProxy.invoke( MethodProxy.java:204)
at org.springframework.aop. framework.CglibAopProxy$ CglibMethodInvocation. 
invokeJoinpoint(CglibAopProxy. java:746)
at org.springframework.aop. framework. ReflectiveMethodInvocation. proceed( 
ReflectiveMethodInvocation. java:163)
at org.springframework. transaction.interceptor. TransactionAspectSupport. 
invokeWithinTransaction( TransactionAspectSupport.java: 294)
at org.springframework. transaction.interceptor. TransactionInterceptor.invoke( 
TransactionInterceptor.java: 98)
at org.springframework.aop. framework. ReflectiveMethodInvocation. proceed( 
ReflectiveMethodInvocation. java:185)
at org.springframework.aop. framework.CglibAopProxy$ DynamicAdvisedInterceptor. 
intercept(CglibAopProxy.java: 688)
at org.onap.so.adapters.vnf. MsoVnfAdapterImpl$$ EnhancerBySpringCGLIB$$ 
13694f70.createVfModule(< generated>)
at org.onap.so.adapters.vnf. VnfAdapterRest$ CreateVfModuleTask.run( 
VnfAdapterRest.java:362)
at java.lang.Thread.run(Thread. java:748)
Caused by: org.onap.so.openstack. exceptions. MsoOpenstackException: The server 
could not comply with the request since it is either malformed or otherwise 
incorrect., error.type= StackValidationFailed, error.message=Invalid stack name 
 must contain only alphanumeric or "_-." characters, must start with alpha and 
must be 255 characters or less.
at org.onap.so.openstack.utils. MsoCommonUtils. heatExceptionToMsoException( 
MsoCommonUtils.java:202)
at org.onap.so.openstack.utils. MsoHeatUtils.createStack( MsoHeatUtils.java:251)
at org.onap.so.adapters.vnf. MsoVnfAdapterImpl. createVfModule( 
MsoVnfAdapterImpl.java:1218)
... 11 common frames omitted

Is there any workaround to go on?

Thanks,
Aniello Paolo Malinconico

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

View/Reply Online (#17923): https://lists.onap.org/g/onap-discuss/message/17923
Mute This Topic: https://lists.onap.org/mt/32390603/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to