aws-cloudformation-templates icon indicating copy to clipboard operation
aws-cloudformation-templates copied to clipboard

Error to signal on RHEL 7.6

Open santhosh34 opened this issue 6 years ago • 4 comments

Got the following issue when i terminated instance manually to validate autoscaling creation process. If i shutdown one, i expected one more instance to be created. This script creates one more but getting following exception in logs:

$sudo grep cloud-init /var/log/messages Output:

  • /opt/aws/bin/cfn-signal -e 0 --stack jenkins --resource JenkinsSlaveAutoScalingGroup --region us-east-1 Dec 5 10:08:51 ip-10-80-48-198 cloud-init: ValidationError: Stack arn:aws:cloudformation:us-east-1:****:stack/jenkins/75854780-f86e-11e8-a417-*******is in CREATE_COMPLETE state and cannot be signaled

santhosh34 avatar Dec 05 '18 10:12 santhosh34

Here is the complete log: Dec 5 11:15:33 ip-10-40-217-244 cloud-init: + /opt/aws/bin/cfn-signal -e 0 --stack jenkins-agent --resource JenkinsSlaveAutoScalingGroup --region us-east-1 Dec 5 11:15:33 ip-10-40-217-244 cloud-init: ValidationError: Stack arn:aws:cloudformation:us-east-1:***:stack/jenkins-agent/-f6ec-11e8-94f7- is in CREATE_COMPLETE state and cannot be signaled Dec 5 11:15:33 ip-10-40-217-244 cloud-init: 2018-12-05 11:15:33,703 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [1] Dec 5 11:15:33 ip-10-40-217-244 cloud-init: 2018-12-05 11:15:33,704 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts) Dec 5 11:15:33 ip-10-40-217-244 cloud-init: 2018-12-05 11:15:33,705 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_user.pyc'>) failed

santhosh34 avatar Dec 05 '18 11:12 santhosh34

The above issue is for template: awslabs/aws-cloudformation-templates/blob/master/aws/solutions/HelperNonAmaznAmi/RHEL7_cfn-hup.template

santhosh34 avatar Dec 07 '18 11:12 santhosh34

Thanks for logging this. Let me work to get it routed to the correct owner.

cmmeyer avatar Jan 02 '19 20:01 cmmeyer

@cmmeyer Any luck with this one?

lijoantony avatar Sep 23 '19 13:09 lijoantony

Cleaning up stale issues in preparation for refreshing this repository. Please re-open if this still needs to be addressed.

ericzbeard avatar Apr 23 '24 16:04 ericzbeard