-
Notifications
You must be signed in to change notification settings - Fork 179
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
VPC CIDR for Datastores / Private Networking Toggle #690
Conversation
This is not working as hoped. Changes to the VPC CIDR and Subnets roll back with:
|
There are a couple issues conflated here, starting to unwind that. Unfortunately changing CIDR parameters on the fly isn't possible right now due to a pretty gnarly VPC / CloudFormation technicality. I hope someday this workflow is possible, but it isn't yet: Demo# Pull down the API bugfixes, and watch until the update is complete
$ convox rack update
$ watch convox ps --app convox
# Report current network settings
$ convox rack params | grep CIDR
Subnet0CIDR 10.0.1.0/24
Subnet1CIDR 10.0.2.0/24
Subnet2CIDR 10.0.3.0/24
SubnetPrivate0CIDR 10.0.4.0/24
SubnetPrivate1CIDR 10.0.5.0/24
SubnetPrivate2CIDR 10.0.6.0/24
VPCCIDR 10.0.0.0/16
# Update network settings.
# This starts a maintenance window while the automated VPC and instance replacement carries out.
# Apps will not be able to connect to convox data services due to security group misalignment.
$ convox rack params set \
Subnet0CIDR=10.101.1.0/24 \
Subnet1CIDR=10.101.2.0/24 \
Subnet2CIDR=10.101.3.0/24 \
SubnetPrivate0CIDR=10.101.4.0/24 \
SubnetPrivate1CIDR=10.101.5.0/24 \
SubnetPrivate2CIDR=10.101.6.0/24 \
VPCCIDR=10.101.0.0/16
# Update datastores. This will restore app datastore connectivity and end the maintenance window.
$ convox services update myredis |
Closing and merging on #695 |
Fixes #637
convox services create
convox services update
Demo - Test Redis Connectivity
Here is a simple way to test redis connectivity before, during or after the network configuration:
$ convox apps APP STATUS httpd running httpd-old running simple-rails running $ convox services NAME TYPE STATUS convox-events webhook running redis-4778 redis running syslog-7504 syslog running $ convox services info redis-4778 Name redis-4778 Status running Exports URL: redis://cor17unwsff8a40p.u0cje2.ng.0001.use1.cache.amazonaws.com:6379/0 $ convox run web bash --app httpd root@081a7bc0282c:/usr/local/apache2# apt-get update && apt-get install -y redis-tools ... Setting up redis-tools (2:2.8.17-1+deb8u3) ... root@9f50bcced498:/usr/local/apache2# redis-cli -h cor17unwsff8a40p.u0cje2.ng.0001.use1.cache.amazonaws.com PING PONG
Release Playbook