[Openstack] Question: how to make floating ip pools?

Ahmed Al-Mehdi ahmed at coraid.com
Tue Nov 27 07:47:14 UTC 2012


Can you please retry issuing the command "quantum floatingip-associate …"
with the additional option "--tenant-id 7230c184c85141b59f6a0df0843ea0d2".

-Ahmed.



On 11/26/12 9:59 PM, "이창만" <cm224.lee at samsung.com> wrote:

>
>Hello,
>
>I am doing below guide.
>https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/VLAN/2N
>ICs/OpenStack_Folsom_Install_Guide_WebVersion.rst
>
>At Ch.11 Your First VM, I've encountered a error.
>My question is:
>1) What is the $put_id_floating_ip and $put_id_vm_port?
>e.g.) $ quantum floatingip-associate $put_id_floating_ip $put_id_vm_port
>
>2) How can I know whether controller node and compute is connected?
>
>The status of Controller node - I can't see any resources.
>a.Overview of Project on horizon
>       i.Quota Summary is empty
>               1.Used of Available Instances : NULL
>               2.Used of Available vCPUs : NULL
>               3.Used MB of MB Available RAM : NULL
>
>== Error Log ==
>
>root at node1:/home/zeus# quantum floatingip-create --tenant-id
>7230c184c85141b59f6a0df0843ea0d2 ext_net
>Created a new floatingip:
>+---------------------+--------------------------------------+
>| Field               | Value                                |
>+---------------------+--------------------------------------+
>| fixed_ip_address    |                                      |
>| floating_ip_address | 192.168.2.3                          |
>| floating_network_id | 1d6b740f-3f19-482b-a0b8-b4bcd83d5b3b |
>| id                  | fd6429bd-cf71-45c0-bf0b-3c80e1fe527b |
>| port_id             |                                      |
>| router_id           |                                      |
>| tenant_id           | 7230c184c85141b59f6a0df0843ea0d2     |
>+---------------------+--------------------------------------+
>root at node1:/home/zeus# quantum port-list
>+--------------------------------------+------+-------------------+-------
>--------------------------------------------------------------------------
>---+
>| id                                   | name | mac_address       |
>fixed_ips
>         |
>+--------------------------------------+------+-------------------+-------
>--------------------------------------------------------------------------
>---+
>| 1a284c3e-bacf-4281-a1a2-b8d3f485dab1 |      | fa:16:3e:0d:4e:c0 |
>{"subnet_id": "994af63f-d5f2-492d-9229-aa878651b95d", "ip_address":
>"192.168.2.2"} |
>| 1a93a78e-cb59-4647-bf13-49e3553bb2aa |      | fa:16:3e:b1:9c:10 |
>{"subnet_id": "b9a8c9b4-7ebf-43c6-b8d5-afb44c13ba54", "ip_address":
>"10.10.10.1"}  |
>| d9b3496d-89e6-4ae7-b117-e22048acb6ef |      | fa:16:3e:50:e9:91 |
>{"subnet_id": "994af63f-d5f2-492d-9229-aa878651b95d", "ip_address":
>"192.168.2.3"} |
>| ed32a365-48ce-4f94-8b7f-6e02c8d876d3 |      | fa:16:3e:2d:bc:93 |
>{"subnet_id": "b9a8c9b4-7ebf-43c6-b8d5-afb44c13ba54", "ip_address":
>"10.10.10.2"}  |
>+--------------------------------------+------+-------------------+-------
>--------------------------------------------------------------------------
>---+
>root at node1:/home/zeus# quantum floatingip-associate
>fd6429bd-cf71-45c0-bf0b-3c80e1fe527b 1a284c3e-bacf-4281-a1a2-b8d3f485dab1
>Bad floatingip request: Port 1a284c3e-bacf-4281-a1a2-b8d3f485dab1 is
>associated with a different tenant than Floating IP
>fd6429bd-cf71-45c0-bf0b-3c80e1fe527b and therefore cannot be bound.
>root at node1:/home/zeus# quantum floatingip-associate
>fd6429bd-cf71-45c0-bf0b-3c80e1fe527b d9b3496d-89e6-4ae7-b117-e22048acb6ef
>Bad floatingip request: Port d9b3496d-89e6-4ae7-b117-e22048acb6ef is
>associated with a different tenant than Floating IP
>fd6429bd-cf71-45c0-bf0b-3c80e1fe527b and therefore cannot be bound.
>
>
>
>== All Sequence and log ==
>
>
>root at node1:/home/zeus# keystone tenant-create --name project_one
>+-------------+----------------------------------+
>|   Property  |              Value               |
>+-------------+----------------------------------+
>| description |                                  |
>|   enabled   |               True               |
>|      id     | 7230c184c85141b59f6a0df0843ea0d2 |
>|     name    |           project_one            |
>+-------------+----------------------------------+
>root at node1:/home/zeus# keystone user-create --name=user_one
>--pass=user_one --tenant-id 7230c184c85141b59f6a0df0843ea0d2
>--email=user_one at domain.com
>+----------+--------------------------------------------------------------
>-----------------------------------------------------------+
>| Property |
>Value                                                          |
>+----------+--------------------------------------------------------------
>-----------------------------------------------------------+
>|  email   |
>user_one at domain.com                                                   |
>| enabled  |
>True                                                          |
>|    id    |
>0f85641b96e24857a857bc70ecef7752
>  |
>|   name   |
>user_one                                                        |
>| password |
>$6$rounds=40000$1onptUe8GDtkmQpa$XGZbdFVuEyfhc9E27N6cxnJbV.iiIY/2SZGEBsAfe
>ILXcBLRecBwWAQ4bx1S1EdX/z.634rYubjmbV0W1dpX6/ |
>| tenantId |
>7230c184c85141b59f6a0df0843ea0d2
>  |
>+----------+--------------------------------------------------------------
>-----------------------------------------------------------+
>root at node1:/home/zeus# keystone role-list
>+----------------------------------+----------------------+
>|                id                |         name         |
>+----------------------------------+----------------------+
>| 2165b3c5f56a4f5cbe0ed4226537bd0c |    KeystoneAdmin     |
>| 39c47be2c1c041db95ca2fa058058a1a |        admin         |
>| ba7ac719c7684885ba34b2acfa74b5bb |        Member        |
>| c32e0b5de3b3432cb433feed94cc682f | KeystoneServiceAdmin |
>+----------------------------------+----------------------+
>root at node1:/home/zeus# keystone user-role-add --tenant-id
>7230c184c85141b59f6a0df0843ea0d2  --user-id
>0f85641b96e24857a857bc70ecef7752 --role-id
>ba7ac719c7684885ba34b2acfa74b5bb
>root at node1:/home/zeus# quantum net-create --tenant-id
>7230c184c85141b59f6a0df0843ea0d2 net_proj_one --provider:network_type
>vlan --provider:physical_network physnet1 --provider:segmentation_id 1024
>Created a new network:
>+---------------------------+--------------------------------------+
>| Field                     | Value                                |
>+---------------------------+--------------------------------------+
>| admin_state_up            | True                                 |
>| id                        | b3c0046b-f682-4e43-a3e8-beae4cf2c550 |
>| name                      | net_proj_one                         |
>| provider:network_type     | vlan                                 |
>| provider:physical_network | physnet1                             |
>| provider:segmentation_id  | 1024                                 |
>| router:external           | False                                |
>| shared                    | False                                |
>| status                    | ACTIVE                               |
>| subnets                   |                                      |
>| tenant_id                 | 7230c184c85141b59f6a0df0843ea0d2     |
>+---------------------------+--------------------------------------+
>root at node1:/home/zeus# quantum subnet-create --tenant-id
>7230c184c85141b59f6a0df0843ea0d2 net_proj_one 10.10.10.0/24
>Created a new subnet:
>+------------------+------------------------------------------------+
>| Field            | Value                                          |
>+------------------+------------------------------------------------+
>| allocation_pools | {"start": "10.10.10.2", "end": "10.10.10.254"} |
>| cidr             | 10.10.10.0/24                                  |
>| dns_nameservers  |                                                |
>| enable_dhcp      | True                                           |
>| gateway_ip       | 10.10.10.1                                     |
>| host_routes      |                                                |
>| id               | b9a8c9b4-7ebf-43c6-b8d5-afb44c13ba54           |
>| ip_version       | 4                                              |
>| name             |                                                |
>| network_id       | b3c0046b-f682-4e43-a3e8-beae4cf2c550           |
>| tenant_id        | 7230c184c85141b59f6a0df0843ea0d2               |
>+------------------+------------------------------------------------+
>root at node1:/home/zeus# quantum router-create --tenant-id
>7230c184c85141b59f6a0df0843ea0d2 router_proj_one
>Created a new router:
>+-----------------------+--------------------------------------+
>| Field                 | Value                                |
>+-----------------------+--------------------------------------+
>| admin_state_up        | True                                 |
>| external_gateway_info |                                      |
>| id                    | 6a2380c0-d708-4d33-bec2-5cb6f8ed1642 |
>| name                  | router_proj_one                      |
>| status                | ACTIVE                               |
>| tenant_id             | 7230c184c85141b59f6a0df0843ea0d2     |
>+-----------------------+--------------------------------------+
>root at node1:/home/zeus# quantum router-interface-add
>6a2380c0-d708-4d33-bec2-5cb6f8ed1642 b9a8c9b4-7ebf-43c6-b8d5-afb44c13ba54
>Added interface to router 6a2380c0-d708-4d33-bec2-5cb6f8ed1642
>root at node1:/home/zeus# keystone tenant-list
>+----------------------------------+-------------+---------+
>|                id                |     name    | enabled |
>+----------------------------------+-------------+---------+
>| 23e3fd3c5ef645d5954420d8e56d2d97 |   service   |   True  |
>| 65f1839b37844dd3a075f86745ebbba8 |    admin    |   True  |
>| 7230c184c85141b59f6a0df0843ea0d2 | project_one |   True  |
>+----------------------------------+-------------+---------+
>root at node1:/home/zeus# quantum net-create --tenant-id
>23e3fd3c5ef645d5954420d8e56d2d97 ext_net --router:external=True
>Created a new network:
>+---------------------------+--------------------------------------+
>| Field                     | Value                                |
>+---------------------------+--------------------------------------+
>| admin_state_up            | True                                 |
>| id                        | 1d6b740f-3f19-482b-a0b8-b4bcd83d5b3b |
>| name                      | ext_net                              |
>| provider:network_type     | vlan                                 |
>| provider:physical_network | physnet1                             |
>| provider:segmentation_id  | 1                                    |
>| router:external           | True                                 |
>| shared                    | False                                |
>| status                    | ACTIVE                               |
>| subnets                   |                                      |
>| tenant_id                 | 23e3fd3c5ef645d5954420d8e56d2d97     |
>+---------------------------+--------------------------------------+
>root at node1:/home/zeus# quantum subnet-create --tenant-id
>23e3fd3c5ef645d5954420d8e56d2d97 --gateway 192.168.2.1 ext_net
>192.168.2.232/24 --enable_dhcp=False
>Created a new subnet:
>+------------------+--------------------------------------------------+
>| Field            | Value                                            |
>+------------------+--------------------------------------------------+
>| allocation_pools | {"start": "192.168.2.2", "end": "192.168.2.254"} |
>| cidr             | 192.168.2.232/24                                 |
>| dns_nameservers  |                                                  |
>| enable_dhcp      | False                                            |
>| gateway_ip       | 192.168.2.1                                      |
>| host_routes      |                                                  |
>| id               | 994af63f-d5f2-492d-9229-aa878651b95d             |
>| ip_version       | 4                                                |
>| name             |                                                  |
>| network_id       | 1d6b740f-3f19-482b-a0b8-b4bcd83d5b3b             |
>| tenant_id        | 23e3fd3c5ef645d5954420d8e56d2d97                 |
>+------------------+--------------------------------------------------+
>root at node1:/home/zeus# quantum router-gateway-set
>6a2380c0-d708-4d33-bec2-5cb6f8ed1642 1d6b740f-3f19-482b-a0b8-b4bcd83d5b3b
>Set gateway for router 6a2380c0-d708-4d33-bec2-5cb6f8ed1642
>root at node1:/home/zeus# quantum floatingip-create --tenant-id
>7230c184c85141b59f6a0df0843ea0d2 ext_net
>Created a new floatingip:
>+---------------------+--------------------------------------+
>| Field               | Value                                |
>+---------------------+--------------------------------------+
>| fixed_ip_address    |                                      |
>| floating_ip_address | 192.168.2.3                          |
>| floating_network_id | 1d6b740f-3f19-482b-a0b8-b4bcd83d5b3b |
>| id                  | fd6429bd-cf71-45c0-bf0b-3c80e1fe527b |
>| port_id             |                                      |
>| router_id           |                                      |
>| tenant_id           | 7230c184c85141b59f6a0df0843ea0d2     |
>+---------------------+--------------------------------------+
>root at node1:/home/zeus# quantum port-list
>+--------------------------------------+------+-------------------+-------
>--------------------------------------------------------------------------
>---+
>| id                                   | name | mac_address       |
>fixed_ips
>         |
>+--------------------------------------+------+-------------------+-------
>--------------------------------------------------------------------------
>---+
>| 1a284c3e-bacf-4281-a1a2-b8d3f485dab1 |      | fa:16:3e:0d:4e:c0 |
>{"subnet_id": "994af63f-d5f2-492d-9229-aa878651b95d", "ip_address":
>"192.168.2.2"} |
>| 1a93a78e-cb59-4647-bf13-49e3553bb2aa |      | fa:16:3e:b1:9c:10 |
>{"subnet_id": "b9a8c9b4-7ebf-43c6-b8d5-afb44c13ba54", "ip_address":
>"10.10.10.1"}  |
>| d9b3496d-89e6-4ae7-b117-e22048acb6ef |      | fa:16:3e:50:e9:91 |
>{"subnet_id": "994af63f-d5f2-492d-9229-aa878651b95d", "ip_address":
>"192.168.2.3"} |
>| ed32a365-48ce-4f94-8b7f-6e02c8d876d3 |      | fa:16:3e:2d:bc:93 |
>{"subnet_id": "b9a8c9b4-7ebf-43c6-b8d5-afb44c13ba54", "ip_address":
>"10.10.10.2"}  |
>+--------------------------------------+------+-------------------+-------
>--------------------------------------------------------------------------
>---+
>root at node1:/home/zeus# quantum floatingip-associate
>fd6429bd-cf71-45c0-bf0b-3c80e1fe527b 1a284c3e-bacf-4281-a1a2-b8d3f485dab1
>Bad floatingip request: Port 1a284c3e-bacf-4281-a1a2-b8d3f485dab1 is
>associated with a different tenant than Floating IP
>fd6429bd-cf71-45c0-bf0b-3c80e1fe527b and therefore cannot be bound.
>root at node1:/home/zeus# quantum floatingip-associate
>fd6429bd-cf71-45c0-bf0b-3c80e1fe527b d9b3496d-89e6-4ae7-b117-e22048acb6ef
>Bad floatingip request: Port d9b3496d-89e6-4ae7-b117-e22048acb6ef is
>associated with a different tenant than Floating IP
>fd6429bd-cf71-45c0-bf0b-3c80e1fe527b and therefore cannot be bound.
>
>
>
>
>
>
>
>
>
>
>== Network configuration ==
>
>
>root at node1:/home/zeus# ifconfig -a
>br-eth1   Link encap:Ethernet  HWaddr 00:02:2a:d7:fd:fe
>          BROADCAST MULTICAST  MTU:1500  Metric:1
>          RX packets:126 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:14123 (14.1 KB)  TX bytes:0 (0.0 B)
>
>br-ex     Link encap:Ethernet  HWaddr 1c:6f:65:40:2b:c0
>          inet addr:192.168.2.10  Bcast:192.168.2.255  Mask:255.255.255.0
>          inet6 addr: fe80::1e6f:65ff:fe40:2bc0/64 Scope:Link
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:18802 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:19881 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:8561104 (8.5 MB)  TX bytes:9941901 (9.9 MB)
>
>br-int    Link encap:Ethernet  HWaddr 06:3c:48:84:1f:46
>          BROADCAST MULTICAST  MTU:1500  Metric:1
>          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:936 (936.0 B)  TX bytes:0 (0.0 B)
>
>eth0      Link encap:Ethernet  HWaddr 1c:6f:65:40:2b:c0
>          inet6 addr: fe80::1e6f:65ff:fe40:2bc0/64 Scope:Link
>          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
>          RX packets:21627 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:22537 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:8747289 (8.7 MB)  TX bytes:10117341 (10.1 MB)
>
>eth1      Link encap:Ethernet  HWaddr 00:02:2a:d7:fd:fe
>          inet addr:100.10.10.51  Bcast:100.10.10.255  Mask:255.255.255.0
>          inet6 addr: fe80::202:2aff:fed7:fdfe/64 Scope:Link
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:117 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:13425 (13.4 KB)  TX bytes:1562 (1.5 KB)
>
>int-br-eth1 Link encap:Ethernet  HWaddr 22:42:20:65:f6:d4
>          inet6 addr: fe80::2042:20ff:fe65:f6d4/64 Scope:Link
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:123 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:13893 (13.8 KB)  TX bytes:1452 (1.4 KB)
>
>lo        Link encap:Local Loopback
>          inet addr:127.0.0.1  Mask:255.0.0.0
>          inet6 addr: ::1/128 Scope:Host
>          UP LOOPBACK RUNNING  MTU:16436  Metric:1
>          RX packets:324223 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:324223 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:89044915 (89.0 MB)  TX bytes:89044915 (89.0 MB)
>
>phy-br-eth1 Link encap:Ethernet  HWaddr 32:32:31:bc:1b:ec
>          inet6 addr: fe80::3032:31ff:febc:1bec/64 Scope:Link
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:18 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:123 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:1452 (1.4 KB)  TX bytes:13893 (13.8 KB)
>
>root at node1:/home/zeus# route -n
>Kernel IP routing table
>Destination     Gateway         Genmask         Flags Metric Ref    Use
>Iface
>0.0.0.0         192.168.2.1     0.0.0.0         UG    0      0        0
>br-ex
>100.10.10.0     0.0.0.0         255.255.255.0   U     0      0        0
>eth1
>192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0
>br-ex
>
>
>
>
>_______________________________________________
>Mailing list: https://launchpad.net/~openstack
>Post to     : openstack at lists.launchpad.net
>Unsubscribe : https://launchpad.net/~openstack
>More help   : https://help.launchpad.net/ListHelp



More information about the Openstack mailing list