Ask Your Question
0

How can I make server.config.template?

asked 2011-04-12 11:12:21 -0500

hyunsun-moon gravatar image

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 (http://169.254.169.254/2009-04-04/met...) 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.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2011-04-13 01:25:47 -0500

hyunsun-moon gravatar image

Thanks Vish Ishaya, that solved my question.

edit flag offensive delete link more
0

answered 2011-04-12 16:44:05 -0500

vishvananda gravatar image

This might help

https://code.launchpad.net/~vishvanan...

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

Question #152522 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

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/met... 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).

edit flag offensive delete link more
0

answered 2011-04-13 01:25:29 -0500

hyunsun-moon gravatar image

Hi Vish, thanks! It helped me a lot.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-04-12 11:12:21 -0500

Seen: 21 times

Last updated: Apr 13 '11