-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS Code Build fails with error message #303
Comments
Currently, the AI-Lab code uses AI Lab already contains Ansible task Observation: Inside the Docker Container the file |
Proposal: - name: Enable SSH password authentication
become: "{{need_sudo}}"
lineinfile:
dest: /etc/cloud/cloud.cfg
regexp: '^(\s*)ssh_pwauth: false'
line: '\1ssh_pwauth: true'
state: present
backrefs: yes |
Proposal for investigation:
|
It seems already Ansible installation reports an error: /usr/bin/apt-get -y
-o "Dpkg::Options::=--force-confdef"
-o "Dpkg::Options::=--force-confold"
install 'network-manager=1.36.4-2ubuntu1'
-o APT::Install-Recommends=no' failed: E: Unable to correct problems, you have held broken packages.
|
I will update network-manager as described above |
I could retrieve files
system_info:
default_user:
name: ubuntu
lock_passwd: True
|
Calling
|
Added dependency to passlib:
|
I was now able to run After commenting out some parts of file reset_password_tasks.yml, I was still able to log in via ssh key file but not with password. File contents: $ grep -H lock /etc/cloud/cloud.cfg ; grep -H Passwo /etc/ssh/sshd_config
/etc/cloud/cloud.cfg: lock_passwd: False
/etc/ssh/sshd_config:PasswordAuthentication yes |
Thanks to @tkilias we identified to additionally need sshd option |
Python test based on fabric / paramiko still failed as with
It could be possible to use keyboard-interactive authentication with fabric, see
On the other hand, I found the following at https://superuser.com/a/1828947, which turned out to be true in our case, too:
So I updated ansible task to modify all files in folder |
I manually verified login with |
* #303: Fixed AWS Codebuild * Used Python standard package crypt and forwarded hashed password to ansible. * FIxed PasswordAuthentication in additional config files, too * Fixed review findings. * Added comment regarding ssh password authentication vs. keyboard-interactive * Replaced shell ls by ansible.builtin.find * Disabled sagemaker notebook tests [CodeBuild]
AWS CodeBuild Log
In setup of
test_jupyter_with_ec2_based_on_new_ami
Line 97
Error message
The text was updated successfully, but these errors were encountered: