Skip to content

Commit

Permalink
remove package manifest creation as it's not in use
Browse files Browse the repository at this point in the history
the 3rd party upgrade procedure was dropped from docs in scylladb/scylladb#15733

Removing the code as we don't need it any more

Refs: scylladb/scylla-pkg#3892
  • Loading branch information
yaronkaikov committed Mar 18, 2024
1 parent d89af4f commit cdc2cec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
6 changes: 0 additions & 6 deletions packer/scylla.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,6 @@
],
"type": "shell"
},
{
"source": "/home/{{user `ssh_username`}}/{{user `product`}}-packages-{{user `scylla_full_version`}}-{{user `arch`}}.txt",
"destination": "build/",
"direction": "download",
"type": "file"
},
{
"source": "/home/{{user `ssh_username`}}/{{user `product`}}-{{build_name}}-kernel-{{user `scylla_full_version`}}-{{user `arch`}}.txt",
"destination": "build/",
Expand Down
12 changes: 0 additions & 12 deletions packer/scylla_install_image
Original file line number Diff line number Diff line change
Expand Up @@ -214,18 +214,6 @@ WantedBy=multi-user.target
with open('/etc/ssh/sshd_config.d/50-cloudimg-settings.conf', 'w') as f:
f.write('ClientAliveInterval 180 \nHostKeyAlgorithms +ssh-rsa \nPubkeyAcceptedKeyTypes +ssh-rsa')

# generate package manifest to scylla-packages.txt
deps = run(f'apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --installed {args.product}', stdout=PIPE, stderr=STDOUT, shell=True, check=True, encoding='utf-8').stdout.splitlines()
pkgs=[]
for d in deps:
if re.match(r'^\w', d) and not re.match(r'.+:i386$', d) and d not in pkgs:
pkgs.append(d)
with open('{}/{}-packages-{}-{}.txt'.format(homedir, args.product, args.scylla_version, arch()), 'w') as f:
for pkg_name in pkgs:
pkg_name_version = run(f"dpkg-query --showformat='${{Package}}=${{Version}}' --show {pkg_name}", capture_output=True, shell=True, check=True, encoding='utf-8').stdout
f.write(f'{pkg_name_version}\n')
print('{}/{}-packages-{}-{}.txt generated.'.format(homedir, args.product, args.scylla_version, arch()))

kver = run('uname -r', shell=True, check=True, capture_output=True, encoding='utf-8').stdout.strip()
with open('{}/{}-{}-kernel-{}-{}.txt'.format(homedir, args.product, args.target_cloud, args.scylla_version, arch()), 'a+') as f:
f.write(f'kernel-version: {kver}\n')
Expand Down

0 comments on commit cdc2cec

Please sign in to comment.