Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly set ETCD_DATA_DIR #169

Closed

Conversation

stevekuznetsov
Copy link
Contributor

No description provided.

@stevekuznetsov
Copy link
Contributor Author

@stevekuznetsov
Copy link
Contributor Author

@sdodson weird behavior here... doesn't seem like we honor $ETCD_DATA_DIR in the installer:

This looks like it gets passed in:

TASK [etcd : Enable etcd] ******************************************************
    "name": "etcd", 
    "state": "started", 
    "status": {
        "ExecStart": "{ path=/bin/bash ; argv[]=/bin/bash -c GOMAXPROCS=$(nproc) /usr/bin/etcd --name=\"${ETCD_NAME}\" --data-dir=\"${ETCD_DATA_DIR}\" --listen-client-urls=\"${ETCD_LISTEN_CLIENT_URLS}\" ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", 

But then I see this?

TASK [openshift_facts : Gather Cluster facts and set is_containerized if needed] ***
    "ansible_facts": {
        "openshift": {
            "etcd": {
                "etcd_data_dir": "/var/lib/etcd/", 
                "etcd_image": "registry.access.redhat.com/rhel7/etcd"
            }, 

@stevekuznetsov
Copy link
Contributor Author

@stevekuznetsov stevekuznetsov force-pushed the skuznets/etcd branch 2 times, most recently from 800b507 to 48ec874 Compare April 9, 2017 15:13
@stevekuznetsov
Copy link
Contributor Author

@stevekuznetsov
Copy link
Contributor Author

It doesn't seem like the inventory tweak made it through, @sdodson we have the etcd.conf looking like:

ETCD_NAME=default
ETCD_DATA_DIR=/tmp/etcd
#ETCD_SNAPSHOT_COUNTER=10000
ETCD_HEARTBEAT_INTERVAL=500
ETCD_ELECTION_TIMEOUT=2500
ETCD_LISTEN_CLIENT_URLS=https://172.18.12.134:2379
#ETCD_MAX_SNAPSHOTS=5
#ETCD_MAX_WALS=5
#ETCD_CORS=


ETCD_ADVERTISE_CLIENT_URLS=https://172.18.12.134:2379

#[proxy]
#ETCD_PROXY=off

#[security]
ETCD_CA_FILE=/etc/etcd/ca.crt
ETCD_CERT_FILE=/etc/etcd/server.crt
ETCD_KEY_FILE=/etc/etcd/server.key
ETCD_PEER_CA_FILE=/etc/etcd/ca.crt
ETCD_PEER_CERT_FILE=/etc/etcd/peer.crt
ETCD_PEER_KEY_FILE=/etc/etcd/peer.key
#[logging]
ETCD_DEBUG="False"

Maybe with debugging actually on we'll see what is causing the failure.

…sov/sjb""

This reverts commit 89104d2.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
@stevekuznetsov
Copy link
Contributor Author

stevekuznetsov commented Apr 19, 2017

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
@stevekuznetsov
Copy link
Contributor Author

Migrated to #199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants