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

Use RAMDISK for etcd storage in Ansible install jobs #199

Merged

Conversation

stevekuznetsov
Copy link
Contributor

Make the generate script work from new repo basedir

Signed-off-by: Steve Kuznetsov skuznets@redhat.com


Added a debugging job

Signed-off-by: Steve Kuznetsov skuznets@redhat.com


Use RAMDISK for etcd storage in Ansible install jobs

Signed-off-by: Steve Kuznetsov skuznets@redhat.com


@stevekuznetsov
Copy link
Contributor Author

@stevekuznetsov
Copy link
Contributor Author

stevekuznetsov commented Apr 20, 2017

OK, reproducing the common failure...

TASK [etcd : Enable etcd] ******************************************************
task path: /usr/share/ansible/openshift-ansible/roles/etcd/tasks/main.yml:122
fatal: [localhost]: FAILED! => {
    "changed": false, 
    "failed": true, 
    "generated_timestamp": "2017-04-20 08:44:31.956237", 
    "msg": "Unable to start service etcd: Job for etcd.service failed because the control process exited with error code. See \"systemctl status etcd.service\" and \"journalctl -xe\" for details.\n"
}

The config file is:

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.8.7:2379
#ETCD_MAX_SNAPSHOTS=5
#ETCD_MAX_WALS=5
#ETCD_CORS=


ETCD_ADVERTISE_CLIENT_URLS=https://172.18.8.7: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"

So we are seeing the data dir being set, but NOT the debugging... the etcd journal has nothing at all interesting:

Apr 20 08:44:31 ip-172-18-8-7.ec2.internal systemd[1]: Starting Etcd Server...
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal etcd[23921]: recognized and used environment variable ETCD_ADVERTISE_CLIENT_URLS=https://172.18.8.7:2379
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal etcd[23921]: recognized and used environment variable ETCD_CA_FILE=/etc/etcd/ca.crt
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal etcd[23921]: recognized and used environment variable ETCD_CERT_FILE=/etc/etcd/server.crt
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal etcd[23921]: recognized and used environment variable ETCD_DEBUG=False
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal etcd[23921]: recognized and used environment variable ETCD_ELECTION_TIMEOUT=2500
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal etcd[23921]: recognized and used environment variable ETCD_HEARTBEAT_INTERVAL=500
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal etcd[23921]: recognized and used environment variable ETCD_KEY_FILE=/etc/etcd/server.key
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal etcd[23921]: recognized and used environment variable ETCD_PEER_CA_FILE=/etc/etcd/ca.crt
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal etcd[23921]: recognized and used environment variable ETCD_PEER_CERT_FILE=/etc/etcd/peer.crt
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal systemd[1]: etcd.service: main process exited, code=exited, status=1/FAILURE
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal systemd[1]: Failed to start Etcd Server.
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal systemd[1]: Unit etcd.service entered failed state.
Apr 20 08:44:31 ip-172-18-8-7.ec2.internal systemd[1]: etcd.service failed.

@stevekuznetsov
Copy link
Contributor Author

@stevekuznetsov stevekuznetsov force-pushed the skuznets/etcd-storage branch 2 times, most recently from bc5babd to 2a45e9c Compare April 26, 2017 16:49
@stevekuznetsov
Copy link
Contributor Author

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
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.

1 participant