Hi Steve, I am about to reply to your previous email, and I am glad that it worked for you. 😊
For 1, startODL.sh has the statement to make sure the sdnc_db_exists is up. Did you delete all the pvc and pv before you are doing redeployment? For 2, you would need to use CDT For 3, iaas adapter is based on cdp-pal opensource code. On the OpenStackComputService.java, it did do encoded Base64. I think it’s something missing here…. And really appreciated you are looking for APPC again! Taka From: [email protected] <[email protected]> On Behalf Of Steve Siani Sent: Tuesday, May 28, 2019 2:57 PM To: Steve Siani <[email protected]>; [email protected] Subject: Re: [onap-discuss] APPC -> RE: [onap-discuss] #appc Unable to execute stop lcm operation from APPC Hello, Just to share my long experience dealing with LCM in APPC Casablanca. I finally managed to Stop, Start and Restart a VM using APPC LCM. To summarize, I faced 3 main issues: 1. APPC DB fail to create VNF_DG_MAPPING in sdnctl database For some reason, I got this error when APPC DB pod was initializing: [cid:[email protected]] I inspect and found that this error came from this command: mysql -h appc-dbhost.<myNamespace> -u root -psecretpassword sdnctl < /opt/onap/appc/data/sqlData.dump Before the above command, the script installAppcDb.sh executed this command to create all the tables in sdnctl database. mysql -h appc-dbhost..<myNamespace> -u root -psecretpassword sdnctl < /opt/onap/appc/data/sdnctl.dump But the VNF_DG_MAPPING is the last table which is created in this dump. And sometime sqlData.dump is running before sdnctl.dump. To solve this issue I added a delay between both commands: BACK_PID=$! wait $BACK_PID 2. Update APPC DB with Protocol References for the actions used in Test Instead of using APPC CDT to have actions properly set in APPC DB, I manually add in sdnctl database directly. For some reason, I was not able to have ACTION_LEVEL set to VM using CDT "Openstack action". insert into PROTOCOL_REFERENCE (ACTION, VNF_TYPE, PROTOCOL, TEMPLATE, ACTION_LEVEL) values ("Stop", "vTEST", "OS", "N", "VM"); insert into PROTOCOL_REFERENCE (ACTION, VNF_TYPE, PROTOCOL, TEMPLATE, ACTION_LEVEL) values ("Start", "vTEST", "OS", "N", "VM"); insert into PROTOCOL_REFERENCE (ACTION, VNF_TYPE, PROTOCOL, TEMPLATE, ACTION_LEVEL) values ("Restart", "vTEST", "OS", "N", "VM"); 3. openStackEncryptedPassword in APPC values is not encrypted :-) I don't know why, but in some Casablanca documentation, it is mentioned that the value should be encrypted in Base64. But, I found that, for Casablanca release, this password shouldn't be encrypted. So, with this, I was able to perform LCM request through APPC. Hope this will help. Regards, Steve -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17308): https://lists.onap.org/g/onap-discuss/message/17308 Mute This Topic: https://lists.onap.org/mt/31641303/21656 Mute #appc: https://lists.onap.org/mk?hashtag=appc&subid=2740164 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
