Code Monkey home page Code Monkey logo

cfn-ps-red-hat-rhel-with-ha's People

Contributors

aws-ia-ci avatar baechans avatar davdunc avatar davmayd avatar lucius-aws-quickstart avatar troy-ameigh avatar wombelix avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

davmayd wombelix

cfn-ps-red-hat-rhel-with-ha's Issues

Example Parameters File

Need example parameter.json file that can be used with template from awscli to launch template. Example file should have the same defaults as the gui.

An example command for launching the template from the awscli using the parameters file would be very helpful.

The following resource(s) failed to delete: [HostnameBucket]

If the stack fails after the node deployment was started, Rollback is going to fail because of files that are already exist in the HostnameBucket.

Error Message:

The bucket you tried to delete is not empty (Service: Amazon S3; Status Code: 409; Error Code: BucketNotEmpty; Request ID: CBJYB02DFS1Y1S3N; S3 Extended Request ID: q8Po2RMqNsRHimkENINkH+AyC/bBAyV7alDl/9zlUx2X9lpuzne8/4YHeVnmQc/JT3rna7sztiE=; Proxy: null)

Bucket:

  • tcat-quickstart-rhel-with-ha-defau-hostnamebucket-1xmfh1ojj60fj/hostnames/

Files:

  • ip-10-0-22-168.ec2.internal+node1
  • ip-10-0-84-123.ec2.internal+node2

Affected file(s):

templates/main.template.yaml

Reference to HostnameBucket is passed to every NodeStack as BucketName (firstnode, lastnode, extranode1, extranode2). Hostname Upload is part of:

./templates/lastnode.template.yaml:            "/upload_hostname.py":
./templates/lastnode.template.yaml:                - https://${S3Bucket}.s3.${S3Region}.${AWS::URLSuffix}/${QSS3KeyPrefix}scripts/upload_hostname.py
./templates/firstnode.template.yaml:            "/upload_hostname.py":
./templates/firstnode.template.yaml:                - https://${S3Bucket}.s3.${S3Region}.${AWS::URLSuffix}/${QSS3KeyPrefix}scripts/upload_hostname.py
./templates/firstnode.template.yaml:              command: !Sub "sudo python3 upload_hostname.py ${BucketName} node1 ${AWS::Region}" # add parameter that passes in which node it is
./templates/extranode2.template.yaml:            "/upload_hostname.py":
./templates/extranode2.template.yaml:                - https://${S3Bucket}.s3.${S3Region}.${AWS::URLSuffix}/${QSS3KeyPrefix}scripts/upload_hostname.py
./templates/extranode2.template.yaml:              command: !Sub "sudo python3 upload_hostname.py ${BucketName} node3 ${AWS::Region}"
./templates/extranode1.template.yaml:            "/upload_hostname.py":
./templates/extranode1.template.yaml:                - https://${S3Bucket}.s3.${S3Region}.${AWS::URLSuffix}/${QSS3KeyPrefix}scripts/upload_hostname.py
./templates/extranode1.template.yaml:              command: !Sub "sudo python3 upload_hostname.py ${BucketName} node2 ${AWS::Region}"

To make the Stack more reliable in case of a issue during deployment, we might need an additional step to empty S3 buckets first to avoid such issues.

Manual Cleanup:

aws s3 rm s3://tcat-quickstart-rhel-with-ha-defau-hostnamebucket-1xmfh1ojj60fj --recursive

delete: s3://tcat-quickstart-rhel-with-ha-defau-hostnamebucket-1xmfh1ojj60fj/hostnames/ip-10-0-22-168.ec2.internal+node1
delete: s3://tcat-quickstart-rhel-with-ha-defau-hostnamebucket-1xmfh1ojj60fj/hostnames/ip-10-0-84-123.ec2.internal+node2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.