{"id":13715,"date":"2015-03-09T11:59:26","date_gmt":"2015-03-09T02:59:26","guid":{"rendered":"http:\/\/labs.gree.jp\/blog\/?p=13715"},"modified":"2015-03-09T11:59:26","modified_gmt":"2015-03-09T02:59:26","slug":"neutron-%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2015\/03\/13715\/","title":{"rendered":"Neutron \u30b5\u30fc\u30d3\u30b9\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4f5c\u308a\u65b9"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u3000\u3053\u3093\u306b\u3061\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u672c\u90e8\u306e\u5927\u5c71\u88d5\u6cf0\u3067\u3059\u3002\u4eca\u56de\u306f OpenStack \u3092\u3088\u308a\u67d4\u8edf\u306a\u74b0\u5883\u306b\u62e1\u5f35\u3067\u304d\u308b\u5c0f\u30cd\u30bf\u3092\u3054\u7d39\u4ecb\u81f4\u3057\u307e\u3059\u3002<br \/>\n\u3000<a href='http:\/\/labs.gree.jp\/blog\/2015\/02\/13598\/'>\u524d\u56de\u306e\u30a8\u30f3\u30c8\u30ea<\/a>\u3067\u3082\u8ff0\u3079\u307e\u3057\u305f\u304c Neutron \u3067\u306f\u30b3\u30f3\u30d4\u30e5\u30fc\u30c8\u30ce\u30fc\u30c9\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u5236\u5fa1\u3057\u305f\u308a\u3001\u72ec\u81ea\u306e\u62e1\u5f35\u6a5f\u80fd\u3092\u672c\u4f53\u306e\u6a5f\u80fd\u3068\u9023\u643a\u3055\u305b\u305f\u308a\u3068\u3044\u3063\u305f\u4e8b\u304c\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u69cb\u306b\u3088\u3063\u3066\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3000\u4eca\u56de\u306f\u3001Neutron \u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u69cb\u306b\u3064\u3044\u3066\u3068\u3001\u30eb\u30fc\u30bf\u306b\u5bfe\u3059\u308b\u5404\u7a2e\u64cd\u4f5c\u306b\u540c\u671f\u3059\u308b Neutron L3 \u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4ed5\u7d44\u307f\u3068\u5b9f\u88c5\u306b\u3064\u3044\u3066\u898b\u3066\u3086\u304d\u307e\u3059\u3002<br \/>\n\u3000\u307e\u305f\u3001\u4eca\u56de\u7d39\u4ecb\u3059\u308b\u624b\u6cd5\u3092\u5fdc\u7528\u3059\u308b\u3053\u3088\u306b\u3088\u3063\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>Floating-IP \u5272\u5f53\/\u524a\u9664\u6642\u306b\u304a\u3051\u308b DNS \u3068\u306e\u9023\u643a<\/li>\n<li>\u30c6\u30ca\u30f3\u30c8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3001\u53ca\u3073 Flaoting-IP \u306e\u4f5c\u6210\/\u66f4\u65b0\/\u524a\u9664\u306b\u4f34\u3046\u8ab2\u91d1\u30b7\u30b9\u30c6\u30e0\u3068\u306e\u9023\u643a<\/li>\n<\/ul>\n<p>\u3000\u307e\u305a\u306f Neutron \u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u69cb\u306b\u3064\u3044\u3066\u5c11\u3057\u8a73\u3057\u304f\u898b\u3066\u3086\u304d\u307e\u3059\u3002<\/p>\n<h2>Neutron \u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u69cb<\/h2>\n<h3>\u300c\u30b3\u30a2\u30d7\u30e9\u30b0\u30a4\u30f3\u300d\u3068\u300c\u30b5\u30fc\u30d3\u30b9\u30d7\u30e9\u30b0\u30a4\u30f3\u300d<\/h3>\n<p>\u3000\u5192\u982d\u3067\u8ff0\u3079\u305f\u3088\u3046\u306b Neutorn \u3067\u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d7\u30ec\u30fc\u30f3\u3092\u5b9f\u73fe\u3059\u308b\u300c\u30b3\u30a2\u30d7\u30e9\u30b0\u30a4\u30f3\u300d\u306b\u52a0\u3048\u3066\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u95a2\u3059\u308b\u69d8\u3005\u306a\u6a5f\u80fd\u3092\u300c\u30b5\u30fc\u30d3\u30b9\u30d7\u30e9\u30b0\u30a4\u30f3\u300d\u3068\u3044\u3046\u5f62\u3067 OpenStack Networking \u306e\u30e1\u30a4\u30f3\u30d7\u30ed\u30bb\u30b9\u3067\u3042\u308b neutron-server \u304b\u3089\u5207\u308a\u96e2\u3057\u3066\u4f7f\u3048\u308b\u8a2d\u8a08\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3000Neutron \u306f\u3001\u4eca\u56de\u7d39\u4ecb\u3059\u308b\u3001\u30eb\u30fc\u30bf\u3084 Floating-IP \u306e\u7ba1\u7406\u306a\u3069\u306e L3 \u6a5f\u80fd\u306b\u52a0\u3048\u3001VPN \u3084 LB\u3001FW \u306a\u3069\u3068\u3044\u3063\u305f\u6a5f\u80fd\u6bce\u306b\u300c\u30b5\u30fc\u30d3\u30b9\u30bf\u30a4\u30d7\u300d\u3092\u898f\u7a0b\u3057\u3066\u304a\u308a\u3001\u30e6\u30fc\u30b6\u306f\u30b5\u30fc\u30d3\u30b9\u30bf\u30a4\u30d7\u6bce\u306b\u305d\u308c\u305e\u308c\u306e\u74b0\u5883\u304c\u5fc5\u8981\u3068\u3057\u3066\u3044\u308b\u8981\u4ef6\u3092\u6e80\u305f\u3059\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u5b9f\u88c5\u3092\u4e00\u3064\u9078\u629e\u3057\u3066\u5229\u7528\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3000\u4ee5\u4e0b\u304c OpenStack Juno \u7248\u306b\u304a\u3051\u308b\u5404\u30b5\u30fc\u30d3\u30b9\u30bf\u30a4\u30d7\u306e\u4e00\u89a7\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<table border='1'>\n<tr>\n<th>\u30b5\u30fc\u30d3\u30b9\u30bf\u30a4\u30d7<\/th>\n<th>\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u7a2e\u5225<\/th>\n<\/tr>\n<tr>\n<td>LOADBALANCER<\/td>\n<td><a href='https:\/\/wiki.openstack.org\/wiki\/Neutron\/LBaaS'>LBaaS<\/a> \u306e\u30d7\u30e9\u30b0\u30a4\u30f3<\/td>\n<\/tr>\n<tr>\n<td>FIREWALL<\/td>\n<td><a href='https:\/\/wiki.openstack.org\/wiki\/Neutron\/FWaaS'>FWaaS<\/a> \u306e\u30d7\u30e9\u30b0\u30a4\u30f3<\/td>\n<\/tr>\n<tr>\n<td>VPN<\/td>\n<td><a href='https:\/\/wiki.openstack.org\/wiki\/Neutron\/VPNaaS'>VPNaaS<\/a> \u306e\u30d7\u30e9\u30b0\u30a4\u30f3<\/td>\n<\/tr>\n<tr>\n<td>METERING<\/td>\n<td>\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u6d41\u91cf\u8a08\u6e2c\u6a5f\u80fd (<a href='https:\/\/wiki.openstack.org\/wiki\/Neutron\/Metering\/Bandwidth'>Neutron Metering<\/a>) \u306e\u30d7\u30e9\u30b0\u30a4\u30f3<\/td>\n<\/tr>\n<tr>\n<td>L3_ROUTER_NAT<\/td>\n<td>\u30eb\u30fc\u30bf (L3) \u95a2\u9023\u6a5f\u80fd\u306e\u30d7\u30e9\u30b0\u30a4\u30f3<\/td>\n<\/tr>\n<\/table>\n<p>\u3000\u307e\u305f\u3001\u30b3\u30a2\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u30b5\u30fc\u30d3\u30b9\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u305d\u308c\u305e\u308c Neutorn \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb (\/etc\/neutron\/neutron.conf) \u306e core_plugin \u3068 service_plugins \u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f neutron.conf \u306b\u304a\u3051\u308b\u4e21\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u629c\u7c8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre title=\"neutron.conf\">\n> core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin\n> service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPlugin,neutron.services.metering.metering_plugin.MeteringPlugin,neutron_vpnaas.services.vpn.plugin.VPNDriverPlugin,neutron_fwaas.services.firewall.fwaas_plugin.FirewallPlugin\n<\/pre>\n<p>\u3000<br \/>\n\u3000\u30b3\u30a2\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30d1\u30e9\u30e1\u30fc\u30bf (core_plugin) \u3067\u306f\u4e00\u3064\u306e\u5024 (neutron.plugins.ml2.plugin.Ml2Plugin) \u3060\u3051\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30b5\u30fc\u30d3\u30b9\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30d1\u30e9\u30e1\u30fc\u30bf (service_plugins) \u306b\u306f\u30ea\u30b9\u30c8\u5f62\u5f0f\u3067\u8907\u6570\u306e\u5024\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3000\u5148\u306b\u8ff0\u3079\u305f\u3088\u3046\u306b\u3001\u30b5\u30fc\u30d3\u30b9\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u5404\u30b5\u30fc\u30d3\u30b9\u30bf\u30a4\u30d7\u6bce\u306b\u4e00\u3064\u3057\u304b\u6307\u5b9a\u3055\u308c\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u5024\u306f\u305d\u308c\u305e\u308c\u30b5\u30fc\u30d3\u30b9\u30bf\u30a4\u30d7\u6bce\u306e\u30b5\u30fc\u30d3\u30b9\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002\u3069\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u3069\u306e\u30b5\u30fc\u30d3\u30b9\u30bf\u30a4\u30d7\u306e\u3082\u306e\u304b\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u5b9f\u88c5\u5074\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u5f8c\u3067 L3 \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5b9f\u969b\u306b\u4f5c\u6210\u3059\u308b\u969b\u306b\u898b\u3066\u3086\u304d\u307e\u3059\u3002<\/p>\n<h3>\u62e1\u5f35 (Extension) \u6a5f\u80fd<\/h3>\n<p>\u3000Neutron \u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u69cb\u306e\u8a2d\u8a08\u3067\u3082\u3046\u4e00\u3064\u91cd\u8981\u306a\u4ed5\u7d44\u307f\u304c <a href='https:\/\/wiki.openstack.org\/wiki\/NeutronDevelopment#API_Extensions'>\u62e1\u5f35 (Extension) \u6a5f\u80fd<\/a> \u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u5404\u7a2e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u7d4c\u7531\u3057\u3066 Neutron \u672c\u4f53\u306e API \u3084\u6a5f\u80fd\u306e\u62e1\u5f35\u3092\u884c\u3046\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u4e00\u3064\u4ee5\u4e0a\u306e\u62e1\u5f35\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u5f53\u8a72\u62e1\u5f35\u6a5f\u80fd\u304c\u63d0\u4f9b\u3059\u308b API \u30b3\u30fc\u30eb\u3092\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3057\u72ec\u81ea\u306e\u5b9f\u88c5\u3092\u52a0\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5f8c\u8ff0\u3059\u308b L3 \u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u306f <a href='https:\/\/github.com\/openstack\/neutron\/blob\/master\/neutron\/extensions\/l3.py'>router \u62e1\u5f35\u6a5f\u80fd<\/a> \u3092\u5b9f\u969b\u306b\u4f7f\u3044\u3001Floating IP \u30a2\u30c9\u30ec\u30b9\u306e\u4f5c\u6210 \/ \u524a\u9664\u306e\u51e6\u7406\u3092\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>L3 \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f5c\u3063\u3066\u307f\u305f<\/h2>\n<p>\u3000\u3067\u306f\u5b9f\u969b\u306b L3_ROUTER \u30b5\u30fc\u30d3\u30b9\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f5c\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3000\u4eca\u56de\u4f5c\u6210\u3057\u305f L3 \u30d7\u30e9\u30b0\u30a4\u30f3 (L3GREEPlugin) \u3067\u306f <a href='https:\/\/github.com\/openstack\/neutron\/blob\/master\/neutron\/extensions\/l3.py'>router \u62e1\u5f35\u6a5f\u80fd<\/a> \u3092\u7528\u3044\u3066\u3001Neutron \u306e L3 \u95a2\u9023\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 (\u30eb\u30fc\u30bf, Floating IP \u30a2\u30c9\u30ec\u30b9) \u306e \u4f5c\u6210, \u66f4\u65b0, \u53d6\u5f97, \u524a\u9664\u51e6\u7406\u3092\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5b9f\u969b\u306b\u306f\u4f8b\u3068\u3057\u3066\u3001Floating-IP \u306e\u4f5c\u6210\/\u524a\u9664\u306b\u540c\u671f\u3057\u3066\u30ed\u30b0\u3092\u51fa\u529b\u3059\u308b\u51e6\u7406\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\uff08\u305d\u306e\u4ed6\u306e\u51e6\u7406\u306b\u3064\u3044\u3066\u3082\u540c\u69d8\u306b\u3057\u3066\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\uff09\u3002\u4ee5\u4e0b\u304c\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5168\u6587\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true\" title=\"neutron\/services\/l3_router\/l3_gree.py\">\nfrom oslo_config import cfg\nfrom oslo_utils import importutils\n\nfrom neutron.common import constants as q_const\nfrom neutron.db import common_db_mixin\nfrom neutron.db import l3_db\nfrom neutron.plugins.common import constants\n\nfrom neutron.openstack.common import log as logging\n\nLOG = logging.getLogger(__name__)\n\nclass L3GREEPlugin(common_db_mixin.CommonDbMixin, l3_db.L3_NAT_db_mixin):\n    \"\"\"Implementation of the Neutron L3 Router Service Plugin.\"\"\"\n\n    supported_extension_aliases = [\"router\"]\n\n    def __init__(self):\n        super(L3GREEPlugin, self).__init__()\n\n    def get_plugin_type(self):\n        return constants.L3_ROUTER_NAT\n\n    def get_plugin_description(self):\n        return \"L3 Router Service Plugin for test (this method must be specified).\"\n\n    def create_floatingip(self, context, floatingip):\n        LOG.info(\"[GREE] [create_floatingip]\")\n        return super(L3GREEPlugin, self).create_floatingip(\n            context, floatingip,\n            initial_status=q_const.FLOATINGIP_STATUS_DOWN)\n\n    def delete_floatingip(self, context, floatingip):\n        LOG.info(\"[GREE] [delete_floatingip]\")\n        return super(L3GREEPlugin, self).delete_floatingip(context, floatingip)\n<\/pre>\n<p>\u3000\u307e\u305a L3GREEPlugin \u304c\u7d99\u627f\u3057\u3066\u3044\u308b\u89aa\u30af\u30e9\u30b9 (13\u884c\u76ee) \u3067\u3059\u304c\u3001\u4e00\u3064\u76ee\u306e\u89aa\u30af\u30e9\u30b9\u3068\u3057\u3066\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b CommonDbMixin \u306f\u3001\u30b3\u30a2\/\u30b5\u30fc\u30d3\u30b9\u30d7\u30e9\u30b0\u30a4\u30f3\u5171\u901a\u3067\u5229\u7528\u3055\u308c\u308b\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30e1\u30bd\u30c3\u30c9\u304c\u5b9a\u7fa9\u3055\u308c\u305f\u30af\u30e9\u30b9\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u3057\u3066\u4e8c\u3064\u76ee\u306e\u89aa\u30af\u30e9\u30b9 L3_NAT_db_mixin \u306f\u3001\u5404\u7a2e L3 \u95a2\u9023\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 (\u30eb\u30fc\u30bf, Floating-IP, \u30dd\u30fc\u30c8\u306a\u3069) \u306e DB \u30e2\u30c7\u30eb\u306b\u5bfe\u3059\u308b\u51e6\u7406\u3092\u898f\u7a0b\u3057\u305f\u30af\u30e9\u30b9\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3000\u307e\u305f\u30af\u30e9\u30b9\u5909\u6570 supported_extension_aliases \u306b\u3088\u3063\u3066\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u5229\u7528\u3059\u308b\u62e1\u5f35\u6a5f\u80fd\u3092\u9078\u629e\u3057\u307e\u3059(16\u884c\u76ee)\u3002\u3053\u3053\u3067\u306f \"router\" \u62e1\u5f35\u6a5f\u80fd\u3092\u9078\u629e\u3057\u3001L3 \u95a2\u9023\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 (\u30eb\u30fc\u30bf\u3001\u53ca\u3073 Flaoting IP \u30a2\u30c9\u30ec\u30b9) \u306e\u30ea\u30bd\u30fc\u30b9\u3092 Neutron \u672c\u4f53\u304b\u3089\u6271\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3000\u7d9a\u3044\u3066 get_plugin_type \u30e1\u30bd\u30c3\u30c9 (21\u884c\u76ee) \u306b\u3088\u3063\u3066\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30b5\u30fc\u30d3\u30b9\u30bf\u30a4\u30d7\u3092\u6307\u5b9a\u3057\u3001get_plugin_description \u30e1\u30bd\u30c3\u30c9 (24\u884c\u76ee) \u306b\u3088\u3063\u3066\u5f53\u8a72\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u3069\u3093\u306a\u3082\u306e\u304b\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u304c\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30ed\u30fc\u30c9\u3059\u308b\u969b\u306b\u547c\u3073\u51fa\u3057\u3001\u7d50\u679c\u3092\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u306b\u51fa\u529b\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u52d5\u4f5c\u3068\u3057\u3066\u306f\u3068\u304f\u306b\u5f71\u97ff\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u3053\u308c\u3092\u5ba3\u8a00\u3057\u306a\u3044\u3068\u30b5\u30fc\u30d3\u30b9\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u5074\u3067\u30e1\u30bd\u30c3\u30c9\u30b3\u30fc\u30eb\u306b\u5931\u6557\u3057 neutron-server \u30d7\u30ed\u30bb\u30b9\u304c\u505c\u6b62\u3057\u307e\u3059\u3002<br \/>\n\u3000\u305d\u3057\u3066\u6700\u5f8c\u306b\u3001Floating IP \u30a2\u30c9\u30ec\u30b9\u306e\u5272\u5f53\/\u89e3\u653e\u51e6\u7406\u3092\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3059\u308b create_floatingip \/ delete_floatingip \u30e1\u30bd\u30c3\u30c9 (27\u884c\u76ee\/33\u884c\u76ee) \u3092\u5ba3\u8a00\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306f router \u62e1\u5f35\u6a5f\u80fd (extensions\/l3.py) \u3067\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u5b9a\u7fa9\u3055\u308c\u3001L3GREEPlugin \u306e\u89aa\u30af\u30e9\u30b9 (L3_NAT_db_mixin) \u3067\u5b9f\u88c5\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3001\u547c\u3073\u51fa\u3055\u308c\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u30ed\u30b0\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u66f8\u304d\u51fa\u3057\u305f\u5f8c\u3001\u901a\u5e38\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002\u5c1a\u3001router \u62e1\u5f35\u6a5f\u80fd\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e1\u30bd\u30c3\u30c9\u306e\u4e00\u89a7\u306f <a href='https:\/\/github.com\/openstack\/neutron\/blob\/master\/neutron\/extensions\/l3.py#L217'>RouterPluginbase \u30af\u30e9\u30b9\u306e\u5b9a\u7fa9<\/a> \u304b\u3089\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u52d5\u304b\u3057\u3066\u307f\u305f<\/h2>\n<p>\u3000\u4ee5\u4e0a\u3067\u8ff0\u3079\u305f Neutron \u306e\u72ec\u81ea\u30d7\u30e9\u30b0\u30a4\u30f3 (L3GREEPlugin) \u3092\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3000\u307e\u305a\u306f\u30b5\u30fc\u30d3\u30b9\u30bf\u30a4\u30d7 \"L3_ROUTER_NAT\" \u306e\u30b5\u30fc\u30d3\u30b9\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3057\u3066\u3001\u4f5c\u6210\u3057\u305f\u30b5\u30fc\u30d3\u30b9\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3088\u3046\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30ce\u30fc\u30c9\u306e neutron.conf \u3092\u4fee\u6b63\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u5148\u307b\u3069\u793a\u3057\u305f\u5185\u5bb9\u3068\u306e\u5dee\u5206\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:diff decode:true\" title=\"\/etc\/neutron\/neutron.conf\">\n--- neutron.conf.old    2015-03-08 18:58:00.216617584 +0900\n+++ neutron.conf        2015-03-08 18:57:52.024428677 +0900\n@@ -12,7 +12,7 @@\n policy_file = \/etc\/neutron\/policy.json\n debug = True\n verbose = True\n-service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPlugin,neutron.services.metering.metering_plugin.MeteringPlugin,neutron_vpnaas.services.vpn.plugin.VPNDriverPlugin,neutron_fwaas.services.firewall.fwaas_plugin.FirewallPlugin\n+service_plugins = neutron.services.l3_router.l3_gree.L3GREEPlugin,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPlugin,neutron.services.metering.metering_plugin.MeteringPlugin,neutron_vpnaas.services.vpn.plugin.VPNDriverPlugin,neutron_fwaas.services.firewall.fwaas_plugin.FirewallPlugin\n core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin\n rabbit_userid = stackrabbit\n rabbit_password = pass\n<\/pre>\n<p>\u3000<br \/>\n\u3000\u6b21\u306b neutron-server \u30d7\u30ed\u30bb\u30b9\u3092\u518d\u8d77\u52d5\u3055\u305b\u3001horizon \u304b\u3089 Floating IP \u30a2\u30c9\u30ec\u30b9\u306e\u5272\u5f53\/\u89e3\u653e\u3092\u5b9f\u65bd\u3057\u3066\u3001\u671f\u5f85\u901a\u308a\u306b\u52d5\u4f5c\u3059\u308b\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3000<img src='http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2015\/03\/Screenshot_from_2015-03-08-175008.png'\/><\/p>\n<p>\u3000Floating IP \u30a2\u30c9\u30ec\u30b9\u3092\u5272\u308a\u5f53\u3066\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30ed\u30b0\u304c neutron-server \u306e\u30ed\u30b0\u306b\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<pre title='\/var\/log\/neutron\/server.log'>\n2015-03-08 08:46:14.670 INFO neutron.services.l3_router.l3_gree [req-46d11ec0-d0c5-4b76-b37e-a25c91f0c0b0 admin b74978e2119a4a839ee3b037ace54a0a] [GREE] [create_floatingip]\n<\/pre>\n<p>\u3000\u7d9a\u3044\u3066\u3001\u5272\u308a\u5f53\u3066\u305f Floating IP \u30a2\u30c9\u30ec\u30b9\u3092\u524a\u9664\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3000<img src='http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2015\/03\/Screenshot_from_2015-03-08-175018.png'\/><\/p>\n<p>\u3000\u540c\u69d8\u306b\u4ee5\u4e0b\u306e\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<pre title='\/var\/log\/neutron\/server.log'>\n2015-03-08 08:46:39.553 INFO neutron.services.l3_router.l3_gree [req-90ca1413-628c-4522-9826-5635367c9e26 admin b74978e2119a4a839ee3b037ace54a0a] [GREE] [delete_floatingip]\n<\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3000\u3044\u304b\u304c\u3060\u3063\u305f\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u3053\u3067\u306f\u3054\u304f\u7c21\u5358\u306a\u4f8b\u3057\u304b\u793a\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u3053\u3053\u3067\u7d39\u4ecb\u3057\u305f\u30c6\u30af\u30cb\u30c3\u30af\u3092\u5fdc\u7528\u3059\u308b\u3053\u3068\u3067\u5192\u982d\u3067\u8ff0\u3079\u305f\u3088\u3046\u306b\u4ed6\u306e\u30b7\u30b9\u30c6\u30e0\u3068\u306e\u9023\u643a\u3067\u3042\u3063\u305f\u308a\u3001\u72ec\u81ea\u51e6\u7406\u306e\u8ffd\u52a0\u3068\u3044\u3063\u305f\u4e8b\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a OpenStack \u3092\u3088\u308a\u67d4\u8edf\u306b\u904b\u7528\u3057\u3066\u3086\u304f\u4e8b\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u3000\u3053\u3093\u306b\u3061\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u672c\u90e8\u306e\u5927\u5c71\u88d5\u6cf0\u3067\u3059\u3002\u4eca\u56de\u306f OpenStack \u3092\u3088\u308a\u67d4\u8edf\u306a\u74b0\u5883\u306b\u62e1\u5f35\u3067\u304d\u308b\u5c0f\u30cd\u30bf\u3092\u3054\u7d39\u4ecb\u81f4\u3057\u307e\u3059\u3002 \u3000\u524d\u56de\u306e\u30a8\u30f3\u30c8\u30ea\u3067\u3082\u8ff0\u3079\u307e\u3057\u305f\u304c Neutron \u3067\u306f\u30b3\u30f3\u30d4\u30e5\u30fc\u30c8\u30ce\u30fc\u30c9\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8 [&hellip;]<\/p>\n","protected":false},"author":121,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[81],"class_list":["post-13715","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-openstack"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/13715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/121"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=13715"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/13715\/revisions"}],"predecessor-version":[{"id":13722,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/13715\/revisions\/13722"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=13715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=13715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=13715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}