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:

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 (#17307): https://lists.onap.org/g/onap-discuss/message/17307
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]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to