Skip to content

Hackerfest Example

Bhuvan Sharma edited this page Oct 4, 2019 · 6 revisions

working @Avi

(hackfest_basic)

osm ns-create --ns_name hf_basic --nsd_name hackfest_basic-ns \
  --vim_account OS-DS-BF9 \
  --ssh_keys /home/avi/.ssh/id_rsa.pub \
  --config '{vld: [ {name: mgmtnet, vim-network-name: mgmt } ] }'

Able to get management IP

Unable to SSH using management IP

Able to get management IP

Haydar:

Found out that the problem with charm VNF not deploying correctly using OSM is because the VNFs do not have a public IP. When OSM or charm tries to SSH into the VNF, it is timing out since there is no direct connection.

I configured the SSH client in fgcn-backflip3 (OSM server) (/etc/ssh/ssh_config) to utilize ProxyJump so that when a user calls ssh user@vnf_floating_ip, SSH will use a jump server automatically (openstack server - backflip9).

This did not solve the problem with charms not being able to SSH into the deployed VNFs to complete the deployment. After several hours of debugging, I found the problem is with the LXC containers that are running JUJU inside backflip3. It might also be inside the docker containers that run the OSM RO and other services.

This is the flow of how charm is deployed (image source: OSM-ETSI)

Issues

  • Floating IPs are not getting assigned automatically by OSM?

    • It turns out that they do get the public IPs, but the deployment is not completing because of an SSH timeout.
  • How to enable SSH to NS-hosts from outside network?

    • This is solved now when using SSH from backflip3, it is now configured to use SSH Jump server automatically.

Bhuvan:

(hackfest_simplecharm) The problem with charms not being installed properly was not in the hardware or configuration, but rather in the code of the charm itself which was taken from the open source hackfest wiki of OSM. The function action_verify_ssh_credentials() in the reactive file sshproxy.py had a semantic error. It should be if not verified: instead of if not validated:. Other than this, there were no complication with simplecharm.