glance-replicator livecopy

asked 2015-01-03 01:07:29 -0500

Praveen N gravatar image

updated 2015-01-08 12:58:51 -0500

I have 2 VMs devstack deployed controller nodes with ips 191.168.122.151 and 191.168.122.152 using juno release of openstack. I have a script get_token.sh to fetch the keystone authentication token.I am issuing the command as below and the error thrown is CRITICAL glance [-] ServerErrorException. The openrc file for second VM(191.168.122.152) i have edited as: GLANCE_HOST=${GLANCE_HOST:-192.168.122.151} Rest all are with default settings.

glance-replicator livecopy -v glancemaster:9292 glanceslave:9292
-M`./get_token.sh 192.168.122.151` -S`./get_token.sh 192.168.122.152`

 2015-01-03 12:12:45.141 13504 CRITICAL glance [-] ServerErrorException
2015-01-03 12:12:45.141 13504 TRACE glance Traceback (most recent call last):
2015-01-03 12:12:45.141 13504 TRACE glance   File "/usr/local/bin/glance-replicator", line 10, in <module>
2015-01-03 12:12:45.141 13504 TRACE glance     sys.exit(main())
2015-01-03 12:12:45.141 13504 TRACE glance   File "/opt/stack/glance/glance/cmd/replicator.py", line 737, in main
2015-01-03 12:12:45.141 13504 TRACE glance     command(options, args)
2015-01-03 12:12:45.141 13504 TRACE glance   File "/opt/stack/glance/glance/cmd/replicator.py", line 514, in replication_livecopy
2015-01-03 12:12:45.141 13504 TRACE glance     image_response)
2015-01-03 12:12:45.141 13504 TRACE glance   File "/opt/stack/glance/glance/cmd/replicator.py", line 238, in add_image
2015-01-03 12:12:45.141 13504 TRACE glance     response = self._http_request('POST', url, headers, image_data)
2015-01-03 12:12:45.141 13504 TRACE glance   File "/opt/stack/glance/glance/cmd/replicator.py", line 125, in _http_request
2015-01-03 12:12:45.141 13504 TRACE glance     raise ServerErrorException(response.read())
2015-01-03 12:12:45.141 13504 TRACE glance ServerErrorException
2015-01-03 12:12:45.141 13504 TRACE glance

Kindly let me know how to configure the glance / what all settings are needed to make glance-replicator livecopy command to work.

Looking for inputs.

edit retag flag offensive close merge delete