← Back to team overview

openstack team mailing list archive

Re: [quantum][folsom] error with dhcp agent

 

Hi,

Thanks for your kind reply. I fixed it. I am installing folsom. I had to put selinux in permissive mode for the second error. 





Date: Thu, 11 Apr 2013 17:36:38 +0300
From: gkotton@xxxxxxxxxx
To: arindam@xxxxxxxx
CC: openstack@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Openstack] [quantum][folsom] error with dhcp agent


  
    
  
  
    On 04/11/2013 01:59 PM, Arindam Choudhury wrote:
    
      
      Hi,

        

        I am trying to install openstack folsom on fedora 18. while
        installing quantum I am having this problem:

        

        # cat dhcp-agent.log 

        2013-04-11 12:53:31     INFO [quantum.common.config] Logging
        enabled!

        2013-04-11 12:55:39    ERROR
        [quantum.openstack.common.rpc.impl_qpid] Unable to connect to
        AMQP server: [Errno 110] ETIMEDOUT. Sleeping 1 seconds

      
    
    

    Did you run the script - quantum-dhcp-setup? If so you would be
    prompted to indicate the IP address of the message broker (QPID in
    this case).

    

    
      

        # cat openvswitch-agent.log 

        2013-04-11 12:53:22     INFO [quantum.common.config] Logging
        enabled!

        2013-04-11 12:53:22     INFO
        [quantum.plugins.openvswitch.agent.ovs_quantum_agent] Bridge
        mappings: {}

        2013-04-11 12:53:22    ERROR [quantum.agent.linux.ovs_lib]
        Unable to execute ['ovs-vsctl', '--timeout=2', '--',
        '--if-exists', 'del-port', 'br-int', 'patch-tun']. Exception: 

        Command: ['sudo', 'quantum-rootwrap',
        '/etc/quantum/rootwrap.conf', 'ovs-vsctl', '--timeout=2', '--',
        '--if-exists', 'del-port', 'br-int', 'patch-tun']

        Exit code: 1

        Stdout: ''

      
    
    

    Are you using the Grizzly packages? This issue was fixed a few days
    ago. 

    

    
      Stderr: 'Traceback (most recent call last):\n  File
        "/usr/bin/quantum-rootwrap", line 95, in <module>\n   
        env=filtermatch.get_environment(userargs))\n  File
        "/usr/lib64/python2.7/subprocess.py", line 679, in __init__\n   
        errread, errwrite)\n  File "/usr/lib64/python2.7/subprocess.py",
        line 1249, in _execute_child\n    raise
        child_exception\nOSError: [Errno 13] Permission denied\n'

        2013-04-11 12:53:22    ERROR [quantum.agent.linux.ovs_lib]
        Unable to execute ['ovs-ofctl', 'del-flows', 'br-int'].
        Exception: 

        Command: ['sudo', 'quantum-rootwrap',
        '/etc/quantum/rootwrap.conf', 'ovs-ofctl', 'del-flows',
        'br-int']

        Exit code: 1

        Stdout: ''

        Stderr: 'ovs-ofctl: br-int is not a bridge or a socket\n'

        2013-04-11 12:53:23    ERROR [quantum.agent.linux.ovs_lib]
        Unable to execute ['ovs-ofctl', 'add-flow', 'br-int',
        'hard_timeout=0,idle_timeout=0,priority=1,actions=normal'].
        Exception: 

        Command: ['sudo', 'quantum-rootwrap',
        '/etc/quantum/rootwrap.conf', 'ovs-ofctl', 'add-flow', 'br-int',
        'hard_timeout=0,idle_timeout=0,priority=1,actions=normal']

        Exit code: 1

        Stdout: ''

        Stderr: 'ovs-ofctl: br-int is not a bridge or a socket\n'

        2013-04-11 12:55:30    ERROR
        [quantum.openstack.common.rpc.impl_qpid] Unable to connect to
        AMQP server: [Errno 110] ETIMEDOUT. Sleeping 1 seconds

        

        

        

        I have followed these instructions:

        [(keystone_admin)]$ keystone service-create --name openstack_network --type network --description "Openstack Networking Service"+-------------+----------------------------------+|   Property  |              Value               |+-------------+----------------------------------+| description |   Openstack Networking Service   ||      id     | cdc15413851341e7a1a827672b81c8e8 ||     name    |        openstack_network !
         |<
