Comments (6)
If you re-run an event with the CLI it does so using the JSON info already on the machine.
It does not get updated data from the backend.
So if you added hosts in the meanwhile, /etc/hosts will not change.
Does this explain your problem?
from opsworks-cookbooks.
I have observed the same issue, especially when starting lots of instances (20+) at the same time - although every instance has run several configure events, some are missing entries in /etc/hosts (and also any other of my recipes that rely on node[:opsworks][:layers] being populated fully.
from opsworks-cookbooks.
We are not adding anything to the /etc/hosts file. We just need the stack instances to be properly reflected in the hosts file and as Pneumatus says it doesn't always happen.
We have a small stack but we are forced to stagger startup of our instances to ensure that the hosts are properly populated. What I was asking was if there was a way to force run the job so we can update the hosts file on command before, for example, connecting to a database by host name.
from opsworks-cookbooks.
While I've not been able to create a reliable reproduction case, this issue doesn't just impact the opsworks_stack_state_sync recipe - the actual underlying issue is definitely that on configure events, sometimes node[:opswork][:layers] isn't fully populated with the state of the whole stack - this is most commonly observed when multiple instances complete their setup stage near the same time, but I've also observed it with a single instance launch triggering configure events which contain incomplete JSON.
from opsworks-cookbooks.
We have a new agent that is better at handling many configure events within a short amount of time, even if they are unordered. This should address the issue you are describing.
We can roll it out to your stacks if you give us the OpsWorks Stack ID.
from opsworks-cookbooks.
should be fixed.
from opsworks-cookbooks.
Related Issues (20)
- Amazon Linux 2016.09 and opsworks_nodejs HOT 1
- Unicorn master process not receiving QUIT HOT 3
- Ruby 2.4.0 HOT 30
- Node.js >=6.x cookbook setup HOT 1
- Can't download RPM package for nodejs on Amazon Linux 2016.09 HOT 1
- Berkshelf Pre-Built Packages Not Available (3.1.5) HOT 3
- Chef infrastructure issue. HOT 1
- [2017-08-11T13:48:48+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage2/chef-stacktrace.out HOT 1
- Wrong log format for ganglia
- Unable to download opsworks-agent-ruby on Ubuntu 16.04
- Ruby 2.5.0 HOT 8
- Getting Opsworks to use specific Ruby 2.4 version HOT 1
- Ruby 2.6.0 HOT 2
- Problem with S3 and region HOT 2
- ERROR: execute[apt-get update] (aws_opsworks_ecs::setup_ubuntu line 10) had an error: Mixlib::ShellOut::ShellCommandFailed
- Add Ruby 2.7 version
- --no-rdoc is not compatible with RubyGems 3+
- Please provide ruby 2.7 support
- Ruby 3.0 HOT 1
- bundle install error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opsworks-cookbooks.