1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477
|
node-1 | 192.168.0.10 | Controller Node, Network Node node-2 | 192.168.0.11 | Compute Node 1 node-3 | 192.168.0.12 | Compute Node 2
cd /etc/yum.repos.d
wget http://192.168.1.100/content/repofiles/rh-ceph-1-el7.repo wget http://192.168.1.100/content/repofiles/rh-rhel-7-el7.repo wget http://192.168.1.100/content/repofiles/rh-rhelosp-7-el7.repo
yum clean all yum repolist
yum install -y net-tools
cat /etc/hosts
127.0.0.1 node-1.example.com node-1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 10.30.0.10 node-1.example.com node-1 10.30.0.11 node-2.example.com node-2 10.30.0.12 node-3.example.com node-3 192.168.0.10 node-1.example.com node-1 192.168.0.11 node-2.example.com node-2 192.168.0.12 node-3.example.com node-3
ping node-1 ping node-2 ping node-3
setenforce 0 sed -i 's/^SELINUX=.*/SELINUX=permissive/' /etc/selinux/config yum install -y ntp
vi /etc/ntp.conf
server 127.127.1.0 iburst
server 10.30.0.10 iburst
systemctl enable ntpd.service systemctl start ntpd.service
systemctl stop firewalld.service systemctl disable firewalld.service
systemctl disable NetworkManager systemctl stop NetworkManager
ntpdate -u 10.30.0.10
yum install -y mariadb mariadb-server MySQL-python
vi /etc/my.cnf.d/mariadb_openstack.cnf
[mysqld] bind-address = 0.0.0.0 default-storage-engine = innodb innodb_file_per_table collation-server = utf8_general_ci init-connect = 'SET NAMES utf8' character-set-server = utf8
systemctl enable mariadb.service systemctl start mariadb.service mysql_secure_installation [enter for none] [y] redhat [y]
yum install -y rabbitmq-server systemctl enable rabbitmq-server.service systemctl start rabbitmq-server.service setenforce 0
mysql -u root -predhat
CREATE DATABASE keystone; GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'redhat'; GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'redhat'; EXIT
yum install -y openstack-keystone httpd mod_wsgi python-openstackclient memcached python-memcached systemctl enable memcached.service systemctl start memcached.service
vi /etc/keystone/keystone.conf
[DEFAULT] ... admin_token = redhat verbose = True [database] ... connection = mysql://keystone:redhat@10.30.0.10/keystone [memcache] ... servers = localhost:11211 [token] ... provider = keystone.token.providers.uuid.Provider driver = keystone.token.persistence.backends.memcache.Token [revoke] ... driver = keystone.contrib.revoke.backends.sql.Revoke
su -s /bin/sh -c "keystone-manage db_sync" keystone tail -f /var/log/keystone/keystone.log
vi /etc/httpd/conf/httpd.conf
ServerName node-1
vi /etc/httpd/conf.d/wsgi-keystone.conf
Listen 5000 Listen 35357 <VirtualHost *:5000> WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP} WSGIProcessGroup keystone-public WSGIScriptAlias / /var/www/cgi-bin/keystone/main WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On LogLevel info ErrorLogFormat "%{cu}t %M" ErrorLog /var/log/httpd/keystone-error.log CustomLog /var/log/httpd/keystone-access.log combined </VirtualHost> <VirtualHost *:35357> WSGIDaemonProcess keystone-admin processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP} WSGIProcessGroup keystone-admin WSGIScriptAlias / /var/www/cgi-bin/keystone/admin WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On LogLevel info ErrorLogFormat "%{cu}t %M" ErrorLog /var/log/httpd/keystone-error.log CustomLog /var/log/httpd/keystone-access.log combined </VirtualHost>
mkdir -p /var/www/cgi-bin/keystone touch /var/www/cgi-bin/keystone/{main,admin}
vi /var/www/cgi-bin/keystone/main vi /var/www/cgi-bin/keystone/admin
import os from keystone.server import wsgi as wsgi_server name = os.path.basename(__file__) application = wsgi_server.initialize_application(name)
chown -R keystone:keystone /var/www/cgi-bin/keystone chmod 755 /var/www/cgi-bin/keystone/*
systemctl enable httpd.service systemctl start httpd.service tail -f /var/log/httpd/keystone-error.log ps -ef|grep http ps -ef|grep keystone netstat -ntlp|grep 5000 netstat -ntlp|grep 35357
export OS_TOKEN=redhat export OS_URL=http://10.30.0.10:35357/v2.0 export | grep OS
openstack service create --name keystone --description "OpenStack Identity" identity openstack endpoint create --publicurl http://10.30.0.10:5000/v2.0 --internalurl http://10.30.0.10:5000/v2.0 --adminurl http://10.30.0.10:35357/v2.0 --region RegionOne identity openstack project create --description "Admin Project" admin openstack user create --password-prompt admin User Password:[redhat] Repeat User Password:[redhat]
openstack role create admin openstack role add --project admin --user admin admin openstack project create --description "Service Project" service
openstack project create --description "Demo Project" demo openstack user create --password-prompt demo User Password:[redhat] Repeat User Password:[redhat]
openstack role create user openstack role add --project demo --user demo user unset OS_TOKEN OS_URL export | grep OS
openstack --os-auth-url http://10.30.0.10:35357 --os-project-name admin --os-username admin --os-auth-type password token issue ps -ef|grep memcached systemctl start memcached.service
vi /root/admin-openrc.sh
export OS_PROJECT_DOMAIN_ID=default export OS_USER_DOMAIN_ID=default export OS_PROJECT_NAME=admin export OS_TENANT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=redhat export OS_AUTH_URL=http://10.30.0.10:35357/v3 export PS1='[\u@\h \W(admin)]\$ '
source /root/admin-openrc.sh openstack user list
+----------------------------------+---------+ | ID | Name | +----------------------------------+---------+ | 3a90eefdd4af4f64b2b55e5787c8b480 | nova | | 81fda8223f424eacb358b9ecf30d8514 | demo | | afc0c39b498044a6b012ca85e1a82e3e | cinder | | c66ab63dac7142438383f880ceae77e3 | neutron | | de0c3f0303394b3e8d127119721e7f6b | admin | | e6a433779b8749d689e4f8d47026028c | glance | +----------------------------------+---------+
vi /root/demo-openrc.sh
export OS_PROJECT_DOMAIN_ID=default export OS_USER_DOMAIN_ID=default export OS_PROJECT_NAME=demo export OS_TENANT_NAME=demo export OS_USERNAME=demo export OS_PASSWORD=redhat export OS_AUTH_URL=http://10.30.0.10:5000/v3 export PS1='[\u@\h \W(demo)]\$ '
source /root/demo-openrc.sh openstack token issue
+------------+----------------------------------+ | Field | Value | +------------+----------------------------------+ | expires | 2016-03-02T02:25:24.285395Z | | id | 06c106e9ffb747a1812e9b4de73b6977 | | project_id | f9ae9069651e40d0baaa7ad4e7d1a160 | | user_id | de0c3f0303394b3e8d127119721e7f6b | +------------+----------------------------------+
mysql -u root -p
CREATE DATABASE glance; GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost' IDENTIFIED BY 'redhat'; GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%' IDENTIFIED BY 'redhat'; EXIT
source /root/admin-openrc.sh
openstack user create --password-prompt glance openstack role add --project service --user glance admin openstack service create --name glance --description "OpenStack Image service" image openstack endpoint create --publicurl http://10.30.0.10:9292 --internalurl http://10.30.0.10:9292 --adminurl http://10.30.0.10:9292 --region RegionOne image
yum install -y openstack-glance python-glance python-glanceclient
vi /etc/glance/glance-api.conf
[DEFAULT] ... verbose = True notification_driver = noop [database] ... connection = mysql://glance:redhat@10.30.0.10/glance [keystone_authtoken] ... auth_uri = http://10.30.0.10:5000 auth_url = http://10.30.0.10:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = glance password = redhat [paste_deploy] ... flavor = keystone [glance_store] ... default_store = file filesystem_store_datadir = /var/lib/glance/images/
vi /etc/glance/glance-registry.conf
[DEFAULT] ... verbose = True notification_driver = noop [database] ... connection = mysql://glance:redhat@10.30.0.10/glance [keystone_authtoken] ... auth_uri = http://10.30.0.10:5000 auth_url = http://10.30.0.10:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = glance password = redhat [paste_deploy] ... flavor = keystone
su -s /bin/sh -c "glance-manage db_sync" glance systemctl enable openstack-glance-api.service openstack-glance-registry.service systemctl start openstack-glance-api.service openstack-glance-registry.service
cd /root echo "export OS_IMAGE_API_VERSION=2" | tee -a admin-openrc.sh demo-openrc.sh source admin-openrc.sh glance image-list mkdir /tmp/image-list wget -P /tmp/images http://192.168.1.100/content/images/vdisk/cirros-0.3.4-x86_64-disk.img glance image-create --name "cirros-in-fs" --file /tmp/images/cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --visibility public --progress glance image-list rm -r /tmp/images
+--------------------------------------+--------------+ | ID | Name | +--------------------------------------+--------------+ | 6bbafd22-6791-4a9d-8240-355a64f8a5c1 | cirros-in-fs | +--------------------------------------+--------------+
mysql -u root -p
CREATE DATABASE nova; GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'redhat'; GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY 'redhat'; EXIT
source admin-openrc.sh
openstack user create --password-prompt nova openstack role add --project service --user nova admin openstack service create --name nova --description "OpenStack Compute" compute openstack endpoint create --publicurl http://10.30.0.10:8774/v2/%\(tenant_id\)s --internalurl http://10.30.0.10:8774/v2/%\(tenant_id\)s --adminurl http://10.30.0.10:8774/v2/%\(tenant_id\)s --region RegionOne compute
yum install -y openstack-nova-api openstack-nova-cert openstack-nova-conductor openstack-nova-console openstack-nova-novncproxy openstack-nova-scheduler python-novaclient
vi /etc/nova/nova.conf
[DEFAULT] ... verbose = True rpc_backend = rabbit auth_strategy = keystone my_ip = 10.30.0.10 vncserver_listen = 10.30.0.10 vncserver_proxyclient_address = 10.30.0.10 [database] ... connection = mysql://nova:redhat@10.30.0.10/nova [oslo_messaging_rabbit] ...connection/connection/ rabbit_host = 10.30.0.10 rabbit_userid = guest rabbit_password = guest [keystone_authtoken] ... auth_uri = http://10.30.0.10:5000 auth_url = http://10.30.0.10:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = nova password = redhat [glance] ... host = 10.30.0.10 [oslo_concurrency] ... lock_path = /var/lib/nova/tmp
su -s /bin/sh -c "nova-manage db sync" nova systemctl enable openstack-nova-api.service openstack-nova-cert.service openstack-nova-consoleauth.service \ openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service systemctl start openstack-nova-api.service openstack-nova-cert.service openstack-nova-consoleauth.service \ openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service
yum install -y openstack-nova-compute sysfsutils
vi /etc/nova/nova.conf
[DEFAULT] ... verbose = True rpc_backend = rabbit auth_strategy = keystone
my_ip = 10.30.0.11 vnc_enabled = True vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.30.0.11 novncproxy_base_url = http://10.30.0.10:6080/vnc_auto.html [oslo_messaging_rabbit] ... rabbit_host = 10.30.0.10 rabbit_userid = guest rabbit_password = guest [keystone_authtoken] ... auth_uri = http://10.30.0.10:5000 auth_url = http://10.30.0.10:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = nova password = redhat [glance] ... host = 10.30.0.10 [oslo_concurrency] ... lock_path = /var/lib/nova/tmp
RETR=$(egrep -c '(vmx|svm)' /proc/cpuinfo); if [ $RETR -eq 0 ]; then sed -i 's/^#virt_type=.*/virt_type=qemu/' /etc/nova/nova.conf; fi firewall-cmd --set-default-zone=trusted firewall-cmd --reload systemctl enable libvirtd.service openstack-nova-compute.service systemctl start libvirtd.service openstack-nova-compute.service
cd /root source admin-openrc.sh nova service-list nova endpoints nova image-list
+----+------------------+--------------------+----------+---------+-------+----------------------------+-----------------+ | Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +----+------------------+--------------------+----------+---------+-------+----------------------------+-----------------+ | 1 | nova-consoleauth | node-1.example.com | internal | enabled | up | 2016-03-02T01:31:52.000000 | - | | 2 | nova-conductor | node-1.example.com | internal | enabled | up | 2016-03-02T01:31:52.000000 | - | | 3 | nova-cert | node-1.example.com | internal | enabled | up | 2016-03-02T01:31:52.000000 | - | | 4 | nova-scheduler | node-1.example.com | internal | enabled | up | 2016-03-02T01:31:51.000000 | - | | 5 | nova-compute | node-2.example.com | nova | enabled | up | 2016-03-02T01:31:52.000000 | - | | 6 | nova-compute | node-3.example.com | nova | enabled | up | 2016-03-02T01:31:53.000000 | - | +----+------------------+--------------------+----------+---------+-------+----------------------------+-----------------+
systemctl stop NetworkManager.service; systemctl disable NetworkManager.service systemctl restart network.service
vi /etc/sysctl.conf
net.ipv4.ip_forward=1 net.ipv4.conf.all.rp_filter=0 net.ipv4.conf.default.rp_filter=0
sysctl -p
mysql -u root -p CREATE DATABASE neutron; GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' IDENTIFIED BY 'redhat'; GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' IDENTIFIED BY 'redhat'; EXIT
source admin-openrc.sh
openstack user create --password-prompt neutron openstack role add --project service --user neutron admin openstack service create --name neutron --description "OpenStack Networking" network openstack endpoint create --publicurl http://10.30.0.10:9696 --adminurl http://10.30.0.10:9696 --internalurl http://10.30.0.10:9696 --region RegionOne network
yum install -y openstack-neutron openstack-neutron-ml2 python-neutronclient openstack-neutron-openvswitch
vi /etc/neutron/neutron.conf
[DEFAULT] core_plugin = ml2 service_plugins = router auth_strategy = keystone allow_overlapping_ips = True notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True nova_url = http://10.30.0.10:8774/v2 rpc_backend=rabbit [matchmaker_redis] [matchmaker_ring] [quotas] [agent] [keystone_authtoken] admin_tenant_name = %SERVICE_TENANT_NAME% admin_user = %SERVICE_USER% admin_password = %SERVICE_PASSWORD% auth_uri = http://10.30.0.10:5000 auth_url = http://10.30.0.10:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = neutron password = redhat [database] connection = mysql://neutron:redhat@10.30.0.10/neutron [nova] auth_url = http://10.30.0.10:35357 auth_plugin = password project_domain_id = default user_domain_id = default region_name = RegionOne project_name = service username = nova password = redhat [oslo_concurrency] [oslo_policy] [oslo_messaging_amqp] [oslo_messaging_qpid] [oslo_messaging_rabbit] rabbit_host = 10.30.0.10 rabbit_userid = guest rabbit_password = guest
vi /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2] type_drivers = flat,gre,vxlan tenant_network_types = vxlan mechanism_drivers = openvswitch [ml2_type_flat] flat_networks = public [ml2_type_vlan] [ml2_type_gre] [ml2_type_vxlan] vni_ranges = 1:10000 [securitygroup] enable_security_group = True enable_ipset = True firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver [ovs] local_ip = 192.168.0.10 bridge_mappings = public:br-ex [agent] tunnel_types = vxlan
vi /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
[ovs] integration_bridge = br-int tunnel_bridge = br-tun local_ip = 192.168.0.10 bridge_mappings = public:br-ex [agent] tunnel_types = vxlan [securitygroup]
vi /etc/nova/nova.conf
[DEFAULT] rpc_backend=rabbit my_ip=10.30.0.10 auth_strategy=keystone vncserver_listen=10.30.0.10 vncserver_proxyclient_address=10.30.0.10 network_api_class = nova.network.neutronv2.api.API security_group_api = neutron linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver firewall_driver = nova.virt.firewall.NoopFirewallDriver [api_database] [barbican] [cells] [cinder] [conductor] [database] connection = mysql://nova:redhat@10.30.0.10/nova [ephemeral_storage_encryption] [glance] host = 10.30.0.10 [guestfs] [hyperv] [image_file_url] [ironic] [keymgr] [keystone_authtoken] auth_uri = http://10.30.0.10:5000 auth_url = http://10.30.0.10:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = nova password = redhat [libvirt] [metrics] [neutron] url = http://10.30.0.10:9696 auth_strategy = keystone admin_auth_url = http://10.30.0.10:35357/v2.0 admin_tenant_name = service admin_username = neutron admin_password = redhat service_metadata_proxy = True metadata_proxy_shared_secret = redhat [osapi_v3] [rdp] [serial_console] [spice] [ssl] [trusted_computing] [upgrade_levels] [vmware] [workarounds] [xenserver] [zookeeper] [matchmaker_redis] [matchmaker_ring] [oslo_concurrency] lock_path = /var/lib/nova/tmp [oslo_messaging_amqp] [oslo_messaging_qpid] [oslo_messaging_rabbit] rabbit_host = 10.30.0.10 rabbit_userid = guest rabbit_password = guest
ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron systemctl restart openstack-nova-api.service openstack-nova-scheduler.service openstack-nova-conductor.service systemctl enable neutron-server.service; systemctl start neutron-server.service
vi /etc/neutron/l3_agent.ini
[DEFAULT] verbose = True interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver external_network_bridge = router_delete_namespaces = True
vi /etc/neutron/dhcp_agent.ini
[DEFAULT] interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq dhcp_delete_namespaces = True dnsmasq_config_file = /etc/neutron/dnsmasq-neutron.conf
vi /etc/neutron/dnsmasq-neutron.conf
dhcp-option-force=26,1454
pkill dnsmasq
vi /etc/neutron/metadata_agent.ini
[DEFAULT] auth_uri = http://10.30.0.10:5000 auth_url = http://10.30.0.10:35357 auth_region = RegionOne auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = neutron password = redhat nova_metadata_ip = 10.30.0.10 metadata_proxy_shared_secret = redhat
openstack-service restart systemctl enable openvswitch.service systemctl start openvswitch.service ovs-vsctl add-br br-ex
vi /etc/sysconfig/network-scripts/ifcfg-enp0s8
DEVICE=enp0s8 NM_CONTROLLED=no BOOTPROTO=none ONBOOT=yes NAME=enp0s8 DEVICETYPE=ovs OVS_BRIDGE=br-ex TYPE=OVSPort PEERDNS=no
vi /etc/sysconfig/network-scripts/ifcfg-br-ex
DEVICE=br-ex STP=no BRIDGING_OPTS=priority=32768 TYPE=OVSBridge BOOTPROTO=static DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT=no IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=br-ex ONBOOT=yes IPADDR=10.30.0.10 PREFIX=24 GATEWAY=10.30.0.1 DEVICETYPE=ovs USERCTL=yes
systemctl restart network.service ovs-vsctl list-ports br-ex ethtool -K enp0s8 gro off systemctl restart network.service cp /usr/lib/systemd/system/neutron-openvswitch-agent.service /usr/lib/systemd/system/neutron-openvswitch-agent.service.orig sed -i 's,plugins/openvswitch/ovs_neutron_plugin.ini,plugin.ini,g' /usr/lib/systemd/system/neutron-openvswitch-agent.service systemctl enable neutron-openvswitch-agent.service neutron-l3-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service neutron-ovs-cleanup.service systemctl start neutron-openvswitch-agent.service neutron-l3-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service
vi /etc/sysctl.conf
net.ipv4.conf.all.rp_filter=0 net.ipv4.conf.default.rp_filter=0 net.bridge.bridge-nf-call-iptables=1 net.bridge.bridge-nf-call-ip6tables=1
sysctl -p
yum install -y openstack-neutron openstack-neutron-ml2 openstack-neutron-openvswitch
vi /etc/neutron/neutron.conf
[DEFAULT] core_plugin = ml2 service_plugins = router allow_overlapping_ips = True auth_strategy = keystone rpc_backend=rabbit [matchmaker_redis] [matchmaker_ring] [quotas] [agent] [keystone_authtoken] admin_tenant_name = %SERVICE_TENANT_NAME% admin_user = %SERVICE_USER% admin_password = %SERVICE_PASSWORD% auth_uri = http://10.30.0.10:5000 auth_url = http://10.30.0.10:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = neutron password = redhat [database] [nova] [oslo_concurrency] [oslo_policy] [oslo_messaging_amqp] [oslo_messaging_qpid] [oslo_messaging_rabbit] rabbit_host = 10.30.0.10 rabbit_userid = guest rabbit_password = guest
vi /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2] type_drivers = flat,gre,vxlan tenant_network_types = vxlan mechanism_drivers = openvswitch [ml2_type_flat] [ml2_type_vlan] [ml2_type_gre] [ml2_type_vxlan] vni_ranges = 1:10000 [securitygroup] enable_security_group = True enable_ipset = True firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver [ovs]
local_ip = 192.168.0.11 [agent] tunnel_types = vxlan
vi /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
[ovs] integration_bridge = br-int tunnel_bridge = br-tun
local_ip = 192.168.0.11 [agent] tunnel_types = vxlan [securitygroup]
systemctl enable openvswitch.service systemctl start openvswitch.service
vi /etc/nova/nova.conf
[DEFAULT] rpc_backend=rabbit
my_ip=10.30.0.11 auth_strategy=keystone network_api_class=nova.network.neutronv2.api.API linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver firewall_driver=nova.virt.firewall.NoopFirewallDriver novncproxy_base_url=http://10.30.0.10:6080/vnc_auto.html vncserver_listen=0.0.0.0
vncserver_proxyclient_address=10.30.0.11 vnc_enabled=true [api_database] [barbican] [cells] [cinder] [conductor] [database] [ephemeral_storage_encryption] [glance] host = 10.30.0.10 [guestfs] [hyperv] [image_file_url] [ironic] [keymgr] [keystone_authtoken] auth_uri = http://10.0.0.10:5000 auth_url = http://10.30.0.10:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = nova password = redhat [libvirt] virt_type=qemu [metrics] [neutron] url = http://10.30.0.10:9696 auth_strategy = keystone admin_auth_url = http://10.30.0.10:35357/v2.0 admin_tenant_name = service admin_username = neutron admin_password = redhat [osapi_v3] [rdp] [serial_console] [spice] [ssl] [trusted_computing] [upgrade_levels] [vmware] [workarounds] [xenserver] [zookeeper] [matchmaker_redis] [matchmaker_ring] [oslo_concurrency] lock_path = /var/lib/nova/tmp [oslo_messaging_amqp] [oslo_messaging_qpid] [oslo_messaging_rabbit] rabbit_host = 10.30.0.10 rabbit_userid = guest rabbit_password = guest
ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini cp /usr/lib/systemd/system/neutron-openvswitch-agent.service /usr/lib/systemd/system/neutron-openvswitch-agent.service.orig sed -i 's,plugins/openvswitch/ovs_neutron_plugin.ini,plugin.ini,g' /usr/lib/systemd/system/neutron-openvswitch-agent.service systemctl restart openstack-nova-compute.service systemctl enable neutron-openvswitch-agent.service systemctl start neutron-openvswitch-agent.service
cd /root source admin-openrc.sh neutron ext-list
+-----------------------+-----------------------------------------------+ | alias | name | +-----------------------+-----------------------------------------------+ | security-group | security-group | | l3_agent_scheduler | L3 Agent Scheduler | | net-mtu | Network MTU | | ext-gw-mode | Neutron L3 Configurable external gateway mode | | binding | Port Binding | | provider | Provider Network | | agent | agent | | quotas | Quota management support | | subnet_allocation | Subnet Allocation | | dhcp_agent_scheduler | DHCP Agent Scheduler | | l3-ha | HA Router extension | | multi-provider | Multi Provider Network | | external-net | Neutron external network | | router | Neutron L3 Router | | allowed-address-pairs | Allowed Address Pairs | | extraroute | Neutron Extra Route | | extra_dhcp_opt | Neutron Extra DHCP opts | | dvr | Distributed Virtual Router | +-----------------------+-----------------------------------------------+
ovs-vsctl show
[root@node-1 ~(admin)] 4bedc59c-a685-4a53-98b8-28ab9ac3479d Bridge br-tun fail_mode: secure Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port "vxlan-c0a8000c" Interface "vxlan-c0a8000c" type: vxlan options: {df_default="true", in_key=flow, local_ip="192.168.0.10", out_key=flow, remote_ip="192.168.0.12"} Port "vxlan-c0a8000b" Interface "vxlan-c0a8000b" type: vxlan options: {df_default="true", in_key=flow, local_ip="192.168.0.10", out_key=flow, remote_ip="192.168.0.11"} Port br-tun Interface br-tun type: internal Bridge br-ex Port phy-br-ex Interface phy-br-ex type: patch options: {peer=int-br-ex} Port br-ex Interface br-ex type: internal Port "enp0s8" Interface "enp0s8" Bridge br-int fail_mode: secure Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port int-br-ex Interface int-br-ex type: patch options: {peer=phy-br-ex} Port "qr-790ecb8b-da" tag: 1 Interface "qr-790ecb8b-da" type: internal Port "qg-78c1257c-b9" tag: 2 Interface "qg-78c1257c-b9" type: internal Port "tapa307ce86-ee" tag: 1 Interface "tapa307ce86-ee" type: internal Port br-int Interface br-int type: internal ovs_version: "2.4.0"
[root@node-2 ~] 73650c34-694d-49dd-8f6e-3c5996ef02a1 Bridge br-int fail_mode: secure Port br-int Interface br-int type: internal Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Bridge br-tun fail_mode: secure Port br-tun Interface br-tun type: internal Port "vxlan-c0a8000c" Interface "vxlan-c0a8000c" type: vxlan options: {df_default="true", in_key=flow, local_ip="192.168.0.11", out_key=flow, remote_ip="192.168.0.12"} Port "vxlan-c0a8000a" Interface "vxlan-c0a8000a" type: vxlan options: {df_default="true", in_key=flow, local_ip="192.168.0.11", out_key=flow, remote_ip="192.168.0.10"} Port patch-int Interface patch-int type: patch options: {peer=patch-tun} ovs_version: "2.4.0"
[root@node-3 ~] 4836f089-eeb9-4116-93a2-c84028beabbf Bridge br-int fail_mode: secure Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port "qvo85881db0-8d" tag: 1 Interface "qvo85881db0-8d" Port br-int Interface br-int type: internal Bridge br-tun fail_mode: secure Port "vxlan-c0a8000b" Interface "vxlan-c0a8000b" type: vxlan options: {df_default="true", in_key=flow, local_ip="192.168.0.12", out_key=flow, remote_ip="192.168.0.11"} Port "vxlan-c0a8000a" Interface "vxlan-c0a8000a" type: vxlan options: {df_default="true", in_key=flow, local_ip="192.168.0.12", out_key=flow, remote_ip="192.168.0.10"} Port br-tun Interface br-tun type: internal Port patch-int Interface patch-int type: patch options: {peer=patch-tun} ovs_version: "2.4.0"
cd /root
source admin-openrc.sh neutron net-create public --router:external --provider:physical_network public --provider:network_type flat neutron subnet-create public 10.30.0.0/24 --name public-subnet --allocation-pool start=10.30.0.100,end=10.30.0.200 --disable-dhcp --gateway 10.30.0.1
source demo-openrc.sh neutron net-create private neutron subnet-create private 192.168.1.0/24 --name private-subnet --gateway 192.168.1.1 neutron router-create private-router neutron router-interface-add private-router private-subnet neutron router-gateway-set private-router public nova keypair-add demo-key nova boot --flavor m1.tiny --image cirros-in-fs --nic net-id=$(neutron net-list | awk '/ private / {print $2}') --security-group default --key-name demo-key instance1 nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0 nova secgroup-add-rule default tcp 22 22 0.0.0.0/0 neutron floatingip-create public
+---------------------+--------------------------------------+ | Field | Value | +---------------------+--------------------------------------+ | fixed_ip_address | | | floating_ip_address | 10.30.0.101 | | floating_network_id | 987d51e4-28f9-4861-8020-fc455916f441 | | id | c7071675-fb84-466d-ad67-927a016f9c23 | | port_id | | | router_id | | | status | DOWN | | tenant_id | 0498aa8db8114baaa01bc0830f00dac6 | +---------------------+--------------------------------------+
nova floating-ip-associate instance1 10.30.0.101
yum install -y openstack-dashboard httpd mod_wsgi memcached python-memcached
vi /etc/openstack-dashboard/local_settings ... OPENSTACK_HOST = "10.30.0.10" ALLOWED_HOSTS = '*' CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211', } } OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
vi /etc/httpd/conf/httpd.conf
chown -R apache:apache /usr/share/openstack-dashboard/static systemctl enable httpd.service memcached.service systemctl restart httpd.service memcached.service
http://10.30.0.10/dashboard
mysql -u root -p CREATE DATABASE cinder; GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'localhost' IDENTIFIED BY 'redhat'; GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'%' IDENTIFIED BY 'redhat'; EXIT
cd /root source admin-openrc.sh
openstack user create --password-prompt cinder openstack role add --project service --user cinder admin openstack service create --name cinder --description "OpenStack Block Storage" volume openstack service create --name cinderv2 --description "OpenStack Block Storage" volumev2 openstack endpoint create --publicurl http://10.30.0.10:8776/v2/%\(tenant_id\)s --internalurl http://10.30.0.10:8776/v2/%\(tenant_id\)s --adminurl http://10.30.0.10:8776/v2/%\(tenant_id\)s --region RegionOne volume openstack endpoint create --publicurl http://10.30.0.10:8776/v2/%\(tenant_id\)s --internalurl http://10.30.0.10:8776/v2/%\(tenant_id\)s --adminurl http://10.30.0.10:8776/v2/%\(tenant_id\)s --region RegionOne volumev2
yum install -y openstack-cinder python-cinderclient python-oslo-db python-oslo-log qemu lvm2 targetcli MySQL-python cp /usr/share/cinder/cinder-dist.conf /etc/cinder/cinder.conf chown -R cinder:cinder /etc/cinder/cinder.conf systemctl enable lvm2-lvmetad.service systemctl start lvm2-lvmetad.service pvcreate /dev/sdb vgcreate cinder-volumes /dev/sdb
vi /etc/lvm/lvm.conf
devices { ... filter = [ "a/sdb/", "a/sda/", "r/.*/"] ... }
vi /etc/cinder/cinder.conf
[DEFAULT] ... verbose = True rpc_backend = rabbit auth_strategy = keystone my_ip = 10.30.0.10 enabled_backends = lvm glance_host = 10.30.0.10 [database] ... connection = mysql://cinder:redhat@10.30.0.10/cinder [oslo_messaging_rabbit] ... rabbit_host = 10.30.0.10 rabbit_userid = guest rabbit_password = guest [oslo_concurrency] ... lock_path = /var/lock/cinder [keystone_authtoken] ... auth_uri = http://10.30.0.10:5000 auth_url = http://10.30.0.10:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = cinder password = redhat [lvm] ... volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver volume_group = cinder-volumes iscsi_protocol = iscsi iscsi_helper = lioadm
if [ ! -d /var/lock/cinder ]; then mkdir /var/lock/cinder; fi chown -R cinder:cinder /var/lock/cinder su -s /bin/sh -c "cinder-manage db sync" cinder systemctl enable openstack-cinder-api.service openstack-cinder-scheduler.service openstack-cinder-volume.service target.service systemctl start openstack-cinder-api.service openstack-cinder-scheduler.service openstack-cinder-volume.service target.service
cd /root echo "export OS_VOLUME_API_VERSION=2" | tee -a admin-openrc.sh demo-openrc.sh source admin-openrc.sh cinder service-list
+------------------+------------------------+------+---------+-------+----------------------------+-----------------+ | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +------------------+------------------------+------+---------+-------+----------------------------+-----------------+ | cinder-scheduler | node-1.example.com | nova | enabled | up | 2016-03-02T02:03:12.000000 | - | | cinder-volume | node-1.example.com@lvm | nova | enabled | up | 2016-03-02T02:03:12.000000 | - | +------------------+------------------------+------+---------+-------+----------------------------+-----------------+
source demo-openrc.sh cinder list cinder create --name test-lvm 10 cinder list
+--------------------------------------+-----------+----------+------+-------------+----------+-------------+ | ID | Status | Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+----------+------+-------------+----------+-------------+ | 59eb88b6-72f6-4e4e-b398-310f6ab028ed | available | test-lvm | 10 | - | false | | +--------------------------------------+-----------+----------+------+-------------+----------+-------------+
cd /root source demo-openrc.sh
nova delete 54d384b6-bca1-4fff-a2d6-a63c0b567c21 neutron router-gateway-clear private-router neutron router-interface-delete private-router $(neutron net-show private |awk '/ subnets / { print $4 }') neutron router-delete private-router neutron subnet-delete private-subnet
cd /root source admin-openrc.sh
vi /etc/neutron/neutron.conf
[DEFAULT] ... router_distributed = True
vi /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2] ... mechanism_drivers = openvswitch,l2population [agent] ... l2_population = True enable_distributed_routing = True
vi /etc/neutron/l3_agent.ini
[DEFAULT] ... agent_mode = dvr_snat
vi /etc/neutron/neutron.conf
[DEFAULT] ... router_distributed = True
vi /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2] ... mechanism_drivers = openvswitch,l2population
[ovs] ... bridge_mappings = public:br-ex
[agent] ... l2_population = True enable_distributed_routing = True
vi /etc/neutron/l3_agent.ini
[DEFAULT] ... verbose = True interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver external_network_bridge = router_delete_namespaces = True agent_mode = dvr
vi /etc/neutron/metadata_agent.ini
[DEFAULT] ... auth_uri = http://10.30.0.10:5000 auth_url = http://10.30.0.10:35357 auth_region = RegionOne auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = neutron password = redhatnova_metadata_ip = 10.30.0.10 metadata_proxy_shared_secret = redhat
vi /etc/sysconfig/network-scripts/ifcfg-enp0s8
DEVICE=enp0s8 NM_CONTROLLED=no BOOTPROTO=none ONBOOT=yes NAME=enp0s8 DEVICETYPE=ovs OVS_BRIDGE=br-ex TYPE=OVSPort PEERDNS=no
vi /etc/sysconfig/network-scripts/ifcfg-br-ex
DEVICE=br-ex STP=no BRIDGING_OPTS=priority=32768 TYPE=OVSBridge BOOTPROTO=static DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT=no IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=br-ex ONBOOT=yes IPADDR=10.30.0.11 PREFIX=24 GATEWAY=10.30.0.1 DEVICETYPE=ovs USERCTL=yes
ovs-vsctl add-br br-ex systemctl restart network.service systemctl enable neutron-l3-agent.service neutron-metadata-agent.service systemctl start neutron-l3-agent.service neutron-metadata-agent.service systemctl restart openvswitch.service systemctl restart neutron-openvswitch-agent.service
systemctl restart neutron-server.service systemctl restart neutron-openvswitch-agent.service neutron-l3-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service systemctl restart openvswitch.service
source demo-openrc.sh neutron subnet-create private 192.168.100.0/24 --name private-subnet --gateway 192.168.100.1 neutron router-create private-router neutron router-interface-add private-router private-subnet neutron router-gateway-set private-router public nova boot --flavor m1.tiny --image cirros-in-fs --nic net-id=$(neutron net-list | awk '/ private / {print $2}') --security-group default --key-name demo-key instance2 neutron floatingip-create public +---------------------+--------------------------------------+ | Field | Value | +---------------------+--------------------------------------+ | fixed_ip_address | | | floating_ip_address | 10.30.0.103 | | floating_network_id | 987d51e4-28f9-4861-8020-fc455916f441 | | id | b6cff8cf-b0f5-4051-800a-9a90b7931d2e | | port_id | | | router_id | | | status | DOWN | | tenant_id | 0498aa8db8114baaa01bc0830f00dac6 | +---------------------+--------------------------------------+
nova floating-ip-associate instance2 10.30.0.103
|