Skip to content

Commit 0861d43

Browse files
authored
Merge branch 'develop' into develop
2 parents 72192c3 + e3b2269 commit 0861d43

File tree

18 files changed

+90
-49
lines changed

18 files changed

+90
-49
lines changed

.github/workflows/unsafe-patterns-checker.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,13 @@ jobs:
2828
with:
2929
diffDoesNotContainRegex: "rm -rf"
3030
skipLabels: skip-recursive-deletion-check
31+
32+
# Prevent bad URL suffix
33+
bad-url-suffix-check:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Check PR for Disallowed URL Suffixes
37+
uses: francesco-giordano/[email protected]
38+
with:
39+
diffDoesNotContainRegex: "amazonaws\\.com|amazonaws\\.com\\.cn|c2s\\.ic\\.gov|sc2s\\.sgov\\.gov"
40+
skipLabels: skip-bad-url-suffix-check

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ This file is used to list changes made in each version of the AWS ParallelCluste
77
------
88

99
**CHANGES**
10+
- Upgrade mysql-community-client to version 8.0.39.
11+
- Upgrade Amazon DCV to version `2024.0-18131`.
12+
- server: `2024.0-18131-1`
13+
- xdcv: `2024.0.631-1`
14+
- gl: `2024.0.1078-1`
15+
- web_viewer: `2024.0-18131-1`
1016

1117
**BUG FIXES**
1218
- Fix an issue in the way we get region when manage volumes so that it can correctly handle local zone.

cookbooks/aws-parallelcluster-environment/attributes/environment.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,5 @@
7777
default['cluster']['spack_shared_dir'] = "#{node['cluster']['shared_dir']}/spack"
7878
default['cluster']['spack']['version'] = '0.20.2'
7979
default['cluster']['spack']['sha256'] = '62f87ab6ca332118f2812a255edcf4be4977623d067b9396251ce8c44b158e49'
80+
81+
default['cluster']['lustre']['enabled'] = 'yes'

cookbooks/aws-parallelcluster-environment/libraries/fsx.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ def aws_domain_for_fsx(region)
88
CLASSIC_AWS_DOMAIN
99
end
1010
end
11+
12+
def lustre_enabled?
13+
['yes', true].include?(node['cluster']['lustre']['enabled'])
14+
end

cookbooks/aws-parallelcluster-environment/recipes/install.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
cloudwatch 'Install amazon-cloudwatch-agent'
2020
efa 'Install EFA'
2121
raid 'Install RAID prerequisite packages'
22-
lustre 'Install FSx options'
22+
if lustre_enabled?
23+
lustre 'Install FSx options'
24+
end
2325
efs 'Install efs-utils'
2426
stunnel 'Install stunnel'
2527
system_authentication "Install packages required for directory service integration"

cookbooks/aws-parallelcluster-platform/attributes/platform.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
default['cluster']['dcv']['authenticator']['private_key'] = "#{node['cluster']['etc_dir']}/ext-auth-private-key.pem"
3030
default['cluster']['dcv']['authenticator']['virtualenv_name'] = "dcv_authenticator_virtualenv"
3131
default['cluster']['dcv']['authenticator']['virtualenv_path'] = "#{node['cluster']['system_pyenv_root']}/versions/#{node['cluster']['python-version']}/envs/#{node['cluster']['dcv']['authenticator']['virtualenv_name']}"
32-
default['cluster']['dcv']['version'] = '2023.1-16388'
32+
default['cluster']['dcv']['version'] = '2024.0-18131'
3333
default['cluster']['dcv_port'] = 8443
3434

35-
default['cluster']['dcv']['server']['version'] = '2023.1.16388-1'
36-
default['cluster']['dcv']['xdcv']['version'] = '2023.1.565-1'
37-
default['cluster']['dcv']['gl']['version'] = '2023.1.1047-1'
38-
default['cluster']['dcv']['web_viewer']['version'] = '2023.1.16388-1'
35+
default['cluster']['dcv']['server']['version'] = '2024.0.18131-1'
36+
default['cluster']['dcv']['xdcv']['version'] = '2024.0.631-1'
37+
default['cluster']['dcv']['gl']['version'] = '2024.0.1078-1'
38+
default['cluster']['dcv']['web_viewer']['version'] = '2024.0.18131-1'
3939

4040
# OpenSSH settings for AWS ParallelCluster instances
4141
default['openssh']['server']['protocol'] = '2'

