You are welcome!
Good to know it.

-Wei

2016-11-10 21:01 GMT+01:00 Cloud List <cloud-l...@sg.or.id>:

> Hi Wei,
>
> Just to let you know that the workaround you have suggested fixes the
> problem.
>
> /bin/bash /opt/cloud/bin/passwd_server_ip X.X.203.2 &
>
> Many thanks! Greatly appreciated.
>
> Cheers.
>
>
> On Fri, Nov 11, 2016 at 3:49 AM, Cloud List <cloud-l...@sg.or.id> wrote:
>
> > Hi Wei,
> >
> > Thanks for your reply.
> >
> > I ran the command and it seems to be running very long without any
> > response. Does it take time to execute, or is it supposed to run in
> > background? e.g. shall I run with & option instead?
> >
> > /bin/bash /opt/cloud/bin/passwd_server_ip X.X.203.2 &
> >
> > Here's the result:
> >
> > root@r-4155-VM:/opt/cloud/bin# /bin/bash /opt/cloud/bin/passwd_server_ip
> > X.X.203.2
> > [no response]
> >
> > Because when I grep the process using ps aux, I can see that it seems to
> > be running as daemon for the first subnet:
> >
> >  2199 ?        S      0:00 /bin/bash /opt/cloud/bin/passwd_server_ip
> > X.X.202.2 dummy
> >  2202 ?        S      0:12 python /opt/cloud/bin/passwd_server_ip.py
> > X.X.202.2
> >
> > Do I also need to add the "dummy" option for the second subnet onwards?
> >
> > Looking forward to your reply, thank you.
> >
> > Cheers.
> >
> > On Thu, Nov 10, 2016 at 9:28 PM, Wei ZHOU <ustcweiz...@gmail.com> wrote:
> >
> >> Sorry what I said in previous reply is wrong. The 80 port /apache2 are
> >> used
> >> for ssh-key server, not password server.
> >>
> >> For password server, there should be a passwd_server_ip.py running with
> >> corresponding ip.
> >> The password server will listen the 8080 port, and cache the vm password
> >> in
> >> /var/cache/cloud/passwords-X.X.X.X
> >>
> >> In a word, you need to run the following command:
> >> /bin/bash /opt/cloud/bin/passwd_server_ip X.X.203.2 (the vr ip in
> second
> >> ip
> >> subnet)
> >>
> >> -Wei
> >>
> >> 2016-11-10 13:07 GMT+01:00 Cloud List <cloud-l...@sg.or.id>:
> >>
> >> > Hi Wei,
> >> >
> >> > Thanks for your reply.
> >> >
> >> > You are right, when I tried to access the other subnet IP on port 80,
> it
> >> > got connection refused. I have modified the Apache configuration to
> add
> >> the
> >> > port and virtualhost configuration and we are now able to access the
> >> other
> >> > subnet IP on port 80.
> >> >
> >> > root@test-40g-root-disk:~# telnet X.X.203.2 80
> >> > Trying X.X.203.2...
> >> > Connected to X.X.203.2.
> >> > Escape character is '^]'.
> >> > ^]
> >> > telnet> quit
> >> > Connection closed.
> >> >
> >> > However, password reset still doesn't work. Not too sure what's wrong.
> >> >
> >> > I looked at the python script on /opt/cloud/bin/passwd_server_ip.py,
> it
> >> > seems to be looking into just one file called
> >> > /var/cache/cloud/passwords-X.X.202.2 although I see some IPs from
> other
> >> > subnets as well inside the file. Is there something we need to modify
> on
> >> > the area as well?
> >> >
> >> > Any further advice is greatly appreciated.
> >> >
> >> > Thank you.
> >> >
> >> >
> >> >
> >>
> >
> >
>

Reply via email to