当前位置:编程学习 > 网站相关 >>

nova command:Unauthorized (HTTP 401)

nova-api.log


2013-12-12 06:47:29.192 4773 INFO nova.osapi_compute.wsgi.server [-] 192.168.56.122 "GET /v2/662defab998e4ce78c35fce07543c90e/servers/detail HTTP/1.1" status: 401 len: 465 time: 0.0419970



api-paste.ini

[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
auth_host = 192.168.1.155
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = service_pass
auth_version = v2.0




export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=admin_pass
export OS_AUTH_URL="http://192.168.1.155:35357/v2.0/" 


network:
#external
eth0      Link encap:Ethernet  HWaddr 00:0c:29:a7:0d:17  
          inet addr:192.168.56.122  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fea7:d17/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3353 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3038 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2509912 (2.5 MB)  TX bytes:369099 (369.0 KB)
#internal
eth1      Link encap:Ethernet  HWaddr 00:0c:29:a7:0d:21  
          inet addr:192.168.1.155  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fea7:d21/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5960 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:571281 (571.2 KB)  TX bytes:7439 (7.4 KB)


endpoint create:
HOST_IP:192.168.1.155
EXT_HOST_IP:192.168.56.122

    compute)
    keystone endpoint-create --region $KEYSTONE_REGION --service-id $2 --publicurl 'http://'"$EXT_HOST_IP"':8774/v2/$(tenant_id)s' --adminurl 'http://'"$HOST_IP"':8774/v2/$(tenant_id)s' --internalurl 'http://'"$HOST_IP"':8774/v2/$(tenant_id)s'

环境变量:
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=admin_pass
export OS_AUTH_URL="http://192.168.1.155:35357/v2.0/"





    

补充:云计算 ,  OpenStack
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,