Atom feed of this document
 

 Cloudpipe Troubleshooting and Automation

  • Troubleshoot your cloudpipe instance

    A periodic task disassociates the fixed ip address for the cloudpipe instance. Into /var/log/nova/nova-network.log, the following line should appear :

    Running periodic task VlanManager._disassociate_stale_fixed_ips from (pid=21578) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152   

    Once the job has been run, $ nova cloudpipe-listshould not return anything ; but if the cloudpipe instance is respawned too quickly; the following error could be encountered :

    ERROR nova.rpc.amqp Returning exception Fixed IP address 192.168.22.34 is already in use.

    In order to resolve that issue, log into the mysql server and update the ip address status :

    (mysql) use nova;
    (mysql) SELECT * FROM fixed_ips WHERE address='192.168.22.34';
    +---------------------+---------------------+------------+---------+-----+---------------+------------+-------------+-----------+--------+----------+----------------------+------+
    | created_at          | updated_at          | deleted_at | deleted | id  | address       | network_id | instance_id | allocated | leased | reserved | virtual_interface_id | host |
    +---------------------+---------------------+------------+---------+-----+---------------+------------+-------------+-----------+--------+----------+----------------------+------+
    | 2012-05-21 12:06:18 | 2012-06-18 09:26:25 | NULL       |       0 | 484 | 192.168.22.34 |         13 |         630 |         0 |      0 |        1 |                 NULL | NULL |
    +---------------------+---------------------+------------+---------+-----+---------------+------------+-------------+-----------+--------+----------+----------------------+------+
                        
    (mysql) UPDATE fixed_ips SET allocated=0, leased=0, instance_id=NULL WHERE address='192.168.22.34';
    (mysql) SELECT * FROM fixed_ips WHERE address='192.168.22.34';
     +---------------------+---------------------+------------+---------+-----+---------------+------------+-------------+-----------+--------+----------+----------------------+------+
    | created_at          | updated_at          | deleted_at | deleted | id  | address       | network_id | instance_id | allocated | leased | reserved | virtual_interface_id |      |                 +---------------------+---------------------+------------+---------+-----+---------------+------------+-------------+-----------+--------+----------+----------------------+------+
    | 2012-05-21 12:06:18 | 2012-06-18 09:26:25 | NULL       |       0 | 484 | 192.168.22.34 |         13 |        NULL |         0 |      0 |        1 |                 NULL | NULL |
    +---------------------+---------------------+------------+---------+-----+---------------+------------+-------------+-----------+--------+----------+----------------------+------+
                        

  • Cloudpipe-related configuration option reference

    vpn_ip = COMPUTE_NODE_IP
    vpn_start = 1000
    vpn_key_suffix = -vpn
    vpn_client_template = /usr/lib/python2.7/dist-packages/nova/cloudpipe/client.ovpn.template
    credential_vpn_file = nova-vpn.conf
    vpn_image_id = IMAGE_ID
    cnt_vpn_clients = 5
    keys_path = /var/lib/nova/keys
    ca_path = /var/lib/nova/CA
                            

  • Cloudpipe-related files

    Nova stores cloudpipe keys into /var/lib/nova/keys.

    Certificates are stored into /var/lib/nova/CA.

    Credentials are stored into /var/lib/nova/CA/projects/

  • Automate the cloudpipe image installation

    You can automate the image creation by download that script and running it from inside the instance : Get the script from Github


loading table of contents...