hydrajump / vyos-build-ami Goto Github PK
View Code? Open in Web Editor NEWvyos-build-ami is a fully automated build system for VyOS AMIs (Amazon Machine Images)
License: MIT License
vyos-build-ami is a fully automated build system for VyOS AMIs (Amazon Machine Images)
License: MIT License
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
)
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.
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
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.
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-----.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.