OpenStack 安装和使用(一)
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp — anywhere anywhere udp dpt:domain
ACCEPT tcp — anywhere anywhere tcp dpt:domain
ACCEPT udp — anywhere anywhere udp dpt:bootps
ACCEPT tcp — anywhere anywhere tcp dpt:bootps
ACCEPT all — anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp — anywhere anywhere
ACCEPT all — anywhere anywhere
ACCEPT tcp — anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp — anywhere anywhere state NEW tcp dpt:mysql
ACCEPT tcp — anywhere anywhere state NEW tcp dpt:amqp
ACCEPT tcp — anywhere anywhere state NEW tcp dpt:armtechdaemon
ACCEPT tcp — anywhere anywhere state NEW tcp dpt:iscsi-target
ACCEPT tcp — anywhere anywhere state NEW tcp dpt:commplex-main
ACCEPT tcp — anywhere anywhere state NEW tcp dpt:8774
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all — anywhere 192.168.122.0/24 state RELATED,ESTABLISHED
ACCEPT all — 192.168.122.0/24 anywhere
ACCEPT all — anywhere anywhere
REJECT all — anywhere anywhere reject-with icmp-port-unreachable
REJECT all — anywhere anywhere reject-with icmp-port-unreachable
REJECT all — anywhere anywhere reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
+————————+
| Tables_in_keystone |
+————————+
| ec2_credential |
| endpoint |
| metadata |
| migrate_version |
| role |
| service |
| tenant |
| token |
| user |
| user_tenant_membership |
+————————+
10 rows in set (0.00 sec)
libvirtd.service enabled
30071 ? Ss 0:00 /usr/bin/python /usr/bin/glance-api –config-file /etc/glance/glance-api.conf
30074 ? Ss 0:00 /usr/bin/python /usr/bin/glance-registry –config-file /etc/glance/glance-registry.conf
# ps axf |grep nova
31284 ? Ss 0:01 /usr/bin/python /usr/bin/nova-api –config-file /etc/nova/nova.conf –logfile /var/log/nova/api.log
31288 ? Ss 0:00 /usr/bin/python /usr/bin/nova-objectstore –config-file /etc/nova/nova.conf –logfile /var/log/nova/objectstore.log
31296 ? Ssl 0:01 /usr/bin/python /usr/bin/nova-compute –config-file /etc/nova/nova.conf –logfile /var/log/nova/compute.log
31304 ? Ss 0:00 /usr/bin/python /usr/bin/nova-network –config-file /etc/nova/nova.conf –logfile /var/log/nova/network.log
31311 ? Ss 0:00 /usr/bin/python /usr/bin/nova-volume –config-file /etc/nova/nova.conf –logfile /var/log/nova/volume.log
31319 ? Ss 0:00 /usr/bin/python /usr/bin/nova-scheduler –config-file /etc/nova/nova.conf –logfile /var/log/nova/scheduler.log
31327 ? Ss 0:00 /usr/bin/python /usr/bin/nova-cert –config-file /etc/nova/nova.conf –logfile /var/log/nova/cert.log
export ADMIN_TOKEN=$(openssl rand -hex 10)
export OS_USERNAME=admin
export OS_PASSWORD=123456
export OS_TENANT_NAME=hanborq
export OS_AUTH_URL=http://127.0.0.1:5000/v2.0/
EOF
31876 ? Ss 0:00 /usr/bin/python /usr/bin/keystone-all –config-file /etc/keystone/keystone.conf
| Property | Value |
+————-+———————————-+
| description | HanBorq Tenant |
| enabled | True |
| id | 94d38db32a7d4107beeed36d9e98bf06 |
| name | hanborq |
+————-+———————————-+
| Property | Value |
+———-+————————————————————————————————————————-+
| email | None |
| enabled | True |
| id | cd5e2e764fc7420dad016f9af7be7123 |
| name | admin |
| password | $6$rounds=40000$tfY5suG0ySPZ05RL$Kz7SUdAFhQOX8YYs01pGyznHS85wBcdm/a4DVKRQ6VEDZdZATGiB94/BKUedHa51mZ8wbF3VF3/VLt0QSTwc11 |
| tenantId | 94d38db32a7d4107beeed36d9e98bf06 |
+———-+————————————————————————————————————————-+
+———-+———————————-+
| Property | Value |
+———-+———————————-+
| id | 428438feb3eb4946907b519383f38ceb |
| name | admin |
| Property | Value |
+———-+———————————-+
| id | aee579c6430c46d9861c5b684d42ebb7 |
| name | member |
+———-+———————————-+
| Property | Value |
+————-+———————————-+
| description | Service Tenant |
| enabled | True |
| id | d9eb763b350b4ff681be7f2bf95d65d5 |
| name | service |
+————-+———————————-+
| Property | Value |
+———-+————————————————————————————————————————-+
| email | None |
| enabled | True |
| id | 1c8074ce6b13400bbeb6efaa4e11910d |
| name | glance |
| password | $6$rounds=40000$I7EGyqt4HaDxdWRM$7gPPkF5XCDNz4aucLXwAUzz9ipzRM9JgtwsCPLeUqFilfeFper/kjhV3XWWvnmUzSTqnv/C.WbbMkgSEapViy. |
| tenantId | d9eb763b350b4ff681be7f2bf95d65d5 |
+———-+————————————————————————————————————————-+
| Property | Value |
+———-+————————————————————————————————————————-+
| email | None |
| enabled | True |
| id | 4e8e9fb808b64e3f8a6fc266e7cc6517 |
| name | nova |
| password | $6$rounds=40000$clEIMiItgmqk9czI$oFXKlxq0b3oRKGdMv8o0sg2fm9bMk2yMt24NaJ4agcBRdCmRhv3WWkj2WdtswuCHang2qHLuC3tT3d69SRFSR0 |
| tenantId | d9eb763b350b4ff681be7f2bf95d65d5 |
+———-+————————————————————————————————————————-+
| Property | Value |
+———-+————————————————————————————————————————-+
| email | None |
| enabled | True |
| id | b8ac2f679d6545e38b3fb5dcf14ac0c1 |
| name | ec2 |
| password | $6$rounds=40000$Im..ohGThtaN1rLb$PSaXZSfJWyu5VHXZZ3l1j5uPyrl4wQIqKWBABRAlhR6lDh2qdBB/u3DFa9LjHdVuHetttHEhHu7VgXNevYsYu. |
| tenantId | d9eb763b350b4ff681be7f2bf95d65d5 |
+———-+————————————————————————————————————————-+
| Property | Value |
+———-+————————————————————————————————————————-+
| email | None |
| enabled | True |
| id | 6fceec63405a432a9e3ccbe89a1bbdb4 |
| name | swift |
| password | $6$rounds=40000$JJlQ2vmlsbd.OP8d$pbv90hRcQbkJvBz1oI1hZsf01BEaI30M9Ae0jiXBmnFmCb.WOiw9SPXqhk7kuWtb5BV/os9cqdXm6nZA.Ajll. |
| tenantId | d9eb763b350b4ff681be7f2bf95d65d5 |
+———-+————————————————————————————————————————-+
+———————————-+——–+
| id | name |
+———————————-+——–+
| 428438feb3eb4946907b519383f38ceb | admin |
| aee579c6430c46d9861c5b684d42ebb7 | member |
+———————————-+——–+
[root@cc ~]#
[root@cc ~]# keystone –token c8701a128708a76161e3 –endpoint http://127.0.0.1:35357/v2.0 tenant-list
+———————————-+———+———+
| id | name | enabled |
+———————————-+———+———+
| 94d38db32a7d4107beeed36d9e98bf06 | hanborq | True |
| d9eb763b350b4ff681be7f2bf95d65d5 | service | True |
+———————————-+———+———+
[root@cc ~]#
[root@cc ~]# keystone –token c8701a128708a76161e3 –endpoint http://127.0.0.1:35357/v2.0 user-list
+———————————-+———+——-+——–+
| id | enabled | email | name |
+———————————-+———+——-+——–+
| 1c8074ce6b13400bbeb6efaa4e11910d | True | None | glance |
| 4e8e9fb808b64e3f8a6fc266e7cc6517 | True | None | nova |
| 6fceec63405a432a9e3ccbe89a1bbdb4 | True | None | swift |
| b8ac2f679d6545e38b3fb5dcf14ac0c1 | True | None | ec2 |
| cd5e2e764fc7420dad016f9af7be7123 | True | None | admin |
+———————————-+———+——-+——–+
paste.filter_factory = keystone.contrib.ec2:Ec2Extension.factory
paste.filter_factory = keystone.contrib.s3:S3Extension.factory
pipeline = token_auth admin_token_auth xml_body json_body debug ec2_extension s3_extension crud_extension admin_service