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

packer/scylla.json: Add apt-get update after kernel package removal #494

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

yaronkaikov
Copy link
Collaborator

From time to time we get the following error during Azure build:

�[0;32m    azure: Reading state information...�[0m
 �[1;31m==> azure: E: Unable to locate package linux-azure-lts-22.04�[0m
 �[1;31m==> azure: E: Couldn't find any package by glob 'linux-azure-lts-22.04'�[0m
 �[1;31m==> azure: E: Couldn't find any package by regex 'linux-azure-lts-22.04'�[0m
 �[1;32m==> azure: Provisioning step had errors: Running the cleanup provisioner, if present...�[0m
 �[1;32m==> azure:
 ==> azure: Deleting individual resources ...�[0m

Couldn't find a main reason for this, as it can't be repreduced all time.

As suggested by @mykaul, adding apt-get update after kernel package pruge command

Fixes: https://github.com/scylladb/scylla-pkg/issues/3601

From time to time we get the following error during Azure build:
```
�[0;32m    azure: Reading state information...�[0m
 �[1;31m==> azure: E: Unable to locate package linux-azure-lts-22.04�[0m
 �[1;31m==> azure: E: Couldn't find any package by glob 'linux-azure-lts-22.04'�[0m
 �[1;31m==> azure: E: Couldn't find any package by regex 'linux-azure-lts-22.04'�[0m
 �[1;32m==> azure: Provisioning step had errors: Running the cleanup provisioner, if present...�[0m
 �[1;32m==> azure:
 ==> azure: Deleting individual resources ...�[0m
```

Couldn't find a main reason for this, as it can't be repreduced all
time.

As suggested by @mykaul, adding `apt-get update` after kernel package
pruge command

Fixes: scylladb/scylla-pkg#3601
@yaronkaikov yaronkaikov marked this pull request as ready for review December 13, 2023 05:26
Copy link
Contributor

@benipeled benipeled left a comment

Choose a reason for hiding this comment

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

I can't see how purge affects the index and if so why it's not consistent or seen on other cloud providers? but I also see no other fix so we can try it

@yaronkaikov yaronkaikov merged commit 2df73bb into scylladb:next Dec 13, 2023
1 check passed
@yaronkaikov yaronkaikov deleted the add-update-command branch December 13, 2023 07:26
yaronkaikov added a commit to yaronkaikov/scylla-machine-image that referenced this pull request Dec 21, 2023
some minor changes following scylladb#494

remove `apt-get update` before purging the packages
yaronkaikov added a commit to yaronkaikov/scylla-machine-image that referenced this pull request Dec 21, 2023
some minor changes following scylladb#494

remove `apt-get update` before purging the packages
yaronkaikov added a commit that referenced this pull request Dec 24, 2023
some minor changes following #494

remove `apt-get update` before purging the packages
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.

3 participants