← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1598928] [NEW] glance-replicator does not accept space-separated command-line arguments

 

Public bug reported:

glance-replicator does not accept space-separated command-line
arguments. It currently requires the user to provide a single command-
line argument that is a comma-separated string, which doesn't match UNIX
conventions or the docs for glance-replicator.

```
$ glance-replicator --mastertoken $PRIMARY_AUTH_TOKEN --slavetoken $SECONDARY_AUTH_TOKEN compare az2:9292 az3:9292
...
glance-replicator: error: unrecognized arguments: az3:9292
Please specify one command
```

This is because it's using a `oslo_config.ListOpt` for `args` instead of
an `oslo_config.MultiStrOpt`.

Also on ask.openstack.org:

https://ask.openstack.org/en/question/94219/glance-replicator-
unrecognized-arguments/?answer=94232#post-id-94232

** Affects: glance
     Importance: Undecided
         Status: New


** Tags: glance-replicator

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1598928

Title:
  glance-replicator does not accept space-separated command-line
  arguments

Status in Glance:
  New

Bug description:
  glance-replicator does not accept space-separated command-line
  arguments. It currently requires the user to provide a single command-
  line argument that is a comma-separated string, which doesn't match
  UNIX conventions or the docs for glance-replicator.

  ```
  $ glance-replicator --mastertoken $PRIMARY_AUTH_TOKEN --slavetoken $SECONDARY_AUTH_TOKEN compare az2:9292 az3:9292
  ...
  glance-replicator: error: unrecognized arguments: az3:9292
  Please specify one command
  ```

  This is because it's using a `oslo_config.ListOpt` for `args` instead
  of an `oslo_config.MultiStrOpt`.

  Also on ask.openstack.org:

  https://ask.openstack.org/en/question/94219/glance-replicator-
  unrecognized-arguments/?answer=94232#post-id-94232

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1598928/+subscriptions


Follow ups