Skip to content

Instantly share code, notes, and snippets.

@alagalah
Created July 24, 2015 16:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save alagalah/9446c3da0c5ad5b6b62f to your computer and use it in GitHub Desktop.
vagrant@devstack-control:~/devstack$ multitenant.sh
ssh key for coke
Generating public/private rsa key pair.
Your identification has been saved in id_rsa_coke.
Your public key has been saved in id_rsa_coke.pub.
The key fingerprint is:
7d:02:ad:b6:4d:54:a3:65:13:e3:d4:5d:f0:7b:62:0d vagrant@devstack-control
The key's randomart image is:
+--[ RSA 2048]----+
| Xo.oo|
| . B +...|
| . + . E .|
| = o.|
| S + . o.o|
| . + o . ..|
| . . |
| |
| |
+-----------------+
ssh key for pepsi
Generating public/private rsa key pair.
Your identification has been saved in id_rsa_pepsi.
Your public key has been saved in id_rsa_pepsi.pub.
The key fingerprint is:
ef:f4:fe:f2:2b:bc:e9:c8:ad:71:8c:da:6c:cf:9f:a8 vagrant@devstack-control
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
| |
| |
| S |
| . o |
| =.o |
| B.B+o . |
| ..E*@B*. |
+-----------------+
configuring coke tenant
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
'python-keystoneclient.', DeprecationWarning)
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| description | |
| enabled | True |
| id | a9a2872ce29947698f668b526bf5ebed |
| name | coke |
+-------------+----------------------------------+
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
'python-keystoneclient.', DeprecationWarning)
+----------+----------------------------------+
| Property | Value |
+----------+----------------------------------+
| email | |
| enabled | True |
| id | b1383525da714b30bd4ff76d0e4a171e |
| name | coke |
| tenantId | a9a2872ce29947698f668b526bf5ebed |
| username | coke |
+----------+----------------------------------+
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
'python-keystoneclient.', DeprecationWarning)
configuring pepsi tenant
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
'python-keystoneclient.', DeprecationWarning)
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| description | |
| enabled | True |
| id | 5751a5f5f68040019ab7f0a68a59bfa6 |
| name | pepsi |
+-------------+----------------------------------+
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
'python-keystoneclient.', DeprecationWarning)
+----------+----------------------------------+
| Property | Value |
+----------+----------------------------------+
| email | |
| enabled | True |
| id | 00e2801c865347c5bd4dfc2c047930c0 |
| name | pepsi |
| tenantId | 5751a5f5f68040019ab7f0a68a59bfa6 |
| username | pepsi |
+----------+----------------------------------+
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
'python-keystoneclient.', DeprecationWarning)
configuring coke tenant key and router
Created a new security_group:
+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| description | |
| id | 62c43c19-f59f-47b1-86e6-4aa7b26068e4 |
| name | coke_client_sg |
| security_group_rules | {"remote_group_id": null, "direction": "egress", "remote_ip_prefix": null, "protocol": null, "tenant_id": "a9a2872ce29947698f668b526bf5ebed", "port_range_max": null, "security_group_id": "62c43c19-f59f-47b1-86e6-4aa7b26068e4", "port_range_min": null, "ethertype": "IPv4", "id": "020d925f-d565-42dc-9f79-41c646aa647f"} |
| | {"remote_group_id": null, "direction": "egress", "remote_ip_prefix": null, "protocol": null, "tenant_id": "a9a2872ce29947698f668b526bf5ebed", "port_range_max": null, "security_group_id": "62c43c19-f59f-47b1-86e6-4aa7b26068e4", "port_range_min": null, "ethertype": "IPv6", "id": "5e66a66c-9158-446a-b699-9601ae1017e2"} |
| tenant_id | a9a2872ce29947698f668b526bf5ebed |
+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Security group rule already exists. Rule id is 020d925f-d565-42dc-9f79-41c646aa647f.
Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| direction | ingress |
| ethertype | IPv4 |
| id | 9b415803-bff5-4462-903e-2b070cd7d86e |
| port_range_max | |
| port_range_min | |
| protocol | |
| remote_group_id | |
| remote_ip_prefix | |
| security_group_id | 62c43c19-f59f-47b1-86e6-4aa7b26068e4 |
| tenant_id | a9a2872ce29947698f668b526bf5ebed |
+-------------------+--------------------------------------+
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | 272174b0-a77b-4824-ad42-7a2d4370b406 |
| mtu | 0 |
| name | coke_net1 |
| port_security_enabled | True |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 1064 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | a9a2872ce29947698f668b526bf5ebed |
+---------------------------+--------------------------------------+
Created a new subnet:
+-------------------+--------------------------------------------+
| Field | Value |
+-------------------+--------------------------------------------+
| allocation_pools | {"start": "10.1.1.2", "end": "10.1.1.254"} |
| cidr | 10.1.1.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 10.1.1.1 |
| host_routes | |
| id | 4a3c0f61-f2d7-4eaf-a4a1-335e525e4b98 |
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | coke_sub1 |
| network_id | 272174b0-a77b-4824-ad42-7a2d4370b406 |
| subnetpool_id | |
| tenant_id | a9a2872ce29947698f668b526bf5ebed |
+-------------------+--------------------------------------------+
+--------------------------------------+----------------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | - |
| OS-EXT-SRV-ATTR:hypervisor_hostname | - |
| OS-EXT-SRV-ATTR:instance_name | instance-00000001 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | iLgGwR7NZ99Q |
| config_drive | |
| created | 2015-07-24T15:56:26Z |
| flavor | m1.tiny (1) |
| hostId | |
| id | f2bfef9a-ce0b-4809-ae83-d228b7330487 |
| image | cirros-0.3.4-x86_64-uec (417c6c85-f0f6-4174-9a49-f7a0bd107500) |
| key_name | - |
| metadata | {} |
| name | coke_net1-coke_client_sg-1 |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | a9a2872ce29947698f668b526bf5ebed |
| updated | 2015-07-24T15:56:26Z |
| user_id | b1383525da714b30bd4ff76d0e4a171e |
+--------------------------------------+----------------------------------------------------------------+
control:
+--------------------------------------+----------------------------+--------+------------+-------------+--------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+----------------------------+--------+------------+-------------+--------------------+
| f2bfef9a-ce0b-4809-ae83-d228b7330487 | coke_net1-coke_client_sg-1 | BUILD | spawning | NOSTATE | coke_net1=10.1.1.3 |
+--------------------------------------+----------------------------+--------+------------+-------------+--------------------+
compute:
+----+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+----+------+--------+------------+-------------+----------+
+----+------+--------+------------+-------------+----------+
configuring pepsi tenant key and router
Created a new security_group:
+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| description | |
| id | 9cd5daa1-c83b-4094-9536-b397df23fa9f |
| name | pepsi_client_sg |
| security_group_rules | {"remote_group_id": null, "direction": "egress", "remote_ip_prefix": null, "protocol": null, "tenant_id": "5751a5f5f68040019ab7f0a68a59bfa6", "port_range_max": null, "security_group_id": "9cd5daa1-c83b-4094-9536-b397df23fa9f", "port_range_min": null, "ethertype": "IPv4", "id": "8d0b4061-f39c-412d-852f-f41e74af3115"} |
| | {"remote_group_id": null, "direction": "egress", "remote_ip_prefix": null, "protocol": null, "tenant_id": "5751a5f5f68040019ab7f0a68a59bfa6", "port_range_max": null, "security_group_id": "9cd5daa1-c83b-4094-9536-b397df23fa9f", "port_range_min": null, "ethertype": "IPv6", "id": "fcaf2411-5d29-49ce-be47-586f32c27ea6"} |
| tenant_id | 5751a5f5f68040019ab7f0a68a59bfa6 |
+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Security group rule already exists. Rule id is 8d0b4061-f39c-412d-852f-f41e74af3115.
Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| direction | ingress |
| ethertype | IPv4 |
| id | d7fef59b-8356-4b2b-b95f-6e51096f49d8 |
| port_range_max | |
| port_range_min | |
| protocol | |
| remote_group_id | |
| remote_ip_prefix | |
| security_group_id | 9cd5daa1-c83b-4094-9536-b397df23fa9f |
| tenant_id | 5751a5f5f68040019ab7f0a68a59bfa6 |
+-------------------+--------------------------------------+
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | 0ccb988c-c2fd-4148-92bd-69392f446692 |
| mtu | 0 |
| name | pepsi_net1 |
| port_security_enabled | True |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 1025 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 5751a5f5f68040019ab7f0a68a59bfa6 |
+---------------------------+--------------------------------------+
Created a new subnet:
+-------------------+--------------------------------------------+
| Field | Value |
+-------------------+--------------------------------------------+
| allocation_pools | {"start": "10.1.2.2", "end": "10.1.2.254"} |
| cidr | 10.1.2.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 10.1.2.1 |
| host_routes | |
| id | ff6189b5-4f5d-4e49-b812-f8630c66edc3 |
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | pepsi_sub1 |
| network_id | 0ccb988c-c2fd-4148-92bd-69392f446692 |
| subnetpool_id | |
| tenant_id | 5751a5f5f68040019ab7f0a68a59bfa6 |
+-------------------+--------------------------------------------+
+--------------------------------------+----------------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | - |
| OS-EXT-SRV-ATTR:hypervisor_hostname | - |
| OS-EXT-SRV-ATTR:instance_name | instance-00000002 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | VdbEyh9hAsrJ |
| config_drive | |
| created | 2015-07-24T15:57:00Z |
| flavor | m1.tiny (1) |
| hostId | |
| id | 619bd5bc-be7f-42aa-bab7-bd16a443f5ce |
| image | cirros-0.3.4-x86_64-uec (417c6c85-f0f6-4174-9a49-f7a0bd107500) |
| key_name | - |
| metadata | {} |
| name | pepsi_net1-pepsi_client_sg-1 |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | 5751a5f5f68040019ab7f0a68a59bfa6 |
| updated | 2015-07-24T15:57:00Z |
| user_id | 00e2801c865347c5bd4dfc2c047930c0 |
+--------------------------------------+----------------------------------------------------------------+
control:
+--------------------------------------+------------------------------+--------+------------+-------------+---------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------------------------------+--------+------------+-------------+---------------------+
| 619bd5bc-be7f-42aa-bab7-bd16a443f5ce | pepsi_net1-pepsi_client_sg-1 | BUILD | spawning | NOSTATE | pepsi_net1=10.1.2.3 |
+--------------------------------------+------------------------------+--------+------------+-------------+---------------------+
compute:
+----+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+----+------+--------+------------+-------------+----------+
+----+------+--------+------------+-------------+----------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment