[Openstack] Attaching FloatingIP to VM

Rahul Sharma rahulsharmaait at gmail.com
Fri Sep 20 06:41:11 UTC 2013

Ideally, if you share your external network, then every tenant should be
able to use that network. Maybe you need to look at the quantum
logs(server, l3-agent, openvswitch) to figure out the issue.

Source the credentials for demo user(need to change OS_TENANT_NAME=demo).
Allocate floating ip using: quantum floatingip-create <external-network>
Pick the port-id of your vm: quantum port-list
Associate that floating ip to your vm: quantum floatingip-associate
$put_id_floating_ip $put_id_vm_port

If this doesn't work, then check the logs and see where its failing. Follow
this guide as it works fine:


On Fri, Sep 20, 2013 at 12:16 AM, Guilherme Russi <
luisguilherme.cr at gmail.com> wrote:

> Hello again Rahul, any idea about what i should do? Should i create the
> public network from demo user?
> Thank you.
> 2013/9/18 Guilherme Russi <luisguilherme.cr at gmail.com>
>> Hey Rahul,
>>  I've tried to create the public network again and now I put the --shared
>> when I typed the command to create it, but the same way I still get the
>> error message. Do I need to create another credential to my demo user? I
>> had a grizzly version installed before I format my controller node and it
>> worked fine.
>> Thank you.
>> Regards.
>> 2013/9/16 Rahul Sharma <rahulsharmaait at gmail.com>
>>> Hi Guilherme,
>>> If you will source these credentials, then you will be able to perform
>>> operations on admin tenant and not on the demo tenant. For demo tenant, you
>>> need to change the OS_TENANT_NAME to demo. You would have created networks
>>> and ports using these credentials during installation, now you would be
>>> able to assign floating-ip's to vm's or ports of tenant "admin". For demo
>>> user, you need to share that network with demo  tenant. Try and check if it
>>> works. Floating-ip is from the external network and it would be shared. If
>>> it doesn't work, try deleting the existing networks and creating again
>>> using UI if possible.
>>> --Rahul
>>> On Tue, Sep 17, 2013 at 1:05 AM, Guilherme Russi <
>>> luisguilherme.cr at gmail.com> wrote:
>>>> Hello Rahul, here are my credentials:
>>>> export OS_TENANT_NAME=admin
>>>> export OS_USERNAME=admin
>>>> export OS_PASSWORD=password
>>>> export OS_AUTH_URL="http://localhost:35357/v2.0/"
>>>> export OS_SERVICE_ENDPOINT="http://localhost:35357/v2.0"
>>>> export OS_SERVICE_TOKEN=password
>>>> Do I need credentials to demo user too? I had another installation,
>>>> before reinstall my ubuntu again, and my credentials were like this and I
>>>> could allocate floating ip.
>>>> Regards.
>>>> 2013/9/16 Rahul Sharma <rahulsharmaait at gmail.com>
>>>>> Hi Guilherme,
>>>>> I am not sure but I have a wild guess that you might have created the
>>>>> port using admin user and allocated floating-ip using demo user.  If you
>>>>> are using CLI, then what are the parameters you have sourced using
>>>>> openrc/localrc? Have you sourced the correct tenant's credentials i.e. of
>>>>> admin's or of demo's? Sometimes, we make mistakes in sourcing the wrong
>>>>> credentials, hence making the guess.
>>>>> -Regards
>>>>> Rahul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130920/c445f61c/attachment.html>

More information about the Openstack mailing list