<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Kimi,<br>
    Thanks for the mail. Please see the inline comments below. Please
    note that at the moment we do not have packstack support for Quantum
    so there is a little manual plumbing that needs to be done (not sure
    if you have done this already).<br>
    On the host where the quantum service is running you need to run
    quantum-server-setup and on the compute nodes you need to run
    quantum-host-setup (please note that the relevant keystone
    credentials need to be set too).<br>
    Thanks<br>
    Gary<br>
    <br>
    On 04/28/2013 09:38 AM, Zhang, Kimi (NSN - CN/Cheng Du) wrote:
    <blockquote
cite="mid:90CF2062F86FD8498897037C7FBBC088046F52@SGSIMBX001.nsn-intra.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Exchange Server">
      converted from rtf
      <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
      <font face="Calibri" size="2"><span style="font-size: 11pt;">
          <div>When I start VM instance, the VM can’t get IP address.
            Could someone help me on this ?</div>
        </span></font></blockquote>
    <br>
    I will try<br>
    <blockquote
cite="mid:90CF2062F86FD8498897037C7FBBC088046F52@SGSIMBX001.nsn-intra.net"
      type="cite"><font face="Calibri" size="2"><span style="font-size:
          11pt;">
          <div> </div>
          <div>3 nodes Setup with RHEL 6.4 OS + rdo grizzly repository.</div>
          <ul style="margin:0;padding-left:36pt;">
            <li>Controller node:</li>
          </ul>
          <div style="padding-left:36pt;">Services:
            Keystone+Glance+Cinder+Quantum server + Nova services</div>
          <div style="padding-left:36pt;">Network: bond<font face="宋体">0</font>(10.68.125.11
            for O&M)</div>
          <div><font face="Times New Roman"> </font></div>
          <ul style="margin:0;padding-left:36pt;">
            <li>Network node:</li>
          </ul>
          <div style="padding-left:36pt;">Services: quantum-openvswitch<font
              face="宋体">-</font>agent,  quantum-l3-agent,
            quantum-dhcp-agent, quantum-metadata-agent</div>
          <div style="padding-left:36pt;">Network: bond0(10.68.125.15
            for O&M) , p3p1 for VM internal network, p3p2 for
            external network</div>
        </span></font></blockquote>
    <br>
    Please note that RHEL currently does not support namespaces so there
    are a number of limitations. We are addressing this at the moment.
    If namespaces are not used then it is suggested that one does not
    run the DHCP agent and the L3 agent on the same host. The reason for
    this is that there is no network isolation.<br>
    <br>
    <blockquote
cite="mid:90CF2062F86FD8498897037C7FBBC088046F52@SGSIMBX001.nsn-intra.net"
      type="cite"><font face="Calibri" size="2"><span style="font-size:
          11pt;">
          <div><font face="Times New Roman"> </font></div>
          <ul style="margin:0;padding-left:36pt;">
            <li>Compute node:</li>
          </ul>
          <div style="padding-left:36pt;">Services: nove-compute and
            quantum-openvswitch-agent</div>
          <div style="padding-left:36pt;">Network: bond0(10.68.125.16
            for O&M), p3p1 for VM internal network</div>
          <div style="padding-left:36pt;"><font face="Times New Roman"> </font></div>
          <ul style="margin:0;padding-left:36pt;">
            <li>Switch setup tagging for vlan 1000-2999 for p3p1
              ports(VM network) of network and compute nodes.</li>
          </ul>
          <div><font face="Times New Roman"> </font></div>
          <ol style="margin:0;padding-left:36pt;">
            <li>Quantum.conf:</li>
          </ol>
          <div>[DEFAULT]</div>
          <div>debug = True</div>
          <div>verbose = True</div>
          <div>lock_path = $state_path/lock</div>
          <div>bind_host = 0.0.0.0</div>
          <div>bind_port = 9696</div>
          <div>core_plugin =
            quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2</div>
          <div>api_paste_config = api-paste.ini</div>
          <div>rpc_backend = quantum.openstack.common.rpc.impl_kombu</div>
        </span></font></blockquote>
    <br>
    Are you using rabbit or qpid?<br>
    <br>
    <blockquote
