Last active
March 27, 2022 05:03
-
-
Save ankita-anil-verma/727a074b56d01c1055655cfb2b0cdfa0 to your computer and use it in GitHub Desktop.
on exe (openstack-ansible setup-hosts.yml --limit infra3)of setup host infra 3 fails at task ENSURE LXC CACHE HAS BEEN PREPARED
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p /etc/ansible/facts.d/ | |
+ '[' -a /etc/resolv.conf ']' | |
+ mv /etc/resolv.conf /etc/resolv.conf.org | |
+ echo 'nameserver 10.0.3.1' | |
+ apt-key add /root/repo.keys | |
OK | |
+ rm /root/repo.keys | |
+ export DEBIAN_FRONTEND=noninteractive | |
+ DEBIAN_FRONTEND=noninteractive | |
+ apt-get remove -y --purge 'snap*' 'lxc*' 'lxd*' | |
Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
Package 'snapd' is not installed, so not removed | |
Package 'lxcfs' is not installed, so not removed | |
Package 'lxctl' is not installed, so not removed | |
Package 'lxde-icon-theme' is not installed, so not removed | |
Package 'lxc' is not installed, so not removed | |
Package 'lxc-common' is not installed, so not removed | |
Package 'lxc-dev' is not installed, so not removed | |
Package 'lxc-templates' is not installed, so not removed | |
Package 'lxc-tests' is not installed, so not removed | |
Package 'lxc1' is not installed, so not removed | |
...... | |
Suggested packages: | |
binutils-doc cpp-doc gcc-5-locales debian-keyring g++-multilib | |
g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-multilib autoconf automake | |
libtool flex bison gdb gcc-doc gcc-5-multilib libgcc1-dbg libgomp1-dbg | |
libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg | |
libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg gettext-base | |
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk | |
gitweb git-arch git-cvs git-mediawiki git-svn glibc-doc libstdc++-5-doc | |
make-doc man-browser ssh-askpass rssh molly-guard ufw monkeysphere ed | |
diffutils-doc perl-doc libterm-readline-gnu-perl | |
| libterm-readline-perl-perl python-doc python-tk python2.7-doc | |
binfmt-support python3-setuptools python3-ndg-httpsclient python3-openssl | |
python3-pyasn1 | |
The following NEW packages will be installed: | |
binutils build-essential ca-certificates cpp cpp-5 dpkg-dev fakeroot g++ | |
g++-5 gcc gcc-5 git git-man iptables libalgorithm-diff-perl | |
...... | |
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory) | |
Preparing to unpack .../ncurses-term_6.0+20160213-1ubuntu1_all.deb ... | |
Unpacking ncurses-term (6.0+20160213-1ubuntu1) ... | |
Selecting previously unselected package openssh-server. | |
Preparing to unpack .../openssh-server_1%3a7.2p2-4ubuntu2.4_amd64.deb ... | |
Unpacking openssh-server (1:7.2p2-4ubuntu2.4) ... | |
Selecting previously unselected package python2.7-dev. | |
Preparing to unpack .../python2.7-dev_2.7.12-1ubuntu0~16.04.3_amd64.deb ... | |
Unpacking python2.7-dev (2.7.12-1ubuntu0~16.04.3) ... | |
Selecting previously unselected package python-dev. | |
Preparing to unpack .../python-dev_2.7.11-1_amd64.deb ... | |
Unpacking python-dev (2.7.11-1) ... | |
Selecting previously unselected package python3-pkg-resources. | |
Preparing to unpack .../python3-pkg-resources_20.7.0-1_all.deb ... | |
Unpacking python3-pkg-resources (20.7.0-1) ... | |
Unpacking python2.7-dev (2.7.12-1ubuntu0~16.04.3) ... | |
Selecting previously unselected package python-dev. | |
Preparing to unpack .../python-dev_2.7.11-1_amd64.deb ... | |
Unpacking python-dev (2.7.11-1) ... | |
Selecting previously unselected package python3-pkg-resources. | |
Preparing to unpack .../python3-pkg-resources_20.7.0-1_all.deb ... | |
Unpacking python3-pkg-resources (20.7.0-1) ... | |
Selecting previously unselected package python3-chardet. | |
Preparing to unpack .../python3-chardet_2.3.0-2_all.deb ... | |
Unpacking python3-chardet (2.3.0-2) ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In infra3 : | |
machinectl list-images | |
O/p: NAME TYPE RO USAGE CREATED MODIFIED | |
ubuntu-xenial-amd64 subvolume no 749.0M Sat 2018-02-10 23:24:24 PST n/a | |
machinectl remove ubuntu-xenial-amd64 | |
checked with list cmd => 0 images listed. | |
root@deploy-node:/opt/openstack-ansible/playbooks# openstack-ansible lxc-hosts-setup.yml -e lxc_image_cache_refresh=yes -vvv --limit infra3 | |
Failled with error mssg as : | |
"Enqueued transfer job 4. Press C-c to continue download in background.", | |
"Importing '/tmp/rootfs.tar.xz', saving as 'ubuntu-xenial-amd64'.", | |
"Failed to create subvolume /var/lib/machines/.#ubuntu-xenial-amd64ecaa0438e8caa37b: Disk quota exceeded", | |
"Exiting. | |
On exe of cmd: openstack-ansible lxc-hosts-setup.yml -e -vvv --limit infra3 | |
TASK [lxc_hosts : Retrieve base image] ******************************************************************************* | |
Sunday 11 February 2018 03:06:46 -0800 (0:00:01.049) 0:01:22.739 ******* | |
FAILED - RETRYING: Retrieve base image (3 retries left). | |
FAILED - RETRYING: Retrieve base image (2 retries left). | |
FAILED - RETRYING: Retrieve base image (1 retries left). | |
failed: [infra3] (item=ubuntu;xenial;amd64;default;20180211_03:49;/images/ubuntu/xenial/amd64/default/20180211_03:49/) => {"attempts": 3, "changed": false, "cmd": ["machinectl", "--verify=no", "import-tar", "/tmp/rootfs.tar.xz", "ubuntu-xenial-amd64"], "delta": "0:00:00.098342", "end": "2018-02-11 03:06:51.490152", "failed": true, "failed_when_result": true, "item": "ubuntu;xenial;amd64;default;20180211_03:49;/images/ubuntu/xenial/amd64/default/20180211_03:49/", "rc": 1, "start": "2018-02-11 03:06:51.391810", "stderr": "Enqueued transfer job 4. Press C-c to continue download in background.\nImporting '/tmp/rootfs.tar.xz', saving as 'ubuntu-xenial-amd64'.\nFailed to create subvolume /var/lib/machines/.#ubuntu-xenial-amd64ab65f8fbdc4e593c: Disk quota exceeded\nExiting.", "stderr_lines": ["Enqueued transfer job 4. Press C-c to continue download in background.", "Importing '/tmp/rootfs.tar.xz', saving as 'ubuntu-xenial-amd64'.", "Failed to create subvolume /var/lib/machines/.#ubuntu-xenial-amd64ab65f8fbdc4e593c: Disk quota exceeded", "Exiting."], "stdout": "", "stdout_lines": []} | |
Can this be the cause :TASK [lxc_hosts : Create machined proxy override unit directories] *************************************************** | |
Sunday 11 February 2018 04:25:50 -0800 (0:00:01.027) 0:05:56.162 ******* | |
skipping: [infra3] => (item=systemd-machined.service.d) | |
skipping: [infra3] => (item=systemd-importd.service.d) | |
TASK [lxc_hosts : Drop the machined proxy override units] ************************************************************ | |
Sunday 11 February 2018 04:25:50 -0800 (0:00:00.086) 0:05:56.249 ******* | |
skipping: [infra3] => (item=systemd-machined.service.d) | |
skipping: [infra3] => (item=systemd-importd.service.d) | |
TASK [lxc_hosts : include] ******************************************************************************************* | |
Sunday 11 February 2018 04:25:50 -0800 (0:00:00.086) 0:05:56.335 ******* | |
included: /etc/ansible/roles/lxc_hosts/tasks/lxc_cache_preparation_systemd_new.yml for infra3 | |
ls -lh | |
total 84M | |
drwx------ 2 root root 4.0K Feb 10 19:43 ansible_3y4nc6 | |
drwx------ 2 root root 4.0K Feb 10 18:52 ansible_9CAOF9 | |
drwx------ 2 root root 4.0K Feb 11 04:59 ansible_bhpqnt | |
drwx------ 2 root root 4.0K Feb 10 23:24 ansible_bs0Qm_ | |
-rw-r--r-- 1 root root 8.3K Feb 11 04:25 index-system | |
-rw-r--r-- 1 root root 84M Feb 11 04:25 rootfs.tar.xz | |
root@infra3:/home/osadmin# df -h | |
Filesystem Size Used Avail Use% Mounted on | |
udev 7.9G 0 7.9G 0% /dev | |
tmpfs 1.6G 29M 1.6G 2% /run | |
/dev/mapper/infra3--vg-root 443G 6.3G 414G 2% / | |
tmpfs 7.9G 0 7.9G 0% /dev/shm | |
tmpfs 5.0M 0 5.0M 0% /run/lock | |
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup | |
/dev/loop0 16G 17M 14G 1% /var/lib/machines | |
/dev/sda1 472M 106M 342M 24% /boot | |
cgmfs 100K 0 100K 0% /run/cgmanager/fs | |
tmpfs 1.6G 0 1.6G 0% /run/user/1000 | |
tmpfs 1.6G 0 1.6G 0% /run/user/0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAILED - RETRYING: Ensure that the LXC cache has been prepared (1 retries left). | |
fatal: [infra3]: FAILED! => {"ansible_job_id": "766365788508.23851", "attempts": 60, "changed": false, "failed": true, "finished": 0, "started": 1} | |
NO MORE HOSTS LEFT *************************************************************************************************** | |
NO MORE HOSTS LEFT *************************************************************************************************** | |
PLAY RECAP *********************************************************************************************************** | |
infra3 : ok=202 changed=80 unreachable=0 failed=1 | |
DEBUG MESSAGE RECAP ************************************************************ | |
DEBUG: [V-71855 - The cryptographic hash of system files and commands must match vendor values (apt)] | |
The following files have checksums that differ from the checksum provided with their package. Each of these should be verified manually to ensure they have not been modified by an unauthorized user: /usr/share/bash-completion/completions/apt, /usr/share/locale-langpack/en/LC_MESSAGES/libidn.mo, /usr/share/locale-langpack/en@boldquot/LC_MESSAGES/gnupg.mo, /usr/share/locale-langpack/en@boldquot/LC_MESSAGES/libidn.mo, /usr/share/locale-langpack/en@quot/LC_MESSAGES/gnupg.mo, /usr/share/locale-langpack/en@quot/LC_MESSAGES/libidn.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/NetworkManager.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/apparmor-parser.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/bfd.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/binutils.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/bzr.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/command-not-found.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/ecryptfs-utils.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/gas.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/gnupg.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/gold.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/gprof.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/grub.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/gst-plugins-good-1.0.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/kbd.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/keystone.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/language-selector.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/ld.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/libidn.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/libvirt.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/lightdm.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/opcodes.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/oxide-qt.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/p11-kit.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/software-properties.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/sudoers.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/sysstat.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/ubuntu-help.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/update-manager.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/upower.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/webbrowser-app.mo, /usr/share/locale-langpack/en_AU/LC_MESSAGES/xdiagnose.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/NetworkManager.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/apparmor-parser.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/bzr.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/command-not-found.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/ecryptfs-utils.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/grub.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/kdesudo.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/keystone.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/language-selector.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/libvirt.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/lightdm.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/software-properties.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/sysstat.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/ubuntu-help.mo, /usr/share/locale-langpack/en_CA/LC_MESSAGES/update-manager.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/NetworkManager.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/apparmor-parser.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/apt.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/bfd.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/binutils.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/bzr.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/command-not-found.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/devscripts.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/ecryptfs-utils.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/elfutils.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/fwupd.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/gas.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/gnupg.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/gold.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/gprof.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/grub.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/gst-plugins-good-1.0.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/gutenprint.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/kbd.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/keystone.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/language-selector.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/ld.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/libidn.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/libvirt.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/lightdm.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/lxd.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/mcs.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/opcodes.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/oxide-qt.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/p11-kit.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/software-properties.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/sssd.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/subdomain_parser.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/subversion.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/sudoers.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/sysstat.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/systemd.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/ubuntu-help.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/update-manager.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/upower.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/webbrowser-app.mo, /usr/share/locale-langpack/en_GB/LC_MESSAGES/xdiagnose.mo | |
DEBUG: [Print warning for users with an assigned home directory that does not exist] | |
These users have a home directory assigned, but the directory does not exist: | |
lp (/var/spool/lpd does not exist) | |
news (/var/spool/news does not exist) | |
uucp (/var/spool/uucp does not exist) | |
www-data (/var/www does not exist) | |
list (/var/list does not exist) | |
irc (/var/run/ircd does not exist) | |
gnats (/var/lib/gnats does not exist) | |
nobody (/nonexistent does not exist) | |
systemd-resolve (/run/systemd/resolve does not exist) | |
syslog (/home/syslog does not exist) | |
_apt (/nonexistent does not exist) | |
ntp (/home/ntp does not exist) | |
DEBUG: [Check for /home on mounted filesystem] ********************************* | |
The STIG requires that /home is on its own filesystem, but this system | |
does not appear to be following the requirement. | |
DEBUG: [Check for /var on mounted filesystem] ********************************** | |
The STIG requires that /var is on its own filesystem, but this system | |
does not appear to be following the requirement. | |
DEBUG: [Check for /var/log/audit on mounted filesystem] ************************ | |
The STIG requires that /var/log/audit is on its own filesystem, but this system | |
does not appear to be following the requirement. | |
DEBUG: [Check for /tmp on mounted filesystem] ********************************** | |
The STIG requires that /tmp is on its own filesystem, but this system | |
does not appear to be following the requirement. | |
DEBUG: [V-72209 - The system must send rsyslog output to a log aggregation server.] | |
Output from syslog must be sent to another server. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment