instances in multi node mode can't reach metadata_host
Bug #968453 reported by
Peng Yong
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Peng Yong |
Bug Description
i install multi node openstack on centos. the instance on computes would connect to metadata_host for metadata.
ec2_host=
metadata_
my_ip=192.168.28.7 # compute node
the instance can't connect to metadata_host, here is iptables:
-A nova-network-
-A nova-network-snat -s 10.9.0.0/16 -j SNAT --to-source 192.168.28.7
i modify the ipfilter, and it works:
-A nova-network-snat -s 10.9.0.0/16 -o eth0 -j SNAT --to-source 192.168.28.7
Changed in nova: | |
assignee: | nobody → Peng Yong (ppyy) |
status: | New → In Progress |
Changed in nova: | |
assignee: | Peng Yong (ppyy) → Vish Ishaya (vishvananda) |
Changed in nova: | |
assignee: | Vish Ishaya (vishvananda) → Peng Yong (ppyy) |
Changed in nova: | |
milestone: | none → 2012.1 |
To post a comment you must log in.
This can be done with dmz_cidr. Since dmz_cidr is not obvious, perhaps a change like the following is actually better:
diff --git a/nova/ network/ linux_net. py b/nova/ network/ linux_net. py network/ linux_net. py network/ linux_net. py ip_range= None): snat_rule( ip_range)
index 7258e62..908c96b 100755
--- a/nova/
+++ b/nova/
@@ -442,6 +442,10 @@ def init_host(
add_
iptables_ manager. ipv4['nat' ].add_rule( 'POSTROUTING' , host)) manager. ipv4['nat' ].add_rule( 'POSTROUTING' ,
'-s %s -d %s -j ACCEPT' %
(ip_range, FLAGS.dmz_cidr))
+ '-s %s -d %s/32 -j ACCEPT' %
+ (ip_range, FLAGS.metadata_
+
+ iptables_