cookbooks/aws-parallelcluster-platform/files/dcv/pcluster_dcv_authenticator.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def get_token_info(self, token):
103103

104104
class DCVAuthenticator(BaseHTTPRequestHandler):
105105
"""
106-
Simple HTTP server to handle NICE DCV authentication process.
106+
Simple HTTP server to handle Amazon DCV authentication process.
107107
108108
The authentication process to access to a DCV session is performed by the following steps:
109109
1. Obtain a Request Token:
@@ -191,7 +191,7 @@ def do_GET(self): # noqa N802, pylint: disable=C0103
191191

192192
def do_POST(self): # noqa N802 pylint: disable=C0103
193193
"""
194-
Handle POST requests, coming from NICE DCV server.
194+
Handle POST requests, coming from Amazon DCV server.
195195
196196
The format of the request is the following:
197197
curl -k http://localhost:<port> -d sessionId=<session-id> -d authenticationToken=<token>
@@ -360,7 +360,7 @@ def _is_session_valid(user, session_id):
360360
# because currently DCV doesn't allow list-session to list all session even for non-root user.
361361
# TODO change this method if DCV updates his behaviour.
362362
"""
363-
logger.info("Verifying NICE DCV session validity..")
363+
logger.info("Verifying Amazon DCV session validity..")
364364
# Remove the first and the last because they are the heading and empty, respectively
365365
# All commands and arguments in this subprocess call are built as literals
366366
processes = subprocess.check_output(["/bin/ps", "aux"]).decode("utf-8").split("\n")[1:-1] # nosec B603
@@ -370,7 +370,7 @@ def _is_session_valid(user, session_id):
370370
filter(lambda process: DCVAuthenticator.check_dcv_process(process, user, session_id), processes), None
371371
):
372372
raise DCVAuthenticator.IncorrectRequestError("The given session does not exists")
373-
logger.info("The NICE DCV session is valid.")
373+
logger.info("The Amazon DCV session is valid.")
374374

375375
@staticmethod
376376
def _verify_session_existence(user, session_id):
@@ -402,9 +402,9 @@ class ThreadedHTTPServer(ThreadingMixIn, HTTPServer):
402402

403403
def _run_server(port, certificate=None, key=None):
404404
"""
405-
Run NICE DCV authenticator server on localhost.
405+
Run Amazon DCV authenticator server on localhost.
406406
407-
The NICE DCV authenticator server *must* run with an appropriate user.
407+
The Amazon DCV authenticator server *must* run with an appropriate user.
408408
409409
:param port: the port in which you want to start the server
410410
:param certificate: the certificate to use if HTTPSs
@@ -497,12 +497,12 @@ def main():
497497
global logger # pylint: disable=C0103,W0603
498498
logger = _config_logger()
499499
try:
500-
logger.info("Starting NICE DCV authenticator server")
500+
logger.info("Starting Amazon DCV authenticator server")
501501
args = _parse_args()
502502
_prepare_auth_folder()
503503
_run_server(port=args.port if args.port else 8444, certificate=args.certificate, key=args.key)
504504
except KeyboardInterrupt:
505-
logger.info("Closing NICE DCV authenticator server")
505+
logger.info("Closing Amazon DCV authenticator server")
506506
except Exception as e:
507507
fail(f"Unexpected error of type {type(e).__name__}: {e}")
508508

cookbooks/aws-parallelcluster-platform/files/dcv/pcluster_dcv_connect.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,18 @@ _create_dcv_session() {
9090
dcv_session_file="$1"
9191
shared_folder_path="$2"
9292

93-
_log "Creating a new NICE DCV session..."
93+
_log "Creating a new Amazon DCV session..."
9494
# Generate a random session id
9595
sessionid=$(shuf -zer -n20 {A..Z} {a..z} {0..9})
9696
echo "${sessionid}" > "${dcv_session_file}"
9797
dcv create-session --type virtual --storage-root "${shared_folder_path}" "${sessionid}"
98-
_log "NICE DCV session created successfully."
98+
_log "Amazon DCV session created successfully."
9999

100100
echo "${sessionid}"
101101
}
102102

