Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

unable to install using current cloud-init + site.pp files #3

Open
kenirwin opened this issue Nov 13, 2018 · 0 comments
Open

unable to install using current cloud-init + site.pp files #3

kenirwin opened this issue Nov 13, 2018 · 0 comments

Comments

@kenirwin
Copy link

I tried following Tim's AWS install example video:
https://www.youtube.com/watch?v=exi-4xwUwns&feature=youtu.be
using the cloud-init setup file in this repo.

The install got hung up partway through, apparently giving up without completing all the steps in the site.pp file. I ran egrep -i 'fail|error' on the cloud-init logs and found:

/var/log/cloud-init.log:2018-11-13 00:39:58,190 - handlers.py[DEBUG]: finish: modules-final/config-package-update-upgrade-install: FAIL: running config-package-update-upgrade-install with frequency once-per-instance
/var/log/cloud-init.log:2018-11-13 00:39:58,190 - handlers.py[DEBUG]: finish: modules-final: FAIL: running modules for final
/var/log/cloud-init.log:2018-11-13 00:40:34,487 - main.py[DEBUG]: Ran 15 modules with 0 failures
/var/log/cloud-init.log:2018-11-13 00:40:37,071 - main.py[DEBUG]: Ran 15 modules with 0 failures
/var/log/cloud-init.log:2018-11-13 00:40:37,669 - cc_rightscale_userdata.py[DEBUG]: Failed to get raw userdata in module rightscale_userdata
/var/log/cloud-init.log:2018-11-13 00:41:26,591 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/runcmd [1]
/var/log/cloud-init.log:2018-11-13 00:41:26,591 - util.py[DEBUG]: Failed running /var/lib/cloud/instance/scripts/runcmd [1]
/var/log/cloud-init.log:cloudinit.util.ProcessExecutionError: Unexpected error while running command.
/var/log/cloud-init.log:2018-11-13 00:41:26,593 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
/var/log/cloud-init.log:2018-11-13 00:41:26,594 - handlers.py[DEBUG]: finish: modules-final/config-scripts-user: FAIL: running config-scripts-user with frequency once-per-instance
/var/log/cloud-init.log:2018-11-13 00:41:26,594 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) failed
/var/log/cloud-init.log:2018-11-13 00:41:26,594 - util.py[DEBUG]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) failed
/var/log/cloud-init.log: return self.runners.run(name, functor, args, freq,clear_on_fail)
/var/log/cloud-init.log: % (len(failed), len(attempted)))
/var/log/cloud-init.log:RuntimeError: Runparts: 1 failures in 1 attempted commands
/var/log/cloud-init.log:2018-11-13 00:41:26,747 - main.py[DEBUG]: Ran 20 modules with 1 failures
/var/log/cloud-init.log:2018-11-13 00:41:26,748 - handlers.py[DEBUG]: finish: modules-final: FAIL: running modules for final
/var/log/cloud-init-output.log:Installation finished. No error reported.
/var/log/cloud-init-output.log:ERROR: ld.so: object 'libeatmydata.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
/var/log/cloud-init-output.log:ImportError: cannot import name main
/var/log/cloud-init-output.log:Error: Illegal variable name, The given name 'AIPs_in_s3' does not conform to the naming rule /^((::)?[a-z]\w*)*((::)?[a-z
]\w*)$/ (file: /etc/puppet/manifests/site.pp, line: 299, column: 1)
/var/log/cloud-init-output.log:Error: Illegal variable name, The given name 'AIP_directory' does not conform to the naming rule /^((::)?[a-z]\w*)((::)?[a-z_]\w)$/ (file: /etc/puppet/manifests/site.pp, line: 300, column: 1)
/var/log/cloud-init-output.log:Error: Illegal variable name, The given name 'AIP_directory' does not conform to the naming rule /^((::)?[a-z]\w*)((::)?[a-z_]\w)$/ (file: /etc/puppet/manifests/site.pp, line: 303, column: 14)
/var/log/cloud-init-output.log:Error: Language validation logged 3 errors. Giving up
/var/log/cloud-init-output.log:2018-11-13 00:41:26,591 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/runcmd [1]
/var/log/cloud-init-output.log:2018-11-13 00:41:26,593 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
/var/log/cloud-init-output.log:2018-11-13 00:41:26,594 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) failed

Could it be that the current cloud-init and/or puppet files are incompatible with newer versions of some of their dependencies?

I tried to follow Tim's example as exactly as I could, with the limitation that I don't have a paid AWS account, so I'm testing out the install on a less robust server than he used.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant