Skip to content
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

scylla_install_image:remove /var/cache/debconf/config.dat after image creation #466

Merged
merged 1 commit into from
Jul 16, 2023

Conversation

yaronkaikov
Copy link
Collaborator

during our rolling-upgrade process, we keep getting the following failure:

Command: 'sudo DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" -o Dpkg::Options::="--force-confdef" upgrade -y '
Exit code: 100
Stdout:
linux-aws linux-headers-aws linux-image-aws
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up shim-signed (1.40.9+15.7-0ubuntu1) ...
mount: /var/lib/grub/esp: special device /dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_vol0b2a94761ddb1d0c5-part15 does not exist.
dpkg: error processing package shim-signed (--configure):
installed shim-signed package post-installation script subprocess returned error exit status 32
Errors were encountered while processing:
shim-signed
Stderr:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Happened for all images

As suggested by @syuu1228, let's remove config.dat once we complete the image creation

Closes: https://github.com/scylladb/scylla-enterprise/issues/2818

… creation

during our rolling-upgrade process we keep getting the following
failure:
```
Command: 'sudo DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" -o Dpkg::Options::="--force-confdef" upgrade -y '
Exit code: 100
Stdout:
linux-aws linux-headers-aws linux-image-aws
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up shim-signed (1.40.9+15.7-0ubuntu1) ...
mount: /var/lib/grub/esp: special device /dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_vol0b2a94761ddb1d0c5-part15 does not exist.
dpkg: error processing package shim-signed (--configure):
installed shim-signed package post-installation script subprocess returned error exit status 32
Errors were encountered while processing:
shim-signed
Stderr:
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

Happend for all images

As suggested by @syuu1228, let's remove `config.dat` once we complete
the image creation

Closes: scylladb/scylla-enterprise#2818
@yaronkaikov
Copy link
Collaborator Author

yaronkaikov commented Jul 16, 2023

Verified with https://jenkins.scylladb.com/job/scylla-master/job/releng-testing/job/next-machine-image/149/

scyllaadm@ip-10-0-1-231:~$ ls -la /var/cache/debconf/config.dat
-rw-r--r-- 1 root root 0 Jul 16 10:56 /var/cache/debconf/config.dat
scyllaadm@ip-10-0-1-231:~$ cat /var/cache/debconf/config.dat
scyllaadm@ip-10-0-1-231:~$ 

@fruch
Copy link
Collaborator

fruch commented Jul 16, 2023

Verified with https://jenkins.scylladb.com/job/scylla-master/job/releng-testing/job/next-machine-image/149/

scyllaadm@ip-10-0-1-231:~$ ls -la /var/cache/debconf/config.dat
-rw-r--r-- 1 root root 0 Jul 16 10:56 /var/cache/debconf/config.dat
scyllaadm@ip-10-0-1-231:~$ cat /var/cache/debconf/config.dat
scyllaadm@ip-10-0-1-231:~$ 

I would recommend merging on master, and testing the Azure upgrade test, that suffers from it, before we backport into all releases

Copy link
Collaborator

@fruch fruch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

2 participants