103103
main() {
104-
_log "--- Initializing NICE DCV authentication... ---"
104+
_log "--- Initializing Amazon DCV authentication... ---"
105105

106106
if [[ -z "$1" ]]; then
107107
_fail "The script requires the shared folder as input parameter."
@@ -117,7 +117,7 @@ main() {
117117
fi
118118

119119
if ! systemctl is-active --quiet dcvserver; then
120-
_fail "NICE DCV service is not active on the given instance."
120+
_fail "Amazon DCV service is not active on the given instance."
121121
fi
122122

123123
# Create a session with session storage enabled.
@@ -127,7 +127,7 @@ main() {
127127
sessionid=$(_create_dcv_session "${dcv_session_file}" "${shared_folder_path}")
128128
else
129129
sessionid=$(cat "${dcv_session_file}")
130-
_log "Reusing existing NICE DCV session for the current user."
130+
_log "Reusing existing Amazon DCV session for the current user."
131131

132132
# number of session can either be 0 or 1
133133
number_of_sessions=$(dcv list-sessions |& grep "${user}" | grep -c "${sessionid}")
@@ -145,7 +145,7 @@ main() {
145145
# Retrieve Request Token and Access File name
146146
_log "Retrieving Request Token and Access File name.."
147147
user_token_request=$(/usr/bin/curl --retry 3 --max-time 5 -s -k -X GET -G "https://localhost:${ext_auth_port}" -d action=requestToken -d authUser="${user}" -d sessionID="${sessionid}")
148-
_validate_json "${user_token_request}" "Unable to obtain the Request Token from the NICE DCV external authenticator."
148+
_validate_json "${user_token_request}" "Unable to obtain the Request Token from the Amazon DCV external authenticator."
149149
request_token=$(echo "${user_token_request}" | jq -r .requestToken)
150150
access_file=$(echo "${user_token_request}" | jq -r .accessFile)
151151
_log "Request Token and Access File name obtained successfully."
@@ -160,15 +160,15 @@ main() {
160160
# Retrieve Session Token
161161
_log "Retrieving Session Token.."
162162
session_token_request=$(/usr/bin/curl --retry 3 --max-time 5 -s -k -X GET -G "https://localhost:${ext_auth_port}" -d action=sessionToken -d requestToken="${request_token}")
163-
_validate_json "${session_token_request}" "Unable to obtain the Session Token from the NICE DCV external authenticator."
163+
_validate_json "${session_token_request}" "Unable to obtain the Session Token from the Amazon DCV external authenticator."
164164
session_token=$(echo "${session_token_request}" | jq -r .sessionToken)
165165
_log "Session Token obtained successfully."
166166

167167
if [[ -z "${dcv_server_port}" ]]; then
168168
dcv_server_port=8443
169169
fi
170170

171-
_log "--- NICE DCV authentication performed successfully. ---"
171+
_log "--- Amazon DCV authentication performed successfully. ---"
172172
echo "PclusterDcvServerPort=${dcv_server_port} PclusterDcvSessionId=${sessionid} PclusterDcvSessionToken=${session_token}"
173173
}
174174

cookbooks/aws-parallelcluster-platform/resources/dcv/dcv_alinux2.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@ def prereq_packages
2727
gnu-free-serif-fonts glx-utils) + (arm_instance? ? %w(mate-terminal) : %w(gnome-terminal))
2828
end
2929

30+
def dcv_server
31+
"nice-dcv-server-#{node['cluster']['dcv']['server']['version']}.el7.#{dcv_url_arch}.rpm"
32+
end
33+
34+
def xdcv
35+
"nice-xdcv-#{node['cluster']['dcv']['xdcv']['version']}.el7.#{dcv_url_arch}.rpm"
36+
end
37+
38+
def dcv_web_viewer
39+
"nice-dcv-web-viewer-#{node['cluster']['dcv']['web_viewer']['version']}.el7.#{dcv_url_arch}.rpm"
40+
end
41+
42+
def dcv_gl
43+
"nice-dcv-gl-#{node['cluster']['dcv']['gl']['version']}.el7.#{dcv_url_arch}.rpm"
44+
end
45+
3046
action_class do
3147
def pre_install
3248
package prereq_packages do

cookbooks/aws-parallelcluster-platform/resources/dcv/dcv_ubuntu20.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121

2222
def dcv_sha256sum
2323
# Ubuntu20 supports DCV on x86
24-
'5151ad6b589dc573e2e067aed0389913e9ecd50bec81935b12e4f952ef14cc56'
24+
'cf63d51a5bb7ac82569d747215c0118a7468a32c753c0b0fa9c1cf47513c0a0c'
2525
end

0 commit comments

Comments
 (0)