/div>|     type    |             network              |+-------------+----------------------------------+[(keystone_admin)]$ keystone endpoint-create --region RegionOne --service-id cdc15413851341e7a1a827672b81c8e8 --publicurl 'http://109.158.65.21:9696' --adminurl 'http://109.158.65.21:9696' --internalurl 'http://109.158.65.21:9696'+-------------+----------------------------------+|   Pro!
 perty  |  
            Value               |+-------------+----------------------------------+|   adminurl  |    http://109.158.65.21:9696     ||      id     | 16668a90ff0445068b8e9fc01d568b89 || internalurl |    http://109.158.65.21:9696     ||  publicurl  |    http://109.158.65.21:9696     ||    region   |       !
      Regio
nOne             ||  service_id | cdc15413851341e7a1a827672b81c8e8 |+-------------+----------------------------------+[(keystone_admin)]$ keystone tenant-create --name openstack_network --description "OpenStack network tenant"+-------------+----------------------------------+|   Property  |              Value               |+-------------+----------------------------------+| description |     OpenStack network tenant     ||   enabled   |               True               ||      id     | c8274f56a1cd4b2a968ba81a47278476 ||     name    |        openstack_network         |+-------------+----------------------------------+[(keystone_admin)]$ keystone user-create --name openstack_network --pass openstack_network --tenant-id c8274f56a1cd4b2a968ba81a47278476+----------+-------------------------------------------------------------------------------------------------------------------------+| Property |                                                          Value                                                          |+----------+-------------------------------------------------------------------------------------------------------------------------+|  email   |                                                                                                                         || enabled  |                                                           True                                                          ||    id    |                                             e2ba6a8d3c1b4758844972b1d1df3d6b                                            |!
 |   name   |                                                    openstack_network                                                    || password | $6$rounds=40000$h7GvK.VDbEUrikf4$UP.KDuvz8VBhALEm75ZSOFpEdj1z2MecQhPYyyliyJn3Q.oxCmU/PWxPsD8cJ33z.YqtvhMI7RKXQEulceFok0 || tenantId |                                             c8274f56a1cd4b2a968ba81a47278476                                            |+----------+-------------------------------------------------------------------------------------------------------------------------+[(keystone_admin)]$ keystone role-list +----------------------------------+-------+|                id                |  name |+----------------------------------+-------+| 116a61cd00e0434cb8e024d710f57cba |  user || 8d1805ce160b4f2eab68762083efd50a | admin |+----------------------------------+-------+[(keystone_admin)]$ keystone user-role-add --user-id e2ba6a8d3c1b4758844972b1d1df3d6b --role-id 8d1805ce160b4f2eab68762083efd50a --tenant-id c8274f56a1cd4b2a968ba81a47278476  # yum install openstack-quantum -y# yum install openstack-quantum-openvswitch -y # source /home/arindam/keystonerc_admin [(keystone_admin)]# openstack-config --set /etc/quantum/quantum.conf DEFAULT rpc_backend quantum.openstack.common.rpc.impl_qpid[(keystone_admin)]# openstack-config --set /etc/quantum/quantum.conf DEFAULT qpid_hostname 109.158.65.21[(keystone_admin)]# openstack-config --set /etc/quantum/quantum.conf keystone_authtoken admin_tenant_name openstack_network[(keystone_admin)]# openstack-config --set /etc/quantum/quantum.conf keystone_authtoken admin_user admin[(keystone_admin)]# openstack-config --set /etc/quantum/quantum.conf keystone_authtoken admin_password admin  # quantum-server-setup --plugin openvswitch# quantum-node-setup --plugin openvswitch# diff nova.conf nova.conf.bak 25,27c25,27< quantum_admin_username = openstack_network< quantum_admin_password = openstack_network< quantum_admin_auth_url = http://158.109.65.21:35357/v2.0/---> quantum_admin_username = quantum> quantum_admin_password = servicepass> quantum_admin_auth_url = http://127.0.0.1:35357/v2.0/29,30c29,30< quantum_admin_tenant_name = openstack_network< quantum_url = http://158.109.65.21:9696/---> quantum_admin_tenant_name = service> quantum_url = http://localhost:9696/ # chkconfig quantum-server on# service quantum-server start# source /home/arindam/keystonerc_admin # chkconfig openvswitch on# service openvswitch start    # ovs-vsctl add-br br-int# chkconfig quantum-openvswitch-agent on# service quantum-openvswi!
 tch-agent 
start# chkconfig quantum-ovs-cleanup on# quantum-dhcp-setup --plugin openvswitch# chkconfig quantum-dhcp-agent on# service quantum-dhcp-agent start
        

      
      

      
      

      _______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

    
    
 		 	   		  

References