Hi Viswa,

There have to be several convention enforced between ONAP and OpenStack so that 
some HPA attributed can be decoded / represented into AAI. Please refer to the 
details at https://wiki.onap.org/display/DW/HPA+Policies+and+Mappings

MultiCloud has to distinct the flavors which comply with these convention from 
others don’t . That’s why MC expects the flavor name to begin with ‘onap.’ With 
that, any HPA attributes which does not come along with flavor prefixed with 
‘onap.’ Will not be decoded/represented into AAI. But the flavor itself can 
still be registered into AAI.

Please feel free to suggest any other workaround and we can discussed how to 
leverage that.

Thanks

Best Regards,
Bin Yang,    Solution Engineering Team,    Wind River
ONAP Multi-VIM/Cloud PTL
Direct +86,10,84777126    Mobile +86,13811391682    Fax +86,10,64398189
Skype: yangbincs993

From: Kumar Skand Priya, Viswanath V 
[mailto:[email protected]]
Sent: Wednesday, December 19, 2018 8:52 PM
To: onap-discuss; UdhayaChandran M; Yang, Bin
Subject: Re: [E] [onap-discuss] Flavors of the cloud are not stored in AAI #aai 
#multicloud

Hi Bin,

Apparently MC expects the Flavour name to begin with onap.<flavour name> 
inorder to scan for HPA attributes as per this code :

https://gerrit.onap.org/r/gitweb?p=multicloud/openstack.git;a=blob;f=share/newton_base/registration/registration.py;hb=d76c9be3e8d91675630d8b7772051030e992bf3e#l188
 .

Could you comment on why this restriction was placed? What if I already have a 
Flavour with HPA attributes and I need that to be discovered by MC?

BR,
Viswa

On Mon, Dec 17, 2018 at 8:28 PM M, UdhayaChandran via 
Lists.Onap.Org<http://Lists.Onap.Org> 
<[email protected]<mailto:[email protected]>>
 wrote:
Hi,

I am trying to register an external cloud in ESR.
I could be able to see the cloud information in the cloud-infrastructure 
namespace, but flavors and other information of the cloud are not stored in the 
AAI Graph database.

Got the following response, when querying for the flavor information for the 
cloud.

curl -k --user AAI:AAI -X GET -H "Accept: application/json" -H "Content-Type: 
application/json" -H "X-TransactionId: robot-ete-1234" -H "X-FromAppId: 
robot-ete"  
https://XX.XX.XX.XX:30233/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/regionOne/flavors<https://urldefense.proofpoint.com/v2/url?u=https-3A__XX.XX.XX.XX-3A30233_aai_v11_cloud-2Dinfrastructure_cloud-2Dregions_cloud-2Dregion_CloudOwner_regionOne_flavors&d=DwQFaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=9F3pNUkzjE-2v1eTClkRVakDRN8GH7Bm-wt1lWkxoUyyDORTqf5MxNO_GrMBs0gZ&m=iHsyqxu38sfZj3CH6RxxpmFWpfR7dikoMjwx_qqJdXg&s=8e-Qq8cLTHrDt3aDtOnonHF6VbeNaGDKeBlpl-EMHDo&e=>
 | python -m json.tool

Response:
{
    "requestError": {
        "serviceException": {
            "messageId": "SVC3001",
            "text": "Resource not found for %1 using id %2 (msg=%3) (ec=%4)",
            "variables": [
                "GET",
                
"cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/regionOne/flavors",
                "Node Not Found:No Node of type flavor found at: 
cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/regionOne/flavors",
                "ERR.5.4.6114"
            ]
        }
    }
}



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

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

Reply via email to