cite="mid:90CF2062F86FD8498897037C7FBBC088046F52@SGSIMBX001.nsn-intra.net"
      type="cite"><font face="Calibri" size="2"><span style="font-size:
          11pt;">
          <div>control_exchange = quantum</div>
          <div>rabbit_host = 10.68.125.11</div>
          <div>notification_driver =
            quantum.openstack.common.notifier.rpc_notifier</div>
          <div>default_notification_level = INFO</div>
          <div>notification_topics = notifications</div>
          <div>[QUOTAS]</div>
          <div>[DEFAULT_SERVICETYPE]</div>
          <div>[AGENT]</div>
          <div>polling_interval = 2</div>
          <div>root_helper = sudo quantum-rootwrap
            /etc/quantum/rootwrap.conf</div>
          <div>[keystone_authtoken]</div>
          <div>auth_host = 10.68.125.11</div>
          <div>auth_port = 35357</div>
          <div>auth_protocol = http</div>
          <div>signing_dir = /var/lib/quantum/keystone-signing</div>
          <div>admin_tenant_name = service</div>
          <div>admin_user = quantum</div>
          <div>admin_password = password</div>
          <div><font face="Times New Roman"> </font></div>
          <ol start="2" style="margin:0;padding-left:36pt;">
            <li>ovs_quantum_plugin.ini</li>
          </ol>
          <div>[DATABASE]</div>
          <div>sql_connection =
            <a class="moz-txt-link-abbreviated" href="mailto:mysql://quantum:quantum@10.68.125.11:3306/ovs_quantum">mysql://quantum:quantum@10.68.125.11:3306/ovs_quantum</a></div>
          <div>reconnect_interval = 2</div>
          <div>[OVS]</div>
          <div>tenant_network_type = vlan</div>
          <div>network_vlan_ranges = physnet1:1000:2999</div>
          <div>bridge_mappings = physnet1:br-p3p1</div>
          <div>[AGENT]</div>
          <div>polling_interval = 2</div>
          <div>[SECURITYGROUP]</div>
          <div><font face="Times New Roman"> </font></div>
          <ol start="3" style="margin:0;padding-left:36pt;">
            <li>nova.conf</li>
          </ol>
          <div>[DEFAULT]</div>
          <div>verbose=true</div>
          <div>logdir = /var/log/nova</div>
          <div>state_path = /var/lib/nova</div>
          <div>lock_path = /var/lib/nova/tmp</div>
          <div>volumes_dir = /etc/nova/volumes</div>
          <div>dhcpbridge = /usr/bin/nova-dhcpbridge</div>
          <div>dhcpbridge_flagfile = /etc/nova/nova.conf</div>
          <div>force_dhcp_release = True</div>
          <div>injected_network_template =
            /usr/share/nova/interfaces.template</div>
          <div>libvirt_nonblocking = True</div>
          <div>libvirt_inject_partition = -1</div>
          <div>network_manager = nova.network.manager.FlatDHCPManager</div>
          <div>iscsi_helper = tgtadm</div>
          <div>compute_driver = libvirt.LibvirtDriver</div>
          <div>libvirt_type=kvm</div>
          <div>libvirt_ovs_bridge=br-int</div>
          <div>firewall_driver =
            nova.virt.libvirt.firewall.IptablesFirewallDriver</div>
          <div>manager=nova.conductor.manager.ConductorManager</div>
          <div>rpc_backend = nova.openstack.common.rpc.impl_kombu</div>
          <div>rabbit_host = 10.68.125.11</div>
          <div>rootwrap_config = /etc/nova/rootwrap.conf</div>
          <div>use_deprecated_auth=false</div>
          <div>auth_strategy=keystone</div>
          <div>glance_api_servers=10.68.125.11:9292</div>
          <div>image_service=nova.image.glance.GlanceImageService</div>
          <div>novnc_enabled=true</div>
          <div>novncproxy_base_url=<a class="moz-txt-link-freetext" href="http://10.68.125.11:6080/vnc_auto.html">http://10.68.125.11:6080/vnc_auto.html</a></div>
          <div>novncproxy_port=6080</div>
          <div>vncserver_proxyclient_address=10.68.125.16</div>
          <div>vncserver_listen=0.0.0.0</div>
          <div>libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver</div>
          <div>libvirt_use_virtio_for_bridges=True</div>
          <div>network_api_class=nova.network.quantumv2.api.API</div>
          <div>quantum_url=<a class="moz-txt-link-freetext" href="http://10.68.125.11:9696">http://10.68.125.11:9696</a></div>
          <div>quantum_auth_strategy=keystone</div>
          <div>quantum_admin_tenant_name=service</div>
          <div>quantum_admin_username=quantum</div>
          <div>quantum_admin_password=password</div>
          <div>quantum_admin_auth_url=<a class="moz-txt-link-freetext" href="http://10.68.125.11:35357/v2.0">http://10.68.125.11:35357/v2.0</a></div>
          <div>linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver</div>
          <div>libvirt_vif_type=ethernet</div>
          <div>service_quantum_metadata_proxy = True</div>
          <div>quantum_metadata_proxy_shared_secret = helloOpenStack</div>
          <div>metadata_host = 10.68.125.11</div>
          <div>metadata_listen = 0.0.0.0</div>
          <div>metadata_listen_port = 8775</div>
          <div>[keystone_authtoken]</div>
          <div>admin_tenant_name = service</div>
          <div>admin_user = nova</div>
          <div>admin_password = password</div>
          <div>auth_host = 10.68.125.11</div>
          <div>auth_port = 35357</div>
          <div>auth_protocol = http</div>
          <div>signing_dir = /tmp/keystone-signing-nova</div>
          <div><font face="Times New Roman"> </font></div>
          <ol start="4" style="margin:0;padding-left:36pt;">
            <li>ovs-vsctl show on network node:</li>
          </ol>
          <div>aeeb6cf7-271b-405a-aa17-1b95bcd9e301</div>
          <div>    Bridge "br-p3p1"</div>
          <div>        Port "p3p1"</div>
          <div>            Interface "p3p1"</div>
          <div>        Port "phy-br-p3p1"</div>
          <div>            Interface "phy-br-p3p1"</div>
          <div>        Port "br-p3p1"</div>
          <div>            Interface "br-p3p1"</div>
          <div>                type: internal</div>
          <div>    Bridge br-ex</div>
          <div>        Port br-ex</div>
          <div>            Interface br-ex</div>
          <div>                type: internal</div>
          <div>        Port "qg-a83c0abd-f4"</div>
          <div>            Interface "qg-a83c0abd-f4"</div>
          <div>                type: internal</div>
          <div>        Port "p3p2"</div>
          <div>            Interface "p3p2"</div>
          <div>    Bridge br-int</div>
          <div>        Port br-int</div>
          <div>            Interface br-int</div>
          <div>                type: internal</div>
          <div>        Port "int-br-p3p1"</div>
          <div>            Interface "int-br-p3p1"</div>
          <div>        Port "tap1f386a2a-12"</div>
          <div>            tag: 1</div>
          <div>            Interface "tap1f386a2a-12"</div>
          <div>                type: internal</div>
          <div style="text-indent:9pt;">ovs_version: "1.9.0"</div>
          <div style="text-indent:9pt;"><font face="Times New Roman"> </font></div>
          <ol start="5" style="margin:0;padding-left:36pt;">
            <li>ovs-vsctl show on compute node:</li>
          </ol>
          <div>8d6c2637-ff69-4a2d-a7db-e4f181273bc0</div>
          <div>    Bridge "br-p3p1"</div>
          <div>        Port "br-p3p1"</div>
          <div>            Interface "br-p3p1"</div>
          <div>                type: internal</div>
          <div>        Port "phy-br-p3p1"</div>
          <div>            Interface "phy-br-p3p1"</div>
          <div>        Port "p3p1"</div>
          <div>            Interface "p3p1"</div>
          <div>    Bridge br-int</div>
          <div>        Port "qvo56a4572c-dc"</div>
          <div>            tag: 2</div>
          <div>            Interface "qvo56a4572c-dc"</div>
          <div>        Port "int-br-p3p1"</div>
          <div>            Interface "int-br-p3p1"</div>
          <div>        Port br-int</div>
          <div>            Interface br-int</div>
          <div>                type: internal</div>
          <div style="text-indent:9pt;">ovs_version: "1.9.0"</div>
          <div><font face="Times New Roman"> </font></div>
          <div>On compute node, I can see dhcp request packet from
            tcpdump on qvo56a4572c-dc, but it seems the packet is not
            forwarded out since I can’t see packet from int-br-p3p1 on
            br-int or any port from br-p3p1. </div>
        </span></font></blockquote>
    <br>
    Any chance to get the DHCP and the L3 agent configuration files?
    Please check that use_namespaces = False in both of these files.<br>
    <br>
    Are there any log errors?<br>
    <br>
    <blockquote
cite="mid:90CF2062F86FD8498897037C7FBBC088046F52@SGSIMBX001.nsn-intra.net"
      type="cite"><font face="Calibri" size="2"><span
          style="font-size:11pt;">
          <div><font face="Times New Roman"> </font></div>
          <div><font face="Times New Roman"> </font></div>
          <div>Thank you!</div>
          <div><font face="Times New Roman"> </font></div>
          <div><font face="Times New Roman"> </font></div>
          <div>Regards,</div>
          <div>Kimi</div>
          <div><font face="Times New Roman"> </font></div>
          <div><font face="Times New Roman"> </font></div>
          <div><font face="Times New Roman"> </font></div>
        </span></font>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Rdo-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rdo-list@redhat.com">Rdo-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/rdo-list">https://www.redhat.com/mailman/listinfo/rdo-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>