Hello Team,
I have deployed ONAP Casablanca on Kubernetes with Rancher.
I am trying to run the robot scripts with Keystone version V3 (OpenStack
Queen).
1: ./demo-k8s.sh onap init
I am able to successfully run this test by changing the version V2 to V3.
2. ./demo-k8s.sh onap init_robot
For this test, I am getting error:
ConnectionError: HTTPConnectionPool(host='<OpenStackHostname>', port=8774): Max
retries exceeded with url: /v2.1/servers/detail (Caused by
NewConnectionError('<urllib3.connection.HTTPConnection object at
0x7fb38083f6d0>: Failed to establish a new connection: [Errno -2] Name or
service not known',))
This error is mainly because, Robot pod is trying to connect OpenStack server
by their host name.
However, this problem I have solved by updating the /etc/hosts file with the ip
address of the OpenStack Server and the test was successful.
Is there any other way to solve this problem without updating the robot's
/etc/hosts file?
3../demo-k8s.sh onap instantiateVFW
I am trying to instantiate vFW on OpenStack queen version (Keystone v3.0).
I have followed the steps given by kranthi guttikonda (
https://lists.onap.org/g/onap-discuss/topic/casablanca_so_openstack/30403892?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,30403892
)
Step 1: Updated the identity_services in so-MariaDB as:
MariaDB [catalogdb]> update identity_services set
IDENTITY_URL="http://xx.xx.xx.xx:30280/api/multicloud/v0/CloudOwner_RegionOne/identity/v2.0"
where ID="DEFAULT_KEYSTONE";
Here, xx.xx.xx.xx is the oom master node ip.
Step 2: Successfully Updated the RegionOne in AAI using PUT command via postman
(here, xx.xx.xx.xx -> oom master node ip and yy.yy.yy.yy -> OpenStack server
ip).
{
"cloud-owner": "CloudOwner",
"cloud-region-id": "RegionOne",
"cloud-type": "openstack",
"owner-defined-type": "OwnerType",
"cloud-region-version": "v2.5",
"identity-url":
"http://xx.xx.xx.xx:9006/api/multicloud/v0/CloudOwner_RegionOne/identity/v2.0/tokens",
"cloud-zone": "CloudZone",
"resource-version": "1555956059967",
"complex-name": "clli1",
"tenants": {
"tenant": [{
"tenant-id": "ecf1539291894c76a6b57308ae4726a3",
"tenant-name": "admin",
"resource-version": "1555956060830"
}]
},
"esr-system-info-list": {
"esr-system-info": [{
"esr-system-info-id": "1",
"system-name": "OpenStack",
"type": "vim",
"service-url": "http://yy.yy.yy.yy:5000/v3",
"user-name": "admin",
"password": "password",
"system-type": "VIM",
"ssl-insecure": true,
"cloud-domain": "default",
"default-tenant": "admin"
}]
}
}
Then run the ./demo-k8s.sh onap instantiateVFW and it failed. The error is:
"AIC did not match an orchestration service for:
region=RegionOne,cloud=http://xx.xx.xx.xx:30280/api/multicloud/v0/CloudOwner_RegionOne/identity/v2.0"
I have given the a snap shot of the debug.log file in so-openstack-adapter. In
the debug file:
<OpenStackHostname> represents the openstack host name
xx.xx.xx.xx represents the oom master node ip.
For the debug log, I understand that the openstack adaptor is trying to connect
OpenStack server using hostName. May be this is the issue.
Please help me to debug this Problem.
Thank you very much for your help!
Regards,
Satish
----------------------------------------------------------------
Debug log file form so-openstack-adapter:
2019-04-23T11:58:02.506Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils - Found:
CloudSite_.._jvst58e_31[regionId=RegionOne,identityServiceId=DEFAULT_KEYSTONE,cloudVersion=2.5,clli=RegionOne,cloudifyId=<null>,platform=<null>,orchestrator=<null>]
2019-04-23T11:58:02.506Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils - Found:
CloudIdentity[id=DEFAULT_KEYSTONE,identityUrl=http://xx.xx.xx.xx:30280/api/multicloud/v0/CloudOwner_RegionOne/identity/v2.0,msoId=admin,adminTenant=service,memberRole=admin,tenantMetadata=true,identityServerType=KEYSTONE,identityAuthenticationType=USERNAME_PASSWORD]
2019-04-23T11:58:02.507Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils -
keystoneUrl=http://xx.xx.xx.xx:30280/api/multicloud/v0/CloudOwner_RegionOne/identity/v2.0
2019-04-23T11:58:07.061Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils - access=Access [token=Token
[id=gAAAAABcvv3P64kQ-zlmqVRgBvP4gGzffJ8NrjuJoH6M4R8-PGbblzVfOHyPsWmYk-G6nK1R_u6-SZVX4WVDGQEH8AJ7zO0dtHrqg1zRNDirRP5iflYoWP7xsn2JRHCoEyJN627Cz36raDRXMd6UL0zayCxyQMYP0Qm1rs3muSZthcIb3bIzPjg,
Issued_at=java.util.GregorianCalendar[time=1556020687000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="UTC",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=3,WEEK_OF_YEAR=17,WEEK_OF_MONTH=4,DAY_OF_MONTH=23,DAY_OF_YEAR=113,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=4,AM_PM=0,HOUR=11,HOUR_OF_DAY=11,MINUTE=58,SECOND=7,MILLISECOND=0,ZONE_OFFSET=0,DST_OFFSET=0],
expires=java.util.GregorianCalendar[time=1556024287000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="UTC",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=3,WEEK_OF_YEAR=17,WEEK_OF_MONTH=4,DAY_OF_MONTH=23,DAY_OF_YEAR=113,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=58,SECOND=7,MILLISECOND=0,ZONE_OFFSET=0,DST_OFFSET=0],
tenant=Tenant [id=ecf1539291894c76a6b57308ae4726a3, name=admin,
description=null, enabled=true]], serviceCatalog=[Service [type=volumev3,
name=cinderv3, endpoints=[Endpoint [region=RegionOne,
publicURL=http://<OpenStackHostname>:8776/v3/ecf1539291894c76a6b57308ae4726a3,
internalURL=null, adminURL=null]], endpointsLinks=null], Service [type=image,
name=glance, endpoints=[Endpoint [region=RegionOne,
publicURL=http://<OpenStackHostname>:9292, internalURL=null, adminURL=null]],
endpointsLinks=null], Service [type=application-catalog, name=murano,
endpoints=[Endpoint [region=RegionOne,
publicURL=http://<OpenStackHostname>:8082, internalURL=null, adminURL=null]],
endpointsLinks=null], Service [type=network, name=neutron, endpoints=[Endpoint
[region=RegionOne, publicURL=http://<OpenStackHostname>:9696, internalURL=null,
adminURL=null]], endpointsLinks=null], Service [type=placement, name=placement,
endpoints=[Endpoint [region=RegionOne,
publicURL=http://<OpenStackHostname>:8778, internalURL=null, adminURL=null]],
endpointsLinks=null], Service [type=volumev2, name=cinderv2,
endpoints=[Endpoint [region=RegionOne,
publicURL=http://<OpenStackHostname>:8776/v2/ecf1539291894c76a6b57308ae4726a3,
internalURL=null, adminURL=null]], endpointsLinks=null], Service
[type=identity, name=keystone, endpoints=[Endpoint [region=RegionOne,
publicURL=http://<OpenStackHostname>:5000/v3/, internalURL=null,
adminURL=null]], endpointsLinks=null], Service [type=compute, name=nova,
endpoints=[Endpoint [region=RegionOne,
publicURL=http://<OpenStackHostname>:8774/v2.1, internalURL=null,
adminURL=null]], endpointsLinks=null]], user=User
[id=ce13f5cba38646db89d51b4fb296c245, name=admin, username=null, roles=null,
rolesLinks=null], metadata=null]
2019-04-23T11:58:07.062Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils - AIC returned region=RegionOne
2019-04-23T11:58:07.062Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils - AIC returned region=RegionOne
2019-04-23T11:58:07.062Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils - AIC returned region=RegionOne
2019-04-23T11:58:07.062Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils - AIC returned region=RegionOne
2019-04-23T11:58:07.062Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils - AIC returned region=RegionOne
2019-04-23T11:58:07.063Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils - AIC returned region=RegionOne
2019-04-23T11:58:07.063Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils - AIC returned region=RegionOne
2019-04-23T11:58:07.063Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils - AIC returned region=RegionOne
2019-04-23T11:58:07.066Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.openstack.utils.MsoHeatUtils - RA_CONNECTION_EXCEPTION
2019-04-23T11:58:07.072Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.adapters.vnf.MsoVnfAdapterImpl - RA_QUERY_VNF_ERR
org.onap.so.openstack.exceptions.MsoAdapterException: AIC did not match an
orchestration service for:
region=RegionOne,cloud=http://xx.xx.xx.xx:30280/api/multicloud/v0/CloudOwner_RegionOne/identity/v2.0
at
org.onap.so.openstack.utils.MsoHeatUtils.getHeatClient(MsoHeatUtils.java:948)
at
org.onap.so.openstack.utils.MsoHeatUtils.queryStack(MsoHeatUtils.java:571)
at
org.onap.so.adapters.vnf.MsoVnfAdapterImpl.createVfModule(MsoVnfAdapterImpl.java:658)
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:736)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)
at
org.onap.so.adapters.vnf.MsoVnfAdapterImpl$$EnhancerBySpringCGLIB$$2b1b798a.createVfModule(<generated>)
at
org.onap.so.adapters.vnf.VnfAdapterRest$CreateVfModuleTask.run(VnfAdapterRest.java:440)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: endpoint url not found
at
com.woorea.openstack.keystone.utils.KeystoneUtils.findEndpointURL(KeystoneUtils.java:38)
at
org.onap.so.openstack.utils.MsoHeatUtils.getHeatClient(MsoHeatUtils.java:942)
... 14 common frames omitted
2019-04-23T11:58:07.075Z|3d1d8156-438c-4b54-a53b-8ee2136723c7|
org.onap.so.adapters.vnf.VnfAdapterRest - Exception :
org.onap.so.adapters.vnf.exceptions.VnfException:
org.onap.so.openstack.exceptions.MsoAdapterException: AIC did not match an
orchestration service for:
region=RegionOne,cloud=http://xx.xx.xx.xx:30280/api/multicloud/v0/CloudOwner_RegionOne/identity/v2.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16655): https://lists.onap.org/g/onap-discuss/message/16655
Mute This Topic: https://lists.onap.org/mt/31308892/21656
Mute #casablanca: https://lists.onap.org/mk?hashtag=casablanca&subid=2740164
Mute #robot: https://lists.onap.org/mk?hashtag=robot&subid=2740164
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]]
-=-=-=-=-=-=-=-=-=-=-=-