I suspect that your modelCustomizationName was onboarded with an extra space.
Did you manually onboard the models are did robot do the onboarding ?
Note the network name in a recent vcpe test I did below using robot onboarding
in El Alto where there are no space in the name.
I havent tested it but I would add a line to replace the space in the
network_name.
# create networks
for model in parser.net_models:
base_name =
model['modelCustomizationName'].lower().replace('mux_vg', 'mux_gw')
network_name =
'_'.join([self.vcpecommon.instance_name_prefix['network'], base_name,
name_suffix])
network_name = network_name.lower()
network_name = network_name.replace(' ','')
I wasnt able to test this in my environment but either this line or perhaps
opening the CSAR and seeing if there is an extra space in the
modelCustomizationName for the bng.
It could be in the heat template but I would have thought we would have run
into it before.
Brian
Stack Parameters
________________________________
OS::project_id
20e904c087ae4ded9362cba98afe2d09
network_name
vcpe_net_brg_bng_201908221326
OS::stack_name
vcpe_net_brg_bng_201908221326
OS::stack_id
390f4450-3938-4915-914a-4a24afbca100
shared
False
From: [email protected] <[email protected]> On Behalf Of
Kamel Idir via Lists.Onap.Org
Sent: Thursday, September 12, 2019 11:09 AM
To: FREEMAN, BRIAN D <[email protected]>; [email protected]
Subject: Re: [onap-discuss] ONAP Casablanca vCPE - vcpe.sh infra failed to
create vcpe_svc_vcpesvc_vbng_070919_201909111636 service
Hi Brian,
Sorry for the typo, I mean vcpe.py script.
so for the vcpe.py script I have the lines you mentioned in the deploy_brg_only
function, as shown below.
def deploy_brg_only():
logger = logging.getLogger(__name__)
vcpecommon = VcpeCommon()
preload_dict = vcpecommon.load_preload_data()
# name_suffix = preload_dict['${brg_bng_net}'].split('_')[-1]
name_suffix = datetime.now().strftime('%Y%m%d%H%M')
# create multiple services based on the pre-determined order
svc_instance_uuid =
vcpecommon.load_object(vcpecommon.svc_instance_uuid_file)
for keyword in ['brg']:
heatbridge = 'gmux' == keyword
csar_file = vcpecommon.find_file(keyword, 'csar', 'csar')
vnf_template_file = vcpecommon.find_file(keyword, 'json',
'preload_templates')
vcpecommon.increase_ip_address_or_vni_in_template(vnf_template_file,
['vbrgemu_private_ip_0'])
svc_instance_uuid[keyword] = create_one_service(vcpecommon, csar_file,
vnf_template_file, preload_dict,
name_suffix, heatbridge)
if not svc_instance_uuid[keyword]:
sys.exit()
And for the line network_name =
'_'.join([self.vcpecommon.instance_name_prefix['network'],
network_role.lower(), name_suffix]) line, it is in preload.py script and
soutils.py script.
Thanks,
Kamel
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18941): https://lists.onap.org/g/onap-discuss/message/18941
Mute This Topic: https://lists.onap.org/mt/34107360/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-