立即注册
登录
About云-梭伦科技
返回首页
pig2的个人空间
https://www.aboutyun.com/?61
[收藏]
[复制]
[分享]
[RSS]
空间首页
动态
记录
日志
相册
主题
分享
留言板
个人资料
导读
淘贴
博客
群组
社区VIP
APP下载
今日排行
本周排行
本周热帖
本月排行
本月热帖
会员排行
首页
Portal
专题
BBS
面试
办公|编程助手
更多
我的空间
好友
帖子
收藏
道具
勋章
任务
动态
日志
相册
分享
记录
留言板
群组
导读
日志
openstack【juno】入门 【总结篇】二十七:openstack排除故障及常见问题记录
已有 3308 次阅读
2015-2-26 18:10
http://www.aboutyun.com/thread-11718-1-1.html
问题导读
1.如何使用neutron命令?
2.如何查看具体某个命令的参数解释?
3.如何查看ovs创建网桥
创建实例失败:
首先用下面命令查看服务是否正常
nova-manage service list
如果不正常,则使用下面命令重启,如果还不行,则查看日志,
service nova-api restart
service nova-cert restart
service nova-consoleauth restart
service nova-scheduler restart
service nova-conductor restart
service nova-novncproxy restart
对网络的判断:
可以查看网桥
ovs-vsctl show
如果不会使用ovs,则可以使用
ovs-vsctl --help
如果看不懂,则查看
openstack Juno neutron必读系列文章:
网络流量查看:
udhcpc eth0
neutron命令的使用
neutron --help
会输出很多内容
--version show program's version number and exit
-v, --verbose, --debug
Increase verbosity of output and show tracebacks on
errors. You can repeat this option.
-q, --quiet Suppress output except warnings and errors.
-h, --help Show this help message and exit.
-r NUM, --retries NUM
How many times the request to the Neutron server
should be retried if it fails.
--os-service-type <os-service-type>
Defaults to env[OS_NETWORK_SERVICE_TYPE] or network.
--os-endpoint-type <os-endpoint-type>
Defaults to env[OS_ENDPOINT_TYPE] or publicURL.
--service-type <service-type>
DEPRECATED! Use --os-service-type.
--endpoint-type <endpoint-type>
DEPRECATED! Use --os-endpoint-type.
--os-auth-strategy <auth-strategy>
DEPRECATED! Only keystone is supported.
--os-auth-url <auth-url>
Authentication URL, defaults to env[OS_AUTH_URL].
--os-tenant-name <auth-tenant-name>
Authentication tenant name, defaults to
env[OS_TENANT_NAME].
--os-project-name <auth-project-name>
Another way to specify tenant name. This option is
mutually exclusive with --os-tenant-name. Defaults to
env[OS_PROJECT_NAME].
--os-tenant-id <auth-tenant-id>
Authentication tenant ID, defaults to
env[OS_TENANT_ID].
--os-project-id <auth-project-id>
Another way to specify tenant ID. This option is
mutually exclusive with --os-tenant-id. Defaults to
env[OS_PROJECT_ID].
--os-username <auth-username>
Authentication username, defaults to env[OS_USERNAME].
--os-user-id <auth-user-id>
Authentication user ID (Env: OS_USER_ID)
--os-user-domain-id <auth-user-domain-id>
OpenStack user domain ID. Defaults to
env[OS_USER_DOMAIN_ID].
--os-user-domain-name <auth-user-domain-name>
OpenStack user domain name. Defaults to
env[OS_USER_DOMAIN_NAME].
--os-project-domain-id <auth-project-domain-id>
Defaults to env[OS_PROJECT_DOMAIN_ID].
--os-project-domain-name <auth-project-domain-name>
Defaults to env[OS_PROJECT_DOMAIN_NAME].
--os-cert <certificate>
Path of certificate file to use in SSL connection.
This file can optionally be prepended with the private
key. Defaults to env[OS_CERT].
--os-cacert <ca-certificate>
Specify a CA bundle file to use in verifying a TLS
(https) server certificate. Defaults to
env[OS_CACERT].
--os-key <key> Path of client key to use in SSL connection. This
option is not necessary if your key is prepended to
your certificate file. Defaults to env[OS_KEY].
--os-password <auth-password>
Authentication password, defaults to env[OS_PASSWORD].
--os-region-name <auth-region-name>
Authentication region name, defaults to
env[OS_REGION_NAME].
--os-token <token> Authentication token, defaults to env[OS_TOKEN].
--http-timeout <seconds>
Timeout in seconds to wait for an HTTP response.
Defaults to env[OS_NETWORK_TIMEOUT] or None if not
specified.
--os-url <url> Defaults to env[OS_URL].
--insecure Explicitly allow neutronclient to perform "insecure"
SSL (https) requests. The server's certificate will
not be verified against any certificate authorities.
This option should be used with caution.
Commands for API v2.0:
agent-delete Delete a given agent.
agent-list List agents.
agent-show Show information of a given agent.
agent-update Update a given agent.
cisco-credential-create Creates a credential.
cisco-credential-delete Delete a given credential.
cisco-credential-list List credentials that belong to a given tenant.
cisco-credential-show Show information of a given credential.
cisco-network-profile-create Creates a network profile.
cisco-network-profile-delete Delete a given network profile.
cisco-network-profile-list List network profiles that belong to a given tenant.
cisco-network-profile-show Show information of a given network profile.
cisco-network-profile-update Update network profile's information.
cisco-policy-profile-list List policy profiles that belong to a given tenant.
cisco-policy-profile-show Show information of a given policy profile.
cisco-policy-profile-update Update policy profile's information.
complete print bash completion command
dhcp-agent-list-hosting-net List DHCP agents hosting a network.
dhcp-agent-network-add Add a network to a DHCP agent.
dhcp-agent-network-remove Remove a network from a DHCP agent.
ext-list List all extensions.
ext-show Show information of a given resource.
firewall-create Create a firewall.
firewall-delete Delete a given firewall.
firewall-list List firewalls that belong to a given tenant.
firewall-policy-create Create a firewall policy.
firewall-policy-delete Delete a given firewall policy.
firewall-policy-insert-rule Insert a rule into a given firewall policy.
firewall-policy-list List firewall policies that belong to a given tenant.
firewall-policy-remove-rule Remove a rule from a given firewall policy.
firewall-policy-show Show information of a given firewall policy.
firewall-policy-update Update a given firewall policy.
firewall-rule-create Create a firewall rule.
firewall-rule-delete Delete a given firewall rule.
firewall-rule-list List firewall rules that belong to a given tenant.
firewall-rule-show Show information of a given firewall rule.
firewall-rule-update Update a given firewall rule.
firewall-show Show information of a given firewall.
firewall-update Update a given firewall.
floatingip-associate Create a mapping between a floating IP and a fixed IP.
floatingip-create Create a floating IP for a given tenant.
floatingip-delete Delete a given floating IP.
floatingip-disassociate Remove a mapping from a floating IP to a fixed IP.
floatingip-list List floating IPs that belong to a given tenant.
floatingip-show Show information of a given floating IP.
gateway-device-create Create a network gateway device.
gateway-device-delete Delete a given network gateway device.
gateway-device-list List network gateway devices for a given tenant.
gateway-device-show Show information for a given network gateway device.
gateway-device-update Update a network gateway device.
help print detailed help for another command
ipsec-site-connection-create Create an IPsec site connection.
ipsec-site-connection-delete Delete a given IPsec site connection.
ipsec-site-connection-list List IPsec site connections that belong to a given tenant.
ipsec-site-connection-show Show information of a given IPsec site connection.
ipsec-site-connection-update Update a given IPsec site connection.
l3-agent-list-hosting-router List L3 agents hosting a router.
l3-agent-router-add Add a router to a L3 agent.
l3-agent-router-remove Remove a router from a L3 agent.
lb-agent-hosting-pool Get loadbalancer agent hosting a pool.
lb-healthmonitor-associate Create a mapping between a health monitor and a pool.
lb-healthmonitor-create Create a healthmonitor.
lb-healthmonitor-delete Delete a given healthmonitor.
lb-healthmonitor-disassociate Remove a mapping from a health monitor to a pool.
lb-healthmonitor-list List healthmonitors that belong to a given tenant.
lb-healthmonitor-show Show information of a given healthmonitor.
lb-healthmonitor-update Update a given healthmonitor.
lb-member-create Create a member.
lb-member-delete Delete a given member.
lb-member-list List members that belong to a given tenant.
lb-member-show Show information of a given member.
lb-member-update Update a given member.
lb-pool-create Create a pool.
lb-pool-delete Delete a given pool.
lb-pool-list List pools that belong to a given tenant.
lb-pool-list-on-agent List the pools on a loadbalancer agent.
lb-pool-show Show information of a given pool.
lb-pool-stats Retrieve stats for a given pool.
lb-pool-update Update a given pool.
lb-vip-create Create a vip.
lb-vip-delete Delete a given vip.
lb-vip-list List vips that belong to a given tenant.
lb-vip-show Show information of a given vip.
lb-vip-update Update a given vip.
meter-label-create Create a metering label for a given tenant.
meter-label-delete Delete a given metering label.
meter-label-list List metering labels that belong to a given tenant.
meter-label-rule-create Create a metering label rule for a given label.
meter-label-rule-delete Delete a given metering label.
meter-label-rule-list List metering labels that belong to a given label.
meter-label-rule-show Show information of a given metering label rule.
meter-label-show Show information of a given metering label.
nec-packet-filter-create Create a packet filter for a given tenant.
nec-packet-filter-delete Delete a given packet filter.
nec-packet-filter-list List packet filters that belong to a given tenant.
nec-packet-filter-show Show information of a given packet filter.
nec-packet-filter-update Update packet filter's information.
net-create Create a network for a given tenant.
net-delete Delete a given network.
net-external-list List external networks that belong to a given tenant.
net-gateway-connect Add an internal network interface to a router.
net-gateway-create Create a network gateway.
net-gateway-delete Delete a given network gateway.
net-gateway-disconnect Remove a network from a network gateway.
net-gateway-list List network gateways for a given tenant.
net-gateway-show Show information of a given network gateway.
net-gateway-update Update the name for a network gateway.
net-list List networks that belong to a given tenant.
net-list-on-dhcp-agent List the networks on a DHCP agent.
net-show Show information of a given network.
net-update Update network's information.
nuage-netpartition-create Create a netpartition for a given tenant.
nuage-netpartition-delete Delete a given netpartition.
nuage-netpartition-list List netpartitions that belong to a given tenant.
nuage-netpartition-show Show information of a given netpartition.
port-create Create a port for a given tenant.
port-delete Delete a given port.
port-list List ports that belong to a given tenant.
port-show Show information of a given port.
port-update Update port's information.
queue-create Create a queue.
queue-delete Delete a given queue.
queue-list List queues that belong to a given tenant.
queue-show Show information of a given queue.
quota-delete Delete defined quotas of a given tenant.
quota-list List quotas of all tenants who have non-default quota values.
quota-show Show quotas of a given tenant.
quota-update Define tenant's quotas not to use defaults.
router-create Create a router for a given tenant.
router-delete Delete a given router.
router-gateway-clear Remove an external network gateway from a router.
router-gateway-set Set the external network gateway for a router.
router-interface-add Add an internal network interface to a router.
router-interface-delete Remove an internal network interface from a router.
router-list List routers that belong to a given tenant.
router-list-on-l3-agent List the routers on a L3 agent.
router-port-list List ports that belong to a given tenant, with specified router.
router-show Show information of a given router.
router-update Update router's information.
security-group-create Create a security group.
security-group-delete Delete a given security group.
security-group-list List security groups that belong to a given tenant.
security-group-rule-create Create a security group rule.
security-group-rule-delete Delete a given security group rule.
security-group-rule-list List security group rules that belong to a given tenant.
security-group-rule-show Show information of a given security group rule.
security-group-show Show information of a given security group.
security-group-update Update a given security group.
service-provider-list List service providers.
subnet-create Create a subnet for a given tenant.
subnet-delete Delete a given subnet.
subnet-list List subnets that belong to a given tenant.
subnet-show Show information of a given subnet.
subnet-update Update subnet's information.
vpn-ikepolicy-create Create an IKE policy.
vpn-ikepolicy-delete Delete a given IKE policy.
vpn-ikepolicy-list List IKE policies that belong to a tenant.
vpn-ikepolicy-show Show information of a given IKE policy.
vpn-ikepolicy-update Update a given IKE policy.
vpn-ipsecpolicy-create Create an IPsec policy.
vpn-ipsecpolicy-delete Delete a given IPsec policy.
vpn-ipsecpolicy-list List ipsecpolicies that belongs to a given tenant connection.
vpn-ipsecpolicy-show Show information of a given IPsec policy.
vpn-ipsecpolicy-update Update a given IPsec policy.
vpn-service-create Create a VPN service.
vpn-service-delete Delete a given VPN service.
vpn-service-list List VPN service configurations that belong to a given tenant.
vpn-service-show Show information of a given VPN service.
vpn-service-update Update a given VPN service.
关键这些命令该如何使用:
例如我们想查看网络
neutron net-list
如果我们查看某个特定的信息,则使用show命令
比如我们想查看上述网络的 demo-net具体信息。其他的依次类推
neutron net-show demo-net
而有些比较复杂,比如我们想删除路由的某个端口,
我们不知道后面跟什么参数,只看到了命令,该如何处理
router-interface-delete
使用下面命令
neutron router-interface-delete --help
列出下面参数:
也就是需要一个路由的id,以及SUBNET|subnet=SUBNET|port=PORT这些参数都是可以的
usage: neutron router-interface-delete [-h] [--request-format {json,xml}]
router-id INTERFACE
Remove an internal network interface from a router.
positional arguments:
router-id ID of the router.
INTERFACE The format is "SUBNET|subnet=SUBNET|port=PORT". Either
a subnet or port must be specified. Both ID and name
are accepted as SUBNET or PORT. Note that "subnet="
can be omitted when specifying a subnet.
optional arguments:
-h, --help show this help message and exit
--request-format {json,xml}
The XML or JSON request format.
复制代码
这样我们根据英文含义及参数详细信息,就会使用neutron的命令了
路过
雷人
握手
鲜花
鸡蛋
收藏
分享
邀请
举报
全部
作者的其他最新日志
•
种用于单张图像大尺度人脸三维重建的VRN算法
•
基于 Openpose 实现人体动作识别
•
基于OpenCV使用OpenPose进行多个人体姿态估计
•
《DensePose: Dense Human Pose Estimation In The Wild》阅读笔记
•
Field types of query result and registered TableSink do not match
•
Clickhouse bug DB::Exception: PeekableReadBuffer: Memory limit exceed
评论 (
0
个评论)
涂鸦板
您需要登录后才可以评论
登录
|
立即注册
评论
pig2
加为好友
给我留言
打个招呼
发送消息
关闭
推荐
/2
中文版ChatGPT
1.无需魔法 2.提高编程效率 3.提高文档能力
查看 »
新手帮助
新手帮助:注册遇到问题,领取资源,加入铁粉群,不会使用搜索,如何获取积分等
查看 »
意见
反馈