Deployed mongodb service using juju. It created a new virtual machine and deployed the mongodb service. How to access the newly created VM / Mongodb service. URL of the service is available from juju status command.
If you are running on on local Linux environment then the machine will be in separate container using LCX, but still you can login those container machine.
=> First check the status juju status
environment: local machines: "0": agent-state: started agent-version: 220.127.116.11 dns-name: localhost instance-id: localhost series: saucy "1": agent-state: started agent-version: 18.104.22.168 dns-name: 10.0.3.234 instance-id: juju-local-machine-1 series: precise hardware: arch=amd64 services: mongodb: charm: cs:trusty/mongodb-1 exposed: false relations: cluster: - mongodb units: mongodb/0: agent-state: started agent-version: 22.214.171.124 machine: "1"
this is example of juju status command in my machine,
=> From this statement, the mongodb is running on the container machine '2' then enter the following command juju ssh 2
Now you can easily login to the container machine
If you are running on on local Linux environment then the machine will be in separate container(with different subnet), so you will need to do the iptables forwarding for those machines. For AWS though things are different.