Ask Your Question
1

Does glance-replicator work ?

asked 2014-02-03 04:31:43 -0500

Ahmed Samir gravatar image

updated 2014-02-03 07:49:40 -0500

koolhead17 gravatar image

I'm trying to use glance replicator to replicate images from site to another the two sites are using RDO Havana all in one, I followed this guide
after I got the tokens from site1 and site2 when I execute this command

glance-replicator -v livecopy 172.16.16.177:9292 -M $PRIMARY_AUTH_TOKEN 172.16.16.231:9292 -S $SECONDARY_AUTH_TOKEN

it gives me : replication_livecopy livecopy <fromserver:port> <toserver:port>

Load the contents of one glance instance into another.

fromserver:port: the location of the master glance instance.
toserver:port:   the location of the slave glance instance.

ERROR: Bad format of the given arguments.
edit retag flag offensive close merge delete

Comments

Same for me, no matter what I try for the fromserver/toserver. The issue is that you apparently can't use IPs: https://bugs.launchpad.net/glance/+bug/1216247

mfischer gravatar imagemfischer ( 2014-03-20 12:50:34 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
2

answered 2014-04-03 15:49:33 -0500

larsks gravatar image

As mfischer points out, there is an open bug report for this issue. There is a patch under review here, but as of this writing (2014-04-03) it has not been merged.

You can work around this particular problem locally by editing your /etc/hosts file and adding something like:

172.16.16.177 glanceslave
172.16.16.231 glancemaster

And then running your command as:

glance-replicator -v livecopy \
  glancemaster:9292 -M $PRIMARY_AUTH_TOKEN 
  glanceslave:9292 -S $SECONDARY_AUTH_TOKEN

This avoids the problems caused by the bad regular expression in the glance-replicator code.

edit flag offensive delete link more
0

answered 2016-11-29 02:05:40 -0500

syed gravatar image

I am trying to use the glance-replicator command as described by larsks but i am getting the error explained below. I am wondering whether glance-replicator actually works anymore?

$ glance-replicator  compare glancemaster:9292 -M $MASTERTOKEN glanceslave:9292 -S $SLAVETOKEN
usage: glance-replicator [-h] [--chunksize CHUNKSIZE] [--config-dir DIR]
                         [--config-file PATH] [--debug]
                         [--dontreplicate DONTREPLICATE]
                         [--log-config-append PATH]
                         [--log-date-format DATE_FORMAT] [--log-dir LOG_DIR]
                         [--log-file PATH] [--log-format FORMAT]
                         [--mastertoken MASTERTOKEN] [--metaonly] [--nodebug]
                         [--nometaonly] [--nouse-syslog]
                         [--nouse-syslog-rfc-format] [--noverbose]
                         [--slavetoken SLAVETOKEN]
                         [--syslog-log-facility SYSLOG_LOG_FACILITY]
                         [--token TOKEN] [--use-syslog]
                         [--use-syslog-rfc-format] [--verbose] [--version]
                         [command] [args]
glance-replicator: error: unrecognized arguments: glanceslave:9292
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-02-03 04:31:43 -0500

Seen: 760 times

Last updated: Nov 29 '16