Code Monkey home page Code Monkey logo

vyos-build-ami's People

Contributors

hydrajump avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vyos-build-ami's Issues

version_string missing

Anybody saw this issue before?

['ec2'][0]]['version_string']['stdout'] }}: 'dict object' has no attribute 'version_string'\n\nThe error appears to have been in '/build-ami/playbooks/build-ami.yml': line 19, column 7

(I could not find issue tracker on vyos/build-ami)

AWS Instance Block Storage not able to Create

TASK: [Launch an EC2 instance ami-020db2c14939a8efb t3.medium] ****************
failed: [localhost] => {"changed": true, "cmd": ["aws", "ec2", "run-instances", "--image-id", "ami-020db2c14939a8efb", "--key-name", "vyos-build-ami", "--security-groups", "vyos-build-ami", "--instance-type", "t3.medium", "--block-device-mappings", "[{"DeviceName":"/dev/sda1","Ebs":{"DeleteOnTermination":"true","VolumeType":"standard"}},{"DeviceName":"/dev/sdf","Ebs":{"VolumeSize":4,"DeleteOnTermination":"true","VolumeType":"standard"}}]", "--query", "Instances[*].InstanceId"], "delta": "0:00:01.560837", "end": "2022-01-11 11:07:11.955229", "rc": 252, "start": "2022-01-11 11:07:10.394392"}
stderr:
Parameter validation failed:
Invalid type for parameter BlockDeviceMappings[0].Ebs.DeleteOnTermination, value: true, type: <class 'str'>, valid types: <class 'bool'>
Invalid type for parameter BlockDeviceMappings[1].Ebs.DeleteOnTermination, value: true, type: <class 'str'>, valid types: <class 'bool'>

FATAL: all hosts have already failed -- aborting

Vyos-AMI change hostname

Note to improve build.

After loading the AMI and logging in with default vyos@ user I switched to configure mode to change the hostname. The commit kept failing as "vyos" user. After changing root password and then switching to root I was able to commit the change and save the configuration.

vyos@VyOS-AMI# set system host-name cmnet04

Set failed

[edit]

After changing permissions From:

root@cmnet04:/opt/vyatta/config# ls -la active/
total 0
drwxrwxr-x 5 root vyattacfg 100 Jul 2 18:03 .
drwxrwxr-x 4 root vyattacfg 100 Jul 2 17:48 ..
drwxrwxr-x 4 root root 80 Jul 2 18:03 interfaces
drwxrwxr-x 3 root root 60 Jul 2 18:03 service
drwxrwxr-x 10 root root 200 Jul 2 18:03 system

TO:

vyos@cmnet04:/opt/vyatta/config$ ls -la active/
total 0
drwxrwxr-x 5 root vyattacfg 100 Jul 2 18:03 .
drwxrwxr-x 4 root vyattacfg 100 Jul 2 17:48 ..
drwxrwxr-x 4 root vyattacfg 80 Jul 2 18:03 interfaces
drwxrwxr-x 3 root vyattacfg 60 Jul 2 18:03 service
drwxrwxr-x 10 root vyattacfg 200 Jul 2 18:03 system

The VyOS user is now able to save configuration changes.

AWS AMI SSH not working out of the box

EC2: -----BEGIN FETCH SSH PUBLIC KEY-----.
EC2: Requesting ssh public key from EC2 instance metadata.
EC2: Downloaded ssh public key from EC2 instance metadata.
EC2: Loaded ssh public key for user vyos.

################################################################### 100.0%
################################################################### 100.0%
################################################################### 100.0%

Unknown key type AAAAB3NzaC1yc2EAAAADAQABAAABAQDH9lrtekBNEjVnyIdVgWKbut/IHJ8pHDm5NKPbAizlETMMI+3iraBPqEV7l8p3i1aXLeNYvBESee/9J9pJe5lKLMSpgpQSRTEvT4br8r4m7KNmHRVna47heCSM6jZjfd1y0ctpNRnkaEcVxesVVIookSJpBDg/ok8h4DxMuFgmknvJrFFRCwdSUTX0pyN4IEuBRPqxXPXrHvSA5vGQjjzhXwCrPGFSq2GevyL+jv6npf74qG2SKubWY6GmqN8Oxeb+2vM12gYlm6Ppfoz21WLpLUbOYPxzmtUdxTveVNxeriOv6x5HeB2bW3vnrZ6sKPTBBOMteKj3cq1WKGKPahZh : must be ssh-rsa or ssh-dss
Saving configuration to '/config/config.boot'...
Done
EC2: -----END FETCH SSH PUBLIC KEY-----.

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.