How can I make server.config.template?

Asked by Hyunsun Moon on 2011-04-12

Hello,

It's not that easy to be done vpn test without guidance..
Anyway,finally I can get user_data from the meta-data server with revision 980.
I found that autorun.sh tries to 'sed ... server.config.template > server.conf' and got some errors without server.config.template.

I copied sample server.conf from openvpn source code to the cloudpipe image. It succeed to run openvpn server but I cannot access to the vpn.

Do I make a special template file for server.conf?

One more question,
the instance running at the second compute node(running only compute service) seems fail to access metadata server displaying the following error log during boot.

---------------------------------------------------------------
cloud-init running: Tue, 12 Apr 2011 11:09:06 +0000. up 87.14 seconds
waiting for metadata service at http://169.254.169.254/2009-04-04/meta-data/instance-id
  11:09:06 [ 1/100]: url error [[Errno 101] Network is unreachable]
  11:09:07 [ 2/100]: url error [[Errno 101] Network is unreachable]
  11:09:08 [ 3/100]: url error [[Errno 101] Network is unreachable]
  11:09:09 [ 4/100]: url error [[Errno 101] Network is unreachable]
  11:09:10 [ 5/100]: url error [[Errno 101] Network is unreachable]
  11:09:11 [ 6/100]: url error [[Errno 101] Network is unreachable]
  11:09:13 [ 7/100]: url error [[Errno 101] Network is unreachable]
  11:09:15 [ 8/100]: url error [[Errno 101] Network is unreachable]
  11:09:17 [ 9/100]: url error [[Errno 101] Network is unreachable]
  11:09:19 [10/100]: url error [[Errno 101] Network is unreachable]
  11:09:21 [11/100]: url error [[Errno 101] Network is unreachable]
  11:09:24 [12/100]: url error [[Errno 101] Network is unreachable]
  11:09:27 [13/100]: url error [[Errno 101] Network is unreachable]
  11:09:30 [14/100]: url error [[Errno 101] Network is unreachable]

I did iptables -t nat -A PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination $NOVA_API_IP:8773.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Vish Ishaya
Solved:
2011-04-13
Last query:
2011-04-13
Last reply:
2011-04-12
Best Vish Ishaya (vishvananda) said : #1

This might help

https://code.launchpad.net/~vishvananda/nova/cloudpipe-docs/+merge/57241

On Apr 12, 2011, at 4:18 AM, Hyunsun Moon wrote:

> Question #152522 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/152522
>
> Description changed to:
> Hello,
>
> It's not that easy to be done vpn test without guidance..
> Anyway,finally I can get user_data from the meta-data server with revision 980.
> I found that autorun.sh tries to 'sed ... server.config.template > server.conf' and got some errors without server.config.template.
>
> I copied sample server.conf from openvpn source code to the cloudpipe
> image. It succeed to run openvpn server but I cannot access to the vpn.
>
> Do I make a special template file for server.conf?
>
>
> One more question,
> the instance running at the second compute node(running only compute service) seems fail to access metadata server displaying the following error log during boot.
>
> ---------------------------------------------------------------
> cloud-init running: Tue, 12 Apr 2011 11:09:06 +0000. up 87.14 seconds
> waiting for metadata service at http://169.254.169.254/2009-04-04/meta-data/instance-id
> 11:09:06 [ 1/100]: url error [[Errno 101] Network is unreachable]
> 11:09:07 [ 2/100]: url error [[Errno 101] Network is unreachable]
> 11:09:08 [ 3/100]: url error [[Errno 101] Network is unreachable]
> 11:09:09 [ 4/100]: url error [[Errno 101] Network is unreachable]
> 11:09:10 [ 5/100]: url error [[Errno 101] Network is unreachable]
> 11:09:11 [ 6/100]: url error [[Errno 101] Network is unreachable]
> 11:09:13 [ 7/100]: url error [[Errno 101] Network is unreachable]
> 11:09:15 [ 8/100]: url error [[Errno 101] Network is unreachable]
> 11:09:17 [ 9/100]: url error [[Errno 101] Network is unreachable]
> 11:09:19 [10/100]: url error [[Errno 101] Network is unreachable]
> 11:09:21 [11/100]: url error [[Errno 101] Network is unreachable]
> 11:09:24 [12/100]: url error [[Errno 101] Network is unreachable]
> 11:09:27 [13/100]: url error [[Errno 101] Network is unreachable]
> 11:09:30 [14/100]: url error [[Errno 101] Network is unreachable]
>
>
> I did iptables -t nat -A PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination $NOVA_API_IP:8773.
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Hyunsun Moon (hyunsun-moon) said : #2

Hi Vish,
thanks! It helped me a lot.

Hyunsun Moon (hyunsun-moon) said : #3

Thanks Vish Ishaya, that solved my question.