Bug 1467799 - etcdctl v2 is using v3 options when migrate etcd on atomic host etcd
etcdctl v2 is using v3 options when migrate etcd on atomic host etcd
Status: NEW
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation (Show other bugs)
Unspecified Unspecified
high Severity high
: ---
: ---
Assigned To: Vikram Goyal
Vikram Goyal
Vikram Goyal
Depends On:
  Show dependency treegraph
Reported: 2017-07-05 04:04 EDT by Anping Li
Modified: 2017-08-16 15 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Anping Li 2017-07-05 04:04:38 EDT
Description of problem:
The migrate failed on atomic hosts.  the etcdctl v2 is using v3 options.

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux Atomic Host release 7.3
etcdctl version 2.3.7

#atomic host status
● rhel-atomic-host:rhel-atomic-host/7/x86_64/standard
       Version: 7.3.1 (2016-11-14 22:41:32)
        Commit: 42798872035ae14de03b9b7697080daf00e17dac9b1aa0f5b05457f77c8eeefd
        OSName: rhel-atomic-host

How reproducible:

Steps to Reproduce:
1. install OCP v3.5 on atomic hosts
2. upgrade to OCP 3.6
   ansible-playbook -i /root/workdir/hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-etcd/migrate.yml -v

Actual results:
TASK [etcd_migrate : Check if there are any v3 data] ***************************
changed: [qe-anli-master-etcd-3.0705-ut1.qe.rhcloud.com] => {
    "changed": true, 
    "cmd": [
    "delta": "0:00:00.021005", 
    "end": "2017-07-05 07:16:27.737026", 
    "rc": 0, 
    "start": "2017-07-05 07:16:27.716021", 
    "warnings": []


Incorrect Usage.

   etcdctl - A simple command line client for etcd.

   etcdctl [global options] command [command options] [arguments...]
   backup        backup an etcd directory
   cluster-health    check the health of the etcd cluster
   mk            make a new key with a given value
   mkdir        make a new directory
   rm            remove a key or a directory
   rmdir        removes the key if it is an empty directory or a key-value pair
   get            retrieve the value of a key
   ls            retrieve a directory
   set            set the value of a key
   setdir        create a new directory or update an existing directory TTL
   update        update an existing key with a given value
   updatedir        update an existing directory
   watch        watch a key for changes
   exec-watch        watch a key for changes and exec an executable
   member        member add, remove and list subcommands
   import        import a snapshot to a cluster
   user            user add, grant and revoke subcommands
   role            role add, grant and revoke subcommands
   auth            overall auth controls
   help, h        Shows a list of commands or help for one command
   --debug            output cURL commands which can be used to reproduce the request
   --no-sync            don't synchronize cluster information before sending request
   --output, -o "simple"    output response in the given format (`simple`, `extended` or `json`)
   --discovery-srv, -D         domain name to query for SRV records describing cluster endpoints
   --peers, -C             DEPRECATED - "--endpoints" should be used instead
   --endpoint             DEPRECATED - "--endpoints" should be used instead
   --endpoints             a comma-delimited list of machine addresses in the cluster (default: ",")
   --cert-file             identify HTTPS client using this SSL certificate file
   --key-file             identify HTTPS client using this SSL key file
   --ca-file             verify certificates of HTTPS-enabled servers using this CA bundle
   --username, -u         provide username[:password] and prompt if password is not supplied.
   --timeout "1s"        connection timeout per request
   --total-timeout "5s"        timeout for the command execution (except watch)
   --help, -h            show help
   --version, -v        print the version


TASK [etcd_migrate : fail] *****************************************************
skipping: [qe-anli-master-etcd-1.0705-ut1.qe.rhcloud.com] => {
    "changed": false, 
    "skip_reason": "Conditional check failed", 
    "skipped": true

Expected results:

Additional info:
Comment 1 Scott Dodson 2017-07-05 12:03:54 EDT
We should just document that you must be running Atomic Host 7.3.5 or later before upgrading to OCP 3.6 and performing a migration.
Comment 2 Anping Li 2017-07-10 03:05:15 EDT
Just confirm. No such issue with Atomic Host 7.3.5 and later.

Note You need to log in before you can comment on or make changes to this bug.