2

我尝试了默认安装(安装了 s3),但是当我尝试使用 swift(通过 python 客户端)时,它给我Endpoint for object-store not found所有命令的这个错误:

source admin-openrc.sh 
swift --debug --os-region-name "RegionOne" post test_container test_obj.txt
ERROR:swiftclient:Endpoint for object-store not found - have you specified a region?
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1184, in _retry
    self.url, self.token = self.get_auth()
  File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1158, in get_auth
    insecure=self.insecure)
  File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 345, in get_auth
    insecure=insecure)
  File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 293, in get_keystoneclient_2_0
    'have you specified a region?' % service_type)
ClientException: Endpoint for object-store not found - have you specified a region?
Endpoint for object-store not found - have you specified a region?

所以看起来 swift 没有安装/启用。但我无法弄清楚localrcdevstack 的正确配置。

目前是:

DATABASE_PASSWORD=some_password
RABBIT_PASSWORD=some_password
SERVICE_TOKEN=some_password
SERVICE_PASSWORD=some_password
ADMIN_PASSWORD=some_password

ENABLED_SERVICES+=,swift
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1

我尝试了各种组合,devstack 就是无法正确安装。

基本上我想保留所有默认服务(horizo​​n、api 等),并启用 swift。我尝试过的其他选项:

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron 

enable_service swift s-proxy s-object s-container s-account

我也觉得unstack.sh没有正确清理,这让我尝试不同的配置更加头疼。

stack.sh脚本总是最终给我这样的错误:

++ glance --os-auth-token MIIQVAYJKoZIhvcNAQcCoIIQRTCCEEECAQExCTAHBgUrDgMCGjCCDqoGCSqGSIb3DQEHAaCCDpsEgg6XeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wMy0wMlQwNjoyODo1My44MjE5ODciLCAiZXhwaXJlcy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-9lhsyBjAezXzY++mJT-imFgIvTb3evNetNlbohqf1qQh76vPQzXB-e6LiJHMaxtnNf882y56Xs4fxZhC6e3rFdEx2K0BD3XbDlDCrrns2O0vXMRipA= --os-image-url http://115.146.86.242:9292 image-create --name cirros-0.3.1-x86_64-uec-kernel --is-public True --container-format aki --disk-format aki
500 Internal Server Error
Failed to upload image e3c70c20-ef7b-4704-b74a-922e9f52239d
    (HTTP 500)
+ KERNEL_ID=
+ '[' -n /home/ubuntu/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-initrd ']'
++ get_field 2
++ grep ' id '
++ read data
++ glance --os-auth-token MIIQVAYJKoZIhvcNAQcCoIIQRTCCEEECAQExCTAHBgUrDgMCGjCCDqoGCSqGSIb3DQEHAaCCDpsEgg6XeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wMy0wMlQwNjoyODo1My44MjE5ODciLCAiZXhwaXJlcyI6ICIyMDE0LTAzLTAyVDA3OjI4OjUzWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiYTRkMTU1OWI4ZjMxNDRkOGI5NDA2OTZiMmQwNjE2MTUiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzExNS4xNDYuODYuMjQyOjg3NzQvdjIvYTRkMTU1OWI4ZjMxNDRkOGI5NDA2OTZiMmQwNjE2MTUiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTE1LjE0Ni44Ni4yNDI6ODc3NC92Mi9hNGQxNTU5YjhmMzE0NGQ4Yjk0MDY5NmIyZDA2MTYxNSIsICJpZCI6ICIxOTQyNDJmYzQ3NmU0OWMx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WluIjogMCwgInJvbGVzIjogWyI5ZmUyZmY5ZWU0Mzg0YjE4OTRhOTA4NzhkM2U5MmJhYiIsICJmNjhkMjYxZTk1OGQ0YjAzOWViNGQzZTBhMGU0NzZmNyJdfX19MYIBgTCCAX0CAQEwXDBXMQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVW5zZXQxDjAMBgNVBAcMBVVuc2V0MQ4wDAYDVQQKDAVVbnNldDEYMBYGA1UEAwwPd3d3LmV4YW1wbGUuY29tAgEBMAcGBSsOAwIaMA0GCSqGSIb3DQEBAQUABIIBABKX5WrFHcuAkEcE7X-eG5rJNzHC45MRnDZtkyKHz456tuWSXAKanrKpEKcspHkb4zzMEJiIveHa9f9aF628n0jVUvp4ePg67AXj6Gyf3E4QgCKMd49kNtAO9MenO0mF97cigb1-1go2DClqJiw3tubhjvD8YyKhGUFXt+Ji-dq60G9-SbTA0pUcgbjSJcrY5rHm78MNcnugpp7qGqyLWJ8KNWK+o4vXT-CH-9lhsyBjAezXzY++mJT-imFgIvTb3evNetNlbohqf1qQh76vPQzXB-e6LiJHMaxtnNf882y56Xs4fxZhC6e3rFdEx2K0BD3XbDlDCrrns2O0vXMRipA= --os-image-url http://115.146.86.242:9292 image-create --name cirros-0.3.1-x86_64-uec-ramdisk --is-public True --container-format ari --disk-format ari
500 Internal Server Error
Failed to upload image 2c7e2905-97ef-4cfc-98af-24b03372db9d
    (HTTP 500)
+ RAMDISK_ID=
+ glance --os-auth-token MIIQVAYJKoZIhvcNAQcCoIIQRTCCEEECAQExCTAHBgUrDgMCGjCCDqoGCSqGSIb3DQEHAaCCDpsEgg6XeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wMy0wMlQwNjoyODo1My44MjE5ODciLCAiZXhwaXJlcyI6ICIyMDE0LTAzLTAyVDA3OjI4OjUzWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVs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MRipA= --os-image-url http://115.146.86.242:9292 image-create --name cirros-0.3.1-x86_64-uec --is-public True --container-format ami --disk-format ami
500 Internal Server Error
Failed to upload image 5d4d3c86-05cc-4ad4-9d24-09eb1bf24146
    (HTTP 500)
+ exit_trap
+ local r=1
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ exit 1

我应该尝试在正确安装的默认 devstack 环境中安装 swift 之类的方法吗?如果使用这种方法,似乎还有更多的工作。在下面找到了一些示例(不完整):

keystone service-create --name swift --type object-store --description "Swift Storage Service"
keystone endpoint-create --service_id SERVICEID --publicurl "http://IP:8080/v1/AUTH_\$(tenant_id)s" --adminurl "http://IP:8080/v1" --internalurl "http://IP:8080/v1/AUTH_\$(tenant_id)s"
4

2 回答 2

1

http://blog.phymata.com/2013/12/18/devstack-havana-on-the-rackspace-cloud/

Everett Toews 提出的那些步骤

+

使用 Chandan Kumar 更新的 localrc https://gist.github.com/chandankumar1/8181381

我终于设法让它工作(Ubuntu 12.04 LTS 4GB RAM)。

于 2014-03-03T08:05:16.887 回答
0

简单尝试使用

enable_service s-proxy s-object s-container s-account

不需要明确写 swift,我现在正在工作。

于 2016-01-16T17:02:32.363 回答